-
Notifications
You must be signed in to change notification settings - Fork 23
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
Check constraint support #104
Comments
@azz thanks for the issue! I added a PR, could you try building that version of the gem and tell me if it works and if you have any feedback? |
Hey @drwl, I'm a colleague of @azz, I've had a quick play switching from There are some other unexpected changes unrelated to check constraints, but is probably down to config we just need to tweak. I will open an issue about the one that has me a bit stumped. |
@lparry thanks for taking the time to test it and providing feedback. I'm planning to add some unit tests and merging it in. |
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
Hey there. We currently use
annotate_models
, looking at maybe switching over, but it seems this fork does not support annotating check constraints. ctran/annotate_models#868@drwl would you be keen to see a similar implementation here?
The text was updated successfully, but these errors were encountered: