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
5.1.1 ActiveRecord Postgres UUID breaks migrations when default value is specified on production #29222
Comments
@matthewd oh, I see the bug. I'll fix it. |
I have been able to reproduce. Let me remark that the line that causes the failure is t.uuid :engine_id, null: true, default: nil, index: true in which the While this is fixed, let me say that you can probably just remove the |
@fxn When can we expect this to be fixed? |
I do not give estimations. Not even in my consultancy work for the last 8 years. I'll fix it, and eventually a new release will be cut. I can say I'll prioritize this ticket over other open source stuff. |
@develop-test1 did you try the workaround by the way? |
@fxn Ok, thank you. Looking forward to it. |
`quote_default_expression` can be passed nil value when `null: true` and `default: nil`. This addressed in that case. Fixes rails#29222.
Steps to reproduce
Create a new migration with UUID and and default value i.e:
Expected behavior
Migration should pass on production environment.
Actual behavior
Following error occurs:
System configuration
Rails version:
Ruby version:
Environment:
The text was updated successfully, but these errors were encountered: