Add missing constraint conversion to artist links

This commit is contained in:
Liam 2024-06-03 10:12:42 -04:00
parent 9122ba0829
commit 961c9998b8

View file

@ -58,6 +58,9 @@ defmodule Philomena.ArtistLinks.ArtistLink do
|> parse_uri() |> parse_uri()
|> put_verification_code() |> put_verification_code()
|> put_next_check_at() |> put_next_check_at()
|> unique_constraint([:uri, :tag_id, :user_id],
name: :index_artist_links_on_uri_tag_id_user_id
)
end end
def validate_category(changeset) do def validate_category(changeset) do