X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/bb490aca81d8063a9ad8dd8f1a023c709c096792:/app/models/map_bug_comment.rb..e3b8b8933044104bb515d34c3d36851caba78ac7:/app/models/note_comment.rb diff --git a/app/models/map_bug_comment.rb b/app/models/note_comment.rb similarity index 77% rename from app/models/map_bug_comment.rb rename to app/models/note_comment.rb index 9a130dd34..5e04723bd 100644 --- a/app/models/map_bug_comment.rb +++ b/app/models/note_comment.rb @@ -1,7 +1,5 @@ -class MapBugComment < ActiveRecord::Base - set_table_name 'map_bug_comment' - - belongs_to :map_bug, :foreign_key => :bug_id +class NoteComment < ActiveRecord::Base + belongs_to :note, :foreign_key => :bug_id belongs_to :author, :class_name => "User", :foreign_key => :author_id validates_inclusion_of :event, :in => [ "opened", "closed", "reopened", "commented", "hidden" ]