-
-
Notifications
You must be signed in to change notification settings - Fork 270
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
New cop to check for 3-state booleans #337
Comments
This style looks good to me. Can you open a PR to the Rails Style Guide, first? For implementation, it is necessary to consider a applied migration files. |
using a default value in a large table will cause a complete rewrite. https://github.com/ankane/strong_migrations#adding-a-column-with-a-default-value In Postgres 11+, MySQL 8.0.12+, and MariaDB 10.3.2+, this no longer requires a table rewrite and is safe. |
@koic We can only check |
Some use Checking migrations is the only way I can think of. |
https://thoughtbot.com/blog/avoid-the-threestate-boolean-problem
The text was updated successfully, but these errors were encountered: