|
class CreateBitBayTrades < ActiveRecord::Migration[5.1]
|
|
def change
|
|
create_table :bit_bay_trades do |t|
|
|
t.references :currency, foreign_key: true
|
|
t.string :tid
|
|
t.timestamp :date
|
|
t.string :type
|
|
t.float :price
|
|
t.float :amount
|
|
|
|
t.timestamps
|
|
end
|
|
add_index :bit_bay_trades, :tid
|
|
end
|
|
end
|