mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 09:26:54 -06:00
Revert "Validates presence of UserEmail#user_id
in AR."
This reverts commit 0dec3269d8
.
This commit is contained in:
parent
0dec3269d8
commit
9abeaa4719
@ -7,7 +7,6 @@ class UserEmail < ActiveRecord::Base
|
||||
|
||||
before_validation :strip_downcase_email
|
||||
|
||||
validates :user_id, presence: true
|
||||
validates :email, presence: true, uniqueness: true
|
||||
|
||||
validates :email, email: true, format: { with: EmailValidator.email_regex },
|
||||
|
Loading…
Reference in New Issue
Block a user