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

Annotate model check constraints #105

Merged
merged 8 commits into from
Apr 12, 2024
Merged

Annotate model check constraints #105

merged 8 commits into from
Apr 12, 2024

Conversation

drwl
Copy link
Owner

@drwl drwl commented Apr 10, 2024

Supports annotating model check constraints, credit goes to folks who worked on ctran/annotate_models#868.

Adds new option show_check_constraints that defaults to false. When enabled, it will add check constraints annotations rails/rails#31323 to the model annotations.

It can be enabled also through the command line with options -c or --show-check-constraints.

Resolves #104

@drwl drwl merged commit 207b006 into main Apr 12, 2024
18 checks passed
@drwl drwl deleted the drwl/annotate-constraints branch April 12, 2024 00:14
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.

Check constraint support
1 participant