Something not right here with Kate.
This commit is contained in:
@@ -2,5 +2,6 @@ class Credential < ApplicationRecord
|
||||
belongs_to :domain
|
||||
validates :email, presence: true
|
||||
validates :email, uniqueness: true
|
||||
validates :domain_id, presence: true
|
||||
validates :email, format: { with: /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\z/i , message: "email must be valid"}
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user