You don''t do this with Rails. To do this with Rails you use fixtures.
Use your tool to export / import the data.
Be mindful of the fact that this is bad practice. Fixtures are supposed to
be FIXED... as in, they don''t change, so that you always have useful
test
data.
There is a Rails plugin called AR_FIXTURES that you can use to dump data
from your development database to fixtures. Read through the documentation
for that plugin to understand how to use it properly.
On 8/9/06, Arnaud Garcia <arnaud.garcia@sim.hcuge.ch>
wrote:>
> Hi list,
>
> Instead of using fixture for my test (because I have to many tables, and
> it is easier to use my interface to create the data), I prefer to import
> all the data from an sql file for each scenario I have ...
>
> how I can do this with rails ?
>
> thanks for help
>
> arnaud
>
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060809/c09c0abe/attachment.html