collect invite tokens here, because why not
This commit is contained in:
parent
7a37c0f42a
commit
f6eec580a0
1 changed files with 5 additions and 3 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Reference in a new issue