gitlab-org--gitlab-foss/app/models/ci/runner_project.rb
2017-02-23 09:31:57 -06:00

10 lines
230 B
Ruby

module Ci
class RunnerProject < ActiveRecord::Base
extend Ci::Model
belongs_to :runner
belongs_to :project, foreign_key: :gl_project_id
validates :runner_id, uniqueness: { scope: :gl_project_id }
end
end