Open notduncansmith opened 10 years ago
I think I like the --force
option if we go for this. But, I think (I could be way wrong) the normal workflow in this situation would be to:
You wouldn't run in to any problems with that process, but it's personal preference.
There's a situation that I run into a lot:
mite down
, I get a SQL error telling me that it can't find the column I added (naturally).We should add a
-f
or--force
flag tomite down
to ignore errors and continue to migrate down.Alternatively, maybe just a
mite reset
command would be more appropriate? Something that would run all the down migrations (ignoring any errors), truncate the _migrations table, then run the ups? That's what I find myself doing whenever I encounter this problem.