ActiveRecord

could not open database: disk I/O error

(SQLite3::IOException) ActiveRecord で SQLite3 を利用していて以下のエラーが発生しました。 /usr/local/lib/ruby/site_ruby/1.8/sqlite3/errors.rb:94:in `check': could not open database: disk I/O error (SQLite3::IOException) from /usr/local/lib…

Caught ActiveRecord::StatementInvalid: SQLite3::BusyException: database is locked: SQL

ActiveRecord で SQLite3 を利用していた場合に以下のエラーが発生しました。 Caught ActiveRecord::StatementInvalid: SQLite3::BusyException: database is locked: SQL /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connecti…

Caught ActiveRecord::StatementInvalid: SQLite3::SQLException: SQL logic error or missing database: INSERT INTO (snip)

SQLite3 を ActiveRecord で操作した場合に以下のエラーが発生しました。 Caught ActiveRecord::StatementInvalid: SQLite3::SQLException: SQL logic error or missing database: SQL /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_rec…

NoMethodError: undefined method `debug' for nil:NilClass

ActiveRecord のテスト(unit/test)をしていて以下のエラーが発生しました。 test_1(TestSession): NoMethodError: undefined method `debug' for nil:NilClass /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:2313:in `re…