Skip to content

Commit 8739453

Browse files
Note cache_format_version in framework defaults
Since 7.1 was made the [default][1] for applications using `load_defaults 7.1`, this adds a note of how to safely opt into the configuration to new_framework_defaults. The comment is the same as we used when the [same change][2] was made for 7.0 [1]: c94760c [2]: 270a2dd Co-authored-by: Alex Ghiculescu <[email protected]>
1 parent 2bfb656 commit 8739453

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

railties/lib/rails/generators/rails/app/templates/config/initializers/new_framework_defaults_7_1.rb.tt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,3 +166,14 @@
166166
# This matches the behaviour of all other callbacks.
167167
# In previous versions of Rails, they ran in the inverse order.
168168
# Rails.application.config.active_record.run_after_transaction_callbacks_in_order_defined = true
169+
170+
# ** Please read carefully, this must be configured in config/application.rb **
171+
# Change the format of the cache entry.
172+
# Changing this default means that all new cache entries added to the cache
173+
# will have a different format that is not supported by Rails 7.0
174+
# applications.
175+
# Only change this value after your application is fully deployed to Rails 7.1
176+
# and you have no plans to rollback.
177+
# When you're ready to change format, add this to `config/application.rb` (NOT
178+
# this file):
179+
# config.active_support.cache_format_version = 7.1

0 commit comments

Comments
 (0)