Skip to content

Instantly share code, notes, and snippets.

@blanchma
Created July 23, 2012 22:12
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 blanchma/3166569 to your computer and use it in GitHub Desktop.
Save blanchma/3166569 to your computer and use it in GitHub Desktop.
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