summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/tasks/migrate_from_trac.rake5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/tasks/migrate_from_trac.rake b/lib/tasks/migrate_from_trac.rake
index 4226d79c0..50048634b 100644
--- a/lib/tasks/migrate_from_trac.rake
+++ b/lib/tasks/migrate_from_trac.rake
@@ -98,6 +98,11 @@ namespace :redmine do
nil
end
end
+
+ def description
+ # Attribute is named descr in Trac v0.8.x
+ has_attribute?(:descr) ? read_attribute(:descr) : read_attribute(:description)
+ end
end
class TracTicketCustom < ActiveRecord::Base