I've just made my first ruby on rails app and want to change my database to postgresql in order to use it with heroku. So far I've done this, but I think it's not working correctly. Can you please tell me if you see anything wrong? Thanks
database.yml:
# SQLite version 3.x
# gem install sqlite3
#
# Ensure the SQLite 3 gem is defined in your Gemfile
# gem 'sqlite3'
#
default: &default
adapter: postgresql
database: myrubyblog
user: myrubyblog
password:
pool: 5
timeout: 5000
development:
<<: *default
adapter: postgresql
database: myrubyblog
user: myrubyblog
password:
# 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
adapter: postgresql
database: myrubyblog
user: myrubyblog
password:
production:
<<: *default
adapter: postgresql
database: myrubyblog
user: myrubyblog
password:
I've also changed gem 'sqlite3' into gem 'pg' in Gemfile