Initial commit
This commit is contained in:
16
db/migrate/20210503114029_create_deposit_limits.rb
Normal file
16
db/migrate/20210503114029_create_deposit_limits.rb
Normal file
@@ -0,0 +1,16 @@
|
||||
class CreateDepositLimits < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :deposit_limits do |t|
|
||||
|
||||
t.string :group, limit: 32, default: 'any', null: false, index: true
|
||||
t.string :kyc_level, limit: 32, default: 'any', null: false, index: true
|
||||
|
||||
t.decimal :limit_24_hour, precision: 32, scale: 16, default: 0, null: false
|
||||
t.decimal :limit_1_month, precision: 32, scale: 16, default: 0, null: false
|
||||
t.integer :kind, default: 0, null: false, unsigned: true
|
||||
t.timestamps
|
||||
|
||||
end
|
||||
add_index :deposit_limits, %i[group kyc_level kind], unique: true
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user