cheat sheets.

$ cheat database_yml
--- database_yml version 3	Tue Jan 23 09:58:36 +0000 2007
+++ database_yml version 5	Mon Oct 22 18:41:28 +0000 2007
@@ -1,22 +1,27 @@
 DRY out your database.yml
 From: http://blog.bleything.net/articles/2006/06/27/dry-out-your-database-yml
+Updated with a more universal database naming scheme, which better accomodates
+multiple instances of the same application.
 
+-----
+
 login: &login
   adapter: mysql
   username: username
   password: password
-  host: mysql.example.com
+  # host: mysql.example.com
+  encoding: utf8
   port: 3306
 
 development:
   <<: *login
-  database: app_dev
+  database: app_domain_com_d
 
 test:
   <<: *login
-  database: app_test
+  database: app_domain_com_t
 
 production:
   <<: *login
-  database: app_prod
+  database: app_domain_com_p
( add new | see all )