Versioned.Schema (Versioned v0.1.0) View Source

Enhances Ecto.Schema modules to track a full history of changes.

Example

defmodule MyApp.Car do
  use Versioned.Schema

  versioned_schema "cars" do
    field :name, :string
    has_many :people, MyApp.Person, versioned: true
  end
end

Link to this section Summary

Functions

Convert a list of ast lines from the main schema into ast lines to be used for the version schema.

Create a versioned schema.

Link to this section Functions

Link to this macro

version_before_compile(env)

View Source (macro)
Link to this macro

version_lines(lines_ast)

View Source (macro)

Convert a list of ast lines from the main schema into ast lines to be used for the version schema.

Link to this macro

versioned_schema(source, list)

View Source (macro)

Create a versioned schema.