Add deleting article with associated translations

This commit is contained in:
Thelonius Kort
2023-01-11 19:11:07 +01:00
parent 54d0ad26d5
commit b40c305af1

View File

@ -13,7 +13,7 @@ defmodule Outlook.Articles.Article do
field :title, :string field :title, :string
field :url, :string field :url, :string
belongs_to :author, Author belongs_to :author, Author
has_many :translations, Translation has_many :translations, Translation, on_delete: :delete_all
timestamps() timestamps()
end end