From fdc41664719df4e7177a8bbbafe52d016436446f Mon Sep 17 00:00:00 2001 From: Julian Cheal Date: Wed, 11 Jul 2018 13:05:44 +0100 Subject: [PATCH] Adding flavor on VM as VM belongs to Flavour Fixes BZ: https://github.com/ManageIQ/manageiq/pull/17692 --- app/models/vm_or_template.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/vm_or_template.rb b/app/models/vm_or_template.rb index fe80d191801..d73d9fa783b 100644 --- a/app/models/vm_or_template.rb +++ b/app/models/vm_or_template.rb @@ -65,6 +65,7 @@ class VmOrTemplate < ApplicationRecord has_many :disks, :through => :hardware belongs_to :host belongs_to :ems_cluster + belongs_to :flavor belongs_to :storage has_and_belongs_to_many :storages, :join_table => 'storages_vms_and_templates'