Fix Rails/BulkChangeTable cop (#26890)
This commit is contained in:
@@ -2,7 +2,11 @@
|
||||
|
||||
class AddCommentsToDomainBlocks < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_column :domain_blocks, :private_comment, :text
|
||||
add_column :domain_blocks, :public_comment, :text
|
||||
safety_assured do
|
||||
change_table(:domain_blocks, bulk: true) do |t|
|
||||
t.column :private_comment, :text
|
||||
t.column :public_comment, :text
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user