Ruby on Rails Wednesday, May 29, 2019

In case anyone is still interested in this.
According to @eileencodes , Rails 6 does support multiple databases with different structures
In order for this to work correctly you need to specify a different `migrations_path` per each database like below:

config/database.yml
development:
  primary
:
    migrations_paths
: "db/migrate/primary"
  animals
:
    migrations_paths
: "db/migrate/animals"

There is an open issue to improve documentation for this https://github.com/rails/rails/issues/36205

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/944c17f9-8bd1-4c38-bf96-a0bd229ed131%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment