Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
kmycode committed Dec 6, 2024
1 parent 3c3ee55 commit 9686933
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -17,6 +20,9 @@ def up
SQL

RemovalWorker.push_bulk(public_boosts.pluck(:id))

remove_column :statuses, :searchability
remove_column :statuses, :limited_scope
end

def down
Expand Down

0 comments on commit 9686933

Please sign in to comment.