开发者

How to rollback a single migration file in rails?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜