You might like Thredded then. It is somewhat similar to Discourse, but runs just off the database alone, including full text search, and it is a Rails Engine so can be seamlessly interated into an existing Rails app. https://github.com/thredded/thredded