2015-08-25 21:42:46 -04:00
|
|
|
module Ci
|
|
|
|
class RunnerProject < ActiveRecord::Base
|
|
|
|
extend Ci::Model
|
|
|
|
|
2016-10-18 17:20:36 -04:00
|
|
|
belongs_to :runner
|
|
|
|
belongs_to :project, foreign_key: :gl_project_id
|
2015-08-25 21:42:46 -04:00
|
|
|
|
2017-02-21 19:40:04 -05:00
|
|
|
validates :runner_id, uniqueness: { scope: :gl_project_id }
|
2015-08-25 21:42:46 -04:00
|
|
|
end
|
|
|
|
end
|