summaryrefslogtreecommitdiff
path: root/db/migrate/20190929180751_create_vulnerabilities.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20190929180751_create_vulnerabilities.rb')
-rw-r--r--db/migrate/20190929180751_create_vulnerabilities.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/db/migrate/20190929180751_create_vulnerabilities.rb b/db/migrate/20190929180751_create_vulnerabilities.rb
index aea018c5979..e4c53b1063a 100644
--- a/db/migrate/20190929180751_create_vulnerabilities.rb
+++ b/db/migrate/20190929180751_create_vulnerabilities.rb
@@ -8,6 +8,7 @@ class CreateVulnerabilities < ActiveRecord::Migration[5.2]
DOWNTIME = false
+ # rubocop:disable Migration/AddLimitToTextColumns
def change
create_table :vulnerabilities do |t|
t.bigint "milestone_id"
@@ -30,10 +31,11 @@ class CreateVulnerabilities < ActiveRecord::Migration[5.2]
t.integer "confidence", limit: 2, null: false # auto-calculated as lowest-confidence finding, but overrideable
t.boolean "severity_overridden", default: false
t.boolean "confidence_overridden", default: false
- t.string "title", limit: 255, null: false
+ t.string "title", limit: 255, null: false # rubocop:disable Migration/PreventStrings
t.text "title_html", null: false
t.text "description"
t.text "description_html"
end
end
+ # rubocop:enable Migration/AddLimitToTextColumns
end