Commit e66b1321bbeecd984df408e0108d61efeaab4d2d
1 parent
4d5480f8
Exists in
master
and in
1 other branch
Fix rubocop offense
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
db/migrate/201510290041_extract_issue_tracker.rb
| @@ -22,13 +22,13 @@ class ExtractIssueTracker < Mongoid::Migration | @@ -22,13 +22,13 @@ class ExtractIssueTracker < Mongoid::Migration | ||
| 22 | options.delete('_type') | 22 | options.delete('_type') |
| 23 | options.delete('_id') | 23 | options.delete('_id') |
| 24 | 24 | ||
| 25 | - _type = app.attributes['issue_tracker']['_type'] | 25 | + type = app.attributes['issue_tracker']['_type'] |
| 26 | updated_at = options.delete('updated_at') | 26 | updated_at = options.delete('updated_at') |
| 27 | created_at = options.delete('created_at') | 27 | created_at = options.delete('created_at') |
| 28 | 28 | ||
| 29 | - if TRACKER_MAPPING.include?(_type) | 29 | + if TRACKER_MAPPING.include?(type) |
| 30 | tracker = { | 30 | tracker = { |
| 31 | - 'type_tracker' => TRACKER_MAPPING[_type], | 31 | + 'type_tracker' => TRACKER_MAPPING[type], |
| 32 | 'options' => options, | 32 | 'options' => options, |
| 33 | 'updated_at' => updated_at, | 33 | 'updated_at' => updated_at, |
| 34 | 'created_at' => created_at | 34 | 'created_at' => created_at |