spec/dummy/db/schema.rb in fe-0.0.4 vs spec/dummy/db/schema.rb in fe-1.0.0

- old
+ new

@@ -9,11 +9,11 @@ # from scratch. The latter is a flawed and unsustainable approach (the more migrations # you'll amass, the slower it'll run and the greater likelihood for issues). # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20140625160545) do +ActiveRecord::Schema.define(version: 20150930191756) do create_table "create_fe_phone_numbers", force: true do |t| t.string "number" t.string "extensions" t.integer "person_id" @@ -48,37 +48,36 @@ t.integer "question_sheet_id" t.datetime "created_at" t.datetime "updated_at" end - add_index "fe_answer_sheet_question_sheets", ["answer_sheet_id", "question_sheet_id"], name: "answer_sheet_question_sheet" + add_index "fe_answer_sheet_question_sheets", ["answer_sheet_id", "question_sheet_id"], name: "answer_sheet_question_sheet", using: :btree create_table "fe_answers", force: true do |t| t.integer "answer_sheet_id", null: false t.integer "question_id", null: false t.text "value" - t.string "short_value" t.integer "attachment_file_size" t.string "attachment_content_type" t.string "attachment_file_name" t.datetime "attachment_updated_at" t.datetime "created_at" t.datetime "updated_at" end - add_index "fe_answers", ["answer_sheet_id", "question_id"], name: "answer_sheet_question" - add_index "fe_answers", ["short_value"], name: "index_fe_answers_on_short_value" + add_index "fe_answers", ["answer_sheet_id", "question_id"], name: "answer_sheet_question", using: :btree create_table "fe_applications", force: true do |t| t.integer "applicant_id" t.string "status" t.datetime "submitted_at" t.datetime "created_at" t.datetime "updated_at" + t.string "locale", default: "en" end - add_index "fe_applications", ["applicant_id"], name: "question_sheet_id" + add_index "fe_applications", ["applicant_id"], name: "question_sheet_id", using: :btree create_table "fe_conditions", force: true do |t| t.integer "question_sheet_id", null: false t.integer "trigger_id", null: false t.string "expression", null: false @@ -86,14 +85,14 @@ t.integer "toggle_id" t.datetime "created_at" t.datetime "updated_at" end - add_index "fe_conditions", ["question_sheet_id"], name: "index_fe_conditions_on_question_sheet_id" - add_index "fe_conditions", ["toggle_id"], name: "index_fe_conditions_on_toggle_id" - add_index "fe_conditions", ["toggle_page_id"], name: "index_fe_conditions_on_toggle_page_id" - add_index "fe_conditions", ["trigger_id"], name: "index_fe_conditions_on_trigger_id" + add_index "fe_conditions", ["question_sheet_id"], name: "index_fe_conditions_on_question_sheet_id", using: :btree + add_index "fe_conditions", ["toggle_id"], name: "index_fe_conditions_on_toggle_id", using: :btree + add_index "fe_conditions", ["toggle_page_id"], name: "index_fe_conditions_on_toggle_page_id", using: :btree + add_index "fe_conditions", ["trigger_id"], name: "index_fe_conditions_on_trigger_id", using: :btree create_table "fe_elements", force: true do |t| t.integer "question_grid_id" t.string "kind", limit: 40, null: false t.string "style", limit: 40 @@ -118,15 +117,22 @@ t.integer "conditional_id" t.text "tooltip" t.boolean "hide_label", default: false t.boolean "hide_option_labels", default: false t.integer "max_length" + t.string "conditional_type" + t.text "conditional_answer" + t.integer "choice_field_id" + t.boolean "share", default: false + t.text "label_translations" + t.text "tip_translations" + t.text "content_translations" end - add_index "fe_elements", ["conditional_id"], name: "index_fe_elements_on_conditional_id" - add_index "fe_elements", ["question_grid_id"], name: "index_fe_elements_on_question_grid_id" - add_index "fe_elements", ["slug"], name: "index_fe_elements_on_slug" + add_index "fe_elements", ["conditional_id"], name: "index_fe_elements_on_conditional_id", using: :btree + add_index "fe_elements", ["question_grid_id"], name: "index_fe_elements_on_question_grid_id", using: :btree + add_index "fe_elements", ["slug"], name: "index_fe_elements_on_slug", using: :btree create_table "fe_email_templates", force: true do |t| t.string "name", limit: 1000, null: false t.text "content" t.boolean "enabled" @@ -141,20 +147,22 @@ t.integer "position" t.datetime "created_at" t.datetime "updated_at" end - add_index "fe_page_elements", ["page_id", "element_id"], name: "page_element" + add_index "fe_page_elements", ["page_id", "element_id"], name: "page_element", using: :btree create_table "fe_pages", force: true do |t| - t.integer "question_sheet_id", null: false - t.string "label", limit: 60, null: false + t.integer "question_sheet_id", null: false + t.string "label", limit: 60, null: false t.integer "number" - t.boolean "no_cache", default: false - t.boolean "hidden", default: false + t.boolean "no_cache", default: false + t.boolean "hidden", default: false t.datetime "created_at" t.datetime "updated_at" + t.text "all_element_ids" + t.text "label_translations" end create_table "fe_people", force: true do |t| t.string "first_name" t.string "last_name" @@ -167,10 +175,11 @@ create_table "fe_question_sheets", force: true do |t| t.string "label", limit: 100, null: false t.boolean "archived", default: false t.datetime "created_at" t.datetime "updated_at" + t.text "languages" end create_table "fe_references", force: true do |t| t.integer "question_id" t.integer "applicant_answer_sheet_id" @@ -181,23 +190,44 @@ t.string "last_name" t.string "phone" t.string "email" t.string "status" t.datetime "submitted_at" + t.datetime "started_at" t.string "access_key" t.datetime "created_at" t.datetime "updated_at" + t.string "locale", default: "en" end - add_index "fe_references", ["applicant_answer_sheet_id"], name: "index_fe_references_on_applicant_answer_sheet_id" - add_index "fe_references", ["question_id"], name: "index_fe_references_on_question_id" + add_index "fe_references", ["applicant_answer_sheet_id"], name: "index_fe_references_on_applicant_answer_sheet_id", using: :btree + add_index "fe_references", ["question_id"], name: "index_fe_references_on_question_id", using: :btree create_table "fe_users", force: true do |t| t.integer "user_id" t.datetime "last_login" t.string "type" t.string "role" t.datetime "created_at" t.datetime "updated_at" + end + + create_table "phone_numbers", force: true do |t| + t.string "number" + t.string "extensions" + t.integer "person_id" + t.string "location" + t.boolean "primary" + t.string "txt_to_email" + t.integer "carrier_id" + t.datetime "email_updated_at" + t.datetime "created_at" + t.datetime "updated_at" + end + + create_table "users", force: true do |t| + t.string "username" + t.string "email" + t.integer "person_id" end end