Skip to content

Commit 4e30b8d

Browse files
authored
Fix new framework defaults for destroy_all_in_batches
Small issue from rails#40445, the configuration should be commented out by default.
1 parent f263530 commit 4e30b8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@
4343
# of the video).
4444
# Rails.application.config.active_storage.video_preview_arguments =
4545
# "-vf 'select=eq(n\\,0)+eq(key\\,1)+gt(scene\\,0.015),loop=loop=-1:size=2,trim=start_frame=1' -frames:v 1 -f image2"
46-
#
46+
4747
# Enforce destroy in batches when calling ActiveRecord::Relation#destroy_all
48-
Rails.application.config.active_record.destroy_all_in_batches = true
48+
# Rails.application.config.active_record.destroy_all_in_batches = true

0 commit comments

Comments
 (0)