388cb319d5
Partially addresses #47424.
12 lines
293 B
Ruby
12 lines
293 B
Ruby
# frozen_string_literal: true
|
|
|
|
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
|