diff options
author | HombreLaser <sebastian-440@live.com> | 2023-02-21 19:18:25 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2023-02-21 19:18:25 -0600 |
commit | 6c7308ad219bfd9deebe44630165375f2d22e3cc (patch) | |
tree | a78bdcf44ad5ecd31bb3ef43d6d8dafd40f5ee8a /app/models/user_account.rb | |
parent | 1edd911e4292a98c309391a119467e55a509d7b0 (diff) |
Añade validadores al modelo de usuario
Diffstat (limited to 'app/models/user_account.rb')
-rw-r--r-- | app/models/user_account.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/user_account.rb b/app/models/user_account.rb index b54c93d..d9d67a4 100644 --- a/app/models/user_account.rb +++ b/app/models/user_account.rb @@ -8,6 +8,9 @@ # session_key: string class UserAccount < ApplicationRecord has_secure_password validations: false + validates :email, presence: true + validates :first_name, presence: true + validates :last_name, presence: true def full_name "#{first_name} #{last_name}" |