Tub v0.5.1 Tub.Ecto.Schema View Source

Generate Ecto Schema

Usage:

fields = [

f1: :string,
f2: :integer,
f3: :utc_datetime

] Tub.Ecto.Schema.gen(Acme.Block, “block”, fields)

Link to this section Summary

Link to this section Functions

Link to this function gen(mod_name, schema_name, fields, arg, doc \\ false) View Source