2015-08-26 01:42:46 +00:00
|
|
|
module Ci
|
|
|
|
class RunnerProject < ActiveRecord::Base
|
|
|
|
extend Ci::Model
|
|
|
|
|
|
|
|
belongs_to :runner, class_name: 'Ci::Runner'
|
2015-12-04 11:55:23 +00:00
|
|
|
belongs_to :project, class_name: '::Project', foreign_key: :gl_project_id
|
2015-08-26 01:42:46 +00:00
|
|
|
|
2015-12-04 11:55:23 +00:00
|
|
|
validates_uniqueness_of :runner_id, scope: :gl_project_id
|
2015-08-26 01:42:46 +00:00
|
|
|
end
|
|
|
|
end
|