summaryrefslogtreecommitdiff
path: root/app/models/project.rb
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-10-02 21:58:50 +0900
committerShinya Maeda <shinya@gitlab.com>2017-10-02 21:58:50 +0900
commit34e66c427dde2070c2c09a07ce08f991e46de92f (patch)
treed0894218a41a2b67313fc232f19cc734f3dc7b67 /app/models/project.rb
parent2cb1d617d90b4a9311e3a35434bec958f266d22a (diff)
downloadgitlab-ce-34e66c427dde2070c2c09a07ce08f991e46de92f.tar.gz
PollingInterval, rename to gke_clusters, has_one :cluster
Diffstat (limited to 'app/models/project.rb')
-rw-r--r--app/models/project.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 6b896746864..5d6a8bdbaeb 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -163,6 +163,7 @@ class Project < ActiveRecord::Base
has_one :import_data, class_name: 'ProjectImportData', inverse_of: :project, autosave: true
has_one :project_feature, inverse_of: :project
has_one :statistics, class_name: 'ProjectStatistics'
+ has_one :cluster, class_name: 'Gcp::Cluster', inverse_of: :project
# Container repositories need to remove data from the container registry,
# which is not managed by the DB. Hence we're still using dependent: :destroy
@@ -171,7 +172,6 @@ class Project < ActiveRecord::Base
has_many :commit_statuses
has_many :pipelines, class_name: 'Ci::Pipeline'
- has_many :clusters, class_name: 'Ci::Cluster'
# Ci::Build objects store data on the file system such as artifact files and
# build traces. Currently there's no efficient way of removing this data in