Created
November 30, 2012 04:47
-
-
Save jumph4x/4173814 to your computer and use it in GitHub Desktop.
Retroactive fix for Spree #2263
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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