with_model
with_model copied to clipboard
Create table in same database as `superclass`
Before this change, using with_model with a superclass that connects to a database other than the database configured for ActiveRecord::Base would end up creating the table in the wrong database.
@nertzy any chance we could have this reviewed and merged? It's an important change to properly work with multiple database connections introduced by Rails 6.