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
+17 -1
View File
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20140314025647) do
ActiveRecord::Schema.define(version: 20140315181222) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -204,6 +204,14 @@ ActiveRecord::Schema.define(version: 20140314025647) do
t.text "value"
end
create_table "workshop_facilitators", force: true do |t|
t.integer "user_id"
t.integer "workshop_id"
t.string "role"
t.datetime "created_at"
t.datetime "updated_at"
end
create_table "workshop_presentation_styles", force: true do |t|
t.string "name"
t.string "slug"
@@ -212,6 +220,14 @@ ActiveRecord::Schema.define(version: 20140314025647) do
t.datetime "updated_at"
end
create_table "workshop_requested_resources", force: true do |t|
t.integer "workshop_id"
t.integer "workshop_resource_id"
t.string "status"
t.datetime "created_at"
t.datetime "updated_at"
end
create_table "workshop_resources", force: true do |t|
t.string "name"
t.string "slug"