20230702151753_add_index_user_on_unconfirmed_email.rb 257 B

123456789
  1. # frozen_string_literal: true
  2. class AddIndexUserOnUnconfirmedEmail < ActiveRecord::Migration[6.1]
  3. disable_ddl_transaction!
  4. def change
  5. add_index :users, :unconfirmed_email, where: 'unconfirmed_email IS NOT NULL', algorithm: :concurrently
  6. end
  7. end