1

rake db:migrate と同等の移行ダウンを行う簡単な方法があるかどうかを知りたいです (移行アップの場合)。実行する代わりに: rake db:migrate:up VERSION=1, rake db:migrate:up VERSION=2, ... 実行できます: rake db:migrate! しかし、次の場合: rake db:migrate:down VERSION=10, rake db:migrate:down VERSION=..., rake db:migrate:down VERSION=1, ショートカットはありますか?

あなたの助けのためにタンク!

4

2 に答える 2

15

rake db:migrate VERSION=0それがあなたがやろうとしていることであれば、すべての移行を削除します。

于 2010-05-30T19:49:16.690 に答える
0

I don't think there is a premade task for doing what you want. You can see all of the available rake tasks using rake -T.

于 2010-05-30T13:27:24.950 に答える