From 96869333dae4cf4ccdea78faa3f955bd4cd18b83 Mon Sep 17 00:00:00 2001 From: KMY Date: Fri, 6 Dec 2024 12:25:12 +0900 Subject: [PATCH] Fix test --- .../20190519130537_remove_boosts_widening_audience.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/db/post_migrate/20190519130537_remove_boosts_widening_audience.rb b/db/post_migrate/20190519130537_remove_boosts_widening_audience.rb index 89a95041ee..edcfa79da5 100644 --- a/db/post_migrate/20190519130537_remove_boosts_widening_audience.rb +++ b/db/post_migrate/20190519130537_remove_boosts_widening_audience.rb @@ -4,6 +4,9 @@ class RemoveBoostsWideningAudience < ActiveRecord::Migration[5.2] disable_ddl_transaction! def up + add_column :statuses, :searchability, :integer + add_column :statuses, :limited_scope, :integer + public_boosts = Status.find_by_sql(<<-SQL.squish) SELECT boost.id FROM statuses AS boost @@ -17,6 +20,9 @@ class RemoveBoostsWideningAudience < ActiveRecord::Migration[5.2] SQL RemovalWorker.push_bulk(public_boosts.pluck(:id)) + + remove_column :statuses, :searchability + remove_column :statuses, :limited_scope end def down