mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-15 13:45:25 +08:00
7 lines
232 B
Ruby
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
|