0

这是日志。

ActiveRecord::SchemaMigration Load (5.0ms)  SELECT `schema_migrations`.* FROM `schema_migrations`
Unable to load samplero, underlying cause No such file to load -- samplero 

org/jruby/RubyKernel.java:1065:in `require'
C:/jruby-1.7.12/lib/ruby/gems/shared/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
C:/jruby-1.7.12/lib/ruby/gems/shared/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in `load_dependency'
C:/jruby-1.7.12/lib/ruby/gems/shared/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
C:/jruby-1.7.12/lib/ruby/gems/shared/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:329:in `require_or_load'
C:/jruby-1.7.12/lib/ruby/gems/shared/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:288:in `depend_on'
C:/jruby-1.7.12/lib/ruby/gems/shared/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:206:in `require_dependency'
C:/jruby-1.7.12/lib/ruby/gems/shared/gems/activerecord-4.0.0/lib/active_record/fixtures.rb:773:in `try_to_load_dependency'
C:/jruby-1.7.12/lib/ruby/gems/shared/gems/activerecord-4.0.0/lib/active_record/fixtures.rb:792:in `require_fixture_classes'
org/jruby/RubyArray.java:1613:in `each'
C:/jruby-1.7.12/lib/ruby/gems/shared/gems/activerecord-4.0.0/lib/active_record/fixtures.rb:790:in `require_fixture_classes'
C:/jruby-1.7.12/lib/ruby/gems/shared/gems/activerecord-4.0.0/lib/active_record/fixtures.rb:768:in `fixtures'
C:/Files/Ontash/mediconversion/JRUBY_ON_RAILS_CODE/medi_con/test/test_helper.rb:12:in `TestCase'
C:/Files/Ontash/mediconversion/JRUBY_ON_RAILS_CODE/medi_con/test/test_helper.rb:5:in `(root)'
org/jruby/RubyKernel.java:1065:in `require'
C:/Files/Ontash/mediconversion/JRUBY_ON_RAILS_CODE/medi_con/app/dao/cdr_parse_match_dao.rb:1:in `(root)'
org/jruby/RubyKernel.java:1065:in `require'
C:/Files/Ontash/mediconversion/JRUBY_ON_RAILS_CODE/medi_con/app/dao/cdr_parse_match_dao.rb:2:in `(root)'
file:/C:/jruby-1.7.12/lib/jruby.jar!/jruby/kernel19/kernel.rb:1:in `(root)'
org/jruby/RubyKernel.java:1065:in `require'
file:/C:/jruby-1.7.12/lib/jruby.jar!/jruby/kernel19/kernel.rb:21:in `require_relative'
C:/Files/Ontash/mediconversion/JRUBY_ON_RAILS_CODE/medi_con/app/service/cdr_parse_match.rb:1:in `(root)'
org/jruby/RubyKernel.java:1081:in `load'
-e:1:in `(root)'

我想知道在哪里调用 SELECT schema_migrations.* FROMschema_migrations查询,以便我可以删除它,希望这个错误会消失。以前我使用 Active Record 测试过数据库连接,由于内存负载如此之高,我决定使用 sequel gem。我想删除以前使用的 Active Record 数据库的所有痕迹,我尝试从 db 文件夹中删除迁移文件和架构,但错误仍然存​​在。

4

0 回答 0