Enable optimisation of checks for parent record existence
This commit is contained in:
parent
cae17a1f9f
commit
ed279071c7
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue