Skip to content

Commit

Permalink
Enable final Rails 7 default: belongs_to_required_validates_foreign_k…
Browse files Browse the repository at this point in the history
…ey (#3797)

After this, we can version bump `config.load_defaults 7.0` to
`config.load_defaults 7.1` 🎉
  • Loading branch information
veganstraightedge authored Mar 4, 2024
1 parent 9162df9 commit 176409a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions config/initializers/new_framework_defaults_7_1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,7 @@
# 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.
#++
# TODO: enable this one by itself, after the rest
# 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
Expand Down

0 comments on commit 176409a

Please sign in to comment.