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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user