Is it possible to have Postgresql and MongoDB in the same project ? I would like to be able to use generators for both as well.
Asked
Active
Viewed 1,132 times
1 Answers
4
Yes. You can have multiple database.yml files, etc.
There are a number of articles about getting multiple dbs set up in Rails. http://www.thegreatcodeadventure.com/managing-multiple-databases-in-a-single-rails-application/ http://www.ostinelli.net/setting-multiple-databases-rails-definitive-guide/
In terms of using generators this post should help: Rails 4: Use MySql and MongoDB together

rantingsonrails
- 568
- 4
- 18
-
I didn't find this link that was already on Stack. It was very useful. – andrefurquin Jan 16 '18 at 10:46
-
Could you also explain how to deal with migrations and optimizing number of connections in the pool to avoid duplicates due to misconfigured models. Cheerios – Nick M Apr 12 '19 at 07:42