rake db:migrate のエラー
aptanaプロジェクトの削除方法、rails環境構築 - happy coding の更に続報
StockOverflow の回答によると rake v0.9.2で解消している模様。
試してみると確かに動いた。
以下、引用
Ruby on Rails and Rake problems: uninitialized constant Rake::DSL - Stack Overflow
- I installed gem install rake -v=0.9.2 (I had the 0.9.1 gem)
- removed the 0.9.1 with gem uninstall rake -v=0.9.1
- updated with bundle update
- then the db:migrate showed a warning, WARNING: Global access to Rake DSL methods is deprecated. Please....
- It was solved by adding the following to the Rake file.
module ::YourApplicationName class Application include Rake::DSL end end
- I ommited the module ::RakeFileUtils extend Rake::FileUtilsExtend option sugested by @databyte.
以下は適当和訳
- gem install rake -v=0.9.2 を実行し、rake v0.9.2 をインストールする。
- gem uninstall rake -v=0.9.1 v0.9.1をアンインストール(v0.9.2になってたら不要)
- bundle update 実行
- rake db:migrate 最後にrakeを実行。