Forum: Ruby on Rails Can I execute DML from within Rails?

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.
Larry K. (Guest)
on 2006-03-05 13:18
(Received via mailing list)
Is it possible to execute a DML statement against a MySQL database from
within Rails?  I have a table I'm using for batch processing. It needs
to be
truncated to reset the primary key before each batch insert statement. I
looked at the API here:

and didn't notice anything that looked like it would work.  Thanks in

Best Regards,
"Work, work, work...there is no satisfactory alternative."
            --- E.Taft Benson
This topic is locked and can not be replied to.