rake --describe db:migrate:redo says:
Rollbacks the database one migration and re migrate up. If you want
to rollback more than one step, define STEP=x
Presumably that means, it runs #down and then #up. But I've put calls to
Kernel#puts in both methods and it's running #up first, resulting in
"Mysql::Error: Table 'posts' already exists:".
So I tried running these:
And it still does exactly the same thing!
It's not a major issue, I can certainly work round it but this just
seems weird. I'd like to know what's going on. Rails version: 2.1.0