Forum: Ruby on Rails Can different models use different databases?

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.
Christian Cantrell (Guest)
on 2006-03-28 04:42
(Received via mailing list)
If you define the establish_connection method in a model to use a
different database than the one defined in config/database.yml, will
Rails run queries across both databases and do cross-database joins
when necessary?  I'm using MySQL, and I know that MySQL supports
cross-database queries, but I'm not sure if Rails supports them.

This topic is locked and can not be replied to.