}\r
\r
# enumerations\r
- Enumeration.create(:opt => "DCAT", :name => l(:default_doc_category_user))\r
- Enumeration.create(:opt => "DCAT", :name => l(:default_doc_category_tech))\r
+ Enumeration.create(:opt => "DCAT", :name => l(:default_doc_category_user), :position => 1)\r
+ Enumeration.create(:opt => "DCAT", :name => l(:default_doc_category_tech), :position => 2)\r
\r
- Enumeration.create(:opt => "IPRI", :name => l(:default_priority_low))\r
- Enumeration.create(:opt => "IPRI", :name => l(:default_priority_normal))\r
- Enumeration.create(:opt => "IPRI", :name => l(:default_priority_high))\r
- Enumeration.create(:opt => "IPRI", :name => l(:default_priority_urgent))\r
- Enumeration.create(:opt => "IPRI", :name => l(:default_priority_immediate))\r
+ Enumeration.create(:opt => "IPRI", :name => l(:default_priority_low), :position => 1)\r
+ Enumeration.create(:opt => "IPRI", :name => l(:default_priority_normal), :position => 2, :is_default => true)\r
+ Enumeration.create(:opt => "IPRI", :name => l(:default_priority_high), :position => 3)\r
+ Enumeration.create(:opt => "IPRI", :name => l(:default_priority_urgent), :position => 4)\r
+ Enumeration.create(:opt => "IPRI", :name => l(:default_priority_immediate), :position => 5)\r
\r
- Enumeration.create(:opt => "ACTI", :name => l(:default_activity_design))\r
- Enumeration.create(:opt => "ACTI", :name => l(:default_activity_development))\r
+ Enumeration.create(:opt => "ACTI", :name => l(:default_activity_design), :position => 1)\r
+ Enumeration.create(:opt => "ACTI", :name => l(:default_activity_development), :position => 2)\r
\r
rescue => error\r
puts "Error: " + error\r