diff options
author | multiple creatures <dev@multiple-creature.party> | 2020-02-16 00:25:40 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2020-02-16 00:25:40 -0600 |
commit | 511cfcc3b71ce26862d74d74c89891f3c8a35507 (patch) | |
tree | 4461d9c95698bbf1ae574595d9a81b7e8670deda /db/migrate | |
parent | 09aa0a23500798a90504d82af0787984eba24e80 (diff) |
(monsterpit specific) make backfill redo-able
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20200215021014_backfill_statuses_hidden.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/db/migrate/20200215021014_backfill_statuses_hidden.rb b/db/migrate/20200215021014_backfill_statuses_hidden.rb index 34042e204..bd90b9b97 100644 --- a/db/migrate/20200215021014_backfill_statuses_hidden.rb +++ b/db/migrate/20200215021014_backfill_statuses_hidden.rb @@ -1,8 +1,12 @@ class BackfillStatusesHidden < ActiveRecord::Migration[5.2] disable_ddl_transaction! - def change + def up Rails.logger.info("Setting all statuses unhidden by default. This may take a really long time.") Status.where.not(hidden: false).in_batches.update_all(hidden: false) end + + def down + true + end end |