Commit ebaa096e by Thanh Hung Pham

Remove duplicate check email required

parent 2baf6b26
......@@ -5,5 +5,5 @@ class User < ApplicationRecord
:recoverable, :rememberable, :trackable, :validatable,
:confirmable, :lockable
VALID_EMAIL_REGEX = /\A[\w+\-.]+@[a-z\d\-.]+\.[a-z]+\z/i
validates :email, presence: true, length: { maximum: 255 }, format: { with: VALID_EMAIL_REGEX }
validates :email, length: { maximum: 255 }, format: { with: VALID_EMAIL_REGEX }
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment