summaryrefslogtreecommitdiffstats
path: root/lib/tasks
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-03-02 18:16:13 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-03-02 18:16:13 +0000
commit7d04dca69777b3accda9cac5d8e5707112442d3a (patch)
treeef99bc708f5b0935c8c81a9b9b92c1f7de708ce6 /lib/tasks
parent2b0e910cd532d28360b2ebdd74561e2c4bacf4d5 (diff)
downloadredmine-7d04dca69777b3accda9cac5d8e5707112442d3a.tar.gz
redmine-7d04dca69777b3accda9cac5d8e5707112442d3a.zip
Prevent warning about already defined constant.
git-svn-id: http://svn.redmine.org/redmine/trunk@16345 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/redmine.rake3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/tasks/redmine.rake b/lib/tasks/redmine.rake
index 973e63e29..f1827bb65 100644
--- a/lib/tasks/redmine.rake
+++ b/lib/tasks/redmine.rake
@@ -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