diff options
author | David Wagner <david@marvid.fr> | 2016-10-18 23:20:36 +0200 |
---|---|---|
committer | David Wagner <david@marvid.fr> | 2016-10-24 22:29:48 +0200 |
commit | 03b6108f6f293830e50d113068877be155549fdd (patch) | |
tree | 036b693ccf6e556ba3ba404cdee918af18dec0ae /app/models/ci/runner.rb | |
parent | 4658c9a234b270897b0e9042a3f51fcdc376146b (diff) | |
download | gitlab-ce-03b6108f6f293830e50d113068877be155549fdd.tar.gz |
Remove redundant class_name and foreign_key overrides
They were Rails' default and are unnecessarily overridden.
Signed-off-by: David Wagner <david@marvid.fr>
Diffstat (limited to 'app/models/ci/runner.rb')
-rw-r--r-- | app/models/ci/runner.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/ci/runner.rb b/app/models/ci/runner.rb index 44cb19ece3b..123930273e0 100644 --- a/app/models/ci/runner.rb +++ b/app/models/ci/runner.rb @@ -6,9 +6,9 @@ module Ci AVAILABLE_SCOPES = %w[specific shared active paused online] FORM_EDITABLE = %i[description tag_list active run_untagged locked] - has_many :builds, class_name: 'Ci::Build' - has_many :runner_projects, dependent: :destroy, class_name: 'Ci::RunnerProject' - has_many :projects, through: :runner_projects, class_name: '::Project', foreign_key: :gl_project_id + has_many :builds + has_many :runner_projects, dependent: :destroy + has_many :projects, through: :runner_projects, foreign_key: :gl_project_id has_one :last_build, ->() { order('id DESC') }, class_name: 'Ci::Build' |