blob: c7cdb63e3d227c92b30a1dad52a87564c32d64ea (
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
|