Adding an additional sessions mapping to workspaces.

git-svn-id: file:///home/svn/framework3/trunk@12327 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Tod Beardsley 2011-04-15 20:36:10 +00:00
parent b536d25b38
commit f386a2c587
1 changed files with 1 additions and 0 deletions

View File

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