1 # == Schema Information
5 # id :integer not null, primary key
8 # details :text not null
9 # created_at :datetime not null
10 # updated_at :datetime not null
14 # index_reports_on_issue_id (issue_id)
15 # index_reports_on_user_id (user_id)
19 # reports_issue_id_fkey (issue_id => issues.id) ON DELETE => cascade
20 # reports_user_id_fkey (user_id => users.id) ON DELETE => cascade
23 class Report < ActiveRecord::Base
24 belongs_to :issue, :counter_cache => true
27 validates :details, :presence => true