2013-07-31 13:20:30 +01:00
|
|
|
class ProjectStatistic < ActiveRecord::Base
|
|
|
|
|
|
|
|
belongs_to :arch
|
|
|
|
belongs_to :project
|
|
|
|
|
2014-01-21 04:51:49 +00:00
|
|
|
validates :arch_id, :project_id, :average_build_time, :build_count, presence: true
|
|
|
|
validates :project_id, uniqueness: {scope: :arch_id}
|
2013-07-31 13:20:30 +01:00
|
|
|
|
2013-07-31 14:17:40 +01:00
|
|
|
attr_accessible :average_build_time, :build_count
|
2013-07-31 13:20:30 +01:00
|
|
|
end
|