配置和运行Ruby-On-Rails迁移

时间:2010-02-09 06:47:26

标签: ruby-on-rails rubygems rake aptana dbmigrate

我(完全)是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 gem(版本0.8)。

对此有何补救措施?

3 个答案:

答案 0 :(得分:3)

安装rcov gem:

gem install relevance-rcov --source http://gems.github.com

答案 1 :(得分:1)

也许你的系统无法找到宝石。这可能是路径问题,请参阅this post for details

答案 2 :(得分:1)

最有意义的错误是

rake aborted!
no such file to load -- hpricot

你需要hpricot。您可以在命令行上运行以下命令来安装它

gem install hpricot