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
Migration errors from active storage after rails master to rails alpha migration with app:update #43231
Comments
Is the previous migration still in |
Deleting migration files after they run is a common practice, so maybe we should fix the migrations to be safely runnable many times. |
I gave some thought about that idea. It is feasible (ensuring the migrations are reversible would help), but for that to work Rails would have to assume that the database it has access to is at parity with the production database. |
I was thinking the migration checks table_exists? |
Sorry, I misread your comment as Rails checking if the table exists during |
By the way. If adding the check is really the solution we are going with, this would be worthy of tagging as “good first issue” 😀 |
Using the |
Yes please! |
Put up PR #43260. Let me know what you think! |
Steps to reproduce
01fd264d0012
(with active storage)7.0.0.alpha2
Expected behavior
Migrations should run without a problem or not be present.
Actual behavior
Migrations are present and fail:
The migrations generated are using v6 of rails:
The migration code failing is:
this is already present from a previous migration:
System configuration
Rails version:
Described above.
Ruby version:
3.0.2
The text was updated successfully, but these errors were encountered: