summaryrefslogtreecommitdiff
path: root/app/models/vulnerability.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/vulnerability.rb')
-rw-r--r--app/models/vulnerability.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/app/models/vulnerability.rb b/app/models/vulnerability.rb
new file mode 100644
index 00000000000..71d0b1db410
--- /dev/null
+++ b/app/models/vulnerability.rb
@@ -0,0 +1,17 @@
+# frozen_string_literal: true
+
+# Placeholder class for model that is implemented in EE
+# It reserves '+' as a reference prefix, but the table does not exist in FOSS
+class Vulnerability < ApplicationRecord
+ include IgnorableColumns
+
+ def self.reference_prefix
+ '+'
+ end
+
+ def self.reference_prefix_escaped
+ '&plus;'
+ end
+end
+
+Vulnerability.prepend_if_ee('EE::Vulnerability')