missed one

This commit is contained in:
Luna D 2021-09-29 00:23:36 +02:00
parent a74313404f
commit e1e20c5159
No known key found for this signature in database
GPG key ID: 81AF416F2CC36FC8

View file

@ -1,6 +1,7 @@
defmodule Philomena.DnpEntries.DnpEntry do
use Ecto.Schema
import Ecto.Changeset
import Philomena.MarkdownWriter
alias Philomena.Tags.Tag
alias Philomena.Users.User
@ -38,6 +39,9 @@ defmodule Philomena.DnpEntries.DnpEntry do
|> validate_required([:reason, :dnp_type])
|> validate_inclusion(:dnp_type, types())
|> validate_conditions()
|> put_markdown(attrs, :conditions, :conditions_md)
|> put_markdown(attrs, :reason, :reason_md)
|> put_markdown(attrs, :instructions, :instructions_md)
|> foreign_key_constraint(:tag_id, name: "fk_rails_473a736b4a")
end