2019-05-02 17:17:27 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2014-02-24 21:30:49 -06:00
|
|
|
class SingleSignOnRecord < ActiveRecord::Base
|
|
|
|
belongs_to :user
|
2017-11-30 01:15:52 -06:00
|
|
|
|
|
|
|
validates :external_id, uniqueness: true
|
2014-02-24 21:30:49 -06:00
|
|
|
end
|
2014-03-19 23:35:51 -05:00
|
|
|
|
|
|
|
# == Schema Information
|
|
|
|
#
|
|
|
|
# Table name: single_sign_on_records
|
|
|
|
#
|
2018-05-08 18:49:50 -05:00
|
|
|
# id :integer not null, primary key
|
|
|
|
# user_id :integer not null
|
2019-01-11 13:29:56 -06:00
|
|
|
# external_id :string not null
|
2018-05-08 18:49:50 -05:00
|
|
|
# last_payload :text not null
|
|
|
|
# created_at :datetime not null
|
|
|
|
# updated_at :datetime not null
|
2019-01-11 13:29:56 -06:00
|
|
|
# external_username :string
|
|
|
|
# external_email :string
|
|
|
|
# external_name :string
|
2018-05-08 18:49:50 -05:00
|
|
|
# external_avatar_url :string(1000)
|
|
|
|
# external_profile_background_url :string
|
|
|
|
# external_card_background_url :string
|
2014-03-19 23:35:51 -05:00
|
|
|
#
|
|
|
|
# Indexes
|
|
|
|
#
|
|
|
|
# index_single_sign_on_records_on_external_id (external_id) UNIQUE
|
2019-01-29 19:33:53 -06:00
|
|
|
# index_single_sign_on_records_on_user_id (user_id)
|
2014-03-19 23:35:51 -05:00
|
|
|
#
|