about summary refs log tree commit diff
path: root/db
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-09-19 17:54:06 -0500
committerFire Demon <firedemon@creature.cafe>2020-09-19 17:54:06 -0500
commit9d2f75cedc5e89e7089a93ddaaec783cd2539f2e (patch)
treeee9542844cc0353f4d5874bcbcdb7afb28de4994 /db
parentb31328ebd532f2af5d559bfc53f12d15ab266631 (diff)
[Database] Fix failing semi-private backfill migration
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