summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/models/user_account.rb3
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}"