summaryrefslogtreecommitdiff
path: root/app/models/user_account.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/user_account.rb')
-rw-r--r--app/models/user_account.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/user_account.rb b/app/models/user_account.rb
index d9d67a4..ceb8334 100644
--- a/app/models/user_account.rb
+++ b/app/models/user_account.rb
@@ -11,6 +11,7 @@ class UserAccount < ApplicationRecord
validates :email, presence: true
validates :first_name, presence: true
validates :last_name, presence: true
+ validates :role, presence: true, inclusion: { in: %w[master regular] }
def full_name
"#{first_name} #{last_name}"