Use JSON to serialize messages

The new serializer can decrypt legacy messages using the `marshal`
serializer, so there's no risk of losing data when upgrading. Since we
aren't using applications with several servers, where upgrading some
servers might cause issues on the servers that aren't upgraded yet,
we're enabling the option.

[1] See comments in pull request 42846 in https://github.com/rails/rails
This commit is contained in:
Javi Martín
2024-04-15 14:43:36 +02:00
parent 36828ee86b
commit e08ba7efbe

View File

@@ -128,7 +128,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