Skip to content

Instantly share code, notes, and snippets.

@bernardobarreto
Last active November 20, 2017 09:55
Show Gist options
  • Save bernardobarreto/44a14b56d00d8f37e5d8c47cf8704200 to your computer and use it in GitHub Desktop.
Save bernardobarreto/44a14b56d00d8f37e5d8c47cf8704200 to your computer and use it in GitHub Desktop.
Mongoid: two databases yml configuration
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