]> source.dussan.org Git - redmine.git/commitdiff
Prevent warning about already defined constant.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 2 Mar 2017 18:16:13 +0000 (18:16 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 2 Mar 2017 18:16:13 +0000 (18:16 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@16345 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/tasks/redmine.rake

index 973e63e2913396c0b373681a85f604644d53c13a..f1827bb656c760f78a300f62895ac5ad8147431f 100644 (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