debian-mirror-gitlab/app/models/ci/runner_project.rb
2016-06-02 11:05:42 +05:30

10 lines
279 B
Ruby

module Ci
class RunnerProject < ActiveRecord::Base
extend Ci::Model
belongs_to :runner, class_name: 'Ci::Runner'
belongs_to :project, class_name: '::Project', foreign_key: :gl_project_id
validates_uniqueness_of :runner_id, scope: :gl_project_id
end
end