Skip to content

Commit d21c0f5

Browse files
authored
Merge pull request rails#48138 from skipkayhil/hm-add-cache-version-defaults
Note cache_format_version in framework defaults
2 parents f1c553c + 8739453 commit d21c0f5

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)