X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/568ce75c9ad0e19a14afb97d9d0832364232bee8..4b0191befd6ba3010b9d220a5deabf85254038ff:/app/models/map_bug_comment.rb?ds=sidebyside diff --git a/app/models/map_bug_comment.rb b/app/models/map_bug_comment.rb index 166e3fb42..3b95b1fff 100644 --- a/app/models/map_bug_comment.rb +++ b/app/models/map_bug_comment.rb @@ -1,15 +1,12 @@ class MapBugComment < ActiveRecord::Base - set_table_name 'map_bug_comment' belongs_to :map_bug, :foreign_key => 'bug_id' belongs_to :user, :foreign_key => 'commenter_id' - validates_inclusion_of :event, :in => [ "opened", "closed", "reopened", "commented", "hidden" ] - + validates_inclusion_of :event, :in => [ "opened", "closed", "reopened", "commented", "hidden" ] validates_presence_of :id, :on => :update validates_uniqueness_of :id validates_presence_of :visible validates_presence_of :date_created - end