summaryrefslogtreecommitdiffstats
path: root/lib/redmine/default_data/loader.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-06-23 20:17:47 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-06-23 20:17:47 +0000
commit72a396227ac59633da95542b4b1bd5d7f6bc0358 (patch)
treeabe4f5a1c9a1dff4d456a3648eac9d7ba589bf55 /lib/redmine/default_data/loader.rb
parent2221d68c4d2c208f5aebc511988cc080a3b74cdf (diff)
downloadredmine-72a396227ac59633da95542b4b1bd5d7f6bc0358.tar.gz
redmine-72a396227ac59633da95542b4b1bd5d7f6bc0358.zip
Fixes default data loader broken by r2777 (#3507).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2792 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/default_data/loader.rb')
-rw-r--r--lib/redmine/default_data/loader.rb18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/redmine/default_data/loader.rb b/lib/redmine/default_data/loader.rb
index a923b5783..3f1103ae3 100644
--- a/lib/redmine/default_data/loader.rb
+++ b/lib/redmine/default_data/loader.rb
@@ -156,17 +156,17 @@ module Redmine
}
# Enumerations
- Enumeration.create!(:opt => "DCAT", :name => l(:default_doc_category_user), :position => 1)
- Enumeration.create!(:opt => "DCAT", :name => l(:default_doc_category_tech), :position => 2)
+ DocumentCategory.create!(:opt => "DCAT", :name => l(:default_doc_category_user), :position => 1)
+ DocumentCategory.create!(:opt => "DCAT", :name => l(:default_doc_category_tech), :position => 2)
- Enumeration.create!(:opt => "IPRI", :name => l(:default_priority_low), :position => 1)
- Enumeration.create!(:opt => "IPRI", :name => l(:default_priority_normal), :position => 2, :is_default => true)
- Enumeration.create!(:opt => "IPRI", :name => l(:default_priority_high), :position => 3)
- Enumeration.create!(:opt => "IPRI", :name => l(:default_priority_urgent), :position => 4)
- Enumeration.create!(:opt => "IPRI", :name => l(:default_priority_immediate), :position => 5)
+ IssuePriority.create!(:opt => "IPRI", :name => l(:default_priority_low), :position => 1)
+ IssuePriority.create!(:opt => "IPRI", :name => l(:default_priority_normal), :position => 2, :is_default => true)
+ IssuePriority.create!(:opt => "IPRI", :name => l(:default_priority_high), :position => 3)
+ IssuePriority.create!(:opt => "IPRI", :name => l(:default_priority_urgent), :position => 4)
+ IssuePriority.create!(:opt => "IPRI", :name => l(:default_priority_immediate), :position => 5)
- Enumeration.create!(:opt => "ACTI", :name => l(:default_activity_design), :position => 1)
- Enumeration.create!(:opt => "ACTI", :name => l(:default_activity_development), :position => 2)
+ TimeEntryActivity.create!(:opt => "ACTI", :name => l(:default_activity_design), :position => 1)
+ TimeEntryActivity.create!(:opt => "ACTI", :name => l(:default_activity_development), :position => 2)
end
true
end