rake aborted! You have already activated rake 10.0.2, but your Gemfile requires rake 0.9.2.2

前端 未结 8 788
终归单人心
终归单人心 2021-01-31 17:33

I am trying to do \"rake db:migrate\" and it is giving me this error.

Andy:AcademyAir Andy$ rake db:migrate
/Users/Andy/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.         


        
相关标签:
8条回答
  • 2021-01-31 18:24

    For me, I just ran bundle update and everything works right again.

    0 讨论(0)
  • 2021-01-31 18:27

    Solved the same issue by running:

    bundle update
    

    This will update your rake gem to the latest version and allow you to run the migration.

    If you are using a gemset: be sure to run bundle install after you've updated rake to update your local gemset as well.

    0 讨论(0)
提交回复
热议问题