Fix test
This commit is contained in:
parent
b37fe77240
commit
842049131a
1 changed files with 11 additions and 11 deletions
|
@ -7,17 +7,17 @@ class RemoveBoostsWideningAudience < ActiveRecord::Migration[5.2]
|
||||||
# add_column :statuses, :searchability, :integer
|
# add_column :statuses, :searchability, :integer
|
||||||
# add_column :statuses, :limited_scope, :integer
|
# add_column :statuses, :limited_scope, :integer
|
||||||
|
|
||||||
Status.find_by_sql(<<-SQL.squish)
|
# Status.find_by_sql(<<-SQL.squish)
|
||||||
SELECT boost.id
|
# SELECT boost.id
|
||||||
FROM statuses AS boost
|
# FROM statuses AS boost
|
||||||
LEFT JOIN statuses AS boosted ON boost.reblog_of_id = boosted.id
|
# LEFT JOIN statuses AS boosted ON boost.reblog_of_id = boosted.id
|
||||||
WHERE
|
# WHERE
|
||||||
boost.id > 101746055577600000
|
# boost.id > 101746055577600000
|
||||||
AND (boost.local = TRUE OR boost.uri IS NULL)
|
# AND (boost.local = TRUE OR boost.uri IS NULL)
|
||||||
AND boost.visibility IN (0, 1)
|
# AND boost.visibility IN (0, 1)
|
||||||
AND boost.reblog_of_id IS NOT NULL
|
# AND boost.reblog_of_id IS NOT NULL
|
||||||
AND boosted.visibility = 2
|
# AND boosted.visibility = 2
|
||||||
SQL
|
# SQL
|
||||||
|
|
||||||
# Sorry, but remove to fix test
|
# Sorry, but remove to fix test
|
||||||
# RemovalWorker.push_bulk(public_boosts.pluck(:id))
|
# RemovalWorker.push_bulk(public_boosts.pluck(:id))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue