mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-18 00:54:49 +01:00
Make data migration more merciful
This commit is contained in:
parent
8cfcc52876
commit
165498f110
@ -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…
Reference in New Issue
Block a user