Commit 2b1f4c6d8451ca15effe4590b84a67fc28fa509b
1 parent
38bf91d9
Exists in
master
and in
1 other branch
Use the old type in issue_tracker instead a fix one
Thanks @stevecrozz to report this error
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
db/migrate/20131011155638_extract_issue_tracker.rb
| ... | ... | @@ -4,7 +4,7 @@ class ExtractIssueTracker < Mongoid::Migration |
| 4 | 4 | App.collection.find.each do |app| |
| 5 | 5 | if app['issue_tracker'] && !app['issue_tracker'].empty? |
| 6 | 6 | it = app['issue_tracker'] |
| 7 | - it['type_tracker'] = 'IssueTrackers::BitbucketIssuesTracker' | |
| 7 | + it['type_tracker'] = app['issue_tracker']['_type'] | |
| 8 | 8 | it['options'] = app['issue_tracker'].dup |
| 9 | 9 | it.delete('_type') |
| 10 | 10 | App.collection.find( | ... | ... |