Sha256: 319c1744340b05a5ca0b907b6ce9caec667a543417546b5b8a3017b4c3786c8e

Contents?: true

Size: 504 Bytes

Versions: 43

Compression:

Stored size: 504 Bytes

Contents

class Mdm::Event < ActiveRecord::Base
  #
  # Relations
  #

  belongs_to :host, :class_name => 'Mdm::Host'
  belongs_to :workspace, :class_name => 'Mdm::Workspace'

  #
  # Scopes
  #

  scope :flagged, where(:critical => true, :seen => false)
  scope :module_run, where(:name => 'module_run')

  #
  # Serializations
  #

  serialize :info, MetasploitDataModels::Base64Serializer.new

  #
  # Validations
  #

  validates :name, :presence => true

  ActiveSupport.run_load_hooks(:mdm_event, self)
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
metasploit_data_models-0.15.2 app/models/mdm/event.rb
metasploit_data_models-0.15.1-java app/models/mdm/event.rb
metasploit_data_models-0.15.1 app/models/mdm/event.rb
metasploit_data_models-0.15.0 app/models/mdm/event.rb
metasploit_data_models-0.14.4-java app/models/mdm/event.rb
metasploit_data_models-0.14.4 app/models/mdm/event.rb
metasploit_data_models-0.14.3-java app/models/mdm/event.rb
metasploit_data_models-0.14.3 app/models/mdm/event.rb
metasploit_data_models-0.14.2-java app/models/mdm/event.rb
metasploit_data_models-0.14.2 app/models/mdm/event.rb
metasploit_data_models-0.14.1-java app/models/mdm/event.rb
metasploit_data_models-0.14.1 app/models/mdm/event.rb
metasploit_data_models-0.12.1-java app/models/mdm/event.rb
metasploit_data_models-0.12.1 app/models/mdm/event.rb
metasploit_data_models-0.12.0-java app/models/mdm/event.rb
metasploit_data_models-0.12.0 app/models/mdm/event.rb
metasploit_data_models-0.11.2-java app/models/mdm/event.rb
metasploit_data_models-0.11.2 app/models/mdm/event.rb
metasploit_data_models-0.7.0 app/models/mdm/event.rb
metasploit_data_models-0.7.0-java app/models/mdm/event.rb