gitlab-org--gitlab-foss/app/models/ci/runner_project.rb
2018-05-31 10:56:41 +02:00

10 lines
262 B
Ruby

module Ci
class RunnerProject < ActiveRecord::Base
extend Gitlab::Ci::Model
belongs_to :runner, inverse_of: :runner_projects
belongs_to :project, inverse_of: :runner_projects
validates :runner_id, uniqueness: { scope: :project_id }
end
end