Commit 34793f1c44a347844ab8838b1aae393b32e7aed3
1 parent
f7f4d6b8
Exists in
master
and in
1 other branch
Update migration to generate fingerprint in best system
See #557
Showing
1 changed file
with
4 additions
and
2 deletions
Show diff stats
db/migrate/20121005142110_regenerate_err_fingerprints.rb
@@ -10,8 +10,10 @@ class RegenerateErrFingerprints < Mongoid::Migration | @@ -10,8 +10,10 @@ class RegenerateErrFingerprints < Mongoid::Migration | ||
10 | :environment => err.environment, | 10 | :environment => err.environment, |
11 | :api_key => err.app.api_key | 11 | :api_key => err.app.api_key |
12 | } | 12 | } |
13 | - fingerprint = Digest::SHA1.hexdigest(fingerprint_source.to_s) | ||
14 | - err.update_attribute(:fingerprint, fingerprint) | 13 | + err.update_attribute( |
14 | + :fingerprint, | ||
15 | + Fingerprint.generate(err.notices.first, err.app.api_key) | ||
16 | + ) | ||
15 | end | 17 | end |
16 | end | 18 | end |
17 | end | 19 | end |