Can I Rebuild db/schema.rb to Include Multiple Databases Without Migrations?
<p>I have a Rails 5 application that uses three different existing databases. No migrations were needed in this application. I want to build <code>db/schema.rb</code> to include all three databases, not just the main database. Executing <code>rake db:schema:dump</code> rebuilds the schema using the main database. I believe there is a way to do this but for some reason the way I've been searching I cannot find anything about this. All of the posts I have found discuss how to use models from different databases, not how to rebuild the schema to include all databases.</p>