Story#120259603 - git uses right branch last commit message

This commit is contained in:
Vladimir Krylov 2016-05-27 14:20:41 +03:00
parent a7be49203c
commit 35a67ce439

View file

@ -188,10 +188,9 @@ class Contact < ActiveRecord::Base
next if DomainVersion.where("created_at > ?", Time.now - 6.months).where(ver_scope.join(" OR ")).any?
next if contact.domains_present?
# contact.destroy
contact.destroy
counter.next
STDOUT << "#{Time.zone.now.utc} Contact.destroy_orphans: ##{contact.id} (#{contact.name})\n"
p "#{Time.zone.now.utc} Contact.destroy_orphans: ##{contact.id} (#{contact.name})\n"
end
STDOUT << "#{Time.zone.now.utc} - Successfully destroyed #{counter} orphaned contacts\n" unless Rails.env.test?