mirror of
https://github.com/discourse/discourse.git
synced 2025-06-09 06:18:14 +08:00
Add uniqueness validation for SingleSignOnRecord#external_id
.
This commit is contained in:
@ -1,5 +1,7 @@
|
|||||||
class SingleSignOnRecord < ActiveRecord::Base
|
class SingleSignOnRecord < ActiveRecord::Base
|
||||||
belongs_to :user
|
belongs_to :user
|
||||||
|
|
||||||
|
validates :external_id, uniqueness: true
|
||||||
end
|
end
|
||||||
|
|
||||||
# == Schema Information
|
# == Schema Information
|
||||||
|
Reference in New Issue
Block a user