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