Commit b8a2baf9 authored by Rob Colbert's avatar Rob Colbert

convert all emails to lowercase

parent 0f62506a
# frozen_string_literal: true
task fix_email_case: 'gabsocial:fix_email_case'
namespace :gabsocial do
desc 'Convert emails to lowercase'
task :fix_email_case => :environment do
User.select(:id, :email).all.each do |user|
user.update_column :email, user.email.downcase
puts(user.id)
end
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment