debian-mirror-gitlab/app/models/ci/runner_project.rb
2019-07-07 11:18:12 +05:30

12 lines
292 B
Ruby

# frozen_string_literal: true
module Ci
class RunnerProject < ApplicationRecord
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