ecto_soft_delete v1.0.0 Ecto.SoftDelete.Schema

Contains schema macros to add soft delete fields to a schema

Link to this section Summary

Functions

Adds the deleted_at column to a schema

Link to this section Functions

Link to this macro

soft_delete_schema() (macro)

Adds the deleted_at column to a schema

defmodule User do
  use Ecto.Schema
  import Ecto.SoftDelete.Schema

  schema "users" do
    field :email,           :string
    soft_delete_schema()
  end
end