Introduce Booths and Call for Booths to OSEM

This commit is contained in:
nasia 2017-05-17 13:31:27 +03:00
parent 4d895ae3bc
commit 3172cfcbb2
22 changed files with 443 additions and 1 deletions

View file

@ -0,0 +1,14 @@
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.integer :conference_id
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

View file

@ -0,0 +1,11 @@
class CreateCallForBooths < ActiveRecord::Migration
def change
create_table :call_for_booths do |t|
t.date :start_date
t.date :end_date
t.integer :booth_limit
t.timestamps null: false
end
end
end