rosa-build/app/models/project_statistic.rb

11 lines
280 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
2013-07-31 14:17:40 +01:00
attr_accessible :average_build_time, :build_count
2013-07-31 13:20:30 +01:00
end