diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/models/user_account.rb | 1 |
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}" |