blob: cbcbd600b82f3279f097fd096af3a07237e8fbde (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
class BackfillDefaultStatusesEdited < ActiveRecord::Migration[5.2]
disable_ddl_transaction!
def up
Rails.logger.info('Backfilling "edited" column of table "statuses" to default value 0...')
Status.unscoped.in_batches do |statuses|
statuses.update_all(edited: 0)
end
end
def down
true
end
end
|