Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasjpr authored Sep 28, 2024
1 parent 9b0078c commit 4cc3a2b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/api/module-cql-relations/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@ The `CQL::Relations` module provides utilities for managing relationships betwee
## Example: Defining Relations

```crystal
class User
include CQL::Record(User)
struct User < CQL::Record(Int64)
has_many :posts
end
class Post
include CQL::Record(Post)
struct Post < CQL::Record(Int64)
belongs_to :user
end
```
Expand Down

0 comments on commit 4cc3a2b

Please sign in to comment.