diff options
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20200726095058_backfill_semiprivate_on_statuses.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20200726095058_backfill_semiprivate_on_statuses.rb b/db/migrate/20200726095058_backfill_semiprivate_on_statuses.rb index 69878ab94..0f247146e 100644 --- a/db/migrate/20200726095058_backfill_semiprivate_on_statuses.rb +++ b/db/migrate/20200726095058_backfill_semiprivate_on_statuses.rb @@ -4,7 +4,7 @@ class BackfillSemiprivateOnStatuses < ActiveRecord::Migration[5.2] def up Rails.logger.info('Backfilling semiprivate statuses...') safety_assured do - Status.where(id: StatusDomainPermission.select(:status_id).distinct(:status_id)).in_batches.update_all(semiprivate: true) + Status.where(id: StatusDomainPermission.select(:status_id)).in_batches.update_all(semiprivate: true) end end |