Files
sx-fc/db/migrate/20170403145042_create_room_orders.rb
2017-04-04 01:09:17 +06:30

12 lines
238 B
Ruby

class CreateRoomOrders < ActiveRecord::Migration[5.0]
def change
create_table :room_orders do |t|
t.references :room
t.references :orders, foreign_key: true
t.string :order_by
t.timestamps
end
end
end