This is mostly a note to myself, since I keep forgetting.
If you created a standard rails project, but later want to switch to using the
pg gem, here's what you need to do:
WARNING: This method does not migrate old data.
group :development do # gem 'sqlite3' gem 'pg' end
development: # adapter: sqlite3 # database: db/development.sqlite3 host: localhost adapter: postgresql database: myapp_dev username: mydbuser
On the command line:
$ bundle install $ bundle exec rake db:create db:migrate