20201017234926_fill_account_suspension_origin.rb 261 B

1234567891011
  1. # frozen_string_literal: true
  2. class FillAccountSuspensionOrigin < ActiveRecord::Migration[5.2]
  3. disable_ddl_transaction!
  4. def up
  5. Account.suspended.where(suspension_origin: nil).in_batches.update_all(suspension_origin: :local)
  6. end
  7. def down; end
  8. end