Displaying 1 result from an estimated 1 matches for "loe_db".
Did you mean:
lo_b
2009 Jan 13
2
Connect multiple DB in rails project using AR
...do |s|
h = {:host => "localhost",
:adapter => "jdbc",
:dialect => "sybase",
:autocommit => false,
:driver => "com.sybase.jdbc3.jdbc.SybDataSource",
:url => "jdbc:sybase:Tds:#{s.host):#{s.port}/LOE_DB",
:username => "username",
:password => "password"}
# How to I write code to establish 40 connections using active record
here??
# class "Server.name" < ActiveRecord::Base
# end
# "Server.name".establish_connection(h...