Skip to content

Instantly share code, notes, and snippets.

@ml242
Last active December 25, 2015 19:09
Show Gist options
  • Save ml242/7025499 to your computer and use it in GitHub Desktop.
Save ml242/7025499 to your computer and use it in GitHub Desktop.
Updating the Database.yml
development:
adapter: postgresql
encoding: unicode
database: <%= File.basename(Rails.root) %>_development
pool: 5
host: localhost
username: <%= ENV['PG_USERNAME'] %>
password:
test:
adapter: postgresql
encoding: unicode
database: <%= File.basename(Rails.root) %>_test
pool: 5
host: localhost
username: <%= ENV['PG_USERNAME'] %>
password:
production:
adapter: postgresql
encoding: unicode
database: <%= File.basename(Rails.root) %>_production
pool: 5
username: <%= ENV['PG_USERNAME'] %>
password:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment