gitlab-org--gitlab-foss/app/models/identity/uniqueness_scopes.rb

14 lines
373 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class Identity < ApplicationRecord
# This module and method are defined in a separate file to allow EE to
# redefine the `scopes` method before it is used in the `Identity` model.
module UniquenessScopes
def self.scopes
[:provider]
end
end
end
Identity::UniquenessScopes.prepend_if_ee('EE::Identity::UniquenessScopes')