diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-09-19 17:54:06 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-09-19 17:54:06 -0500 |
commit | 9d2f75cedc5e89e7089a93ddaaec783cd2539f2e (patch) | |
tree | ee9542844cc0353f4d5874bcbcdb7afb28de4994 /db | |
parent | b31328ebd532f2af5d559bfc53f12d15ab266631 (diff) |
[Database] Fix failing semi-private backfill migration
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 |