]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/new_framework_defaults_7_1.rb
Enable optimisation of checks for parent record existence
[rails.git] / config / initializers / new_framework_defaults_7_1.rb
index c8d12c67eb5e4671f881a584c8ceae88bedb60b3..8ff1fa9ad88702b33ed60c8ab08447d3a834c296 100644 (file)
@@ -137,7 +137,7 @@ Rails.application.config.active_record.raise_on_assign_to_attr_readonly = true
 # Enable validating only parent-related columns for presence when the parent is mandatory.
 # The previous behavior was to validate the presence of the parent record, which performed an extra query
 # to get the parent every time the child record was updated, even when parent has not changed.
-Rails.application.config.active_record.belongs_to_required_validates_foreign_key = false
+Rails.application.config.active_record.belongs_to_required_validates_foreign_key = false
 
 # Enable precompilation of `config.filter_parameters`. Precompilation can
 # improve filtering performance, depending on the quantity and types of filters.