Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I let my application use 2 different mongo databases. #185

Open
kvemula9 opened this issue Jul 5, 2018 · 0 comments
Open

How do I let my application use 2 different mongo databases. #185

kvemula9 opened this issue Jul 5, 2018 · 0 comments

Comments

@kvemula9
Copy link

kvemula9 commented Jul 5, 2018

We recently upgraded from Rails 3 to Rails 5. So we had to move from carrierwave gem to carrierwave-mongoid. Previously we used to connect to 2 different databases based on which connection the uploader class used and overriding grid_fs_connection (now seemingly gone from mongoid). Mongoid itself supports multiple databases however we are unable to figure out how to override carrierwave-mongoid's use of the default database.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant