Perfect. That's exactly what I ended up doing. I added events
(after_insert/update/delete) for each backref.
For each has-many relationship (through a secondary table) I had to
consider the fact that the parent model would exist in session.dirty but
not trigger the "onupdate" action on the
On Wed, May 27, 2020, at 3:57 PM, Colton Allen wrote:
> Hello,
>
> I'm trying to automate a backref update. Basically, when a child model is
> inserted or updated I want the parent model's "updated_at" column to mutate.
> The value should be the approximate time the user-child-model was
Hello,
I'm trying to automate a backref update. Basically, when a child model is
inserted or updated I want the parent model's "updated_at" column to
mutate. The value should be the approximate time the user-child-model was
updated. The updated_at value would not have to match the