开发者

How to rollback a single migration file in rails?

开发者 https://www.devze.com 2023-01-31 22:48 出处:网络
I only want to undo one migration file, something like rake db:rollback VERSION=$TIMESTAMP This command doesn\'t work. Any suggesti开发者_C百科on?rake db:migrate:down VERSION=$TIMESTAMP should do th

I only want to undo one migration file, something like

rake db:rollback VERSION=$TIMESTAMP

This command doesn't work. Any suggesti开发者_C百科on?


rake db:migrate:down VERSION=$TIMESTAMP should do the trick.


rake db:rollback is now the way.

0

精彩评论

暂无评论...
验证码 换一张
取 消