Migrations are pending; run 'bin/rake db:migrate RAILS_ENV=development' to resolve this issue [unable to proceed]

后端 未结 7 1765
盖世英雄少女心
盖世英雄少女心 2020-12-23 14:52

I appear to have a circular issue in regards to Ruby on Rails migration procedure. I am following the introduction article and I have reached the point when I need to creat

7条回答
  •  情深已故
    2020-12-23 15:27

    this was what i did:

    rails db:environment:set RAILS_ENV=test
    

    If you need to do it manually

    rake db:schema:load RAILS_ENV=test
    

    and then

    bundle exec rake db:migrate
    

    Thanks to Ahmed Ali....... your comment was helpful.

提交回复
热议问题