diff --git a/app/models/guest_application.rb b/app/models/guest_application.rb index 8652ea35238..f89454e959c 100644 --- a/app/models/guest_application.rb +++ b/app/models/guest_application.rb @@ -1,5 +1,6 @@ class GuestApplication < ApplicationRecord belongs_to :vm_or_template + belongs_to :vm, :foreign_key => :vm_or_template_id belongs_to :host belongs_to :container_image diff --git a/lib/miq_expression.rb b/lib/miq_expression.rb index bd8af981224..159e6a6865d 100644 --- a/lib/miq_expression.rb +++ b/lib/miq_expression.rb @@ -38,6 +38,7 @@ class MiqExpression ExtManagementSystem ExtManagementSystemPerformance Flavor + GuestApplication Host HostAggregate HostPerformance