Ruby on Rails
DatabaseYAML

Instead of the default database.yml being


development: adapter: mysql database: rails_development host: localhost username: root password:

test:
adapter: mysql
database: rails_test
host: localhost
username: root
password:

production:
adapter: mysql
database: rails_production
host: localhost
username: root
password:


why not


development:
  adapter: mysql
  database: myappname_development
  host: localhost
  username: root
  password: 

test:
  adapter: mysql
  database: myappname_test
  host: localhost
  username: root
  password:

production:
  adapter: mysql
  database: myappname_production
  host: localhost
  username: root
  password: 


This doesn’t really solve anything does it? Whether it’s ‘rails’ or ‘MyAppName’ the user still has to go in there and change it to whatever they want it to be. Also you’d want to use ‘myappname’ camelcasing the database name is not a great idea. — Schubert

My thought when I was using it was that having to change it from rails to myappname was a minor pain that would be easy to fix. If I create three apps they all access the same db. why not just prefix with the appname instead then those of us that aren’t picky don’t have to change it, and those that do can. Does that make sense?
changed to all lowercase the appname :-)
(Whats wrong with camelcasing the database name?)
—dru