Fix leftover from Picture -> Media rename

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2020-11-27 17:20:21 +01:00
parent f4d0e6d4b3
commit d041d274e0
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773

View File

@ -59,7 +59,7 @@ defmodule Mobilizon.Posts.Post do
field(:visibility, PostVisibility, default_value: :public) field(:visibility, PostVisibility, default_value: :public)
belongs_to(:author, Actor) belongs_to(:author, Actor)
belongs_to(:attributed_to, Actor) belongs_to(:attributed_to, Actor)
belongs_to(:picture, Picture, on_replace: :update) belongs_to(:picture, Media, on_replace: :update)
many_to_many(:tags, Tag, join_through: "posts_tags", on_replace: :delete) many_to_many(:tags, Tag, join_through: "posts_tags", on_replace: :delete)
many_to_many(:media, Media, join_through: "posts_medias", on_replace: :delete) many_to_many(:media, Media, join_through: "posts_medias", on_replace: :delete)