From a1e2122ce44f9ac842795ab122737ccb2ba6732c Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Sun, 10 Oct 2021 08:29:25 -0400 Subject: [PATCH] Add on_replace to sources --- lib/philomena/images/image.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/philomena/images/image.ex b/lib/philomena/images/image.ex index a7ae4f3c..9a652f18 100644 --- a/lib/philomena/images/image.ex +++ b/lib/philomena/images/image.ex @@ -44,7 +44,7 @@ defmodule Philomena.Images.Image do many_to_many :locked_tags, Tag, join_through: "image_tag_locks", on_replace: :delete has_one :intensity, ImageIntensity has_many :galleries, through: [:gallery_interactions, :image] - has_many :sources, Source + has_many :sources, Source, on_replace: :delete field :image, :string field :image_name, :string