How migration multi-dbs in Rails

40 Views Asked by At

How do I build multi databases environments in Rails?

of course, I know, using "establish_connection" allow to connect specified database, but no longer good to migration.

In the best condition, when "rake db:migrate", each tables are created in pertinent databases.

My environment is below:

Ruby 2.1.1
Rails 4.1
MySQL 5.6.13

0

There are 0 best solutions below