blob: b2c3792d1ce35eb542728708381ed20c4741d3c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# == 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
include Sortable
belongs_to :user
validates :extern_uid, allow_blank: true, uniqueness: { scope: :provider }
end
|