2018-08-03 07:15:25 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-10-23 08:36:35 +00:00
|
|
|
module Clusters
|
2019-03-28 13:17:42 +00:00
|
|
|
class Project < ApplicationRecord
|
2017-10-23 08:36:35 +00:00
|
|
|
self.table_name = 'cluster_projects'
|
|
|
|
|
2017-10-29 18:48:45 +00:00
|
|
|
belongs_to :cluster, class_name: 'Clusters::Cluster'
|
|
|
|
belongs_to :project, class_name: '::Project'
|
2018-10-16 20:03:59 +00:00
|
|
|
|
|
|
|
has_many :kubernetes_namespaces, class_name: 'Clusters::KubernetesNamespace', foreign_key: :cluster_project_id
|
2017-10-23 08:36:35 +00:00
|
|
|
end
|
|
|
|
end
|