Workshop and event scaffolds

This commit is contained in:
Godwin
2014-03-15 13:40:38 -06:00
parent 3d6ad3b432
commit 8e26bb1797
62 changed files with 933 additions and 1 deletions
@@ -0,0 +1,11 @@
class CreateWorkshopFacilitators < ActiveRecord::Migration
def change
create_table :workshop_facilitators do |t|
t.integer :user_id
t.integer :workshop_id
t.string :role
t.timestamps
end
end
end
@@ -0,0 +1,11 @@
class CreateWorkshopRequestedResources < ActiveRecord::Migration
def change
create_table :workshop_requested_resources do |t|
t.integer :workshop_id
t.integer :workshop_resource_id
t.string :status
t.timestamps
end
end
end
@@ -0,0 +1,10 @@
class CreateEventTypes < ActiveRecord::Migration
def change
create_table :event_types do |t|
t.string :slug
t.text :info
t.timestamps
end
end
end
@@ -0,0 +1,16 @@
class CreateEvents < ActiveRecord::Migration
def change
create_table :events do |t|
t.string :title
t.string :slug
t.integer :event_type_id
t.conference_id :conference
t.text :info
t.location_id :location
t.datetime :start_time
t.datetime :end_time
t.timestamps
end
end
end