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

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.
09f354ff8f89137ee2f079621b571d7e?d=identicon&s=25 Christian Cantrell (Guest)
on 2006-03-28 02: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.

Thanks,
Christian
This topic is locked and can not be replied to.