diff --git a/db/post_migrate/20240217215134_improve_remote_pending_accounts_index.rb b/db/post_migrate/20240217215134_improve_remote_pending_accounts_index.rb index 2d464b6b8e9f3a..66d5e0d180187e 100644 --- a/db/post_migrate/20240217215134_improve_remote_pending_accounts_index.rb +++ b/db/post_migrate/20240217215134_improve_remote_pending_accounts_index.rb @@ -6,6 +6,6 @@ class ImproveRemotePendingAccountsIndex < ActiveRecord::Migration[7.1] def change remove_index :accounts, :remote_pending, unique: false, algorithm: :concurrently - add_index :accounts, :id, unique: false, algorithm: :concurrently, where: 'domain IS NOT NULL AND remote_pending AND suspended_at IS NOT NULL' + add_index :accounts, :id, name: 'index_remote_pending_users', unique: false, algorithm: :concurrently, where: 'domain IS NOT NULL AND remote_pending AND suspended_at IS NOT NULL' end end