From 0774255640bb9f3ce1ed6bb935c28372e6b17768 Mon Sep 17 00:00:00 2001 From: Melody-Ann-Seda-Marotte Date: Wed, 27 Oct 2021 11:34:21 -0400 Subject: [PATCH] re-adding all_vms method --- app/models/ems_cluster.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/ems_cluster.rb b/app/models/ems_cluster.rb index 09deef40f9a..832e8e282ee 100644 --- a/app/models/ems_cluster.rb +++ b/app/models/ems_cluster.rb @@ -12,6 +12,7 @@ class EmsCluster < ApplicationRecord has_many :vms_and_templates, :dependent => :nullify has_many :miq_templates, :inverse_of => :ems_cluster has_many :vms, :inverse_of => :ems_cluster + alias all_vms vms has_many :metrics, :as => :resource # Destroy will be handled by purger has_many :metric_rollups, :as => :resource # Destroy will be handled by purger