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