collect invite tokens here, because why not

This commit is contained in:
Maxwell Salzberg 2012-04-03 19:57:19 -07:00
parent 7a37c0f42a
commit f6eec580a0

View file

@ -10,11 +10,13 @@ namespace :migrations do
ShareVisibilityConverter.copy_hidden_share_visibilities_to_users
end
desc 'puts out information about old invited users'
task :invitations => [:environment] do
User.where('username is NULL AND length(email) > 0').select([:id, :email]).find_in_batches do |users|
users.each{|x| puts x.email }
puts "BATCH"
puts "email, invitation_token"
User.where('username is NULL AND length(email) > 0').select([:id, :email, :invitation_token]).find_in_batches do |users|
users.each{|x| puts "#{x.email}, #{x.invitation_token}" }
end
puts "done"
end
desc 'absolutify all existing image references'