Collect. Schema
(Collect v0.1.3)
Copy Markdown
Ecto.Schema helper.
Summary
Functions
Macro that adds the default document table columns to an Ecto.Schema.
Functions
Macro that adds the default document table columns to an Ecto.Schema.
Example
use Ecto.Schema
import Collect.Schema
@primary_key false
schema "documents" do
default_collect_fields()
# Configured fields:
field(:resource_id, :binary)
...
end