diff --git a/lib/msf/core/model/host.rb b/lib/msf/core/model/host.rb index 88f6100755..d54ab2e2a4 100644 --- a/lib/msf/core/model/host.rb +++ b/lib/msf/core/model/host.rb @@ -9,6 +9,7 @@ class Host < ActiveRecord::Base has_many :clients, :dependent => :destroy has_many :vulns, :dependent => :destroy has_many :notes, :dependent => :destroy + has_many :loots, :dependent => :destroy, :order => "loots.created_at desc" has_many :service_notes, :through => :services