You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
docuseal/db/migrate/20251106162304_scope_email_...

9 lines
256 B

# frozen_string_literal: true
class ScopeEmailUniquenessToAccount < ActiveRecord::Migration[8.0]
def change
remove_index :users, :email
add_index :users, [:account_id, :email], unique: true, name: 'index_users_on_account_id_and_email'
end
end