Whatwasit v0.1.0 Whatwasit.Schema

Support versions for Ecto Schema models.

Adds prepare_version and versions functions to your models.

Summary

Functions

Helper function to add Version record on update and delete

Helper function to return a list of versioned records

Functions

prepare_version(changeset, opts)

Helper function to add Version record on update and delete.

Inserts the version record.

versions(schema, opts \\ [])

Helper function to return a list of versioned records.