summaryrefslogtreecommitdiff
path: root/app/models/environment_status.rb
diff options
context:
space:
mode:
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