Welcome to mirror list, hosted at ThFree Co, Russian Federation.

uniqueness_scopes.rb « identity « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 598b7e347383f76c7f91c4f4c7dc9994ac0b8b41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

class Identity < MainClusterwide::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_mod_with('Identity::UniquenessScopes')