Introduce Program to include cfp/rooms/tracks/events/event_types/difficulty_levels
This commit is contained in:
parent
028b82fda8
commit
444356fbc7
117 changed files with 1812 additions and 905 deletions
75
db/migrate/20151018152439_create_programs_table.rb
Normal file
75
db/migrate/20151018152439_create_programs_table.rb
Normal file
|
|
@ -0,0 +1,75 @@
|
|||
class CreateProgramsTable< ActiveRecord::Migration
|
||||
class TempConference < ActiveRecord::Base
|
||||
self.table_name = 'conferences'
|
||||
end
|
||||
|
||||
class TempCfp < ActiveRecord::Base
|
||||
self.table_name = 'cfps'
|
||||
end
|
||||
|
||||
class TempCallForPaper < ActiveRecord::Base
|
||||
self.table_name = 'call_for_papers'
|
||||
end
|
||||
|
||||
class TempProgram < ActiveRecord::Base
|
||||
self.table_name = 'programs'
|
||||
end
|
||||
|
||||
def up
|
||||
create_table :programs do |t|
|
||||
t.references :conference
|
||||
t.integer :rating, default: 0
|
||||
t.boolean :schedule_public, default: false
|
||||
t.boolean :schedule_fluid, default: false
|
||||
end
|
||||
|
||||
add_column :call_for_papers, :program_id, :integer
|
||||
|
||||
TempConference.all.each do |conference|
|
||||
unless TempProgram.find_by(conference_id: conference.id)
|
||||
program = TempProgram.new
|
||||
program.conference_id = conference.id
|
||||
program.save!
|
||||
|
||||
if (cfp = TempCallForPaper.find_by(conference_id: conference.id))
|
||||
cfp.program_id = program.id
|
||||
cfp.save!
|
||||
|
||||
program.rating = cfp.rating
|
||||
program.schedule_public = cfp.schedule_public
|
||||
program.schedule_fluid = cfp.schedule_changes
|
||||
program.save!
|
||||
end
|
||||
end
|
||||
end
|
||||
remove_column :call_for_papers, :conference_id
|
||||
remove_column :call_for_papers, :rating
|
||||
remove_column :call_for_papers, :schedule_public
|
||||
remove_column :call_for_papers, :schedule_changes
|
||||
rename_table :call_for_papers, :cfps
|
||||
end
|
||||
|
||||
def down
|
||||
rename_table :cfps, :call_for_papers
|
||||
add_column :call_for_papers, :conference_id, :integer
|
||||
add_column :call_for_papers, :rating, :integer, default: 0
|
||||
add_column :call_for_papers, :schedule_public, :boolean, default: false
|
||||
add_column :call_for_papers, :schedule_changes, :boolean, default: false
|
||||
|
||||
TempConference.all.each do |conference|
|
||||
if (program = TempProgram.find_by(conference_id: conference.id))
|
||||
if (cfp = TempCallForPaper.find_by(program_id: program.id))
|
||||
cfp.conference_id = program.conference_id
|
||||
cfp.rating = program.rating
|
||||
cfp.schedule_public = program.schedule_public
|
||||
cfp.schedule_changes = program.schedule_fluid
|
||||
|
||||
cfp.save!
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
remove_column :call_for_papers, :program_id
|
||||
drop_table :programs
|
||||
end
|
||||
end
|
||||
|
|
@ -0,0 +1,117 @@
|
|||
class RenameConferenceIdToProgramIdInEventsRoomsTracksDifficultyLevels < ActiveRecord::Migration
|
||||
class TempConference < ActiveRecord::Base
|
||||
self.table_name = 'conferences'
|
||||
end
|
||||
|
||||
class TempEvent < ActiveRecord::Base
|
||||
self.table_name = 'events'
|
||||
end
|
||||
|
||||
class TempEventType < ActiveRecord::Base
|
||||
self.table_name = 'event_types'
|
||||
end
|
||||
|
||||
class TempTrack < ActiveRecord::Base
|
||||
self.table_name = 'tracks'
|
||||
end
|
||||
|
||||
class TempDifficultyLevel < ActiveRecord::Base
|
||||
self.table_name = 'difficulty_levels'
|
||||
end
|
||||
|
||||
class TempRoom < ActiveRecord::Base
|
||||
self.table_name = 'rooms'
|
||||
end
|
||||
|
||||
class TempProgram < ActiveRecord::Base
|
||||
self.table_name = 'programs'
|
||||
end
|
||||
|
||||
def up
|
||||
add_column :events, :program_id, :integer
|
||||
add_column :event_types, :program_id, :integer
|
||||
add_column :tracks, :program_id, :integer
|
||||
add_column :difficulty_levels, :program_id, :integer
|
||||
add_column :rooms, :program_id, :integer
|
||||
|
||||
TempConference.all.each do |conference|
|
||||
program = Program.find_by(conference_id: conference.id)
|
||||
|
||||
TempEvent.where(conference_id: conference.id).each do |event|
|
||||
event.program_id = program.id
|
||||
event.save!
|
||||
end
|
||||
|
||||
TempEventType.where(conference_id: conference.id).each do |event_type|
|
||||
event_type.program_id = program.id
|
||||
event_type.save!
|
||||
end
|
||||
|
||||
TempTrack.where(conference_id: conference.id).each do |track|
|
||||
track.program_id = program.id
|
||||
track.save!
|
||||
end
|
||||
|
||||
TempDifficultyLevel.where(conference_id: conference.id).each do |difficulty_level|
|
||||
difficulty_level.program_id = program.id
|
||||
difficulty_level.save!
|
||||
end
|
||||
|
||||
TempRoom.where(conference_id: conference.id).each do |room|
|
||||
room.program_id = program.id
|
||||
room.save!
|
||||
end
|
||||
end
|
||||
|
||||
remove_column :events, :conference_id
|
||||
remove_column :event_types, :conference_id
|
||||
remove_column :tracks, :conference_id
|
||||
remove_column :difficulty_levels, :conference_id
|
||||
remove_column :rooms, :conference_id
|
||||
end
|
||||
|
||||
def down
|
||||
add_column :events, :conference_id, :integer
|
||||
add_column :event_types, :conference_id, :integer
|
||||
add_column :tracks, :conference_id, :integer
|
||||
add_column :difficulty_levels, :conference_id, :integer
|
||||
add_column :rooms, :conference_id, :integer
|
||||
|
||||
TempConference.all.each do |conference|
|
||||
program = TempProgram.find_by(conference_id: conference.id)
|
||||
|
||||
if program
|
||||
TempEvent.where(program_id: program.id).each do |event|
|
||||
event.conference_id = conference.id
|
||||
event.save!
|
||||
end
|
||||
|
||||
TempEventType.where(program_id: program.id).each do |event_type|
|
||||
event_type.conference_id = conference.id
|
||||
event_type.save!
|
||||
end
|
||||
|
||||
TempTrack.where(program_id: program.id).each do |track|
|
||||
track.conference_id = conference.id
|
||||
track.save!
|
||||
end
|
||||
|
||||
TempDifficultyLevel.where(program_id: program.id).each do |difficulty_level|
|
||||
difficulty_level.conference_id = conference.id
|
||||
difficulty_level.save!
|
||||
end
|
||||
|
||||
TempRoom.where(program_id: program.id).each do |room|
|
||||
room.conference_id = conference.id
|
||||
room.save!
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
remove_column :events, :program_id
|
||||
remove_column :event_types, :program_id
|
||||
remove_column :tracks, :program_id
|
||||
remove_column :difficulty_levels, :program_id
|
||||
remove_column :rooms, :program_id
|
||||
end
|
||||
end
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
class RenameEmailSettingsWithCfpAndProgram < ActiveRecord::Migration
|
||||
def change
|
||||
rename_column :email_settings, :send_on_call_for_papers_schedule_public, :send_on_program_schedule_public
|
||||
rename_column :email_settings, :call_for_papers_schedule_public_body, :program_schedule_public_template
|
||||
rename_column :email_settings, :call_for_papers_schedule_public_subject, :program_schedule_public_subject
|
||||
rename_column :email_settings, :send_on_call_for_papers_dates_updated, :send_on_cfp_dates_updates
|
||||
rename_column :email_settings, :call_for_papers_dates_updated_subject, :cfp_dates_updates_subject
|
||||
rename_column :email_settings, :call_for_papers_dates_updated_body, :cfp_dates_updates_template
|
||||
end
|
||||
end
|
||||
221
db/schema.rb
221
db/schema.rb
|
|
@ -11,8 +11,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
|
||||
ActiveRecord::Schema.define(version: 20151005161518) do
|
||||
ActiveRecord::Schema.define(version: 20151021113015) do
|
||||
|
||||
create_table "ahoy_events", force: true do |t|
|
||||
t.uuid "visit_id"
|
||||
|
|
@ -22,25 +21,14 @@ ActiveRecord::Schema.define(version: 20151005161518) do
|
|||
t.datetime "time"
|
||||
end
|
||||
|
||||
add_index "ahoy_events", ["time"], name: "index_ahoy_events_on_time"
|
||||
add_index "ahoy_events", ["user_id"], name: "index_ahoy_events_on_user_id"
|
||||
add_index "ahoy_events", ["visit_id"], name: "index_ahoy_events_on_visit_id"
|
||||
add_index "ahoy_events", ["time"], name: "index_ahoy_events_on_time", using: :btree
|
||||
add_index "ahoy_events", ["user_id"], name: "index_ahoy_events_on_user_id", using: :btree
|
||||
add_index "ahoy_events", ["visit_id"], name: "index_ahoy_events_on_visit_id", using: :btree
|
||||
|
||||
create_table "answers", force: true do |t|
|
||||
t.string "title"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
end
|
||||
|
||||
create_table "call_for_papers", force: true do |t|
|
||||
t.date "start_date", null: false
|
||||
t.date "end_date", null: false
|
||||
t.integer "conference_id"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.boolean "schedule_changes", default: false
|
||||
t.integer "rating", default: 3
|
||||
t.boolean "schedule_public"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
end
|
||||
|
||||
create_table "campaigns", force: true do |t|
|
||||
|
|
@ -55,23 +43,31 @@ ActiveRecord::Schema.define(version: 20151005161518) do
|
|||
t.datetime "updated_at"
|
||||
end
|
||||
|
||||
create_table "cfps", force: true do |t|
|
||||
t.date "start_date", null: false
|
||||
t.date "end_date", null: false
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.integer "program_id"
|
||||
end
|
||||
|
||||
create_table "comments", force: true do |t|
|
||||
t.string "title", limit: 50, default: ""
|
||||
t.text "body"
|
||||
t.string "title", limit: 50, default: ""
|
||||
t.text "body", limit: 16777215
|
||||
t.integer "commentable_id"
|
||||
t.string "commentable_type"
|
||||
t.integer "user_id"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.string "subject"
|
||||
t.integer "parent_id"
|
||||
t.integer "lft"
|
||||
t.integer "rgt"
|
||||
end
|
||||
|
||||
add_index "comments", ["commentable_id"], name: "index_comments_on_commentable_id"
|
||||
add_index "comments", ["commentable_type"], name: "index_comments_on_commentable_type"
|
||||
add_index "comments", ["user_id"], name: "index_comments_on_user_id"
|
||||
add_index "comments", ["commentable_id"], name: "index_comments_on_commentable_id", using: :btree
|
||||
add_index "comments", ["commentable_type"], name: "index_comments_on_commentable_type", using: :btree
|
||||
add_index "comments", ["user_id"], name: "index_comments_on_user_id", using: :btree
|
||||
|
||||
create_table "commercials", force: true do |t|
|
||||
t.string "commercial_id"
|
||||
|
|
@ -91,8 +87,8 @@ ActiveRecord::Schema.define(version: 20151005161518) do
|
|||
t.string "html_export_path"
|
||||
t.date "start_date", null: false
|
||||
t.date "end_date", null: false
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.string "logo_file_name"
|
||||
t.string "logo_content_type"
|
||||
t.integer "logo_file_size"
|
||||
|
|
@ -140,65 +136,65 @@ ActiveRecord::Schema.define(version: 20151005161518) do
|
|||
t.datetime "updated_at"
|
||||
end
|
||||
|
||||
add_index "delayed_jobs", ["priority", "run_at"], name: "delayed_jobs_priority"
|
||||
add_index "delayed_jobs", ["priority", "run_at"], name: "delayed_jobs_priority", using: :btree
|
||||
|
||||
create_table "dietary_choices", force: true do |t|
|
||||
t.integer "conference_id"
|
||||
t.string "title", null: false
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
end
|
||||
|
||||
create_table "difficulty_levels", force: true do |t|
|
||||
t.integer "conference_id"
|
||||
t.string "title"
|
||||
t.text "description"
|
||||
t.string "color"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.integer "program_id"
|
||||
end
|
||||
|
||||
create_table "email_settings", force: true do |t|
|
||||
t.integer "conference_id"
|
||||
t.boolean "send_on_registration", default: false
|
||||
t.boolean "send_on_accepted", default: false
|
||||
t.boolean "send_on_rejected", default: false
|
||||
t.boolean "send_on_confirmed_without_registration", default: false
|
||||
t.text "registration_body"
|
||||
t.text "accepted_body"
|
||||
t.text "rejected_body"
|
||||
t.text "confirmed_without_registration_body"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.boolean "send_on_registration", default: false
|
||||
t.boolean "send_on_accepted", default: false
|
||||
t.boolean "send_on_rejected", default: false
|
||||
t.boolean "send_on_confirmed_without_registration", default: false
|
||||
t.text "registration_body", limit: 16777215
|
||||
t.text "accepted_body", limit: 16777215
|
||||
t.text "rejected_body", limit: 16777215
|
||||
t.text "confirmed_without_registration_body", limit: 16777215
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.string "registration_subject"
|
||||
t.string "accepted_subject"
|
||||
t.string "rejected_subject"
|
||||
t.string "confirmed_without_registration_subject"
|
||||
t.boolean "send_on_conference_dates_updated", default: false
|
||||
t.boolean "send_on_conference_dates_updated", default: false
|
||||
t.string "conference_dates_updated_subject"
|
||||
t.text "conference_dates_updated_body"
|
||||
t.boolean "send_on_conference_registration_dates_updated", default: false
|
||||
t.boolean "send_on_conference_registration_dates_updated", default: false
|
||||
t.string "conference_registration_dates_updated_subject"
|
||||
t.text "conference_registration_dates_updated_body"
|
||||
t.boolean "send_on_venue_updated", default: false
|
||||
t.boolean "send_on_venue_updated", default: false
|
||||
t.string "venue_updated_subject"
|
||||
t.text "venue_updated_body"
|
||||
t.boolean "send_on_call_for_papers_dates_updated", default: false
|
||||
t.boolean "send_on_call_for_papers_schedule_public", default: false
|
||||
t.string "call_for_papers_schedule_public_subject"
|
||||
t.string "call_for_papers_dates_updated_subject"
|
||||
t.text "call_for_papers_schedule_public_body"
|
||||
t.text "call_for_papers_dates_updated_body"
|
||||
t.boolean "send_on_cfp_dates_updates", default: false
|
||||
t.boolean "send_on_program_schedule_public", default: false
|
||||
t.string "program_schedule_public_subject"
|
||||
t.string "cfp_dates_updates_subject"
|
||||
t.text "program_schedule_public_template"
|
||||
t.text "cfp_dates_updates_template"
|
||||
end
|
||||
|
||||
create_table "event_types", force: true do |t|
|
||||
t.integer "conference_id"
|
||||
t.string "title", null: false
|
||||
t.integer "length", default: 30
|
||||
t.integer "minimum_abstract_length", default: 0
|
||||
t.integer "maximum_abstract_length", default: 500
|
||||
t.string "color"
|
||||
t.string "description"
|
||||
t.integer "program_id"
|
||||
end
|
||||
|
||||
create_table "event_users", force: true do |t|
|
||||
|
|
@ -211,32 +207,32 @@ ActiveRecord::Schema.define(version: 20151005161518) do
|
|||
end
|
||||
|
||||
create_table "events", force: true do |t|
|
||||
t.string "guid", null: false
|
||||
t.integer "conference_id"
|
||||
t.string "guid", null: false
|
||||
t.integer "event_type_id"
|
||||
t.string "title", null: false
|
||||
t.string "title", null: false
|
||||
t.string "subtitle"
|
||||
t.integer "time_slots"
|
||||
t.string "state", default: "new", null: false
|
||||
t.string "progress", default: "new", null: false
|
||||
t.string "state", default: "new", null: false
|
||||
t.string "progress", default: "new", null: false
|
||||
t.string "language"
|
||||
t.datetime "start_time"
|
||||
t.text "abstract"
|
||||
t.text "description"
|
||||
t.boolean "public", default: true
|
||||
t.text "abstract", limit: 16777215
|
||||
t.text "description", limit: 16777215
|
||||
t.boolean "public", default: true
|
||||
t.string "logo_file_name"
|
||||
t.string "logo_content_type"
|
||||
t.integer "logo_file_size"
|
||||
t.datetime "logo_updated_at"
|
||||
t.text "proposal_additional_speakers"
|
||||
t.text "proposal_additional_speakers", limit: 16777215
|
||||
t.integer "track_id"
|
||||
t.integer "room_id"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.boolean "require_registration"
|
||||
t.integer "difficulty_level_id"
|
||||
t.integer "week"
|
||||
t.boolean "is_highlight", default: false
|
||||
t.boolean "is_highlight", default: false
|
||||
t.integer "program_id"
|
||||
end
|
||||
|
||||
create_table "events_registrations", id: false, force: true do |t|
|
||||
|
|
@ -277,6 +273,13 @@ ActiveRecord::Schema.define(version: 20151005161518) do
|
|||
t.datetime "updated_at"
|
||||
end
|
||||
|
||||
create_table "programs", force: true do |t|
|
||||
t.integer "conference_id"
|
||||
t.integer "rating", default: 0
|
||||
t.boolean "schedule_public", default: false
|
||||
t.boolean "schedule_fluid", default: false
|
||||
end
|
||||
|
||||
create_table "qanswers", force: true do |t|
|
||||
t.integer "question_id"
|
||||
t.integer "answer_id"
|
||||
|
|
@ -291,8 +294,8 @@ ActiveRecord::Schema.define(version: 20151005161518) do
|
|||
|
||||
create_table "question_types", force: true do |t|
|
||||
t.string "title"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
end
|
||||
|
||||
create_table "questions", force: true do |t|
|
||||
|
|
@ -300,8 +303,8 @@ ActiveRecord::Schema.define(version: 20151005161518) do
|
|||
t.integer "question_type_id"
|
||||
t.integer "conference_id"
|
||||
t.boolean "global"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
end
|
||||
|
||||
create_table "registration_periods", force: true do |t|
|
||||
|
|
@ -316,12 +319,12 @@ ActiveRecord::Schema.define(version: 20151005161518) do
|
|||
t.integer "conference_id"
|
||||
t.datetime "arrival"
|
||||
t.datetime "departure"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.integer "dietary_choice_id"
|
||||
t.text "other_dietary_choice"
|
||||
t.text "other_special_needs"
|
||||
t.boolean "attended", default: false
|
||||
t.text "other_dietary_choice", limit: 16777215
|
||||
t.text "other_special_needs", limit: 16777215
|
||||
t.boolean "attended", default: false
|
||||
t.boolean "volunteer"
|
||||
t.integer "user_id"
|
||||
t.integer "week"
|
||||
|
|
@ -339,28 +342,28 @@ ActiveRecord::Schema.define(version: 20151005161518) do
|
|||
|
||||
create_table "roles", force: true do |t|
|
||||
t.string "name"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.string "description"
|
||||
t.integer "resource_id"
|
||||
t.string "resource_type"
|
||||
end
|
||||
|
||||
add_index "roles", ["name", "resource_type", "resource_id"], name: "index_roles_on_name_and_resource_type_and_resource_id"
|
||||
add_index "roles", ["name"], name: "index_roles_on_name"
|
||||
add_index "roles", ["name", "resource_type", "resource_id"], name: "index_roles_on_name_and_resource_type_and_resource_id", using: :btree
|
||||
add_index "roles", ["name"], name: "index_roles_on_name", using: :btree
|
||||
|
||||
create_table "roles_users", id: false, force: true do |t|
|
||||
t.integer "role_id"
|
||||
t.integer "user_id"
|
||||
end
|
||||
|
||||
add_index "roles_users", ["user_id", "role_id"], name: "index_roles_users_on_user_id_and_role_id"
|
||||
add_index "roles_users", ["user_id", "role_id"], name: "index_roles_users_on_user_id_and_role_id", using: :btree
|
||||
|
||||
create_table "rooms", force: true do |t|
|
||||
t.string "guid", null: false
|
||||
t.integer "conference_id"
|
||||
t.string "name", null: false
|
||||
t.string "guid", null: false
|
||||
t.string "name", null: false
|
||||
t.integer "size"
|
||||
t.integer "program_id"
|
||||
end
|
||||
|
||||
create_table "social_events", force: true do |t|
|
||||
|
|
@ -443,13 +446,13 @@ ActiveRecord::Schema.define(version: 20151005161518) do
|
|||
end
|
||||
|
||||
create_table "tracks", force: true do |t|
|
||||
t.string "guid", null: false
|
||||
t.integer "conference_id"
|
||||
t.string "name", null: false
|
||||
t.text "description"
|
||||
t.string "guid", null: false
|
||||
t.string "name", null: false
|
||||
t.text "description", limit: 16777215
|
||||
t.string "color"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.integer "program_id"
|
||||
end
|
||||
|
||||
create_table "users", force: true do |t|
|
||||
|
|
@ -467,8 +470,8 @@ ActiveRecord::Schema.define(version: 20151005161518) do
|
|||
t.datetime "confirmed_at"
|
||||
t.datetime "confirmation_sent_at"
|
||||
t.string "unconfirmed_email"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.string "name"
|
||||
t.boolean "email_public"
|
||||
t.text "biography"
|
||||
|
|
@ -487,10 +490,10 @@ ActiveRecord::Schema.define(version: 20151005161518) do
|
|||
t.boolean "is_disabled", default: false
|
||||
end
|
||||
|
||||
add_index "users", ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true
|
||||
add_index "users", ["email"], name: "index_users_on_email", unique: true
|
||||
add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
|
||||
add_index "users", ["username"], name: "index_users_on_username", unique: true
|
||||
add_index "users", ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true, using: :btree
|
||||
add_index "users", ["email"], name: "index_users_on_email", unique: true, using: :btree
|
||||
add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true, using: :btree
|
||||
add_index "users", ["username"], name: "index_users_on_username", unique: true, using: :btree
|
||||
|
||||
create_table "vchoices", force: true do |t|
|
||||
t.integer "vday_id"
|
||||
|
|
@ -501,8 +504,8 @@ ActiveRecord::Schema.define(version: 20151005161518) do
|
|||
t.integer "conference_id"
|
||||
t.date "day"
|
||||
t.text "description"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
end
|
||||
|
||||
create_table "venues", force: true do |t|
|
||||
|
|
@ -510,8 +513,8 @@ ActiveRecord::Schema.define(version: 20151005161518) do
|
|||
t.string "name"
|
||||
t.string "website"
|
||||
t.text "description"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.string "photo_file_name"
|
||||
t.string "photo_content_type"
|
||||
t.integer "photo_file_size"
|
||||
|
|
@ -526,16 +529,16 @@ ActiveRecord::Schema.define(version: 20151005161518) do
|
|||
end
|
||||
|
||||
create_table "versions", force: true do |t|
|
||||
t.string "item_type", null: false
|
||||
t.integer "item_id", null: false
|
||||
t.string "event", null: false
|
||||
t.string "item_type", null: false
|
||||
t.integer "item_id", null: false
|
||||
t.string "event", null: false
|
||||
t.string "whodunnit"
|
||||
t.text "object"
|
||||
t.text "object_changes"
|
||||
t.text "object", limit: 16777215
|
||||
t.text "object_changes", limit: 16777215
|
||||
t.datetime "created_at"
|
||||
end
|
||||
|
||||
add_index "versions", ["item_type", "item_id"], name: "index_versions_on_item_type_and_item_id"
|
||||
add_index "versions", ["item_type", "item_id"], name: "index_versions_on_item_type_and_item_id", using: :btree
|
||||
|
||||
create_table "visits", force: true do |t|
|
||||
t.uuid "visitor_id"
|
||||
|
|
@ -560,13 +563,13 @@ ActiveRecord::Schema.define(version: 20151005161518) do
|
|||
t.datetime "started_at"
|
||||
end
|
||||
|
||||
add_index "visits", ["user_id"], name: "index_visits_on_user_id"
|
||||
add_index "visits", ["user_id"], name: "index_visits_on_user_id", using: :btree
|
||||
|
||||
create_table "votes", force: true do |t|
|
||||
t.integer "event_id"
|
||||
t.integer "rating"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.integer "user_id"
|
||||
end
|
||||
|
||||
|
|
@ -574,8 +577,8 @@ ActiveRecord::Schema.define(version: 20151005161518) do
|
|||
t.integer "conference_id"
|
||||
t.string "title", null: false
|
||||
t.text "description"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue