1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-10 21:24:20 +01:00
fab-manager/db/migrate/20170213103438_create_spaces_availabilities.rb

11 lines
292 B
Ruby
Raw Normal View History

2017-02-13 14:38:28 +01:00
class CreateSpacesAvailabilities < ActiveRecord::Migration
def change
create_table :spaces_availabilities do |t|
t.belongs_to :space, index: true, foreign_key: true
t.belongs_to :availability, index: true, foreign_key: true
t.timestamps null: false
end
end
end