debian-mirror-gitlab/app/models/ci/runner_project.rb

11 lines
202 B
Ruby
Raw Normal View History

2015-09-25 12:07:36 +05:30
module Ci
class RunnerProject < ActiveRecord::Base
2018-03-17 18:26:18 +05:30
extend Gitlab::Ci::Model
2015-09-25 12:07:36 +05:30
2017-08-17 22:00:37 +05:30
belongs_to :runner
belongs_to :project
validates :runner_id, uniqueness: { scope: :project_id }
2015-09-25 12:07:36 +05:30
end
end