add relationships for booths

This commit is contained in:
nasia 2017-05-30 13:05:13 +03:00
parent da6b5b8141
commit 3d9ac5a85f
8 changed files with 50 additions and 2 deletions

View file

@ -0,0 +1,11 @@
class CreateBoothRequests < ActiveRecord::Migration
def change
create_table :booth_requests do |t|
t.references :booth, index: true, foreign_key: true
t.references :user, index: true, foreign_key: true
t.string :role
t.timestamps null: false
end
end
end