Created
November 22, 2010 18:33
-
-
Save jpr5/710386 to your computer and use it in GitHub Desktop.
example of how you'd specify multiple repos in a database.yml for DataMapper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
development: | |
repositories: | |
default: &balls_defaults | |
adapter: mysql | |
host: localhost | |
database: balls | |
username: root | |
password: "" | |
dongs: &dongs_defaults | |
adapter: mysql | |
host: localhost | |
database: dongs | |
username: root | |
password: "" | |
foo: &foo_defaults | |
adapter: mysql | |
host: localhost | |
database: foo | |
username: root | |
password: "" | |
test: | |
repositories: | |
default: | |
<<: *balls_defaults | |
database: balls_test | |
dongs: | |
<<: *dongs_defaults | |
database: dongs_test | |
foo: | |
<<: *foo_defaults | |
database: foo_test | |
production: | |
repositories: | |
default: | |
<<: *balls_defaults | |
dongs: | |
<<: *dongs_defaults | |
foo: | |
<<: *foo_defaults |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment