Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use older version of Rake

I have Rake version 0.9.1 but I need to use 0.8.7 for a project, and I'm fairly certain I have both version installed but it always uses 0.9.1 by default. Is there a way to specify which version of Rake to use?

I'm trying to run this: rake db:drop db:create db:migrate db:seed and I get this error: You have already activated rake 0.9.1, but your Gemfile requires rake 0.8.7. Consider using bundle exec.

like image 921
Oliver Avatar asked Jun 05 '11 13:06

Oliver


1 Answers

gem search (or list) rake, should tell you which versions are installed.

You can invoke rake with a specific version number bracketed with underscores.

$rake _0.7.3_

This is a standard feature of gem packaged binaries.

like image 167
Dennis Avatar answered Nov 03 '22 09:11

Dennis