【发布时间】:2013-07-21 16:46:24
【问题描述】:
我多次遇到这个问题,我搜索了很多并没有找到任何解决方案,我的问题是:
运行后
git push heroku push master
当我跑步时
heroku run rake db:migrate
我得到这个错误:
Multiple migrations have the version number 20130615132808
我通过这个问题搜索并发现了这个:
rails database migration - multiple migrations have the version number x
但是当执行git rm时出现一些选项我不太了解git所以我需要解决这个问题,我在localhost中删除档案但问题仍然存在,非常感谢帮助。
【问题讨论】:
-
您不了解哪些选项?请发布您正在执行的完整的
git rm ...,以及您得到的和不理解的内容。还有版本号是怎么冲突的,你是不是手动重命名了迁移文件? -
嗯我如何在部署到 heroku 后重命名迁移?当我执行 git rm 出现这个
usage: git rm [options] [--] <file>... -n, --dry-run dry run -q, --quiet do not list removed files --cached only remove from the index -f, --force override the up-to-date check -r allow recursive removal --ignore-unmatch exit with a zero status even if nothing matched
标签: ruby-on-rails ruby-on-rails-3 heroku ruby-on-rails-3.1 ruby-on-rails-3.2