我最近安装了Rails 3.1,现在我的旧Rails 3.0应用程序不会使用db:migrate.当我尝试运行bundle exec rake db:migrate时会发生这种情况.我在没有RVM的Ubuntu上
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/shared_helpers.rb:142:in `block in cripple_rubygems': can't find executable rake (Gem::Exception) from /usr/local/lib/ruby/gems/1.9.1/bin/rake:19:in `<main>'
当我运行rake db:migrate时,它会输出:
rake aborted! You have already activated rake 0.9.2.2,but your Gemfile requires rake 0.8.7. Consider using bundle exec. (See full trace by running task with --trace)
哪个耙子
/usr/local/bin/rake