summaryrefslogtreecommitdiff
path: root/app/models/clusters/cluster.rb
diff options
context:
space:
mode:
authorMayra Cabrera <mcabrera@gitlab.com>2019-01-31 08:58:58 -0600
committerMayra Cabrera <mcabrera@gitlab.com>2019-02-04 12:08:09 -0600
commit087af654bbae1e4a843029b33e1aab546f4d7d61 (patch)
tree9230a20b2eb5deecd93d431bf30489d714887c20 /app/models/clusters/cluster.rb
parent8b5553daa43d48fdef42f0f2a3f700580dea770b (diff)
downloadgitlab-ce-087af654bbae1e4a843029b33e1aab546f4d7d61.tar.gz
Addresses backend/db review comments
- Fixes multiple typos on AutoDevops script - Add an alias to Clusters::Cluster#domain as base_domain, so it's more descriptive - Removes unnecessary memoization on qa specs - Changes migration to a post migration to deal better with traffic on big instances (like gitlab.com)
Diffstat (limited to 'app/models/clusters/cluster.rb')
-rw-r--r--app/models/clusters/cluster.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/clusters/cluster.rb b/app/models/clusters/cluster.rb
index 2b677961df5..bf339c935cf 100644
--- a/app/models/clusters/cluster.rb
+++ b/app/models/clusters/cluster.rb
@@ -67,6 +67,8 @@ module Clusters
delegate :available?, to: :application_knative, prefix: true, allow_nil: true
delegate :external_ip, to: :application_ingress, prefix: true, allow_nil: true
+ alias_attribute :base_domain, :domain
+
enum cluster_type: {
instance_type: 1,
group_type: 2,