diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-11-07 08:36:42 +0300 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2018-11-07 08:36:42 +0300 |
commit | 16fc61d6147c243a17c79faee578a5d286617fb4 (patch) | |
tree | c19a7dffcd80ca85b4dd3fa9384ba354da108cd3 /app/models/deployment.rb | |
parent | 9c811566f85d18bc9eb4a85c6a343cf1bfa4fbd2 (diff) |
Rever add action follow up 1
Diffstat (limited to 'app/models/deployment.rb')
-rw-r--r-- | app/models/deployment.rb | 2 |
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 |