diff options
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/101_add_hash_to_info_request.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/101_add_hash_to_info_request.rb b/db/migrate/101_add_hash_to_info_request.rb index 20608aac1..e21bf0989 100644 --- a/db/migrate/101_add_hash_to_info_request.rb +++ b/db/migrate/101_add_hash_to_info_request.rb @@ -6,7 +6,7 @@ class AddHashToInfoRequest < ActiveRecord::Migration # Create the missing events for requests already sent InfoRequest.find(:all).each do |info_request| - info_request.idhash = Digest::SHA1.hexdigest(info_request.id.to_s + MySociety::Config.get("INCOMING_EMAIL_SECRET", 'dummysecret'))[0,8] + info_request.idhash = Digest::SHA1.hexdigest(info_request.id.to_s + Configuration::incoming_email_secret)[0,8] info_request.save! puts info_request.idhash end |