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

13 lines
293 B
Ruby
Raw Normal View History

2018-11-18 11:00:15 +05:30
# frozen_string_literal: true
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
2018-11-08 19:23:39 +05:30
belongs_to :runner, inverse_of: :runner_projects
belongs_to :project, inverse_of: :runner_projects
2017-08-17 22:00:37 +05:30
validates :runner_id, uniqueness: { scope: :project_id }
2015-09-25 12:07:36 +05:30
end
end