]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/note_comment.rb
Mass rename of "bugs" as "notes" for increased user friendliness
[rails.git] / app / models / note_comment.rb
similarity index 77%
rename from app/models/map_bug_comment.rb
rename to app/models/note_comment.rb
index 9a130dd3469f82caca4c99d8460da27efff0f3ac..5e04723bdda191d70aff16b5c4c04c5ce082767b 100644 (file)
@@ -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" ]