mirror of
https://github.com/internetee/registry.git
synced 2025-07-02 17:23:34 +02:00
Story#120259603 - git uses right branch last commit message
This commit is contained in:
parent
a7be49203c
commit
35a67ce439
1 changed files with 1 additions and 2 deletions
|
@ -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?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue