Rails 3.2 + minitest + sqlite3:memory:=失败

时间:2012-09-05 15:02:44

标签: ruby-on-rails-3 sqlite minitest

我无法使用:memory:数据库与Rails 3.2,sqlite3和minitest。我在database.yml中有以下内容:

test:
  adapter: sqlite3
  database: ":memory:"

并在执行rake minitest

时出现以下错误
/home/hoffmanc/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activerecord-3.2.3/lib/active_record/connection_adapters/sqlite_adapter.rb:465:in  `table_structure': Could not find table 'apks' (ActiveRecord::StatementInvalid)

(我的一个模型名为Apk)

我错过了一步吗?

0 个答案:

没有答案