DEV Community

loading...

rails sqlite to pgsql

taoliu12 profile image Tao Liu ・1 min read

gem 'pg'

/home/tao/gameideas-rails-jquery/config/database.yml

default: &default
  adapter: postgresql
  pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
  timeout: 5000
development:
  <<: *default
  database: db/development
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
  <<: *default
  database: db/test
production:
  <<: *default
  database: db/production
Enter fullscreen mode Exit fullscreen mode

Discussion (0)

pic
Editor guide