]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/issue_comment.rb
Remove redundant presence validation on belongs_to
[rails.git] / app / models / issue_comment.rb
index 0841295e1760120335d2e16ed79f57b20a9a67c2..07647d67946f221564dc7667065ee8f737c99aa0 100644 (file)
 #  issue_comments_user_id_fkey   (user_id => users.id)
 #
 
-class IssueComment < ActiveRecord::Base
+class IssueComment < ApplicationRecord
   belongs_to :issue
   belongs_to :user
 
   validates :body, :presence => true, :characters => true
-  validates :user, :presence => true
-  validates :issue, :presence => true
 end