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

5 lines
No EOL
134 B
Ruby

class Identity < ActiveRecord::Base
belongs_to :user
validates :extern_uid, allow_blank: true, uniqueness: {scope: :provider}
end