Skip to content

Commit

Permalink
Update class-cql-relations-collection-target-pk.md
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasjpr authored Sep 28, 2024
1 parent 59bbace commit 9b0078c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ A collection of records for a one to many relationship This class is used to man
**Example**

```crystal
class User
include CQL::Model(User, Int64)
class User < CQL::Model(Int64)
property id : Int64
property name : String
has_many :posts, Post, foreign_key: :user_id
Expand Down

0 comments on commit 9b0078c

Please sign in to comment.