MongoDB

gem 'mongoid', '~> 7.0.5'
bin/rails g mongoid:config
rails webpacker:install
class Comment
include Mongoid::Document

field :name, type: String
field :message, type: String

belongs_to :post
end

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store