ankane/multiverse

dbconsole

Closed this issue · 4 comments

jjb commented

Thanks for multiverse - I just started using it and it's been great so far!

Do you think it would be useful/possible to support this?

DB=catalog rails dbconsole

Hey @jjb, I think it could be useful. Happy to accept a PR for it. Will need to add it to the test suite to make sure it works across all supported versions of Rails.

Just trying to understand the issue. What would be the usage of it? At the moment, by running rails console we can already access both database connections since ActiveRecord model will handle it right?

jjb commented

by default rails dbconsole starts the console with the main app database selected. foo_development. to switch to my other multiverse-enabled database, i have to do (in postgres) \c catalog_development.

Cleaning up issues. Since Rails 6 supports multiple databases 🎉, I don't plan to add any more significant features.