about summary refs log tree commit diff
path: root/db/migrate
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-12-02 15:09:44 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-12-02 15:09:44 +0100
commit165498f1101b00591852dbd58e7f4891f9f7d7b3 (patch)
tree6a1a649ad7269cd8cc248965ef9a361a1167709d /db/migrate
parent8cfcc528765af2ae79ddf02350ee2c8ab7e91fd9 (diff)
Make data migration more merciful
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20161202132159_add_in_reply_to_account_id_to_statuses.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20161202132159_add_in_reply_to_account_id_to_statuses.rb b/db/migrate/20161202132159_add_in_reply_to_account_id_to_statuses.rb
index f93bc6565..2c24b53d0 100644
--- a/db/migrate/20161202132159_add_in_reply_to_account_id_to_statuses.rb
+++ b/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?
 
         status.in_reply_to_account_id = status.thread.account_id
-        status.save!
+        status.save(validate: false)
       end
     end
   end