0

How to setup multiple databases for padrino + mysql web app. I already try "establish_connection" with activerecord. I found database not found problem.

Felix
  • 4,510
  • 2
  • 31
  • 46

1 Answers1

0

I guess this depends on the ORM you use (activerecord in your case?). There is config/database.rb to get you started. I know that DataMapper has the concept of repositories, which I personally would likely define there and depending on the use-case in the Model-files.

Felix
  • 4,510
  • 2
  • 31
  • 46