2018-08-03 07:15:25 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2015-08-26 01:42:46 +00:00
|
|
|
module Ci
|
2019-03-28 13:17:42 +00:00
|
|
|
class RunnerProject < ApplicationRecord
|
2017-09-06 11:13:52 +00:00
|
|
|
extend Gitlab::Ci::Model
|
2017-03-17 23:06:11 +00:00
|
|
|
|
2018-05-28 11:07:28 +00:00
|
|
|
belongs_to :runner, inverse_of: :runner_projects
|
|
|
|
belongs_to :project, inverse_of: :runner_projects
|
2015-08-26 01:42:46 +00:00
|
|
|
|
2017-03-17 23:06:11 +00:00
|
|
|
validates :runner_id, uniqueness: { scope: :project_id }
|
2015-08-26 01:42:46 +00:00
|
|
|
end
|
|
|
|
end
|