destroying.rb revision f25585170335aa8c73dc2775edb44979bbfb9116
# Only use `destroy_asynchronously` if you want to destroy a repository.
# It prepares the deletion by setting a flag, which enables the deletion
# of its ontologies.
Rails.logger.info "Destroy #{self.class} #{self} (id: #{id})"
rescue StandardError => e
self.destroying = false
save!
end
end
Rails.logger.info "Mark #{self.class} #{self} (id: #{id}) as is_destroying"
self.is_destroying = true
save!
end
end
end