Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil TrzciƄski <ayufan@ayufan.eu>2018-05-28 14:07:28 +0300
committerDylan Griffith <dyl.griffith@gmail.com>2018-05-31 11:56:41 +0300
commitcfee3e0c4ef3a8b3bf6aafd325c791d0d89d68df (patch)
tree6b5a84c33c87fbe59ec5b16466be747e49e0630a /app/models/ci/runner_project.rb
parent53ef14c6765c09601e0ef2bd632741a78f84ae32 (diff)
Add `Ci::Runner` inverse_of's
Diffstat (limited to 'app/models/ci/runner_project.rb')
-rw-r--r--app/models/ci/runner_project.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/ci/runner_project.rb b/app/models/ci/runner_project.rb
index 505d178ba8e..52437047300 100644
--- a/app/models/ci/runner_project.rb
+++ b/app/models/ci/runner_project.rb
@@ -2,8 +2,8 @@ module Ci
class RunnerProject < ActiveRecord::Base
extend Gitlab::Ci::Model
- belongs_to :runner
- belongs_to :project
+ belongs_to :runner, inverse_of: :runner_projects
+ belongs_to :project, inverse_of: :runner_projects
validates :runner_id, uniqueness: { scope: :project_id }
end