diff options
author | Avielle Wolfe <awolfe@gitlab.com> | 2019-09-09 19:23:53 -0400 |
---|---|---|
committer | Avielle Wolfe <awolfe@gitlab.com> | 2019-09-09 21:02:31 -0400 |
commit | 53ecf801a007c6ae12f060adfd6d9fb1d09c358a (patch) | |
tree | 34b7cd2eb192175f2107aeb37b54d428064c83c8 | |
parent | 0bb19358a9a5b96d397b7379863dec91d300a6fc (diff) | |
download | gitlab-ce-update-old-vulnerability-fingerprints.tar.gz |
Remove unnecessary return of objectupdate-old-vulnerability-fingerprints
`each_with_object` does this for us. how nice!
-rw-r--r-- | db/post_migrate/20190726141000_update_vulnerability_fingerprints.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/db/post_migrate/20190726141000_update_vulnerability_fingerprints.rb b/db/post_migrate/20190726141000_update_vulnerability_fingerprints.rb index 958340a3fb2..4bff2a1aa68 100644 --- a/db/post_migrate/20190726141000_update_vulnerability_fingerprints.rb +++ b/db/post_migrate/20190726141000_update_vulnerability_fingerprints.rb @@ -14,8 +14,6 @@ class UpdateVulnerabilityFingerprints < ActiveRecord::Migration[5.2] Occurrence.where_might_have_feedback.find_in_batches(batch_size: 500) do |occurrences| occurrences_with_fingerprints = occurrences.each_with_object({}) do |occurrence, map| map[occurrence.old_fingerprint] = occurrence - - map end Feedback.where(project_fingerprint: occurrences_with_fingerprints.keys).each do |feedback| |