DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

DRY RAILS Database.yml Config File

07.10.2006
| 14831 views |
  • submit to reddit
        From http://blog.bleything.net/articles/2006/06/27/dry-out-your-database-yml:



login: &login
  adapter: mysql
  username: username
  password: password
  host: mysql.example.com

development:
  <<: *login
  database: app_dev

test:
  <<: *login
  database: app_test

production:
  <<: *login
  database: app_prod