mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-01-19 22:27:59 +01:00
missed one
This commit is contained in:
parent
a74313404f
commit
e1e20c5159
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue