-
Notifications
You must be signed in to change notification settings - Fork 170
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
Documentation for tri state problem for booleans #69
Comments
Hey @sfahlberg, that's the recommended way. With |
@ankane thanks! |
FYI I've just run the following on a postgres DB with 7M rows.
The above was fast. 👍 Then I ran:
As expected, this took several hours, however it didn't stop the production DB running 👍 Then I ran this:
... and it locked the DB 👎 Note that I have not used the 4th argument but it was still "dangerous". I removed that migration and then ran:
And it ran for about 15 minutes and did not lock the DB 👍 So my question... now that the index is in place, will Thanks |
Hello,
It's not clear to me how to add null: false and default: false to a boolean column using strong_migrations. Using your approach, I would 1) create the column 2) add a default 3) flip everything to false 4) add null: false but when I add try to add the null: false, it complains. How would you recommend handling this?
The text was updated successfully, but these errors were encountered: