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/variable.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/variable.rb')
-rw-r--r-- | app/models/ci/variable.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ci/variable.rb b/app/models/ci/variable.rb index 6959223aed9..94d9e2b3208 100644 --- a/app/models/ci/variable.rb +++ b/app/models/ci/variable.rb @@ -2,7 +2,7 @@ module Ci class Variable < ActiveRecord::Base extend Ci::Model - belongs_to :project, class_name: '::Project', foreign_key: :gl_project_id + belongs_to :project, foreign_key: :gl_project_id validates_uniqueness_of :key, scope: :gl_project_id validates :key, |