rubocop (1.82.1)
rubocop-ast (1.49.0)
rubocop-rails (2.34.3)
parser (3.3.10.0)
class DeviseInvitableAddToUsers < ActiveRecord::Migration[8.1]
def up
change_table :users do |t|
-snip-
end
end
def down
change_table :users do |t|
-snip-
end
end
end
triggered the following errors:
db/migrate/20260106230752_devise_invitable_add_to_users.rb:5:5: C: Rails/BulkChangeTable: You can combine alter queries using bulk: true options.
change_table :users do |t|
^^^^^^^^^^^^^^^^^^^
db/migrate/20260106230752_devise_invitable_add_to_users.rb:19:5: C: Rails/BulkChangeTable: You can combine alter queries using bulk: true options.
change_table :users do |t|
^^^^^^^^^^^^^^^^^^^
The cop should allow for one change_table method call for each table under both up & down methods
rubocop (1.82.1)
rubocop-ast (1.49.0)
rubocop-rails (2.34.3)
parser (3.3.10.0)
triggered the following errors:
The cop should allow for one
change_tablemethod call for each table under bothup&downmethods