Sha256: 15562afd0fa924d2bbdc1efcd49c24496df5bafcf53e8659253ac58ddd35ccb6

Contents?: true

Size: 823 Bytes

Versions: 45

Compression:

Stored size: 823 Bytes

Contents

# Join model between {Mdm::Host} and {Mdm::Task} that signifies that the {#task} found the {#host}.
class Mdm::TaskHost < ActiveRecord::Base
  #
  # Associations
  #

  # The {Mdm::Host} found by {#task}.
  belongs_to :host,
             class_name: 'Mdm::Host',
             inverse_of: :task_hosts

  # An {Mdm::Task} that found {#host}.
  belongs_to :task,
             class_name: 'Mdm::Task',
             inverse_of: :task_hosts

  #
  # Attributes
  #

  # @!attribute created_at
  #   When this task host was created.
  #
  #   @return [DateTime]

  # @!attribute updated_at
  #   The last time this task host was updated.
  #
  #   @return [DateTime]

  #
  # Validations
  #

  validates :host_id,
            :uniqueness => {
                :scope => :task_id
            }

  Metasploit::Concern.run(self)
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
metasploit_data_models-3.0.10 app/models/mdm/task_host.rb
metasploit_data_models-3.0.9 app/models/mdm/task_host.rb
metasploit_data_models-3.0.8 app/models/mdm/task_host.rb
metasploit_data_models-3.0.7 app/models/mdm/task_host.rb
metasploit_data_models-3.0.6 app/models/mdm/task_host.rb
metasploit_data_models-3.0.5 app/models/mdm/task_host.rb
metasploit_data_models-2.0.17 app/models/mdm/task_host.rb
metasploit_data_models-3.0.4 app/models/mdm/task_host.rb
metasploit_data_models-3.0.2 app/models/mdm/task_host.rb
metasploit_data_models-3.0.1 app/models/mdm/task_host.rb
metasploit_data_models-3.0.0 app/models/mdm/task_host.rb
metasploit_data_models-2.0.16 app/models/mdm/task_host.rb
metasploit_data_models-2.0.15 app/models/mdm/task_host.rb
metasploit_data_models-2.0.14 app/models/mdm/task_host.rb
metasploit_data_models-2.0.13 app/models/mdm/task_host.rb
metasploit_data_models-2.0.12 app/models/mdm/task_host.rb
metasploit_data_models-2.0.11 app/models/mdm/task_host.rb
metasploit_data_models-2.0.10 app/models/mdm/task_host.rb
metasploit_data_models-2.0.9 app/models/mdm/task_host.rb
metasploit_data_models-2.0.8 app/models/mdm/task_host.rb