2017-08-30 00:49:07 +08:00
|
|
|
class UserIdentity < ActiveRecord::Base
|
|
|
|
belongs_to :user
|
2018-08-22 17:38:39 +08:00
|
|
|
validates :provider, presence: true, uniqueness: { scope: :user_id }
|
|
|
|
validates :uid, presence: true, uniqueness: { scope: :provider }
|
2017-08-30 00:49:07 +08:00
|
|
|
end
|