View Source PaperTrail.Version (paper_trail v1.1.2)

Link to this section Summary

Functions

Returns the count of all version records in the database

Returns the first version record in the database by :inserted_at

Returns the last version record in the database by :inserted_at

Link to this section Types

@type t() :: %PaperTrail.Version{
  __meta__: term(),
  event: term(),
  id: term(),
  inserted_at: term(),
  item_changes: term(),
  item_id: term(),
  item_type: term(),
  meta: term(),
  origin: term(),
  originator_id: term()
}

Link to this section Functions

Link to this function

changeset(model, params \\ %{})

View Source

Returns the count of all version records in the database

Returns the first version record in the database by :inserted_at

Returns the last version record in the database by :inserted_at