forked from e621ng/e621ng
[Rails] Enable the remaining 7.1 framework defaults
This commit is contained in:
parent
682f809f0e
commit
86d44b5b67
@ -28,6 +28,7 @@ module Danbooru
|
|||||||
|
|
||||||
# Remove if load_defaults 7.1
|
# Remove if load_defaults 7.1
|
||||||
config.add_autoload_paths_to_load_path = false
|
config.add_autoload_paths_to_load_path = false
|
||||||
|
config.active_support.cache_format_version = 7.1
|
||||||
|
|
||||||
# https://github.com/rails/rails/issues/50897
|
# https://github.com/rails/rails/issues/50897
|
||||||
config.active_record.raise_on_assign_to_attr_readonly = false
|
config.active_record.raise_on_assign_to_attr_readonly = false
|
||||||
|
@ -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
|
# serializer. Therefore, this setting should only be enabled after all replicas
|
||||||
# have been successfully upgraded to Rails 7.1.
|
# 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
|
# 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
|
# servers, first deploy without changing the serializer, then set the serializer
|
||||||
# in a subsequent deploy.
|
# 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
|
# 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
|
# leave this optimization off on the first deploy, then enable it on a
|
||||||
# subsequent deploy.
|
# 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.
|
# 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
|
# leave this optimization off on the first deploy, then enable it on a
|
||||||
# subsequent deploy.
|
# 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.
|
# Run `after_commit` and `after_*_commit` callbacks in the order they are defined in a model.
|
||||||
|
Loading…
Reference in New Issue
Block a user