1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-11 00:52:29 +01:00
fab-manager/db/migrate/20170227104736_create_slots_reservations.rb
Sylvain 0e94f8c3d4 Redo "change DB model to allow many_to_many relationship between Slot and Reservation"
This reverts commit 4cbfbdc4e0f9a271d0fe13459a7b0f93de2c013a.
2017-02-28 13:23:31 +01:00

9 lines
252 B
Ruby

class CreateSlotsReservations < ActiveRecord::Migration
def change
create_table :slots_reservations do |t|
t.belongs_to :slot, index: true, foreign_key: true
t.belongs_to :reservation, index: true, foreign_key: true
end
end
end