Make data migration more merciful

lolsob-rspec
Eugen Rochko 2016-12-02 15:09:44 +01:00
parent 78d6c567b3
commit 473470b119
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ class AddInReplyToAccountIdToStatuses < ActiveRecord::Migration[5.0]
next if status.thread.nil?
status.in_reply_to_account_id = status.thread.account_id
status.save!
status.save(validate: false)
end
end
end