lib/rails/generators/mongoid/config/templates/mongoid.yml in mongoid-6.1.0 vs lib/rails/generators/mongoid/config/templates/mongoid.yml in mongoid-6.1.1

- old
+ new

@@ -32,12 +32,13 @@ # The user's database roles. # roles: # - 'dbOwner' # Change the default authentication mechanism. Valid options are: :scram, - # :mongodb_cr, :mongodb_x509, and :plain. (default on 3.0 is :scram, default - # on 2.4 and 2.6 is :plain) + # :mongodb_cr, :mongodb_x509, and :plain. Note that all authentication + # mechanisms require username and password, with the exception of :mongodb_x509. + # Default on mongoDB 3.0 is :scram, default on 2.4 and 2.6 is :plain. # auth_mech: :scram # The database or source to authenticate the user against. # (default: the database specified above or admin) # auth_source: admin @@ -119,19 +120,28 @@ # Raise an error when defining a scope with the same name as an # existing method. (default: false) # scope_overwrite_exception: false + # Raise an error when defining a field with the same name as an + # existing method. (default: false) + # duplicate_fields_exception: false + # Use Active Support's time zone in conversions. (default: true) # use_activesupport_time_zone: true # Ensure all times are UTC in the app side. (default: false) # use_utc: false # Set the Mongoid and Ruby driver log levels when not in a Rails # environment. The Mongoid logger will be set to the Rails logger # otherwise.(default: :info) # log_level: :info + + # Control whether `belongs_to` association is required. By default + # `belongs_to` will trigger a validation error if the association + # is not present. (default: true) + # 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 test: