Skip to content

Commit

Permalink
Update cli.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
jondot authored Jan 8, 2025
1 parent 414d3fc commit bd46539
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,9 @@ enum ComponentArg {
$ cargo loco g model posts title:string! content:text
- Generate model with references:
$ cargo loco g model movies long_title:string added_by:references:users director:references
# reference director is in singular: director:references
# reference added_by is in singular, the referenced model is plural: added_by:references:users
$ cargo loco g model movies long_title:string director:references award:references:prize_id
# 'director:references' references the 'directors' table with 'director_id' on 'movies'
# 'award:references:prize_id' references the 'awards' table with 'prize_id' on 'movies'
",
"Examples:".bold().underline()
))]
Expand Down

0 comments on commit bd46539

Please sign in to comment.