2015-08-26 01:42:46 +00:00
|
|
|
module Ci
|
|
|
|
class RunnerProject < ActiveRecord::Base
|
|
|
|
extend Ci::Model
|
2017-03-17 23:06:11 +00:00
|
|
|
|
2016-10-18 21:20:36 +00:00
|
|
|
belongs_to :runner
|
2017-03-17 23:06:11 +00:00
|
|
|
belongs_to :project
|
2015-08-26 01:42:46 +00:00
|
|
|
|
2017-03-17 23:06:11 +00:00
|
|
|
validates :runner_id, uniqueness: { scope: :project_id }
|
2015-08-26 01:42:46 +00:00
|
|
|
end
|
|
|
|
end
|