The migration we applied ended up causing trouble in production. It’s possible the app wasn't ready for the new columns.
In situations like this, we need to roll back the changes safely using a down migration.
Down migrations allow us to:
A well-written down migration should completely reverse the changes made in the up migration. In our case, that means removing the two columns we added.
Click to play video
Complete the following down migration:
was_successful column from the transactions table.transaction_type column from the transactions table.This will revert the schema back to the original state.