Merge pull request #559 from differentreality/attachments

remove event_attachments table
This commit is contained in:
Stella Rouzi 2014-12-04 14:05:31 +02:00
commit 01f2fae396
2 changed files with 76 additions and 106 deletions

View file

@ -0,0 +1,5 @@
class DropTableEventAttachments < ActiveRecord::Migration
def change
drop_table :event_attachments
end
end

View file

@ -11,7 +11,7 @@
# #
# It's strongly recommended that you check this file into your version control system. # It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20141121102656) do ActiveRecord::Schema.define(version: 20141130182139) do
create_table "ahoy_events", force: true do |t| create_table "ahoy_events", force: true do |t|
t.uuid "visit_id" t.uuid "visit_id"
@ -27,16 +27,16 @@ ActiveRecord::Schema.define(version: 20141121102656) do
create_table "answers", force: true do |t| create_table "answers", force: true do |t|
t.string "title" t.string "title"
t.datetime "created_at", null: false t.datetime "created_at"
t.datetime "updated_at", null: false t.datetime "updated_at"
end end
create_table "call_for_papers", force: true do |t| create_table "call_for_papers", force: true do |t|
t.date "start_date", null: false t.date "start_date", null: false
t.date "end_date", null: false t.date "end_date", null: false
t.integer "conference_id" t.integer "conference_id"
t.datetime "created_at", null: false t.datetime "created_at"
t.datetime "updated_at", null: false t.datetime "updated_at"
t.boolean "schedule_changes", default: false t.boolean "schedule_changes", default: false
t.integer "rating", default: 3 t.integer "rating", default: 3
t.boolean "schedule_public" t.boolean "schedule_public"
@ -57,12 +57,12 @@ ActiveRecord::Schema.define(version: 20141121102656) do
create_table "comments", force: true do |t| create_table "comments", force: true do |t|
t.string "title", limit: 50, default: "" t.string "title", limit: 50, default: ""
t.text "body", limit: 16777215 t.text "body"
t.integer "commentable_id" t.integer "commentable_id"
t.string "commentable_type" t.string "commentable_type"
t.integer "user_id" t.integer "user_id"
t.datetime "created_at", null: false t.datetime "created_at"
t.datetime "updated_at", null: false t.datetime "updated_at"
t.string "subject" t.string "subject"
t.integer "parent_id" t.integer "parent_id"
t.integer "lft" t.integer "lft"
@ -90,8 +90,8 @@ ActiveRecord::Schema.define(version: 20141121102656) do
t.string "html_export_path" t.string "html_export_path"
t.date "start_date", null: false t.date "start_date", null: false
t.date "end_date", null: false t.date "end_date", null: false
t.datetime "created_at", null: false t.datetime "created_at"
t.datetime "updated_at", null: false t.datetime "updated_at"
t.string "logo_file_name" t.string "logo_file_name"
t.string "logo_content_type" t.string "logo_content_type"
t.integer "logo_file_size" t.integer "logo_file_size"
@ -144,8 +144,8 @@ ActiveRecord::Schema.define(version: 20141121102656) do
create_table "dietary_choices", force: true do |t| create_table "dietary_choices", force: true do |t|
t.integer "conference_id" t.integer "conference_id"
t.string "title", null: false t.string "title", null: false
t.datetime "created_at", null: false t.datetime "created_at"
t.datetime "updated_at", null: false t.datetime "updated_at"
end end
create_table "difficulty_levels", force: true do |t| create_table "difficulty_levels", force: true do |t|
@ -153,8 +153,8 @@ ActiveRecord::Schema.define(version: 20141121102656) do
t.string "title" t.string "title"
t.text "description" t.text "description"
t.string "color" t.string "color"
t.datetime "created_at", null: false t.datetime "created_at"
t.datetime "updated_at", null: false t.datetime "updated_at"
end end
create_table "email_settings", force: true do |t| create_table "email_settings", force: true do |t|
@ -163,12 +163,12 @@ ActiveRecord::Schema.define(version: 20141121102656) do
t.boolean "send_on_accepted", default: false t.boolean "send_on_accepted", default: false
t.boolean "send_on_rejected", default: false t.boolean "send_on_rejected", default: false
t.boolean "send_on_confirmed_without_registration", default: false t.boolean "send_on_confirmed_without_registration", default: false
t.text "registration_email_template", limit: 16777215 t.text "registration_email_template"
t.text "accepted_email_template", limit: 16777215 t.text "accepted_email_template"
t.text "rejected_email_template", limit: 16777215 t.text "rejected_email_template"
t.text "confirmed_email_template", limit: 16777215 t.text "confirmed_email_template"
t.datetime "created_at", null: false t.datetime "created_at"
t.datetime "updated_at", null: false t.datetime "updated_at"
t.string "registration_subject" t.string "registration_subject"
t.string "accepted_subject" t.string "accepted_subject"
t.string "rejected_subject" t.string "rejected_subject"
@ -190,18 +190,6 @@ ActiveRecord::Schema.define(version: 20141121102656) do
t.text "call_for_papers_dates_updates_template" t.text "call_for_papers_dates_updates_template"
end end
create_table "event_attachments", force: true do |t|
t.integer "event_id"
t.string "title", null: false
t.string "attachment_file_name"
t.string "attachment_content_type"
t.integer "attachment_file_size"
t.datetime "attachment_updated_at"
t.boolean "public", default: true
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
create_table "event_types", force: true do |t| create_table "event_types", force: true do |t|
t.integer "conference_id" t.integer "conference_id"
t.string "title", null: false t.string "title", null: false
@ -231,18 +219,18 @@ ActiveRecord::Schema.define(version: 20141121102656) do
t.string "progress", default: "new", null: false t.string "progress", default: "new", null: false
t.string "language" t.string "language"
t.datetime "start_time" t.datetime "start_time"
t.text "abstract", limit: 16777215 t.text "abstract"
t.text "description", limit: 16777215 t.text "description"
t.boolean "public", default: true t.boolean "public", default: true
t.string "logo_file_name" t.string "logo_file_name"
t.string "logo_content_type" t.string "logo_content_type"
t.integer "logo_file_size" t.integer "logo_file_size"
t.datetime "logo_updated_at" t.datetime "logo_updated_at"
t.text "proposal_additional_speakers", limit: 16777215 t.text "proposal_additional_speakers"
t.integer "track_id" t.integer "track_id"
t.integer "room_id" t.integer "room_id"
t.datetime "created_at", null: false t.datetime "created_at"
t.datetime "updated_at", null: false t.datetime "updated_at"
t.boolean "require_registration" t.boolean "require_registration"
t.integer "difficulty_level_id" t.integer "difficulty_level_id"
t.integer "week" t.integer "week"
@ -275,29 +263,6 @@ ActiveRecord::Schema.define(version: 20141121102656) do
t.datetime "updated_at" t.datetime "updated_at"
end end
create_table "people", force: true do |t|
t.string "guid", null: false
t.text "first_name"
t.text "last_name"
t.text "public_name"
t.text "company"
t.string "email", null: false
t.boolean "email_public"
t.string "avatar_file_name"
t.string "avatar_content_type"
t.integer "avatar_file_size"
t.datetime "avatar_updated_at"
t.text "biography"
t.integer "user_id"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.string "irc_nickname"
t.text "volunteer_experience"
t.string "tshirt"
t.string "mobile"
t.string "languages"
end
create_table "photos", force: true do |t| create_table "photos", force: true do |t|
t.text "description" t.text "description"
t.string "picture_file_name" t.string "picture_file_name"
@ -321,8 +286,8 @@ ActiveRecord::Schema.define(version: 20141121102656) do
create_table "question_types", force: true do |t| create_table "question_types", force: true do |t|
t.string "title" t.string "title"
t.datetime "created_at", null: false t.datetime "created_at"
t.datetime "updated_at", null: false t.datetime "updated_at"
end end
create_table "questions", force: true do |t| create_table "questions", force: true do |t|
@ -330,8 +295,8 @@ ActiveRecord::Schema.define(version: 20141121102656) do
t.integer "question_type_id" t.integer "question_type_id"
t.integer "conference_id" t.integer "conference_id"
t.boolean "global" t.boolean "global"
t.datetime "created_at", null: false t.datetime "created_at"
t.datetime "updated_at", null: false t.datetime "updated_at"
end end
create_table "registration_periods", force: true do |t| create_table "registration_periods", force: true do |t|
@ -346,11 +311,11 @@ ActiveRecord::Schema.define(version: 20141121102656) do
t.integer "conference_id" t.integer "conference_id"
t.datetime "arrival" t.datetime "arrival"
t.datetime "departure" t.datetime "departure"
t.datetime "created_at", null: false t.datetime "created_at"
t.datetime "updated_at", null: false t.datetime "updated_at"
t.integer "dietary_choice_id" t.integer "dietary_choice_id"
t.text "other_dietary_choice", limit: 16777215 t.text "other_dietary_choice"
t.text "other_special_needs", limit: 16777215 t.text "other_special_needs"
t.boolean "attended", default: false t.boolean "attended", default: false
t.boolean "volunteer" t.boolean "volunteer"
t.integer "user_id" t.integer "user_id"
@ -369,8 +334,8 @@ ActiveRecord::Schema.define(version: 20141121102656) do
create_table "roles", force: true do |t| create_table "roles", force: true do |t|
t.string "name" t.string "name"
t.datetime "created_at", null: false t.datetime "created_at"
t.datetime "updated_at", null: false t.datetime "updated_at"
t.string "description" t.string "description"
t.integer "resource_id" t.integer "resource_id"
t.string "resource_type" t.string "resource_type"
@ -475,10 +440,10 @@ ActiveRecord::Schema.define(version: 20141121102656) do
t.string "guid", null: false t.string "guid", null: false
t.integer "conference_id" t.integer "conference_id"
t.string "name", null: false t.string "name", null: false
t.text "description", limit: 16777215 t.text "description"
t.string "color" t.string "color"
t.datetime "created_at", null: false t.datetime "created_at"
t.datetime "updated_at", null: false t.datetime "updated_at"
end end
create_table "users", force: true do |t| create_table "users", force: true do |t|
@ -496,8 +461,8 @@ ActiveRecord::Schema.define(version: 20141121102656) do
t.datetime "confirmed_at" t.datetime "confirmed_at"
t.datetime "confirmation_sent_at" t.datetime "confirmation_sent_at"
t.string "unconfirmed_email" t.string "unconfirmed_email"
t.datetime "created_at", null: false t.datetime "created_at"
t.datetime "updated_at", null: false t.datetime "updated_at"
t.string "name" t.string "name"
t.boolean "email_public" t.boolean "email_public"
t.text "biography" t.text "biography"
@ -530,8 +495,8 @@ ActiveRecord::Schema.define(version: 20141121102656) do
t.integer "conference_id" t.integer "conference_id"
t.date "day" t.date "day"
t.text "description" t.text "description"
t.datetime "created_at", null: false t.datetime "created_at"
t.datetime "updated_at", null: false t.datetime "updated_at"
end end
create_table "venues", force: true do |t| create_table "venues", force: true do |t|
@ -539,8 +504,8 @@ ActiveRecord::Schema.define(version: 20141121102656) do
t.string "name" t.string "name"
t.string "website" t.string "website"
t.text "description" t.text "description"
t.datetime "created_at", null: false t.datetime "created_at"
t.datetime "updated_at", null: false t.datetime "updated_at"
t.string "photo_file_name" t.string "photo_file_name"
t.string "photo_content_type" t.string "photo_content_type"
t.integer "photo_file_size" t.integer "photo_file_size"
@ -559,8 +524,8 @@ ActiveRecord::Schema.define(version: 20141121102656) do
t.integer "item_id", null: false t.integer "item_id", null: false
t.string "event", null: false t.string "event", null: false
t.string "whodunnit" t.string "whodunnit"
t.text "object", limit: 16777215 t.text "object"
t.text "object_changes", limit: 16777215 t.text "object_changes"
t.datetime "created_at" t.datetime "created_at"
end end
@ -594,8 +559,8 @@ ActiveRecord::Schema.define(version: 20141121102656) do
create_table "votes", force: true do |t| create_table "votes", force: true do |t|
t.integer "event_id" t.integer "event_id"
t.integer "rating" t.integer "rating"
t.datetime "created_at", null: false t.datetime "created_at"
t.datetime "updated_at", null: false t.datetime "updated_at"
t.integer "user_id" t.integer "user_id"
end end
@ -603,8 +568,8 @@ ActiveRecord::Schema.define(version: 20141121102656) do
t.integer "conference_id" t.integer "conference_id"
t.string "title", null: false t.string "title", null: false
t.text "description" t.text "description"
t.datetime "created_at", null: false t.datetime "created_at"
t.datetime "updated_at", null: false t.datetime "updated_at"
end end
end end