This project is archived and is in readonly mode.

#6787 new
Filipe Giusti

counter_cache isn't decremented when it should

Reported by Filipe Giusti | May 18th, 2011 @ 02:19 AM

counter_cache isn't decremented when a model with a self referential association is destroyed.

I've attached a test case that should speak for itself. It fails on 3.0.7 and master.

No comments found

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Pages