-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate updated mongoid.yml config file
I generated the file with `rails g mongoid:config` and then copied the custom options from our previous config. Notable differences: * The `safe: true` option has been removed. The new `w: 1` option provides the same behaviour by default. From the Changelog for v4[1]: > Mongoid now defaults all writes to propagate (formerly "safe > mode") and now has different propagate semantics: > > { w: -1 }: Don't verify writes and raise no network errors. > { w: 0 }: Don't verify writes and raise network errors. > { w: 1 }: Verify writes on the primary node. (default) > { w: n }: Verify writes on n number of nodes. > { w: "majority" }: Verify writes on a majority of nodes. * The `consistency: strong` option has been replaced by `read: primary` in the test and production sessions. You can see from the comments in this diff that these are equivalent. * The `use_activesupport_time_zone`, `refresh_interval` and `refresh_mode` options have been moved to the "Configure Mongoid specific options" key. [1]: https://github.com/mongodb/mongoid/blob/master/CHANGELOG.md
- Loading branch information
Showing
1 changed file
with
52 additions
and
30 deletions.
There are no files selected for viewing
This file contains 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