[Rails] Enable the remaining 7.1 framework defaults

This commit is contained in:
Earlopain 2024-01-30 16:16:10 +01:00
parent 682f809f0e
commit 86d44b5b67
No known key found for this signature in database
GPG Key ID: 48860312319ADF61
2 changed files with 5 additions and 4 deletions

View File

@ -28,6 +28,7 @@ module Danbooru
# Remove if load_defaults 7.1
config.add_autoload_paths_to_load_path = false
config.active_support.cache_format_version = 7.1
# https://github.com/rails/rails/issues/50897
config.active_record.raise_on_assign_to_attr_readonly = false

View File

@ -93,7 +93,7 @@ Rails.application.config.active_record.allow_deprecated_singular_associations_na
# serializer. Therefore, this setting should only be enabled after all replicas
# have been successfully upgraded to Rails 7.1.
#++
# Rails.application.config.active_job.use_big_decimal_serializer = true
Rails.application.config.active_job.use_big_decimal_serializer = true
###
# Specify if an `ArgumentError` should be raised if `Rails.cache` `fetch` or
@ -138,7 +138,7 @@ Rails.application.config.active_record.query_log_tags_format = :sqlcommenter
# servers, first deploy without changing the serializer, then set the serializer
# in a subsequent deploy.
#++
# Rails.application.config.active_support.message_serializer = :json_allow_marshal
Rails.application.config.active_support.message_serializer = :json_allow_marshal
###
# Enable a performance optimization that serializes message data and metadata
@ -151,7 +151,7 @@ Rails.application.config.active_record.query_log_tags_format = :sqlcommenter
# leave this optimization off on the first deploy, then enable it on a
# subsequent deploy.
#++
# Rails.application.config.active_support.use_message_serializer_for_metadata = true
Rails.application.config.active_support.use_message_serializer_for_metadata = true
###
# Set the maximum size for Rails log files.
@ -200,7 +200,7 @@ Rails.application.config.active_record.default_column_serializer = nil
# leave this optimization off on the first deploy, then enable it on a
# subsequent deploy.
#++
# Rails.application.config.active_record.marshalling_format_version = 7.1
Rails.application.config.active_record.marshalling_format_version = 7.1
###
# Run `after_commit` and `after_*_commit` callbacks in the order they are defined in a model.