Sometimes I get (Ecto.StaleEntryError) attempted to update a stale struct
when trying to update record.
I haven't found any recipe to avoid this in Ecto's docs, so what should I do to avoid this?
P.S. I'm using PostgreSQL 9.6 via Postgrex, Ecto 2.1.3.