Welcome to mirror list, hosted at ThFree Co, Russian Federation.

runner_project.rb « ci « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1f9baeca5b17250bc4f89cb343daa5e0b3133ea9 (plain)
1
2
3
4
5
6
7
8
9
10
module Ci
  class RunnerProject < ActiveRecord::Base
    extend Ci::Model
    
    belongs_to :runner
    belongs_to :project, foreign_key: :gl_project_id

    validates_uniqueness_of :runner_id, scope: :gl_project_id
  end
end