ZennerIoT / ex_audit

Ecto auditing library that transparently tracks changes and can revert them.
MIT License
368 stars 110 forks source link

Support schemas with primary keys not named `id` #110

Open bencates opened 11 months ago

bencates commented 11 months ago

Prior to this the primary key of a schema was assumed to be named id. This switches to using the entity_schema.__schema__(:primary_key) function provided by Ecto to support tracking schemas which use aIt non-default field name.

tspenov commented 1 week ago

@narrowtux Any plans to merge this PR ?