Add deleting article with associated translations
This commit is contained in:
@ -13,7 +13,7 @@ defmodule Outlook.Articles.Article do
|
||||
field :title, :string
|
||||
field :url, :string
|
||||
belongs_to :author, Author
|
||||
has_many :translations, Translation
|
||||
has_many :translations, Translation, on_delete: :delete_all
|
||||
|
||||
timestamps()
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user