Files
metasploit-gs/lib/msf/core/model/session.rb
T
James Lee 86bca6438f add a routes table; delete each comm's routes when flushing
git-svn-id: file:///home/svn/framework3/trunk@12377 4d416f70-5f16-0410-b530-b9f4589650da
2011-04-20 17:49:27 +00:00

20 lines
365 B
Ruby

module Msf
class DBManager
class Session < ActiveRecord::Base
belongs_to :host
has_one :workspace, :through => :host
has_many :events, :class_name => "SessionEvent", :order => "created_at"
has_many :routes
named_scope :alive, :conditions => "closed_at IS NULL"
named_scope :dead, :conditions => "closed_at IS NOT NULL"
serialize :datastore
end
end
end