diff options
author | Thong Kuah <tkuah@gitlab.com> | 2019-06-24 13:46:21 +1200 |
---|---|---|
committer | Thong Kuah <tkuah@gitlab.com> | 2019-06-24 16:59:22 +1200 |
commit | ee18ca2fa590453b42c7cba28c334d1327aa8b33 (patch) | |
tree | 8bc2d3bd19b47e33721712825aed8f61d02703bb /app | |
parent | 25adee56f76ec6e0faca1dc4d7fef36e88c19f3d (diff) | |
download | gitlab-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')
-rw-r--r-- | app/models/deployment.rb | 3 |
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 |