summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorThong Kuah <tkuah@gitlab.com>2019-06-24 13:46:21 +1200
committerThong Kuah <tkuah@gitlab.com>2019-06-24 16:59:22 +1200
commitee18ca2fa590453b42c7cba28c334d1327aa8b33 (patch)
tree8bc2d3bd19b47e33721712825aed8f61d02703bb /app/models
parent25adee56f76ec6e0faca1dc4d7fef36e88c19f3d (diff)
downloadgitlab-ce-ee18ca2fa590453b42c7cba28c334d1327aa8b33.tar.gz
Rename method to not clash with #clusterrefactor_deployment_cluster
We will introduce #cluster at a later stage. Also deprecate this method
Diffstat (limited to 'app/models')
-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 23cc3f00527..e0648746e31 100644
--- a/app/models/deployment.rb
+++ b/app/models/deployment.rb
@@ -84,7 +84,8 @@ class Deployment < ApplicationRecord
Commit.truncate_sha(sha)
end
- def cluster
+ # Deprecated - will be replaced by a persisted cluster_id
+ def deployment_platform_cluster
environment.deployment_platform&.cluster
end