uuid_helper_module v0.0.2 UuidHelperModule.UUIDSchema
Contains schema macros to add uuid fields to a schema
Link to this section Summary
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 UuidHelperModule.UUIDSchema
schema "users" do
field :email, :string
uuid_schema()
end
end