diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-12-02 15:09:44 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-12-02 15:09:44 +0100 |
commit | 165498f1101b00591852dbd58e7f4891f9f7d7b3 (patch) | |
tree | 6a1a649ad7269cd8cc248965ef9a361a1167709d /db/migrate | |
parent | 8cfcc528765af2ae79ddf02350ee2c8ab7e91fd9 (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.rb | 2 |
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 |