Remove duplicate index index_email_subscriptions_on_account_id (#38907)

This commit is contained in:
Claire
2026-05-05 17:15:55 +02:00
committed by GitHub
parent 5e3e11bbfa
commit cb2e770584
2 changed files with 8 additions and 2 deletions

View File

@@ -0,0 +1,7 @@
# frozen_string_literal: true
class RemoveEmailSubscriptionsDuplicateIndex < ActiveRecord::Migration[8.1]
def change
remove_index :email_subscriptions, :account_id
end
end

View File

@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[8.1].define(version: 2026_04_23_141611) do
ActiveRecord::Schema[8.1].define(version: 2026_05_05_155103) do
# These are extensions that must be enabled in order to support this database
enable_extension "pg_catalog.plpgsql"
@@ -516,7 +516,6 @@ ActiveRecord::Schema[8.1].define(version: 2026_04_23_141611) do
t.string "locale", null: false
t.datetime "updated_at", null: false
t.index ["account_id", "email"], name: "index_email_subscriptions_on_account_id_and_email", unique: true
t.index ["account_id"], name: "index_email_subscriptions_on_account_id"
t.index ["confirmation_token"], name: "index_email_subscriptions_on_confirmation_token", unique: true, where: "(confirmation_token IS NOT NULL)"
end