Closed postmodern closed 9 months ago
The ronin-app
command now supports --db
and --db-uri
options for specifying another database. Does the app really need to change the database while running?
I don't think it's possible to switch databases while the app (and sidekiq workers) are running. Closing this.
Since the app uses ronin-db and [roin-db] supports configuring multiple databases, it should be possible to switch to another database as the app is running. Possibly the current database name would be stored in the
session
cookie or sent to Sidekiq workers which import data into the database? I'm not sure how we would tellActiveRecord
to use another database, or whether we'd simply callActiveRecord.establish_connection
again to switch to another database?