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

20 lines
941 B
Ruby

# 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