2014-02-24 22:30:49 -05:00
|
|
|
class SingleSignOnRecord < ActiveRecord::Base
|
|
|
|
belongs_to :user
|
2017-11-30 02:15:52 -05:00
|
|
|
|
|
|
|
validates :external_id, uniqueness: true
|
2014-02-24 22:30:49 -05:00
|
|
|
end
|
2014-03-20 00:35:51 -04:00
|
|
|
|
|
|
|
# == Schema Information
|
|
|
|
#
|
|
|
|
# Table name: single_sign_on_records
|
|
|
|
#
|
2014-08-22 13:01:44 -04:00
|
|
|
# id :integer not null, primary key
|
|
|
|
# user_id :integer not null
|
2017-12-05 10:29:14 -05:00
|
|
|
# external_id :string(255) not null
|
2014-08-22 13:01:44 -04:00
|
|
|
# last_payload :text not null
|
2014-08-27 01:19:25 -04:00
|
|
|
# created_at :datetime not null
|
|
|
|
# updated_at :datetime not null
|
2017-12-05 10:29:14 -05:00
|
|
|
# external_username :string(255)
|
|
|
|
# external_email :string(255)
|
|
|
|
# external_name :string(255)
|
2016-10-31 05:32:11 -04:00
|
|
|
# external_avatar_url :string(1000)
|
2014-03-20 00:35:51 -04:00
|
|
|
#
|
|
|
|
# Indexes
|
|
|
|
#
|
|
|
|
# index_single_sign_on_records_on_external_id (external_id) UNIQUE
|
|
|
|
#
|