Skip to content

Instantly share code, notes, and snippets.

@jumph4x
Created November 30, 2012 04:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jumph4x/4173814 to your computer and use it in GitHub Desktop.
Save jumph4x/4173814 to your computer and use it in GitHub Desktop.
Retroactive fix for Spree #2263
class DowncaseUserKeys < ActiveRecord::Migration
def up
Spree::User.find_each do |user|
user.update_attributes :email => user.email.downcase
end
end
def down
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment