Search code examples
ruby-on-railsrake

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


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 do: "bundle install"

but I'm getting

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

while doing

rake db:migrate

Solution

  • I thank to Dobry Den, cheers dude. but little more I had to do. here is solution (works for me). I had added

    gem 'rake','0.8.7'
    

    on Gemfile, which was not there, but my new version of rails automatically install rake(0.9.0).

    after I had delete rake0.9.0 by gem uninstall rake and after doing bundle update rake , I can create and migrate database.