Description
First off, thanks for creating this great tool!
I'd really like to be able to just migrate to a specified version, without having to worry about whether the migration would be up or down. This is already kinda possible; for db-migrate up
I can specify the version I want to migrate to. So this leaves two problems:
-
Determining whether to migrate up or down.
Granted, this one is of less importance. It would be more of a convenience feature.
-
Migrating down to a specified version
This one is really key to me. I want to be able to perform automated updates and rollbacks of my application. The way I'd like to do that is by tying each of my application's versions to a specific database version. The update/rollback scripts would then run a migration for a specific version. This is currently impossible, because a rollback script would have to know how many versions to roll back (as per
db-migrate down -c [count]
).
Any thoughts on this?