rake test and test_structure.sql

Posted by korinthe on Stack Overflow See other posts from Stack Overflow or by korinthe
Published on 2010-05-07T17:36:10Z Indexed on 2010/05/07 17:38 UTC
Read the original article Hit count: 182

First of all, I have to run "rake RAILS_ENV=test ..." to get the test suites to hit my test DB. Annoying but ok to live with.

However when I do so, I get a long stream of errors like so:

> rake RAILS_ENV=test -I test test:units
psql:/path/to/project/db/test_structure.sql:33: ERROR:  function "armor" already exists with same argument types
[and many more]

It looks like some DB definitions are getting unnecessarily reloaded. I can't find any mention of this on Google, so I was wondering whether others have seen this?

I am using a PostgreSQL database with the following in my environment.rb:

  config.active_record.schema_format = :sql

and using Rails 2.3.5 with rake 0.8.7.

© Stack Overflow or respective owner

Related posts about rake

Related posts about postgresql