Deactivate a Gem - “you have already activated rake 0.9.3.beta.1, but my Gemfile requires rake 0.9.2”

后端 未结 3 2128
深忆病人
深忆病人 2021-02-13 14:12

I\'m trying to run a migration but I keep getting the error message that is:

rake aborted! Undefined method prerequisite for nil:NilClass.

It s

3条回答
  •  别跟我提以往
    2021-02-13 14:50

    I had the same issue and solved with the help of links below. They can help understanding some concepts regarding this specific question and how and why to use bundle exec rake db:migrate.

    You have another option to use gem uninstall rake and then select the version you want to remove.

    Read Before installing rails 3.1

    Rake 0.9 and gem version constraints by David Chelimsky

提交回复
热议问题