diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-06 18:10:20 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-06 18:10:20 +0300 |
commit | e2c6af91b8df69518588080386932d77e9367aef (patch) | |
tree | 53393c93a7c71e085434f840447619a3e844ae04 /app/models | |
parent | 41927736d5442ed13c41e79decc5900c77a8abf6 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/badges/group_badge.rb | 2 | ||||
-rw-r--r-- | app/models/upload.rb | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/app/models/badges/group_badge.rb b/app/models/badges/group_badge.rb index c0712f452df..f74c9f89e9f 100644 --- a/app/models/badges/group_badge.rb +++ b/app/models/badges/group_badge.rb @@ -1,6 +1,8 @@ # frozen_string_literal: true class GroupBadge < Badge + include EachBatch + belongs_to :group validates :group, presence: true diff --git a/app/models/upload.rb b/app/models/upload.rb index a4fbc703146..59ce9a1f37a 100644 --- a/app/models/upload.rb +++ b/app/models/upload.rb @@ -2,6 +2,7 @@ class Upload < ApplicationRecord include Checksummable + include EachBatch # Upper limit for foreground checksum processing CHECKSUM_THRESHOLD = 100.megabytes |