title: How trigger counter cache after destroy_all
body: <p>I have to destroy a big list of data, and update my counter cache, but when I user destroy_all counter cache is called at every delete. Is there any way to update my counter only after the destroy_all?</p>
  
  <p>I already tried ActiveModel Callbacks, but they are the same as destroy_all, called one time for each record.</p>
  
  <pre class="lang-rb prettyprint-override"><code>  belongs_to :research, counter_cache: :total_participants
  </code></pre>
  
  <pre class="lang-rb prettyprint-override"><code>  ResearchParticipant.from_research(@research_id).destroy_all
  </code></pre>