I have what might be a silly question but is there any way to put some
of the database configuration information into a separate file? For
instance, in config/database.yml I have:
This was done so that the database names are standardised across
developers but the details of the actual database connection are
modifiable by the developer (another developer will alter just the
details in developer_database).
What I’d like is to have the ‘development’ and ‘test’ entries in
config/database.yml (which is checked into a SVN repository) and then
the ‘developer_database’ defined in a config/developer_database.yml
file (which is not checked in); both of these being loaded and
“merged” to get the appropriate database configurations.
Does that make sense? How else do people deal with this?