-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
After #7 #9. We want to use postgress for our project
- Add in gem to Gemfile pg last version https://rubygems.org/gems/pg
- Run
bundle install
- Change database.yml file to
default: &default
adapter: postgresql
encoding: unicode
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
port: <%= ENV.fetch("DATABASE_PORT") %>
host: <%= ENV.fetch("DATABASE_HOST") %>
user: <%= ENV.fetch("POSTGRES_USER") %>
password: <%= ENV.fetch("POSTGRES_PASSWORD") %>
development:
<<: *default
database: rubywork_ru_development
test:
<<: *default
database: rubywork_ru_test
production:
<<: *default
database: rubywork_ru_production
- Run
rails db:create && rails db:migrate
- Launch project, open browser localhoat:3000 and check DB have users table
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels