Forum: Ruby on Rails SQL queries in another DB

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

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)

Cam
This topic is locked and can not be replied to.