I have just migrated to use Rail 1.1 from 1.0.
In the progress of fixing and cleaning up the unit tests. I found the
following problem. I am not sure if this is a bug or it is my
When I run "rake test_units, some of the index in association tables is
not created, this leads to failures for some unit test cases.
Thinking that may be because I didn’t setup the database correctly, I
reload the sql file (with the index defined) into both test and
run the test mannually, i.e. ruby test/units/myclass_test.rb works fine.
But when I invoke rake test_units to run all unit tests in a batch, I
have the same problem again. It seems db/schema.rb generated from the
rake test_units has missed some of the indexes definition for some of
Anyone know where I should look to locate the problem? It only occurs to
some of the tables not all of them. So I think it must be something
wrong with some of my code somewhere… Thanks in advance.