Open tmjoen opened 5 years ago
Tie schemas into this, so we get an audit log for items we need this on.
For instance, a page.
page
On save/update, add current user, time and action to the papertrail.
Table papertrail
papertrail
field :action # [:create, :update, :delete, :auth] field :data # :jsonb field :creator timestamps()
:data could be
:data
%{ schema: Brando.Pages.Page, id: 4, title: "About" }
https://github.com/bitcrowd/carbonite
Tie schemas into this, so we get an audit log for items we need this on.
For instance, a
page
.On save/update, add current user, time and action to the papertrail.
Table
papertrail
:data
could be