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

identity.rb « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 80e0e3a8a23102e8eecbdda9d1e6ff46bc4f6c2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# == Schema Information
#
# Table name: identities
#
#  id         :integer          not null, primary key
#  extern_uid :string(255)
#  provider   :string(255)
#  user_id    :integer
#

class Identity < ActiveRecord::Base
  belongs_to :user

  validates :extern_uid, allow_blank: true, uniqueness: { scope: :provider }
end