scinote-web/app/models/user_identity.rb
2019-06-10 12:24:04 +02:00

7 lines
232 B
Ruby

# frozen_string_literal: true
class UserIdentity < ActiveRecord::Base
belongs_to :user
validates :provider, presence: true, uniqueness: { scope: :user_id }
validates :uid, presence: true, uniqueness: { scope: :provider }
end