Module: Ronin::DB::Model
- Included in:
- ASN, Address, Advisory, Arch, Cert, CertName, CertOrganization, CertSubjectAltName, Credential, DNSQuery, DNSRecord, EmailAddress, HTTPHeaderName, HTTPQueryParam, HTTPQueryParamName, HTTPRequest, HTTPRequestHeader, HTTPResponse, HTTPResponseHeader, HostName, HostNameIPAddress, IPAddressMACAddress, Note, OS, OSGuess, OpenPort, Organization, OrganizationCustomer, OrganizationDepartment, OrganizationEmailAddress, OrganizationHostName, OrganizationIPAddress, OrganizationMember, OrganizationPhoneNumber, OrganizationStreetAddress, Password, Person, PersonalConnection, PersonalEmailAddress, PersonalPhoneNumber, PersonalStreetAddress, PhoneNumber, Port, Service, ServiceCredential, Software, SoftwareVendor, StreetAddress, URL, URLQueryParam, URLQueryParamName, URLScheme, UserName, Vulnerability, WebCredential, WebVuln
- 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
-
.included(model) ⇒ Object
private
Sets the models
table_name_prefix
toronin_
.
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_
.
35 36 37 |
# File 'lib/ronin/db/model.rb', line 35 def self.included(model) model.table_name_prefix = 'ronin_' end |