mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-26 03:11:36 +01:00
Use db_table_exists?
method in new cli/maintenance area (#29677)
This commit is contained in:
parent
cdd168f5d3
commit
718ee72c80
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ module Mastodon::CLI
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if ActiveRecord::Base.connection.table_exists?(:severed_relationships)
|
if db_table_exists?(:severed_relationships)
|
||||||
SeveredRelationship.where(local_account_id: other_account.id).reorder(nil).find_each do |record|
|
SeveredRelationship.where(local_account_id: other_account.id).reorder(nil).find_each do |record|
|
||||||
record.update_attribute(:local_account_id, id)
|
record.update_attribute(:local_account_id, id)
|
||||||
rescue ActiveRecord::RecordNotUnique
|
rescue ActiveRecord::RecordNotUnique
|
||||||
|
|
Loading…
Reference in a new issue