stefankroes / ancestry

Organise ActiveRecord model into a tree structure
MIT License
3.72k stars 458 forks source link

Counter cache column #619

Closed kbrock closed 1 year ago

kbrock commented 1 year ago

code was pulled out of #600

May merge with #618 - but at this time, refactoring the code and fixing the counters that get askew seem like different problems

kbrock commented 1 year ago

@kshnurov A few questions:

I did notice that ancestry_callbacks_disabled? was not checked in the increase_parent_counter_cache. Not sure if these are the root of #618. Will probably move from this PR and put into that one since it is more of a potential bug fix rather than a refactor.

kbrock commented 1 year ago

update: