Files
Dena/db/migrate/20190723202251_drop_withdraw_attempts.rb
2026-08-13 19:50:53 +03:30

10 lines
227 B
Ruby

class DropWithdrawAttempts < ActiveRecord::Migration[5.2]
def up
remove_column :withdraws, :attempts
end
def down
add_column :withdraws, :attempts, :integer, default: 0, null: false, after: :aasm_state
end
end