We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23a40f2 commit 3640b84Copy full SHA for 3640b84
1 file changed
spec/models.cr
@@ -34,7 +34,7 @@ class User
34
type meta : Meta = DB::Default
35
36
type created_at : Time = DB::Default
37
- type updated_at : Union(Time | Nil)
+ type updated_at : Union(Time, Nil)
38
39
type referrals : Array(User), foreign_key: "referrer_uuid"
40
type authored_posts : Array(Post), foreign_key: "author_uuid"
@@ -58,7 +58,7 @@ class Post
58
schema posts do
59
pkey id : Int32
60
type author : User, key: "author_uuid"
61
- type editor : Union(User | Nil), key: "editor_uuid"
+ type editor : Union(User, Nil), key: "editor_uuid"
62
type tags : Array(Tag) = DB::Default, key: "tag_ids"
63
64
type content : String
0 commit comments