Hi,

I have a scenario, we have 2 applications running on the same server,
each on their own domain, (but that's irrelevant), both applications
have a User model (and table, in separate databases), both use Restful
auth plugin etc.
I have set app B to load users from the database of app A with a
custom connection in the User model, all works smashingly! What I'm
wondering is, lets say I wanted all users to be in a separate
database, maybe on another server, which only stores users, is there
some; possibly undocumented way of telling ActiveRecord::Migration to
connect to another database when running that migration?

Also, I haven't tried this, but maybe someone has, or knows someone
else who has: Will my record associations still work? e.g. User
has_many Orders? or User HABTM Roles if the roles table is on another
database?

Ivan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to