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:
authorShinya Maeda <shinya@gitlab.com>2018-11-07 08:36:42 +0300
committerShinya Maeda <shinya@gitlab.com>2018-11-07 08:36:42 +0300
commit16fc61d6147c243a17c79faee578a5d286617fb4 (patch)
treec19a7dffcd80ca85b4dd3fa9384ba354da108cd3 /app/models/deployment.rb
parent9c811566f85d18bc9eb4a85c6a343cf1bfa4fbd2 (diff)
Rever add action follow up 1
Diffstat (limited to 'app/models/deployment.rb')
-rw-r--r--app/models/deployment.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/deployment.rb b/app/models/deployment.rb
index 305922611a6..83434276995 100644
--- a/app/models/deployment.rb
+++ b/app/models/deployment.rb
@@ -132,7 +132,7 @@ class Deployment < ActiveRecord::Base
def previous_deployment
@previous_deployment ||=
- project.deployments.success.joins(:environment)
+ project.deployments.joins(:environment)
.where(environments: { name: self.environment.name }, ref: self.ref)
.where.not(id: self.id)
.take