gitlab-org--gitlab-foss/app/models/ci/runner_project.rb

11 lines
228 B
Ruby
Raw Normal View History

2015-08-25 21:42:46 -04:00
module Ci
class RunnerProject < ActiveRecord::Base
extend Ci::Model
belongs_to :runner
belongs_to :project, foreign_key: :gl_project_id
2015-08-25 21:42:46 -04:00
2015-12-04 06:55:23 -05:00
validates_uniqueness_of :runner_id, scope: :gl_project_id
2015-08-25 21:42:46 -04:00
end
end