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

9 lines
305 B
Ruby

class AddKindToWithdrawLimits < ActiveRecord::Migration[5.2]
def change
remove_index :withdraw_limits, name: 'index_withdraw_limits_on_group_and_kyc_level'
add_column :withdraw_limits, :kind, :integer, default: 0
add_index :withdraw_limits, %i[group kyc_level kind], unique: true
end
end