Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/deployment.rb')
-rw-r--r--app/models/deployment.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/deployment.rb b/app/models/deployment.rb
index 36f4a0ef426..1fff089451d 100644
--- a/app/models/deployment.rb
+++ b/app/models/deployment.rb
@@ -9,6 +9,7 @@ class Deployment < ApplicationRecord
include Gitlab::Utils::StrongMemoize
include FastDestroyAll
include IgnorableColumns
+ include EachBatch
StatusUpdateError = Class.new(StandardError)
StatusSyncError = Class.new(StandardError)
@@ -230,7 +231,7 @@ class Deployment < ApplicationRecord
##
# FastDestroyAll concerns
def begin_fast_destroy
- preload(:project).find_each.map do |deployment|
+ preload(:project, :environment).find_each.map do |deployment|
[deployment.project, deployment.ref_path]
end
end