mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-01-19 22:27:59 +01:00
fix alias replacement (philomena-dev/philomena#22)
This commit is contained in:
parent
18a571e7d1
commit
9fbff24bd7
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ defmodule Philomena.Tags.Tag do
|
|||
@derive {Phoenix.Param, key: :slug}
|
||||
|
||||
schema "tags" do
|
||||
belongs_to :aliased_tag, Tag, source: :aliased_tag_id
|
||||
belongs_to :aliased_tag, Tag, source: :aliased_tag_id, on_replace: :nilify
|
||||
has_many :aliases, Tag, foreign_key: :aliased_tag_id
|
||||
|
||||
has_many :channels, Channel, foreign_key: :associated_artist_tag_id
|
||||
|
|
Loading…
Reference in a new issue