How to detect that the value of a particular field has been altered?

i.e. with regard to any row in a table? And run a method if such a change had been detected? Thank you.

I’m not sure what you mean. If you want your app to be notified when a row in a table changed, you can leverage the pubsub capabilities postgres provides.

If you want to see what changed in an Ecto changeset, you can use https://hexdocs.pm/ecto/Ecto.Changeset.html#get_change/3

1 Like