add loots to host model
git-svn-id: file:///home/svn/framework3/trunk@9239 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
2b8ffee307
commit
ef7c628ff8
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue