From 165498f1101b00591852dbd58e7f4891f9f7d7b3 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Fri, 2 Dec 2016 15:09:44 +0100 Subject: [PATCH] Make data migration more merciful --- .../20161202132159_add_in_reply_to_account_id_to_statuses.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 f93bc656..2c24b53d 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