Soc/app/models/micropost.rb

10 lines
187 B
Ruby

# frozen_string_literal: true
class Micropost < ApplicationRecord
belongs_to :user
has_rich_text :content
validates :user, presence: true
validates :content, presence: true
end