Make data migration more merciful

master
Eugen Rochko 8 years ago
parent 8cfcc52876
commit 165498f110
  1. 2
      db/migrate/20161202132159_add_in_reply_to_account_id_to_statuses.rb

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

Loading…
Cancel
Save