Schedules!

This commit is contained in:
Godwin
2015-09-26 20:05:55 -07:00
parent 34e72144cc
commit bc80c09938
82 changed files with 1669 additions and 268 deletions
@@ -0,0 +1,14 @@
class CreateEventLocations < ActiveRecord::Migration
def change
create_table :event_locations do |t|
t.string :title
t.integer :conference_id
t.float :latitude
t.float :longitude
t.string :address
t.string :amenities
t.timestamps null: false
end
end
end
@@ -0,0 +1,5 @@
class AddEventLocationIdToWorkshops < ActiveRecord::Migration
def change
add_column :workshops, :event_location_id, :integer
end
end
@@ -0,0 +1,5 @@
class AddEventLocationIdToEvents < ActiveRecord::Migration
def change
add_column :events, :event_location_id, :integer
end
end
@@ -0,0 +1,5 @@
class AddTypeToEvents < ActiveRecord::Migration
def change
add_column :events, :event_type, :string
end
end
@@ -0,0 +1,5 @@
class AddDayPartsToConferences < ActiveRecord::Migration
def change
add_column :conferences, :day_parts, :string
end
end
+3 -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: 20150920233755) do
ActiveRecord::Schema.define(version: 20150927010559) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -120,6 +120,7 @@ ActiveRecord::Schema.define(version: 20150920233755) do
t.string "paypal_username"
t.string "paypal_password"
t.string "paypal_signature"
t.string "day_parts"
end
create_table "delayed_jobs", force: :cascade do |t|
@@ -187,6 +188,7 @@ ActiveRecord::Schema.define(version: 20150920233755) do
t.datetime "created_at"
t.datetime "updated_at"
t.integer "event_location_id"
t.string "type"
end
create_table "locations", force: :cascade do |t|