osem-fcy/db/migrate/20170530112510_create_booth_requests.rb

12 lines
291 B
Ruby
Raw Normal View History

2017-05-17 13:31:27 +03:00
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