~sbaildon/ecto-ulid

8b97ec840520e00f9f44ff0d635d0c284fcc6f91 — Sean Baildon 1 year, 10 months ago a7e298f master
use ecto.type
1 files changed, 1 insertions(+), 6 deletions(-)

M lib/ecto/ulid.ex
M lib/ecto/ulid.ex => lib/ecto/ulid.ex +1 -6
@@ 2,12 2,7 @@ defmodule Ecto.ULID do
  @moduledoc """
  An Ecto type for ULID strings.
  """

  # replace with `use Ecto.Type` after Ecto 3.2.0 is required
  @behaviour Ecto.Type
  # and remove both of these functions
  def embed_as(_), do: :self
  def equal?(term1, term2), do: term1 == term2
  use Ecto.Type

  @doc """
  The underlying schema type.