Skip to content

Commit a18d234

Browse files
committed
Merge pull request #1 from stevend/fix-post-id-assignment
Add post_id to required_fields
2 parents 223114d + 9c680a0 commit a18d234

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/models/comment.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ defmodule BlogPhoenix.Comment do
99
timestamps
1010
end
1111

12-
@required_fields ~w(name content)
12+
@required_fields ~w(name content post_id)
1313
@optional_fields ~w()
1414

1515
@doc """

0 commit comments

Comments
 (0)