Source

redmine_standup / app / models / standup_report.rb

Full commit
1
2
3
4
5
6
7
8
9
class StandupReport < ActiveRecord::Base
  attr_accessor  :for_date, :project, :user, :done, :planned, :roadblocks

  belongs_to :project
  belongs_to :user

  validates_presence_of :for_date, :project, :user
  validates_uniqueness_of :for_date, :scope => [:project_id, :user_id]
end