mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-03 06:03:51 +08:00
5 lines
169 B
Ruby
5 lines
169 B
Ruby
class UserIdentity < ActiveRecord::Base
|
|
belongs_to :user
|
|
validates :provider, uniqueness: { scope: :user_id }
|
|
validates :uid, uniqueness: { scope: :provider }
|
|
end
|