关闭

Migrations are pending. To resolve this issue, run: bin/rake db:migrate RAILS_ENV=development

标签: rubyrails
805人阅读 评论(0) 收藏 举报
分类:

  I then proceeded with the migration,

 

# rake db:migrate
==  CreateHomepages: migrating ================================================
-- create_table(:homepages)
   -> 0.0493s
==  CreateHomepages: migrated (0.0494s) =======================================
but :
Migrations are pending; run 'bin/rake db:migrate RAILS_ENV=development' to resolve this issue

answer:
           

You need to do

bundle exec rake test:prepare 

or

bundle exec rake db:test:prepare

and then

bundle exec rake db:migrate


0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:3950次
    • 积分:100
    • 等级:
    • 排名:千里之外
    • 原创:6篇
    • 转载:0篇
    • 译文:0篇
    • 评论:1条
    文章分类
    最新评论