diff options
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20200215021014_backfill_statuses_hidden.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20200215021014_backfill_statuses_hidden.rb b/db/migrate/20200215021014_backfill_statuses_hidden.rb index 59e2e40ac..34042e204 100644 --- a/db/migrate/20200215021014_backfill_statuses_hidden.rb +++ b/db/migrate/20200215021014_backfill_statuses_hidden.rb @@ -3,6 +3,6 @@ class BackfillStatusesHidden < ActiveRecord::Migration[5.2] def change Rails.logger.info("Setting all statuses unhidden by default. This may take a really long time.") - Status.in_batches.update_all(hidden: false) + Status.where.not(hidden: false).in_batches.update_all(hidden: false) end end |