ActiveRecord :: StatementInvalid:找不到表'tablename'

had*_*ley 6 sqlite ruby-on-rails

cis.statbib.org: script/console 
Loading development environment (Rails 2.2.2)
Article.founc>> Article.count()
ActiveRecord::StatementInvalid: Could not find table 'article'
    from /home/hadley/web/cis.statbib.org/vendor/rails/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb:29:in `table_structure'
    from /home/hadley/web/cis.statbib.org/vendor/rails/activesupport/lib/active_support/core_ext/object/misc.rb:39:in `returning'
...
Run Code Online (Sandbox Code Playgroud)

但它似乎确实存在于数据库中:

db: sqlite3 development.sqlite3 
SQLite version 3.2.8
sqlite> select count(*) from author;
168600
Run Code Online (Sandbox Code Playgroud)

我刚刚更新了所有的宝石,等等.出了什么问题?

had*_*ley 2

这似乎是由 ActiveRecord 中的错误引起的,http://rails.lighthouseapp.com/projects/8994/tickets/99-sqlite-connection-failing。按照该链接中的描述对文件进行猴子修补修复了该问题。