Skip to content

Commit

Permalink
Merge pull request #17829 from skovic/physical-alert-bug-fix
Browse files Browse the repository at this point in the history
Fix for physical server alert bug
  • Loading branch information
agrare committed Aug 10, 2018
2 parents 2fefe62 + 694f304 commit b9e79cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/physical_server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class PhysicalServer < ApplicationRecord
has_one :host, :inverse_of => :physical_server
has_one :asset_detail, :as => :resource, :dependent => :destroy
has_many :guest_devices, :through => :hardware
has_many :miq_alert_statuses, :as => :resource, :dependent => :destroy, :inverse_of => :physical_server
has_many :miq_alert_statuses, :as => :resource, :dependent => :destroy, :inverse_of => :resource

scope :with_hosts, -> { where("physical_servers.id in (select hosts.physical_server_id from hosts)") }

Expand Down

0 comments on commit b9e79cc

Please sign in to comment.