Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
mongoid.yml
development:
sessions:
default:
database: logservice_development
hosts:
- localhost:27017
options:
# Change whether the session persists in safe mode by default.
# (default: false)
# safe: false
# Change the default consistency model to :eventual or :strong.
# :eventual will send reads to secondaries, :strong sends everything
# to master. (default: :eventual)
consistency: :strong
test:
sessions:
default:
database: logservice_test
hosts:
- localhost:27017
options:
consistency: :strong
staging:
sessions:
default:
database: logservice_staging
hosts:
- localhost:27017
options:
consistency: :strong
production:
sessions:
default:
database: logservice_production
hosts:
- localhost:27017
options:
consistency: :strong
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment