How can I make a has_many through work with multiple database connections?
I have a database named \"master\" that holds the location information. That is updated fro
The answer works for me, but I use this version in my relation table:
self.table_name = "master.locations"
A friend answered this for me, and I figured it might be of some use to others.
class Location < ActiveRecord::Base
#establish_connection "master"
def self.table_name() "master.locations" end
has_many :places
has_many :users, :through => :places
end