1 2 3 4 5 6 7
class Message < ApplicationRecord has_rich_text :content has_rich_text :body has_one :review accepts_nested_attributes_for :review end