Last active
November 20, 2017 09:55
-
-
Save bernardobarreto/44a14b56d00d8f37e5d8c47cf8704200 to your computer and use it in GitHub Desktop.
Mongoid: two databases yml configuration
This file contains hidden or 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
production: | |
sessions: | |
default: | |
database: db_development | |
username: my_username | |
password: my_password | |
hosts: | |
- myserverip:27017 | |
secondary: | |
database: db2_development | |
username: myusername2 | |
password mypassword2 | |
hosts: | |
- myserverip2:27018 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment