Rails 4.0.0, Gemfile requires a rake 10.1.0 for Rake

I am currently running Rails 4.0.0, ruby ​​1.9.3p392 (2013-02-22 version 39386) [x86_64-darwin10.8.0], with Rake 10.1.1

I was working on an application for a class in Rails, when I went to start DB rake migration, I was given the following error message:

Joses-MacBook-Air:crumblr JRV$ rake db:migrate
rake aborted!
You have already activated rake 10.1.1, but your Gemfile requires rake 10.1.0. Using      bundle exec may solve this.
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/bundler-1.3.5/lib/bundler/runtime.rb:33:in `block   in setup'
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/bundler-1.3.5/lib/bundler/runtime.rb:19:in `setup'
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/bundler-1.3.5/lib/bundler.rb:120:in `setup'
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/bundler-1.3.5/lib/bundler/setup.rb:7:in `<top    (required)>'
/Users/JRV/crumblr/config/boot.rb:4:in `<top (required)>'
/Users/JRV/crumblr/config/application.rb:1:in `<top (required)>'
/Users/JRV/crumblr/Rakefile:4:in `<top (required)>'
(See full trace by running task with --trace)

Which solution will either return or override this problem in order to provide porting.

+4
source share
1 answer

As it suggests, you can do bundle exec rake db:migrate

For a solution that does not require a prefix, try making bundle update rake

+5
source

All Articles