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




Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

✨special ✨ repository that you can use to add a to your GitHub profile.

How to make a Reddit ticker scraper

5 Skills Needed to Become a Technical PM

Key Points from Software Engineering At Google By Titus Winters, Tom Manshreck & Hyrum Wright

How to mount the Storage units automatically for Linux(Debian) servers

AWS Command Line Interface (CLI)

When Meetings Go Bad

Computer Shop Acton

Acton Computer Shop

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


More from Medium

NoSQL with MongoDB

Introduction To MongoDB

Socket.IO & it’s Implementation Using Node.js

How to Setup A BasicExpress Server From Scratch

a picture of package.json