Skip to content

Instantly share code, notes, and snippets.

@jpr5
Created November 22, 2010 18:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpr5/710386 to your computer and use it in GitHub Desktop.
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
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