Skip to content
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

WIP for fixing uploads #1016

Merged
merged 5 commits into from Sep 15, 2021
Merged

WIP for fixing uploads #1016

merged 5 commits into from Sep 15, 2021

Conversation

drusepth
Copy link
Member

Our prod db is out of wack. This PR has a migration to get it back under control.

We probably don't actually have to revert these gem versions after all, but that sounds like a job for Tomorow Andrew.

@drusepth drusepth self-assigned this Sep 15, 2021
@drusepth
Copy link
Member Author

Post-mortem: it turns out we inadvertently added a non-nullable column while using a prod database to test #893. The new ActiveStorage versions enabled in that PR set and use the column properly, but since we didn't release that PR (see blockers there) we had a non-nullable column on avatar uploads that wasn't being used in prod -- that didn't exist in isolated dev/staging databases. Therefore, uploads succeeded in dev and staging but failed in production.

The migration in this PR removes that column to get things back to a consistent state between prod/staging/dev. The column will be added back in #893.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant