diff --git a/lib/ronin/db/url.rb b/lib/ronin/db/url.rb index 62c428f8..1c41e1db 100644 --- a/lib/ronin/db/url.rb +++ b/lib/ronin/db/url.rb @@ -116,6 +116,14 @@ class URL < ActiveRecord::Base # @return [Array] has_many :credentials, through: :web_credentials + # @!attribute [rw] vulnerabilities + # The vulnerabilities which reference the URL. + # + # @return [Array] + # + # @since 0.2.0 + has_many :vulnerabilities, dependent: :destroy + # # Searches for all URLs using HTTP. # @@ -492,3 +500,4 @@ def self.normalized_path(uri) require 'ronin/db/url_query_param_name' require 'ronin/db/url_query_param' require 'ronin/db/web_credential' +require 'ronin/db/vulnerability'