1 # == Schema Information
 
   3 # Table name: issue_comments
 
   5 #  id         :integer          not null, primary key
 
   6 #  issue_id   :integer          not null
 
   7 #  user_id    :integer          not null
 
   9 #  created_at :datetime         not null
 
  10 #  updated_at :datetime         not null
 
  14 #  index_issue_comments_on_issue_id  (issue_id)
 
  15 #  index_issue_comments_on_user_id   (user_id)
 
  19 #  issue_comments_issue_id_fkey  (issue_id => issues.id)
 
  20 #  issue_comments_user_id_fkey   (user_id => users.id)
 
  23 class IssueComment < ApplicationRecord
 
  27   validates :body, :presence => true, :characters => true
 
  30     RichText.new("markdown", self[:body])