diff options
author | multiple creatures <dev@multiple-creature.party> | 2020-02-15 21:17:13 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2020-02-15 21:17:13 -0600 |
commit | f14f7e0f0e3ceb6aefbebf4fcbcecf223dcb13db (patch) | |
tree | 102323afabfb110cd2c129cc2770d90075d98ac5 /db | |
parent | 864d62fdeb33520ff891961ffe18d279e284a863 (diff) |
skip already backfilled statuses
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 |