rosa-build/app/models/project_statistic.rb

9 lines
227 B
Ruby
Raw Normal View History

2013-07-31 13:20:30 +01:00
class ProjectStatistic < ActiveRecord::Base
belongs_to :arch
belongs_to :project
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