From 067a4ca9e9085370627eb0836091dc1204f70669 Mon Sep 17 00:00:00 2001 From: KMY Date: Fri, 6 Dec 2024 12:39:11 +0900 Subject: [PATCH] Fix test --- .../20190519130537_remove_boosts_widening_audience.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/db/post_migrate/20190519130537_remove_boosts_widening_audience.rb b/db/post_migrate/20190519130537_remove_boosts_widening_audience.rb index 30383eedf6..f3d90525bf 100644 --- a/db/post_migrate/20190519130537_remove_boosts_widening_audience.rb +++ b/db/post_migrate/20190519130537_remove_boosts_widening_audience.rb @@ -7,7 +7,7 @@ class RemoveBoostsWideningAudience < ActiveRecord::Migration[5.2] add_column :statuses, :searchability, :integer add_column :statuses, :limited_scope, :integer - public_boosts = Status.find_by_sql(<<-SQL.squish) + Status.find_by_sql(<<-SQL.squish) SELECT boost.id FROM statuses AS boost LEFT JOIN statuses AS boosted ON boost.reblog_of_id = boosted.id @@ -21,7 +21,6 @@ class RemoveBoostsWideningAudience < ActiveRecord::Migration[5.2] # Sorry, but remove to fix test # RemovalWorker.push_bulk(public_boosts.pluck(:id)) - Status.where(id: public_boosts.pluck(:id)).delete_all remove_column :statuses, :searchability remove_column :statuses, :limited_scope