cryptobot/db/migrate/20171129204104_create_bit_b...

16 lines
339 B
Ruby

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