2015-08-25 21:42:46 -04:00
|
|
|
module Ci
|
|
|
|
class RunnerProject < ActiveRecord::Base
|
2017-09-06 07:13:52 -04:00
|
|
|
extend Gitlab::Ci::Model
|
2017-03-17 19:06:11 -04:00
|
|
|
|
2016-10-18 17:20:36 -04:00
|
|
|
belongs_to :runner
|
2017-03-17 19:06:11 -04:00
|
|
|
belongs_to :project
|
2015-08-25 21:42:46 -04:00
|
|
|
|
2017-03-17 19:06:11 -04:00
|
|
|
validates :runner_id, uniqueness: { scope: :project_id }
|
2015-08-25 21:42:46 -04:00
|
|
|
end
|
|
|
|
end
|