Calla Jiyoung Lee

Joined

50 Experience
0 Lessons Completed
0 Questions Solved

Activity

I created 2 tables, Baby and BabyMonth. The BabyMonth has association with Month as well.
There are associations between them that Baby has_many BabyMonths.
After I soft_delete all baby_months by doing baby.baby_months.each(&:soft_delete), it properly updated database.
However, when I update the object by calling baby.baby_months.find_by(month: month).update, it updates the database, but does not update the result of baby.baby_months.
Is this expected behavior?