If I want to work with more than one database in rails how can I handles separate migration one for each database?
In this case I have one account database and other database for the data.
Having something like:
migrate/accounts/.
migrate/mydatabase/.
So I can run independents migrations.
In your database.yml create the different connections to the database like:
Then to each model you choose to each database it is stored using:
EDIT
If you want to apply it to a migration you can do: