diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-05-19 15:44:42 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-05-19 15:44:42 +0000 |
commit | 4555e1b21c365ed8303ffb7a3325d773c9b8bf31 (patch) | |
tree | 5423a1c7516cffe36384133ade12572cf709398d /app/models/releases | |
parent | e570267f2f6b326480d284e0164a6464ba4081bc (diff) | |
download | gitlab-ce-4555e1b21c365ed8303ffb7a3325d773c9b8bf31.tar.gz |
Add latest changes from gitlab-org/gitlab@13-12-stable-eev13.12.0-rc42
Diffstat (limited to 'app/models/releases')
-rw-r--r-- | app/models/releases/evidence.rb | 2 | ||||
-rw-r--r-- | app/models/releases/link.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/models/releases/evidence.rb b/app/models/releases/evidence.rb index 7c428f5ad03..5fe91b0fef5 100644 --- a/app/models/releases/evidence.rb +++ b/app/models/releases/evidence.rb @@ -5,7 +5,7 @@ module Releases include ShaAttribute include Presentable - belongs_to :release, inverse_of: :evidences + belongs_to :release, inverse_of: :evidences, touch: true default_scope { order(created_at: :asc) } # rubocop:disable Cop/DefaultScope diff --git a/app/models/releases/link.rb b/app/models/releases/link.rb index fc2fa639f56..acc56d3980a 100644 --- a/app/models/releases/link.rb +++ b/app/models/releases/link.rb @@ -4,7 +4,7 @@ module Releases class Link < ApplicationRecord self.table_name = 'release_links' - belongs_to :release + belongs_to :release, touch: true # See https://gitlab.com/gitlab-org/gitlab/-/issues/218753 # Regex modified to prevent catastrophic backtracking |