Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance help text on generators command examples #1147

Merged
merged 4 commits into from
Jan 8, 2025

Conversation

kaplanelad
Copy link
Contributor

@kaplanelad kaplanelad commented Jan 6, 2025

No description provided.

@kaplanelad kaplanelad changed the title Enhance help text with command examples for migration and controller … Enhance help text on generators command examples Jan 6, 2025
src/cli.rs Outdated
$ 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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

users:references will generate a reference for users table using a new user_id column in movies table.

users:reference:admin_id will generate a reference for users table using custom admin_id column in movies table.

@jondot jondot merged commit 1eb04fb into master Jan 8, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants