Sha256: c57a97dad5867859876711bddf595ce265aafb41ce74eb61f2b706e444409567

Contents?: true

Size: 441 Bytes

Versions: 2

Compression:

Stored size: 441 Bytes

Contents

class Mdm::VulnDetail < ActiveRecord::Base
  
  #
  # Associations
  #

  belongs_to :nexpose_console,
             class_name: 'Mdm::NexposeConsole',
             inverse_of: :vuln_details

  belongs_to :vuln,
             class_name: 'Mdm::Vuln',
             counter_cache: :vuln_detail_count,
             inverse_of: :vuln_details
  
  #
  # Validations
  #

  validates :vuln_id, :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/mdm/vuln_detail.rb
metasploit_data_models-1.0.0.pre.rails.pre.4.0a app/models/mdm/vuln_detail.rb