rails callbacks not getting executed
问题 For my life I trying to find out why are my callbacks are not getting executed sometimes (you heard it right sometimes as most of time it works out of the box) All I have is parent/child relations between 2 models upon creation of child record all I'm doing in after_create callback is update(accumulate all child amount in parent field to avoid heavy query at run time) the amount field in parent table/ model record Parent model( Payout ) Child model is ( Sales Transaction ) Payout has_many