diff options
Diffstat (limited to 'app/models/application_setting.rb')
-rw-r--r-- | app/models/application_setting.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/application_setting.rb b/app/models/application_setting.rb index 64ca7446fa5..9254f7dd633 100644 --- a/app/models/application_setting.rb +++ b/app/models/application_setting.rb @@ -337,6 +337,10 @@ class ApplicationSetting < ApplicationRecord length: { maximum: 255 }, allow_blank: true + validates :namespace_storage_size_limit, + presence: true, + numericality: { only_integer: true, greater_than_or_equal_to: 0 } + attr_encrypted :asset_proxy_secret_key, mode: :per_attribute_iv, key: Settings.attr_encrypted_db_key_base_truncated, |