Current section

Files

Jump to
waffle_ecto lib waffle_ecto.ex
Raw

lib/waffle_ecto.ex

defmodule Waffle.Ecto do
@moduledoc """
Waffle.Ecto provides an integration with Waffle and Ecto.
Waffle attachments should be stored in a string column, with a name indicative of the attachment.
create table :users do
add :avatar, :string
end
## How to add `waffle_ecto` to your project
* add [Schema](Waffle.Ecto.Schema.html) to the model
* configure [Definition](Waffle.Ecto.Definition.html) for uploader
"""
@type t :: %{file_name: String.t, updated_at: DateTime.t}
end