Introduce Booths for admin

This commit is contained in:
nasia 2017-05-17 13:31:27 +03:00 committed by Stella Rouzi
parent 29aee82a14
commit f7c0b64eb5
22 changed files with 534 additions and 1 deletions

View file

@ -0,0 +1,16 @@
class CreateBooths < ActiveRecord::Migration
def change
create_table :booths do |t|
t.string :title
t.text :description
t.text :reasoning
t.string :state
t.string :logo_link
t.string :website_url
t.text :submitter_relationship
t.references :conference
t.timestamps null: false
end
end
end

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