Fix Rails/BulkChangeTable
cop (#26890)
This commit is contained in:
parent
0c4e7c06dc
commit
c501d626e8
31 changed files with 208 additions and 107 deletions
|
@ -2,7 +2,9 @@
|
|||
|
||||
class AddMetadataToStatuses < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
add_column :statuses, :in_reply_to_id, :integer, null: true
|
||||
add_column :statuses, :reblog_of_id, :integer, null: true
|
||||
change_table(:statuses, bulk: true) do |t|
|
||||
t.column :in_reply_to_id, :integer, null: true
|
||||
t.column :reblog_of_id, :integer, null: true
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue