12 lines
238 B
Ruby
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
|