Slowly getting the nested controllers working

More tests required
This commit is contained in:
2023-06-21 09:31:20 +01:00
parent b76375d086
commit 1eb8c2753f
6 changed files with 26 additions and 6 deletions

View File

@@ -1,4 +1,5 @@
class Credential < ApplicationRecord
belongs_to :domain
validates :email, presence: true
validates :email, uniqueness: true
validates :email, format: { with: /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\z/i , message: "email must be valid"}