diff --git a/app/models/host.rb b/app/models/host.rb index 02b1fcc4b22d..76f8f61e95f5 100644 --- a/app/models/host.rb +++ b/app/models/host.rb @@ -139,6 +139,7 @@ class Host < ApplicationRecord virtual_delegate :annotation, :to => :hardware, :prefix => "v", :allow_nil => true virtual_column :vmm_vendor_display, :type => :string virtual_column :ipmi_enabled, :type => :boolean + virtual_column :archived, :type => :boolean virtual_has_many :resource_pools, :uses => :all_relationships virtual_has_many :miq_scsi_luns, :uses => {:hardware => {:storage_adapters => {:miq_scsi_targets => :miq_scsi_luns}}} @@ -1768,6 +1769,7 @@ def read_only_storages def archived? ems_id.nil? end + alias_method :archived, :archived? def normalized_state return 'archived' if archived?