Commit 2b1f4c6d8451ca15effe4590b84a67fc28fa509b

Authored by Cyril Mougel
1 parent 38bf91d9
Exists in master and in 1 other branch production

Use the old type in issue_tracker instead a fix one

Thanks @stevecrozz to report this error
db/migrate/20131011155638_extract_issue_tracker.rb
@@ -4,7 +4,7 @@ class ExtractIssueTracker < Mongoid::Migration @@ -4,7 +4,7 @@ class ExtractIssueTracker < Mongoid::Migration
4 App.collection.find.each do |app| 4 App.collection.find.each do |app|
5 if app['issue_tracker'] && !app['issue_tracker'].empty? 5 if app['issue_tracker'] && !app['issue_tracker'].empty?
6 it = app['issue_tracker'] 6 it = app['issue_tracker']
7 - it['type_tracker'] = 'IssueTrackers::BitbucketIssuesTracker' 7 + it['type_tracker'] = app['issue_tracker']['_type']
8 it['options'] = app['issue_tracker'].dup 8 it['options'] = app['issue_tracker'].dup
9 it.delete('_type') 9 it.delete('_type')
10 App.collection.find( 10 App.collection.find(