class MetasploitDataModels::AutomaticExploitation::Run < ActiveRecord::Base attr_accessible :user_id, :workspace_id, :match_set_id # # ASSOCIATIONS # has_many :match_results, class_name:'MetasploitDataModels::AutomaticExploitation::MatchResult', inverse_of: :run, dependent: :destroy belongs_to :match_set, class_name: 'MetasploitDataModels::AutomaticExploitation::MatchSet', inverse_of: :runs belongs_to :user, class_name: "Mdm::User", inverse_of: :automatic_exploitation_runs belongs_to :workspace, class_name: "Mdm::Workspace", inverse_of: :automatic_exploitation_runs Metasploit::Concern.run(self) end