Skip to content


Timestampable and Aggregate_column on the same table #750

andrea-chris opened this Issue · 0 comments

1 participant


Everytime aggregate_column behavior update main table timestampable behavior update updated_at column. This could be the expected result but I have some situations where it would be better if the updated_at column keeps unchanged.

My idea is to add a parameter to aggregate_column behavior like "timestampable_keep_unchanged" and than check if it's setted to true and if the table has timestampable behavior. If so it will add a call to keepUpdateUnchanged method (from timestampable behavior) from inside update method (from aggregate_column).

I've written some line of code, do you think it could be useful? (Well, it surely will be useful to me :D )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.