Skip to content

Instantly share code, notes, and snippets.

@ideamonk
Created July 9, 2012 07:29
Show Gist options
  • Save ideamonk/3074799 to your computer and use it in GitHub Desktop.
Save ideamonk/3074799 to your computer and use it in GitHub Desktop.
DRY-ish db config
# A DRY-ish config
common: &common
adapter: postgresql
encoding: unicode
template: template0
pool: 5
username: amal
password:
development:
<<: *common
database: sampleapp_development
test:
<<: *common
database: sampleapp_test
production:
<<: *common
database: sampleapp_production
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment