X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2f9291ba5764fe104264ae7e3b6a361e11212e8b..b17517e02cc9580b89a220d926292166aed25b9b:/db/migrate/20120219161649_add_user_image_fingerprint.rb diff --git a/db/migrate/20120219161649_add_user_image_fingerprint.rb b/db/migrate/20120219161649_add_user_image_fingerprint.rb index c3dc5c51a..3610281bc 100644 --- a/db/migrate/20120219161649_add_user_image_fingerprint.rb +++ b/db/migrate/20120219161649_add_user_image_fingerprint.rb @@ -1,13 +1,6 @@ -class AddUserImageFingerprint < ActiveRecord::Migration[5.0] +class AddUserImageFingerprint < ActiveRecord::Migration[4.2] def up add_column :users, :image_fingerprint, :string, :null => true - - User.where("image_file_name IS NOT NULL").find_each do |user| - image = user.image - - user.image_fingerprint = image.generate_fingerprint(image) - user.save! - end end def down