Split comment field out of map bugs table

Rather than have all comments in a single text field, have each comment in its own entry
and only combine them back on output
This commit is contained in:
Kai Krueger 2010-03-01 21:05:40 +00:00
parent 42822a8b89
commit eac7348ad2
4 changed files with 85 additions and 8 deletions

View file

@ -0,0 +1,14 @@
class MapBugComment < ActiveRecord::Base
set_table_name 'map_bug_comment'
belongs_to :map_bug, :foreign_key => 'bug_id'
validates_presence_of :id, :on => :update
validates_uniqueness_of :id
validates_presence_of :visible
validates_presence_of :date_created
end