Skip to content

Instantly share code, notes, and snippets.

@eddorre
Created October 31, 2011 21:39
Show Gist options
  • Save eddorre/1329040 to your computer and use it in GitHub Desktop.
Save eddorre/1329040 to your computer and use it in GitHub Desktop.
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
production:
<<: *shared
database: myapp_production
cucumber:
<<: *test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment