This script is patch of the redmine migration script. You should overwrite to lib/tasks/migrate_from_trac.rake.