X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/a1cb0f04d476101116087286ff072d3a137355cb..4b0191befd6ba3010b9d220a5deabf85254038ff:/app/models/map_bug_comment.rb 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