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
On 11/22/05, List Recv <listrecv-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
> 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?
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
--
--------------------------------------------------------------------
I am Mark Daggett and I approve this message.
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails