Commit ca82429093fb69c28f1fe6cbb3489d63aed02dea
1 parent
1ddf7150
Exists in
master
and in
1 other branch
Remove unused hash
[fixes #636]
Showing
1 changed file
with
1 additions
and
9 deletions
Show diff stats
db/migrate/20121005142110_regenerate_err_fingerprints.rb
| 1 | class RegenerateErrFingerprints < Mongoid::Migration | 1 | class RegenerateErrFingerprints < Mongoid::Migration |
| 2 | def self.up | 2 | def self.up |
| 3 | Err.all.each do |err| | 3 | Err.all.each do |err| |
| 4 | - if err.notices.any? | ||
| 5 | - fingerprint_source = { | ||
| 6 | - :backtrace => err.notices.first.backtrace_id, | ||
| 7 | - :error_class => err.error_class, | ||
| 8 | - :component => err.component, | ||
| 9 | - :action => err.action, | ||
| 10 | - :environment => err.environment, | ||
| 11 | - :api_key => err.app.api_key | ||
| 12 | - } | 4 | + if err.notices.any? && err.problem |
| 13 | err.update_attribute( | 5 | err.update_attribute( |
| 14 | :fingerprint, | 6 | :fingerprint, |
| 15 | Fingerprint.generate(err.notices.first, err.app.api_key) | 7 | Fingerprint.generate(err.notices.first, err.app.api_key) |