Forum: Ruby on Rails Preloaded fixtures

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
List R. (Guest)
on 2005-11-23 02:09
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?
heavysixer (Guest)
on 2005-11-23 07:55
(Received via mailing list)
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
test database. This bug report details a simple addition to activeRecord
that may help you out:
This topic is locked and can not be replied to.