diff options
Diffstat (limited to 'app/models/user_preference.rb')
-rw-r--r-- | app/models/user_preference.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/user_preference.rb b/app/models/user_preference.rb index e527542e357..78ccce2aaae 100644 --- a/app/models/user_preference.rb +++ b/app/models/user_preference.rb @@ -23,6 +23,8 @@ class UserPreference < ApplicationRecord format: { with: ColorsHelper::HEX_COLOR_PATTERN }, allow_blank: true + validates :time_display_relative, allow_nil: false, inclusion: { in: [true, false] } + validates :render_whitespace_in_code, allow_nil: false, inclusion: { in: [true, false] } validates :pass_user_identities_to_ci_jwt, allow_nil: false, inclusion: { in: [true, false] } validates :pinned_nav_items, json_schema: { filename: 'pinned_nav_items' } |