mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 01:44:34 +08:00
5 lines
201 B
Ruby
5 lines
201 B
Ruby
class UserIdentity < ActiveRecord::Base
|
|
belongs_to :user
|
|
validates :provider, presence: true, uniqueness: { scope: :user_id }
|
|
validates :uid, presence: true, uniqueness: { scope: :provider }
|
|
end
|