Commit 34793f1c44a347844ab8838b1aae393b32e7aed3

Authored by Cyril Mougel
1 parent f7f4d6b8
Exists in master and in 1 other branch production

Update migration to generate fingerprint in best system

See #557
db/migrate/20121005142110_regenerate_err_fingerprints.rb
... ... @@ -10,8 +10,10 @@ class RegenerateErrFingerprints < Mongoid::Migration
10 10 :environment => err.environment,
11 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 17 end
16 18 end
17 19 end
... ...