mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
Add on_replace to sources
This commit is contained in:
parent
a1f98e95a1
commit
a1e2122ce4
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue