people like to shit on document databases - but man oh man - the expressivity you get working with document databases combined with Ruby is unmatched.
I know someone is gonna reply all you need is postgres - but yeah jsonb queries don't match mongo queries. & after all - most of the places I have worked the database writes / queries hit one or two tables and work loads got migrated to dynamodb. that includes socia media ingestion, iot streams and metasearch.
yeah if you need kimball style queries i.e olap then yeah use postgres with rails etc
People like to shit on mongo not so much on others as far as I have seen. They were bitten by it I guess.
I guess they are harder to grok after the initial ease of use: performance is harder to reason about; things can suddenly grind to a halt even though you 'didn't do anything different' etc.
yeah if you need kimball style queries i.e olap then yeah use postgres with rails etc