Rails 2.2 からrails 3へのアップグレード

DEPRECATION WARNING: Rake tasks in /app/vendor/plugins/fleximage/tasks/fleximage_tasks.rake are deprecated. Use lib/tasks instead. (called from <top (required)> at /app/Rakefile:7)
DEPRECATION WARNING: Rake tasks in /app/vendor/plugins/yaml_db/tasks/yaml_db_tasks.rake are deprecated. Use lib/tasks instead. (called from <top (required)> at /app/Rakefile:7)
rake aborted!
You cannot have more than one Rails::Application

というエラーに対しては、vendor/plugin/*/tasks/*.rake files を lib/tasks に入れる
http://stackoverflow.com/questions/2858165/how-to-solve-rake-tasks-deprecation-on-the-rails-plugin

WARNING: Global access to Rake DSL methods is deprecated.  Please include
    ...  Rake::DSL into classes and modules which use the Rake DSL methods.

というエラーに対しては、Gemfile に 'rake', '0.8.7'を追加する。

これでbundle installしようとすると、rakeのバージョンが違うとおこられるので
Gemfile.lockを消してから再度bundle installする。
https://github.com/imathis/octopress/issues/250

Rails2系とRails3が混在しています、とエラーが出る。
やはり作りなおすしかないかなぁ。