Soc/app/models/micropost.rb

9 lines
150 B
Ruby

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