Sha256: 95d7698163a64953023a065f8a3ec02c5e223e5d1fd63bf33dc7ae588478a7b8

Contents?: true

Size: 760 Bytes

Versions: 2

Compression:

Stored size: 760 Bytes

Contents

class MetasploitDataModels::AutomaticExploitation::MatchSet < ActiveRecord::Base

  has_many :runs,
           class_name: "MetasploitDataModels::AutomaticExploitation::Run",
           inverse_of: :match_set

  has_many :matches,
           class_name: "MetasploitDataModels::AutomaticExploitation::Match",
           inverse_of: :match_set,
           dependent: :destroy

  belongs_to :workspace,
             inverse_of: :automatic_exploitation_match_sets,
             class_name: "Mdm::Workspace"

  belongs_to :user,
             inverse_of: :automatic_exploitation_match_sets,
             class_name: "Mdm::User"


  validates :user,
            presence: true

  validates :workspace,
            presence: true


  Metasploit::Concern.run(self)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
metasploit_data_models-1.0.0.pre.rails.pre.4.0b app/models/metasploit_data_models/automatic_exploitation/match_set.rb
metasploit_data_models-1.0.0.pre.rails.pre.4.0a app/models/metasploit_data_models/automatic_exploitation/match_set.rb