This commit is contained in:
KMY 2024-12-06 12:45:21 +09:00
parent 067a4ca9e9
commit b37fe77240

View file

@ -4,8 +4,8 @@ class RemoveBoostsWideningAudience < ActiveRecord::Migration[5.2]
disable_ddl_transaction! disable_ddl_transaction!
def up def up
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
@ -22,8 +22,8 @@ class RemoveBoostsWideningAudience < ActiveRecord::Migration[5.2]
# 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))
remove_column :statuses, :searchability # remove_column :statuses, :searchability
remove_column :statuses, :limited_scope # remove_column :statuses, :limited_scope
end end
def down def down