Grim.Schema (Grim v0.3.4) View Source

This module should be used when defining Ecto schemas and provides options that all schemas share.

Example

defmodule Grim.Widgets.Widget do
  use Grim.Schema

  import Ecto.Changeset

  @derive {Phoenix.Param, key: :widget_id}
  schema "widgets" do
    # fields
  end
end