Halfway through table redesign, saving to revert to working version

This commit is contained in:
Jason Jordan
2026-03-05 11:30:24 -05:00
parent ea07afb751
commit b5a1517330
86 changed files with 1286 additions and 884 deletions
+155 -209
View File
@@ -10,230 +10,89 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.2].define(version: 2026_02_27_213305) do
create_table "action_text_rich_texts", force: :cascade do |t|
t.string "name", null: false
t.text "body"
t.string "record_type", null: false
t.bigint "record_id", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["record_type", "record_id", "name"], name: "index_action_text_rich_texts_uniqueness", unique: true
end
create_table "active_storage_attachments", force: :cascade do |t|
t.string "name", null: false
t.string "record_type", null: false
t.bigint "record_id", null: false
t.bigint "blob_id", null: false
t.datetime "created_at", null: false
t.index ["blob_id"], name: "index_active_storage_attachments_on_blob_id"
t.index ["record_type", "record_id", "name", "blob_id"], name: "index_active_storage_attachments_uniqueness", unique: true
end
create_table "active_storage_blobs", force: :cascade do |t|
t.string "key", null: false
t.string "filename", null: false
t.string "content_type"
t.text "metadata"
t.string "service_name", null: false
t.bigint "byte_size", null: false
t.string "checksum"
t.datetime "created_at", null: false
t.index ["key"], name: "index_active_storage_blobs_on_key", unique: true
end
create_table "active_storage_variant_records", force: :cascade do |t|
t.bigint "blob_id", null: false
t.string "variation_digest", null: false
t.index ["blob_id", "variation_digest"], name: "index_active_storage_variant_records_uniqueness", unique: true
end
create_table "alternate_network_logos", force: :cascade do |t|
t.string "network_logo_filename"
t.string "exception_type"
t.string "exception_value"
t.bigint "employer_id", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["employer_id"], name: "index_alternate_network_logos_on_employer_id"
end
create_table "card_exception_items", force: :cascade do |t|
t.string "field_name"
t.string "field_value"
t.bigint "card_logo_file_id"
t.bigint "card_provider_id"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["card_logo_file_id"], name: "index_card_exception_items_on_card_logo_file_id"
t.index ["card_provider_id"], name: "index_card_exception_items_on_card_provider_id"
end
create_table "card_exceptions", force: :cascade do |t|
t.string "type"
t.string "value"
t.bigint "employer_id", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["employer_id"], name: "index_card_exceptions_on_employer_id"
end
create_table "card_logo_files", force: :cascade do |t|
t.string "filename"
t.binary "image_data"
t.string "content_type"
t.string "logo_type"
t.boolean "active", default: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.float "aspect_ratio"
end
create_table "card_providers", force: :cascade do |t|
t.string "provider_code"
t.string "provider_line_1"
t.string "provider_line_2"
t.string "provider_line_3"
t.string "provider_line_4"
t.string "provider_line_5"
t.string "provider_line_6"
t.string "provider_line_7"
t.string "provider_line_8"
t.string "provider_line_9"
t.string "provider_line_10"
t.string "provider_line_11"
t.string "provider_line_12"
t.string "claim_to_1"
t.string "claim_to_2"
t.string "claim_to_3"
t.string "claim_to_4"
t.string "claim_to_5"
t.string "claim_to_6"
t.string "claim_to_7"
t.string "claim_to_8"
t.string "claim_to_9"
t.string "claim_to_10"
t.string "claim_to_11"
t.string "claim_to_12"
t.string "mail_to"
t.string "mail_to_2"
t.string "contact_line_1"
t.string "contact_line_2"
t.string "contact_line_3"
t.string "group_number"
t.string "rx_group_id"
t.string "rx_contact"
t.string "provider_lookup_1"
t.string "provider_lookup_2"
t.string "precert_1"
t.string "precert_2"
t.string "precert_3"
t.string "precert_4"
t.string "precert_5"
t.string "precert_6"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.string "title"
end
create_table "card_rxes", force: :cascade do |t|
t.string "help_desk"
t.string "customer_service"
t.string "web_url"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
create_table "employer_card_logos", force: :cascade do |t|
t.bigint "employer_id", null: false
t.bigint "card_logo_file_id", null: false
t.string "logo_type"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["card_logo_file_id"], name: "index_employer_card_logos_on_card_logo_file_id"
t.index ["employer_id"], name: "index_employer_card_logos_on_employer_id"
end
ActiveRecord::Schema[7.2].define(version: 2026_01_16_182836) do
create_table "employers", force: :cascade do |t|
t.string "name"
t.string "id_card_display_name"
t.string "slug"
t.string "pl_plan_key"
t.integer "company_pb_entity_key"
t.integer "plan_id"
t.string "group_number"
t.string "rx_group_number"
t.string "effective_date"
t.string "employer_logo_filename"
t.string "network_provider"
t.string "default_network_logo"
t.string "single_card_template"
t.string "multiple_card_template"
t.boolean "active", default: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.bigint "card_provider_id"
t.bigint "card_rx_id"
t.index ["card_provider_id"], name: "index_employers_on_card_provider_id"
t.index ["card_rx_id"], name: "index_employers_on_card_rx_id"
end
create_table "id_card_benefits", force: :cascade do |t|
create_table "id_card_employer_logos", force: :cascade do |t|
t.string "filename"
t.binary "image_data"
t.string "content_type"
t.float "aspect_ratio"
t.boolean "active", default: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
create_table "id_card_exception_items", force: :cascade do |t|
t.string "field_name"
t.string "field_value"
t.bigint "id_card_exception_id", null: false
t.bigint "id_card_network_logo_id"
t.bigint "id_card_provider_section_id"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["id_card_exception_id"], name: "index_id_card_exception_items_on_id_card_exception_id"
t.index ["id_card_network_logo_id"], name: "index_id_card_exception_items_on_id_card_network_logo_id"
t.index ["id_card_provider_section_id"], name: "index_id_card_exception_items_on_id_card_provider_section_id"
end
create_table "id_card_exceptions", force: :cascade do |t|
t.string "type"
t.string "value"
t.bigint "id_card_setup_id", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["id_card_setup_id"], name: "index_id_card_exceptions_on_id_card_setup_id"
end
create_table "id_card_network_logos", force: :cascade do |t|
t.string "filename"
t.binary "image_data"
t.string "content_type"
t.float "aspect_ratio"
t.boolean "active", default: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
create_table "id_card_plan_benefits", force: :cascade do |t|
t.string "benefit_desc"
t.string "benefit"
t.integer "sequence"
t.bigint "id_card_benefits_template_id", null: false
t.bigint "id_card_plan_id", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["id_card_benefits_template_id"], name: "index_id_card_benefits_on_id_card_benefits_template_id"
t.index ["id_card_plan_id"], name: "index_id_card_plan_benefits_on_id_card_plan_id"
end
create_table "id_card_benefits_templates", force: :cascade do |t|
t.string "title"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
create_table "members", force: :cascade do |t|
t.string "name"
t.string "id_card_display_name"
t.string "family_id"
t.integer "mb_member_key"
t.integer "pb_entity_key"
t.integer "pl_plan_key"
t.bigint "employer_id"
t.bigint "plan_id"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["employer_id"], name: "index_members_on_employer_id"
t.index ["plan_id"], name: "index_members_on_plan_id"
end
create_table "plan_benefits", force: :cascade do |t|
t.string "benefit_desc"
t.string "benefit"
t.integer "sequence"
t.bigint "plan_id", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["plan_id"], name: "index_plan_benefits_on_plan_id"
end
create_table "plans", force: :cascade do |t|
create_table "id_card_plans", force: :cascade do |t|
t.string "title"
t.integer "pb_product_key"
t.bigint "employer_id", null: false
t.string "pl_plan_key"
t.bigint "id_card_setup_id"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["employer_id"], name: "index_plans_on_employer_id"
t.index ["id_card_setup_id"], name: "index_id_card_plans_on_id_card_setup_id"
end
create_table "sample_id_cards", force: :cascade do |t|
create_table "id_card_print_data", force: :cascade do |t|
t.string "full_name"
t.string "full_name_last_name_first"
t.string "family_id"
t.string "primary_mb_member_key"
t.string "employer_name"
t.string "pl_plan_key"
t.string "group_number"
t.string "rx_group"
t.string "medical_eff_date"
@@ -303,22 +162,109 @@ ActiveRecord::Schema[7.2].define(version: 2026_02_27_213305) do
t.string "benefit_14"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.string "name"
end
add_foreign_key "active_storage_attachments", "active_storage_blobs", column: "blob_id"
add_foreign_key "active_storage_variant_records", "active_storage_blobs", column: "blob_id"
add_foreign_key "alternate_network_logos", "employers"
add_foreign_key "card_exception_items", "card_logo_files"
add_foreign_key "card_exception_items", "card_providers"
add_foreign_key "card_exceptions", "employers"
add_foreign_key "employer_card_logos", "card_logo_files"
add_foreign_key "employer_card_logos", "employers"
add_foreign_key "employers", "card_providers"
add_foreign_key "employers", "card_rxes"
add_foreign_key "id_card_benefits", "id_card_benefits_templates"
create_table "id_card_provider_sections", force: :cascade do |t|
t.string "title"
t.string "provider_code"
t.string "provider_line_1"
t.string "provider_line_2"
t.string "provider_line_3"
t.string "provider_line_4"
t.string "provider_line_5"
t.string "provider_line_6"
t.string "provider_line_7"
t.string "provider_line_8"
t.string "provider_line_9"
t.string "provider_line_10"
t.string "provider_line_11"
t.string "provider_line_12"
t.string "claim_to_1"
t.string "claim_to_2"
t.string "claim_to_3"
t.string "claim_to_4"
t.string "claim_to_5"
t.string "claim_to_6"
t.string "claim_to_7"
t.string "claim_to_8"
t.string "claim_to_9"
t.string "claim_to_10"
t.string "claim_to_11"
t.string "claim_to_12"
t.string "mail_to"
t.string "mail_to_2"
t.string "contact_line_1"
t.string "contact_line_2"
t.string "contact_line_3"
t.string "group_number"
t.string "rx_group_id"
t.string "rx_contact"
t.string "provider_lookup_1"
t.string "provider_lookup_2"
t.string "precert_1"
t.string "precert_2"
t.string "precert_3"
t.string "precert_4"
t.string "precert_5"
t.string "precert_6"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
create_table "id_card_rx_sections", force: :cascade do |t|
t.string "help_desk"
t.string "customer_service"
t.string "web_url"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
create_table "id_card_setups", force: :cascade do |t|
t.string "print_name"
t.string "network_provider"
t.string "card_template"
t.string "rx_group_number"
t.boolean "active", default: false
t.bigint "employer_id", null: false
t.bigint "id_card_employer_logo_id"
t.bigint "id_card_network_logo_id"
t.bigint "id_card_provider_section_id", null: false
t.bigint "id_card_rx_section_id", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["employer_id"], name: "index_id_card_setups_on_employer_id"
t.index ["id_card_employer_logo_id"], name: "index_id_card_setups_on_id_card_employer_logo_id"
t.index ["id_card_network_logo_id"], name: "index_id_card_setups_on_id_card_network_logo_id"
t.index ["id_card_provider_section_id"], name: "index_id_card_setups_on_id_card_provider_section_id"
t.index ["id_card_rx_section_id"], name: "index_id_card_setups_on_id_card_rx_section_id"
end
create_table "members", force: :cascade do |t|
t.string "name"
t.string "id_card_display_name"
t.string "family_id"
t.integer "mb_member_key"
t.integer "pb_entity_key"
t.integer "pl_plan_key"
t.bigint "employer_id"
t.bigint "id_card_plan_id"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["employer_id"], name: "index_members_on_employer_id"
t.index ["id_card_plan_id"], name: "index_members_on_id_card_plan_id"
end
add_foreign_key "id_card_exception_items", "id_card_exceptions"
add_foreign_key "id_card_exception_items", "id_card_network_logos"
add_foreign_key "id_card_exception_items", "id_card_provider_sections"
add_foreign_key "id_card_exceptions", "id_card_setups"
add_foreign_key "id_card_plan_benefits", "id_card_plans"
add_foreign_key "id_card_plans", "id_card_setups"
add_foreign_key "id_card_setups", "employers"
add_foreign_key "id_card_setups", "id_card_employer_logos"
add_foreign_key "id_card_setups", "id_card_network_logos"
add_foreign_key "id_card_setups", "id_card_provider_sections"
add_foreign_key "id_card_setups", "id_card_rx_sections"
add_foreign_key "members", "employers"
add_foreign_key "members", "plans"
add_foreign_key "plan_benefits", "plans"
add_foreign_key "plans", "employers"
add_foreign_key "members", "id_card_plans"
end