class RegenerateErrFingerprints < Mongoid::Migration
  def self.up
    Err.all.each do |err|
      if err.notices.any? && err.problem
        err.update_attribute(
          :fingerprint,
          Fingerprint.generate(err.notices.first, err.app.api_key)
        )
      end
    end
  end

  def self.down
  end
end

class RegenerateErrFingerprints < Mongoid::Migration
  def self.up
    Err.all.each do |err|
      if err.notices.any? && err.problem
        err.update_attribute(
          :fingerprint,
          Fingerprint::Sha1.generate(err.notices.first, err.app.api_key)
        )
      end
    end
  end

  def self.down
  end
end

Fix fingerprinting migration as it is refactored
Fix fingerprinting migration as it is refactored

Commit https://github.com/pinglamb/errbit/commit/da3946bef7921e5a6df0d55fc2f556b641884ada refactored fingerprinting into a Fingerprint module, updated the migration for that