diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-02 09:07:28 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-02 09:07:28 +0300 |
commit | 127ab291e2c8b66ac5502257ac9e280acf257089 (patch) | |
tree | dbc144795ae86d8035abbe9bbabc9772127ed5a6 /app/models/timelog.rb | |
parent | fd4360e1f532de6a23e5c79f06b3ef3d89c1511d (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/timelog.rb')
-rw-r--r-- | app/models/timelog.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/timelog.rb b/app/models/timelog.rb index 96fd485b797..3f0e827cf61 100644 --- a/app/models/timelog.rb +++ b/app/models/timelog.rb @@ -6,6 +6,7 @@ class Timelog < ApplicationRecord before_save :set_project validates :time_spent, :user, presence: true + validates :summary, length: { maximum: 255 } validate :issuable_id_is_present, unless: :importing? belongs_to :issue, touch: true |