openstreetmap-website/app/models/map_bug_comment.rb
Kai Krueger eac7348ad2 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
2010-03-01 21:05:40 +00:00

14 lines
283 B
Ruby

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