discourse/app/models/single_sign_on_record.rb

28 lines
928 B
Ruby
Raw Normal View History

class SingleSignOnRecord < ActiveRecord::Base
belongs_to :user
validates :external_id, uniqueness: true
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 11:19:23 -06:00
# external_id :string(255) 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 11:19:23 -06:00
# external_username :string(255)
# external_email :string(255)
# external_name :string(255)
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
#