diff options
Diffstat (limited to 'db/migrate/20200215021014_backfill_statuses_hidden.rb')
-rw-r--r-- | db/migrate/20200215021014_backfill_statuses_hidden.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/db/migrate/20200215021014_backfill_statuses_hidden.rb b/db/migrate/20200215021014_backfill_statuses_hidden.rb new file mode 100644 index 000000000..59e2e40ac --- /dev/null +++ b/db/migrate/20200215021014_backfill_statuses_hidden.rb @@ -0,0 +1,8 @@ +class BackfillStatusesHidden < ActiveRecord::Migration[5.2] + disable_ddl_transaction! + + 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) + end +end |