From f386a2c5873523caeca94d8f0be090af92a83ba0 Mon Sep 17 00:00:00 2001 From: Tod Beardsley Date: Fri, 15 Apr 2011 20:36:10 +0000 Subject: [PATCH] Adding an additional sessions mapping to workspaces. git-svn-id: file:///home/svn/framework3/trunk@12327 4d416f70-5f16-0410-b530-b9f4589650da --- lib/msf/core/model/workspace.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/msf/core/model/workspace.rb b/lib/msf/core/model/workspace.rb index 167312c126..8a3c336e69 100644 --- a/lib/msf/core/model/workspace.rb +++ b/lib/msf/core/model/workspace.rb @@ -19,6 +19,7 @@ class Workspace < ActiveRecord::Base has_many :creds, :dependent => :destroy has_many :imported_creds, :dependent => :destroy has_many :exploited_hosts, :through => :hosts + has_many :sessions, :through => :hosts validates_uniqueness_of :name