Browse Source

Prevent warning about already defined constant.

git-svn-id: http://svn.redmine.org/redmine/trunk@16345 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/3.4.0
Jean-Philippe Lang 7 years ago
parent
commit
7d04dca697
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      lib/tasks/redmine.rake

+ 3
- 0
lib/tasks/redmine.rake View File

@@ -103,6 +103,9 @@ DESC
Target.connection.reset_pk_sequence!(table_name) if Target.primary_key
target_count = Target.count
abort "Some records were not migrated" unless source_count == target_count

Object.send(:remove_const, :Target)
Object.send(:remove_const, :Source)
end
end


Loading…
Cancel
Save