配置和运行的Ruby-on-Rails迁移
-
19-09-2019 - |
题
我(完全)新ROR并得到了应用维护和升级。我以前做的源代码,我试图用db:migrate
rake命令创建数据库。我一直在使用的Aptana Studio进行开发开始。当我运行dg:migrate
我收到以下错误:
rake db:migrate
(in G:/Projects/.../.../trunk)
MissingSourceFile no such file to load -- rcov/rcovtask
WARNING: rcov tests won't work
Looking for release_type overrides ...
=> Loading G:/Projects/.../.../trunk/config/release_type_config.rb
DEPRECATION WARNING: ActiveRecord::Base.allow_concurrency=has been deprecated and
no longer has any effect. Please remove all references to allow_concurrency=..
(called from allow_concurrency= at D:/Ruby/lib/ruby/gems/1.8/gems/
activerecord-2.3.5/lib/active_record/connection_adapters/abstract/
connection_specification.rb:98)
DEPRECATION WARNING: ActiveRecord::Base.verification_timeout= has been deprecated
and no longer has any effect. Please remove all references to
verification_timeout=.. (called from verification_timeout= at
D:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/
connection_adapters/abstract/connection_specification.rb:108)
rake aborted!
no such file to load -- hpricot
我已经安装角度来说,Hpricot宝石也(版本0.8)。
什么是补救呢?
解决方案
最有效位误差是
rake aborted!
no such file to load -- hpricot
您需要的角度来说,Hpricot。可以安装在命令行上运行下面的命令
gem install hpricot
其他提示
安装rcov宝石:
gem install relevance-rcov --source http://gems.github.com
也许你的系统无法找到宝石。这可能是一个路径问题,请参见这个职位详细信息。
不隶属于 StackOverflow