blob: 0f247146e71598106e79efd3955cff2952a94371 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
class BackfillSemiprivateOnStatuses < ActiveRecord::Migration[5.2]
disable_ddl_transaction!
def up
Rails.logger.info('Backfilling semiprivate statuses...')
safety_assured do
Status.where(id: StatusDomainPermission.select(:status_id)).in_batches.update_all(semiprivate: true)
end
end
def down
true
end
end
|