lib/rubocop/cop/rails/bulk_change_table.rb in rubocop-rails-2.8.1 vs lib/rubocop/cop/rails/bulk_change_table.rb in rubocop-rails-2.9.0
- old
+ new
@@ -63,10 +63,10 @@
# end
# end
#
# @see https://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/SchemaStatements.html#method-i-change_table
# @see https://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/Table.html
- class BulkChangeTable < Cop
+ class BulkChangeTable < Base
MSG_FOR_CHANGE_TABLE = <<~MSG.chomp
You can combine alter queries using `bulk: true` options.
MSG
MSG_FOR_ALTER_METHODS = <<~MSG.chomp
You can use `change_table :%<table>s, bulk: true` to combine alter queries.