osem-fcy/db/migrate/20170530112510_create_booth_requests.rb
2017-07-18 14:18:42 +03:00

11 lines
291 B
Ruby

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