2013-07-31 13:20:30 +01:00
|
|
|
class ProjectStatistic < ActiveRecord::Base
|
|
|
|
|
|
|
|
belongs_to :arch
|
|
|
|
belongs_to :project
|
|
|
|
|
2014-11-25 16:42:02 +00:00
|
|
|
validates :arch, :project, :average_build_time, :build_count, presence: true
|
2014-03-11 12:40:44 +00:00
|
|
|
validates :project_id, uniqueness: { scope: :arch_id }
|
2013-07-31 13:20:30 +01:00
|
|
|
end
|