Three easy lessons: 1. Don't use MongoDB. 2. Don't use high level ORMs. Stay (reasonably) close to SQL. And yes, it should be SQL. Almost certainly Postgres. 3. Especially don't use Mongoid.
Mongo is a nightmare when things get more complex, document based DBs don't work well. It's hard to say why, but strange things tend to happen
Ether use something like Firebase which manages everything for you, I use Firebase extensively for almost all of my side projects.
It's basically magic. I'm so hooked I ended up using Firebase even though I needed to talk to AWS apis as well. Not fun...
Edit: I would NOT use Firebase for a corporate project, there's a very strange feeling of not really being in control