BigW Consortium Gitlab

runner_project.rb 279 Bytes
Newer Older
1 2 3 4 5
module Ci
  class RunnerProject < ActiveRecord::Base
    extend Ci::Model
    
    belongs_to :runner, class_name: 'Ci::Runner'
6
    belongs_to :project, class_name: '::Project', foreign_key: :gl_project_id
7

8
    validates_uniqueness_of :runner_id, scope: :gl_project_id
9 10
  end
end