Preloaded fixtures

I’d like to use preloaded fixtures, both to save time and to avoid
having to worry about foreign key dependencies.

I made a rake task to populate the test db fromthe fixtures, and I set
self.pre_load_fixtures = true, but rails does not seem to load them into
the model_name(:fixture_name). What do I do?

If you are using MySQL then you need to release the constraints on the
foreign keys before you can bulk add or bulk delete fixture data from
the
test database. This bug report details a simple addition to activeRecord
that may help you out:

http://dev.rubyonrails.org/ticket/2326