Rakefile in leap_salesforce-1.2.1 vs Rakefile in leap_salesforce-1.2.2

- old
+ new

@@ -43,12 +43,13 @@ Pry.start end desc 'Example of cleaning up data' task :remove_contacts do + require 'parallel' contacts = Contact.where first_name: '!null' puts "Deleting #{contacts.size} contacts" - contacts.each do |contact| + Parallel.each(contacts) do |contact| contact.delete print '.' end contacts = Contact.where first_name: '!null' puts "#{contacts.size} contacts left"