Initial commit
This commit is contained in:
19
db/migrate/20180215144646_add_currencies.rb
Normal file
19
db/migrate/20180215144646_add_currencies.rb
Normal file
@@ -0,0 +1,19 @@
|
||||
# encoding: UTF-8
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AddCurrencies < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
create_table :currencies do |t|
|
||||
t.string :key, limit: 30, null: false
|
||||
t.string :code, limit: 30, null: false, index: { unique: true }
|
||||
t.string :symbol, limit: 1, null: false
|
||||
t.string :type, limit: 30, null: false, default: 'coin'
|
||||
t.decimal :quick_withdraw_limit, precision: 32, scale: 16, null: false, default: 0
|
||||
t.string :options, limit: 1000, default: '{}', null: false
|
||||
t.boolean :visible, default: true, null: false, index: true
|
||||
t.integer :base_factor, default: 1, null: false, limit: 8
|
||||
t.integer :precision, limit: 1, default: 8, null: false
|
||||
t.timestamps null: false
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user