Skip to content

Commit

Permalink
Fix incorrect documentation comment (has many -> has one) (#6382)
Browse files Browse the repository at this point in the history
  • Loading branch information
johannes-riecken committed Jun 7, 2023
1 parent 7157b7e commit 7dd702d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/tests/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
// He works in a Company (belongs to), he has a Manager (belongs to - single-table), and also managed a Team (has many - single-table)
// He speaks many languages (many to many) and has many friends (many to many - single-table)
// His pet also has one Toy (has one - polymorphic)
// NamedPet is a reference to a Named `Pets` (has many)
// NamedPet is a reference to a named `Pet` (has one)
type User struct {
gorm.Model
Name string
Expand Down

0 comments on commit 7dd702d

Please sign in to comment.