blob: bd90b9b976c3a7c42ce5030ef4908538eeda2531 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
class BackfillStatusesHidden < ActiveRecord::Migration[5.2]
disable_ddl_transaction!
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
|