DEV Community

Tao Liu
Tao Liu

Posted on • Updated on

Rails - sqlite to pgsql

#pg

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

Top comments (0)