耙db:drop无法正常工作? [英] Rake db:drop not working?

查看:83
本文介绍了耙db:drop无法正常工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看不见重复的关系和表,并且我试图破坏我的整个数据库,并从纯粹的挫败中恢复过来,我什至不能这样做。当我运行rake db:drop或reset时,架构和迁移中的所有内容仍然存在。

I have unseen duplicate relations and tables and I am trying to destroy my entire DB and reset out of pure frustration, and I can't even do that. When I run rake db:drop or reset, everything is still there in my schema and migrations. How do I kill this entire DB and build it over again?

推荐答案

如果这样做

rake db:rollback STEP=100

这将还原最近的100次迁移(因此将您带到零状态)

That will revert the last 100 migrations (so take you to zero state)

这篇关于耙db:drop无法正常工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆