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:29:16 +0300
committerShinya Maeda <shinya@gitlab.com>2018-11-07 08:29:16 +0300
commit9c811566f85d18bc9eb4a85c6a343cf1bfa4fbd2 (patch)
tree0d5de6f22917fa5def4e8a9a918bf0bcd5f1d3e4 /app/models/environment_status.rb
parent4eeb51dc71062fa2eac828c6030388d354179efc (diff)
Revert add action column changes
Diffstat (limited to 'app/models/environment_status.rb')
-rw-r--r--app/models/environment_status.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/environment_status.rb b/app/models/environment_status.rb
index b33c4f2738d..76fd0241239 100644
--- a/app/models/environment_status.rb
+++ b/app/models/environment_status.rb
@@ -28,7 +28,7 @@ class EnvironmentStatus
def deployment
strong_memoize(:deployment) do
- environment.deployments.start.find_by_sha(sha)
+ Deployment.where(environment: environment).find_by_sha(sha)
end
end