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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ddc850a63a423c3ff963bdf3a097652f?d=identicon&s=25 Larry Kelly (Guest)
on 2006-03-05 12: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:

http://api.rubyonrails.com/classes/ActiveRecord/Co...

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

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