Module: Ronin::DB::Model

Included in:
ASN, Address, Advisory, Arch, Credential, EmailAddress, HTTPHeaderName, HTTPQueryParam, HTTPQueryParamName, HTTPRequest, HTTPRequestHeader, HTTPResponse, HTTPResponseHeader, HostName, HostNameIPAddress, IPAddressMACAddress, OS, OSGuess, OpenPort, Organization, Password, Port, Service, ServiceCredential, Software, SoftwareVendor, URL, URLQueryParam, URLQueryParamName, URLScheme, UserName, Vulnerability, WebCredential
Defined in:
lib/ronin/db/model.rb,
lib/ronin/db/model/has_name.rb,
lib/ronin/db/model/importable.rb,
lib/ronin/db/model/has_unique_name.rb,
lib/ronin/db/model/last_scanned_at.rb

Overview

Mixin for all ronin-db-activerecord models.

Defined Under Namespace

Modules: HasName, HasUniqueName, Importable, LastScannedAt

Class Method Summary collapse

Class Method Details

.included(model) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Sets the models table_name_prefix to ronin_.

Parameters:

  • model (Class<ActiveRecord::Base>)

    The ActiveRecord model class which is including Ronin::DB::Model.



35
36
37
# File 'lib/ronin/db/model.rb', line 35

def self.included(model)
  model.table_name_prefix = 'ronin_'
end