Displaying 2 results from an estimated 2 matches for "app_production".
2006 Jul 15
2
Database Config as DSL
...------
common {
adapter "mysql"
username "root"
password ""
host "example.com"
port "3306"
}
development {
<< "common"
database "app_development"
}
production {
<< "common"
database "app_production"
}
test {
<< "common"
database "app_test"
}
----------------------------------
I did get this working as an instance_eval style DSL, except that the <<
lines had to have "self" preceding them; Ruby expects the << operator to
be operating...
2006 Aug 03
5
Database configuration across developers!
Hi,
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:
developer_database: &developer_database
adapter: mysql
username: me
password: something
host: 127.0.0.1
development:
<<: *developer_database
database: foobar_development
test:
<<: