From bd2164ec9fe3971e5db0ddbd336387a6a2e020e7 Mon Sep 17 00:00:00 2001 From: Shujat Khalid Date: Fri, 5 Jul 2024 13:07:33 +0100 Subject: [PATCH] added index for email address --- ...240705082709_create_mail_delivery_failures.rb | 2 ++ db/schema.rb | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/db/migrate/20240705082709_create_mail_delivery_failures.rb b/db/migrate/20240705082709_create_mail_delivery_failures.rb index 72e1d7613..bc154729c 100644 --- a/db/migrate/20240705082709_create_mail_delivery_failures.rb +++ b/db/migrate/20240705082709_create_mail_delivery_failures.rb @@ -9,5 +9,7 @@ def change t.timestamps end + + add_index :mail_delivery_failures, :email_address end end diff --git a/db/schema.rb b/db/schema.rb index cb2ff862e..8f55ad62a 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -182,6 +182,14 @@ t.index ["code"], name: "index_countries_on_code", unique: true end + create_table "create_mail_delivery_failures", force: :cascade do |t| + t.string "email_address" + t.string "mailer_class" + t.string "mailer_action_method" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + create_table "documents", force: :cascade do |t| t.string "document_type", null: false t.string "documentable_type" @@ -217,6 +225,14 @@ t.boolean "qualified_for_subject" end + create_table "email_delivery_failures", force: :cascade do |t| + t.string "email_address" + t.string "mailer_class" + t.string "mailer_action_method" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + create_table "english_language_providers", force: :cascade do |t| t.string "name", null: false t.text "b2_level_requirement", null: false