A platform for community discussion. Free, open, simple.
Keep second semantics for method
Sam182aaffbd56f
diff --git a/lib/column_dropper.rb b/lib/column_dropper.rbindex be08a10dd0c..960f587790f 100644--- a/lib/column_dropper.rb+++ b/lib/column_dropper.rb@@ -6,7 +6,8 @@ class ColumnDropperraise ArgumentError.new("Invalid column name passed to drop #{column}") if column =~ /[^a-z0-9_]/iend- delay ||= Rails.env.production? ? 60 : 0+ # in production we need some extra delay to allow for slow migrations+ delay ||= Rails.env.production? ? 360 : 0sql = <<~SQLSELECT 1@@ -25,7 +26,7 @@ class ColumnDropperif ActiveRecord::Base.exec_sql(sql, table: table,columns: columns,- delay: "#{delay.to_i || 0} minutes",+ delay: "#{delay.to_i || 0} seconds",after_migration: after_migration).to_a.length > 0on_drop&.call