How can i connect my multiple models at once to remote database using establish_connection with Rails Activerecord

0 votes
asked Mar 16, 2016 by chg_Can (790 points)
I have more than 5 models of my rails application which connect to different tables of remote database, i write establish_connection method in each of that model so that they can connect to different.

3 Answers

0 votes
answered Jun 2, 2016 by vaThe (520 points)
Best answer
This is just something I came up with to solve the problem
0 votes
answered Mar 23, 2016 by Snfdoyle (1,130 points)
The developer docs found here Entity Framework and SQL Azure - work for me when I plug it in
Might also be worth reading the responses to this question as well
0 votes
answered Jun 2, 2016 by Theinnella (500 points)
I know this is a rather old post but I have another slightly simpler solution
This must be the selected answer, i returned this page to recommend Starting Up and Shutting Down - Oracle :)

What is Geekub?

Q&A site for professional and enthusiast programmers, software developers and other technical users. With your help, we hope to work together to build a library of detailed answers to just about any question that is related to programming!