You have already activated rake 0.9.0, but your Gemfile requires rake 0.8.7

后端 未结 9 1580
孤街浪徒
孤街浪徒 2020-12-07 08:54

I\'m trying to run rails project, I get

Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.

If I

9条回答
  •  猫巷女王i
    2020-12-07 09:22

    Specify the version that you want in your Gemfile.

    gem 'rake', '0.9.0' 
    

    then

    bundle update rake
    

    you need to use bundle exec to run your rake task

    bundle exec rake db:migrate
    

提交回复
热议问题