about summary refs log tree commit diff
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20200726095058_backfill_semiprivate_on_statuses.rb2
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