about summary refs log tree commit diff
path: root/db/migrate
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20200215021014_backfill_statuses_hidden.rb6
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