diff --git a/lib/mastodon/cli/maintenance.rb b/lib/mastodon/cli/maintenance.rb index f376bcee07..2e7c857078 100644 --- a/lib/mastodon/cli/maintenance.rb +++ b/lib/mastodon/cli/maintenance.rb @@ -131,7 +131,7 @@ module Mastodon::CLI 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| record.update_attribute(:local_account_id, id) rescue ActiveRecord::RecordNotUnique