[Rails] Re: Using 2 database into a single RoR application

2009-09-16 Thread Mukund
You will need to restart the Rails application that is running in production mode if you change the schema. On Sep 16, 2:31 pm, "Simone R." wrote: > Hi everybody, > > I'm trying to convert to Ror one of my old ASP classic project. > > the website is an e-commerce with a community > > In this web

[Rails] Re: Using 2 database into a single RoR application

2009-09-16 Thread Steve Rawlinson
You can tell rails to use different databases on a per-model basis. Just put a establish_connection :dbname in the model class, and make sure there's a definition for 'dbname' in config/database.yml. steve -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~-