X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/11cc4a5e601dd288d601e6e35a72d159062f18b5..0d650217f4e805d7d40314bd471be0e53f0fde29:/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 1e6a19c21..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[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