diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-28 01:40:43 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-28 01:40:43 +0300 |
commit | bbe511b231b5de3fab4dc418601c89cc1ccc8063 (patch) | |
tree | 650453c3b64751df39fda6f33ca4b39318f41e0d /app/models | |
parent | ad1c34c03de42ebc5279f338f6304e77930d34d4 (diff) |
Add latest changes from gitlab-org/gitlab@14-1-stable-ee
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/application_setting/term.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/application_setting/term.rb b/app/models/application_setting/term.rb index acdd7e4155c..8910f22c502 100644 --- a/app/models/application_setting/term.rb +++ b/app/models/application_setting/term.rb @@ -3,13 +3,12 @@ class ApplicationSetting class Term < ApplicationRecord include CacheMarkdownField - include NullifyIfBlank has_many :term_agreements cache_markdown_field :terms - nullify_if_blank :terms + validates :terms, presence: true def self.latest order(:id).last |