Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Rails 3.1 Dry database.yml with development as a variable
development: &shared
adapter: postgresql
enconding: utf8
host: localhost
pool: 5
username: postgres
password: postgres
database: myapp_development
test: &test
<<: *shared
database: myapp_test
<<: *shared
database: myapp_production
<<: *test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment