ActiveRecord::PendingMigrationError [运行 rails4] [英] ActiveRecord::PendingMigrationError [running rails4]

查看:45
本文介绍了ActiveRecord::PendingMigrationError [运行 rails4]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我刚刚向应用程序添加了一些新的迁移,随后我运行了 rake db:migrate.但是,我似乎仍然收到以下错误.我也运行了 rake db:migrate RAILS_ENV=development 命令.当我刷新应用程序时,我遇到了同样的错误.

So, I've just added some new migrations to the app and I've run rake db:migrate subsequently. However, I still seem to be getting the below error. I've run the rake db:migrate RAILS_ENV=development command also. When I refresh the app I get the same error.

ActiveRecord::PendingMigrationError

Migrations are pending; run 'rake db:migrate RAILS_ENV=development' to resolve this issue.

让我知道我可以包含哪些其他文件来帮助解决此问题.

Let me know what additional files I can include to help troubleshoot this.

推荐答案

应用重置是遇到相同问题的人的解决方案 :)

An app reset was the solution for those who come across the same problem :)

这篇关于ActiveRecord::PendingMigrationError [运行 rails4]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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