add loots to host model

git-svn-id: file:///home/svn/framework3/trunk@9239 4d416f70-5f16-0410-b530-b9f4589650da
unstable
James Lee 2010-05-07 06:37:00 +00:00
parent 2b8ffee307
commit ef7c628ff8
1 changed files with 1 additions and 0 deletions

View File

@ -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