在现实世界中,我们在数据库中有一堆重要数据。在像ROR
这样的框架中,它可以通过一个命令(rake db:migrate VERSION=0
)删除。是否有验证防止迁移回滚Ruby on Rails
"actually you mean to drop the whole database ? or you just did it unintentionally "
任何config
或function
。在此警告后,
User may enter yes or no
。并且程序完成。 如果这样的功能/配置存在,那么请让我们知道,如果没有的话亲切地指导我们
@Rob我更新了我的问题,它错误地写了它而不是耙 – ImranNaqvi