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