Skip to content
Discussion options

You must be logged in to vote

You removed a column, but did not update the Client or application code that uses the column, then get an error. Is that correct? What is the bug here?

The only way to prevent this currently would be to remove all uses of the column/field from your code first, update your schema to remove the column, then deploy the updated Client (that does not know about the column any more), and then migrate the database. This will only work if the removed column is not required for INSERT operations.

Is that what is possible via ignored_columns in Rails? If so, this sounds more like a feature request.

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
7 replies
@maxh
Comment options

@janpio
Comment options

@AndrewSouthpaw
Comment options

@AndrewSouthpaw
Comment options

@maxh
Comment options

Answer selected by vladi-stevanovic
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
kind/bug A reported bug.
4 participants
Converted from issue

This discussion was converted from issue #13921 on June 20, 2022 19:25.