diff --git a/app/models/project.rb b/app/models/project.rb index 1b201b13548..512fe77261a 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -915,6 +915,7 @@ class Project < ActiveRecord::Base end # TODO: This will be extended for multiple enviroment clusters + # TODO: Add super nice tests to check this interchangeability def deployment_platform @deployment_platform ||= clusters.where(enabled: true).first&.platform_kubernetes @deployment_platform ||= deployment_services.reorder(nil).find_by(active: true)