blob: 52437047300e0cf98940b2c16ae43ea9a1cba499 (
plain)
1
2
3
4
5
6
7
8
9
10
|
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
|