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 b37fe77 commit 8420491
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions db/post_migrate/20190519130537_remove_boosts_widening_audience.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ def up
# add_column :statuses, :searchability, :integer
# add_column :statuses, :limited_scope, :integer

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
WHERE
boost.id > 101746055577600000
AND (boost.local = TRUE OR boost.uri IS NULL)
AND boost.visibility IN (0, 1)
AND boost.reblog_of_id IS NOT NULL
AND boosted.visibility = 2
SQL
# 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
# WHERE
# boost.id > 101746055577600000
# AND (boost.local = TRUE OR boost.uri IS NULL)
# AND boost.visibility IN (0, 1)
# AND boost.reblog_of_id IS NOT NULL
# AND boosted.visibility = 2
# SQL

# Sorry, but remove to fix test
# RemovalWorker.push_bulk(public_boosts.pluck(:id))
Expand Down

0 comments on commit 8420491

Please sign in to comment.