Commit 5556fe8f authored by Andreas Brandl's avatar Andreas Brandl

Remove cop ignore and limit attribute

parent df8e46f6
...@@ -11,8 +11,8 @@ class CreateVulnerabilityFindingLinks < ActiveRecord::Migration[6.0] ...@@ -11,8 +11,8 @@ class CreateVulnerabilityFindingLinks < ActiveRecord::Migration[6.0]
create_table :vulnerability_finding_links, if_not_exists: true do |t| create_table :vulnerability_finding_links, if_not_exists: true do |t|
t.timestamps_with_timezone null: false t.timestamps_with_timezone null: false
t.references :vulnerability_occurrence, index: { name: 'finding_links_on_vulnerability_occurrence_id' }, null: false, foreign_key: { on_delete: :cascade } t.references :vulnerability_occurrence, index: { name: 'finding_links_on_vulnerability_occurrence_id' }, null: false, foreign_key: { on_delete: :cascade }
t.text :name, limit: 255 # rubocop:disable Migration/AddLimitToTextColumns t.text :name
t.text :url, limit: 2048, null: false # rubocop:disable Migration/AddLimitToTextColumns t.text :url, null: false
end end
add_text_limit :vulnerability_finding_links, :name, 255 add_text_limit :vulnerability_finding_links, :name, 255
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment