Skip to content

Commit

Permalink
Merge branch 'preload' into get_by
Browse files Browse the repository at this point in the history
  • Loading branch information
Danwhy committed Oct 31, 2018
2 parents f03c4b3 + 2436fe6 commit 58665fa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/alog.ex
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ defmodule Alog do
Alog expects your `Repo` to belong to the same base module as the schema.
So if your schema is `MyApp.User`, or `MyApp.Accounts.User`, your Repo should be `MyApp.Repo`.
Any schema that uses Alog must include the fields `:deleted` of type `:boolean` and default false,
and `:entry_id` of type `:string`.
field(:deleted, :boolean, default: false)
field(:entry_id, :string)
"""

@callback insert(map()) :: {:ok, Ecto.Schema.t()} | {:error, Ecto.Changeset.t()}
Expand Down

0 comments on commit 58665fa

Please sign in to comment.