uuid_helper v0.0.1 UuidHelper.UUIDSchema

Contains schema macros to add uuid_helper fields to a schema

Link to this section Summary

Functions

Generates and return uuid_helper

Adds the uuid_helper column to a schema

Link to this section Functions

Link to this function

generate_uuid_helper()

Generates and return uuid_helper

Link to this macro

uuid_helper_schema() (macro)

Adds the uuid_helper column to a schema

defmodule User do
  use Ecto.Schema
  import Trafi.ModelHelpers.UUID.Schema
  schema "users" do
    field :email,           :string
    uuid_helper_schema()
  end
end