Rails List wrote:
> Are you able to access both the databases in your single application?. 
> If so, what connection settings you have?.

Yes
I have defined
a second database in my database.yml like this
development:
  adapter: mysql
  encoding: utf8
  reconnect: false
  database: database_1
  pool: 5
  username: root
  password: root123
  host: localhost

database_2:
  adapter: mysql
  reconnect: true
  database: database_2
  username: root
  password: root123
  host: localhost

and i establish my connection for my second database like this
class Project < ActiveRecord::Base
 self.establish_connection :database_2
end
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to