lib/rails/generators/mongoid/config/templates/mongoid.yml in mongoid-6.4.8 vs lib/rails/generators/mongoid/config/templates/mongoid.yml in mongoid-7.0.0.beta

- old
+ new

@@ -9,14 +9,10 @@ # Provides the hosts the default client can connect to. Must be an array # of host:port pairs. (required) hosts: - localhost:27017 options: - # Note that all options listed below are Ruby driver client options (the mongo gem). - # Please refer to the driver documentation of the version of the mongo gem you are using - # for the most up-to-date list of options. - # # Change the default write concern. (default = { w: 1 }) # write: # w: 1 # Change the default read preference. Valid options for mode are: :secondary, @@ -147,9 +143,12 @@ # belongs_to_required_by_default: true # Application name that is printed to the mongodb logs upon establishing a # connection in server versions >= 3.4. Note that the name cannot exceed 128 bytes. # app_name: MyApplicationName + + # Use background indexes by default if `background` option not specified. (default: false) + # background_indexing: false test: clients: default: database: <%= database_name || app_name %>_test hosts: