Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (12 sloc) 262 Bytes
defmodule SoftDelete.Schema do
@moduledoc """
Module to be `use`-d in place of `Ecto.Schema` for all schemas.
"""
defmacro __using__(_) do
quote do
use Ecto.Schema
import Ecto.Changeset
@schema_prefix "filtered"
end
end
end
You can’t perform that action at this time.