Add on_replace to sources

This commit is contained in:
byte[] 2021-10-10 08:29:25 -04:00 committed by Luna D
parent a1f98e95a1
commit a1e2122ce4
No known key found for this signature in database
GPG key ID: 4B1C63448394F688

View file

@ -44,7 +44,7 @@ defmodule Philomena.Images.Image do
many_to_many :locked_tags, Tag, join_through: "image_tag_locks", on_replace: :delete many_to_many :locked_tags, Tag, join_through: "image_tag_locks", on_replace: :delete
has_one :intensity, ImageIntensity has_one :intensity, ImageIntensity
has_many :galleries, through: [:gallery_interactions, :image] has_many :galleries, through: [:gallery_interactions, :image]
has_many :sources, Source has_many :sources, Source, on_replace: :delete
field :image, :string field :image, :string
field :image_name, :string field :image_name, :string