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.
It means that the Rake gem 0.9.2 works fine!
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.
It means that the Rake gem 0.9.2 works fine!
在升级Rake gem版本至0.9.2后遇到db:migrate警告问题,通过在Rake文件中加入特定代码段解决了该问题。同时,采纳了@databyte建议的全局访问方法替代方案,确认了Rake gem版本0.9.2运行正常。
1万+

被折叠的 条评论
为什么被折叠?



