From bd4653939cc5715c0202ba486560b128a0a5f7fc Mon Sep 17 00:00:00 2001 From: "Dotan J. Nahum" Date: Wed, 8 Jan 2025 09:08:20 +0200 Subject: [PATCH] Update cli.rs --- src/cli.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cli.rs b/src/cli.rs index ad0eed4fc..63b68a755 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -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() ))]