From 961c9998b8d4d9148f6dee8c69e6e54053994e09 Mon Sep 17 00:00:00 2001 From: Liam Date: Mon, 3 Jun 2024 10:12:42 -0400 Subject: [PATCH] Add missing constraint conversion to artist links --- lib/philomena/artist_links/artist_link.ex | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/philomena/artist_links/artist_link.ex b/lib/philomena/artist_links/artist_link.ex index b8878951..4116e5e3 100644 --- a/lib/philomena/artist_links/artist_link.ex +++ b/lib/philomena/artist_links/artist_link.ex @@ -58,6 +58,9 @@ defmodule Philomena.ArtistLinks.ArtistLink do |> parse_uri() |> put_verification_code() |> put_next_check_at() + |> unique_constraint([:uri, :tag_id, :user_id], + name: :index_artist_links_on_uri_tag_id_user_id + ) end def validate_category(changeset) do