Skip to content

Instantly share code, notes, and snippets.

@captainpete
Created January 17, 2011 05:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save captainpete/782528 to your computer and use it in GitHub Desktop.
Save captainpete/782528 to your computer and use it in GitHub Desktop.
Example DRYish database.yml from 2010
common: &common
adapter: mysql
encoding: utf8
username: root
password:
development:
<<: *common
database: app_name
production:
<<: *common
database: app_name
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
<<: *common
database: app_name_test
cucumber:
<<: *common
database: app_name_test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment