1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-08 16:41:31 +00:00

Prevent warning about already defined constant.

git-svn-id: http://svn.redmine.org/redmine/trunk@16345 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2017-03-02 18:16:13 +00:00
parent 2b0e910cd5
commit 7d04dca697

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