uuid_helper_module v0.0.1 UuidHelperModule.UUIDSchema

Contains schema macros to add uuid fields to a schema

Link to this section Summary

Functions

Generates and return uuid

Adds the uuid column to a schema

Link to this section Functions

Link to this function

generate_uuid()

Generates and return uuid

Link to this macro

uuid_schema() (macro)

Adds the uuid column to a schema

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