20191001213028_add_lock_version_to_account_stats.rb 309 B

12345678910111213
  1. # frozen_string_literal: true
  2. class AddLockVersionToAccountStats < ActiveRecord::Migration[5.2]
  3. disable_ddl_transaction!
  4. def up
  5. safety_assured { add_column :account_stats, :lock_version, :integer, null: false, default: 0 }
  6. end
  7. def down
  8. remove_column :account_stats, :lock_version
  9. end
  10. end