Skip to content

Instantly share code, notes, and snippets.

@quackhouse
Created October 17, 2013 13:09
Show Gist options
  • Save quackhouse/7024588 to your computer and use it in GitHub Desktop.
Save quackhouse/7024588 to your computer and use it in GitHub Desktop.
Reusable Database.yml for Rails
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