Disable deprecated singular association names

This doesn't affect us (since luckily we never use them), and, since
doing something like `Budget::Investment.where(budgets: 1)` would be
very confusing, getting an error when writing this code is IMHO better
than just getting a warning, which was the default before Rails 7.1 [1].

[1] https://guides.rubyonrails.org/v7.1/configuring.html#config-active-record-allow-deprecated-singular-associations-name
This commit is contained in:
Javi Martín
2024-04-15 04:46:39 +02:00
parent c0bc9bd027
commit 2bedfacf3b

View File

@@ -71,7 +71,7 @@ Rails.application.config.active_record.sqlite3_adapter_strict_strings_by_default
### ###
# Disable deprecated singular associations names. # Disable deprecated singular associations names.
#++ #++
# Rails.application.config.active_record.allow_deprecated_singular_associations_name = false Rails.application.config.active_record.allow_deprecated_singular_associations_name = false
### ###
# Enable the Active Job `BigDecimal` argument serializer, which guarantees # Enable the Active Job `BigDecimal` argument serializer, which guarantees