Forum: Ruby on Rails SQL queries in another DB

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.
Radu S. (Guest)
on 2007-04-17 13:59
(Received via mailing list)

I need to insert SQL data in another database used by a PHP program
from rails.  Any ideas how I can do this?

- Radu
cammo (Guest)
on 2007-04-17 16:13
(Received via mailing list)
If you can get the data in a CSV, YAML or even XML format, you could
write a rake task to do this, and then just fire off the rake task
with a runner.

I only suggest this as I gather that the rails app is already
connected to a different database, and you don't want to connect rails
to two databases(although you can)

This topic is locked and can not be replied to.