rake db:migrate depreciated ...我该怎么办?

时间:2011-10-07 03:05:45

标签: rake

我尝试更新宝石。尝试做heroku rake db:migrate之后我发现了问题,它说:

rake aborted!
no such file to load -- faker
/app/Rakefile:7:in `<top (required)>'
(See full trace by running task with --trace)

然后当我做rake db:migrate时说:

NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01.
Gem.source_index called from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.12/lib/bundler/shared_helpers.rb:3.
NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01.
Gem.source_index called from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.12/lib/bundler/source.rb:162.
NOTE: Gem::SourceIndex#each is deprecated with no replacement. It will be removed on or after 2011-11-01.
Gem::SourceIndex#each called from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.12/lib/bundler/source.rb:162.
NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01.
Gem.source_index called from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.12/lib/bundler/shared_helpers.rb:84.

不太确定我做错了什么。

1 个答案:

答案 0 :(得分:0)

我明白了。我不确定为什么这种情况突然随机发生,但回滚到早期版本的rubygems解决了这个问题。这是代码:

sudo gem update --system 1.6.2