Introduce Booths and Call for Booths to OSEM
This commit is contained in:
parent
4d895ae3bc
commit
3172cfcbb2
22 changed files with 443 additions and 1 deletions
14
db/migrate/20170516190048_create_booths.rb
Normal file
14
db/migrate/20170516190048_create_booths.rb
Normal 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
|
||||
11
db/migrate/20170530112510_create_booth_requests.rb
Normal file
11
db/migrate/20170530112510_create_booth_requests.rb
Normal 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
|
||||
11
db/migrate/20170606182954_create_call_for_booths.rb
Normal file
11
db/migrate/20170606182954_create_call_for_booths.rb
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue