@@ -148,17 +148,17 begin | |||||
148 | } |
|
148 | } | |
149 |
|
149 | |||
150 | # enumerations |
|
150 | # enumerations | |
151 | Enumeration.create(:opt => "DCAT", :name => l(:default_doc_category_user)) |
|
151 | Enumeration.create(:opt => "DCAT", :name => l(:default_doc_category_user), :position => 1) | |
152 | Enumeration.create(:opt => "DCAT", :name => l(:default_doc_category_tech)) |
|
152 | Enumeration.create(:opt => "DCAT", :name => l(:default_doc_category_tech), :position => 2) | |
153 |
|
153 | |||
154 | Enumeration.create(:opt => "IPRI", :name => l(:default_priority_low)) |
|
154 | Enumeration.create(:opt => "IPRI", :name => l(:default_priority_low), :position => 1) | |
155 | Enumeration.create(:opt => "IPRI", :name => l(:default_priority_normal)) |
|
155 | Enumeration.create(:opt => "IPRI", :name => l(:default_priority_normal), :position => 2, :is_default => true) | |
156 | Enumeration.create(:opt => "IPRI", :name => l(:default_priority_high)) |
|
156 | Enumeration.create(:opt => "IPRI", :name => l(:default_priority_high), :position => 3) | |
157 | Enumeration.create(:opt => "IPRI", :name => l(:default_priority_urgent)) |
|
157 | Enumeration.create(:opt => "IPRI", :name => l(:default_priority_urgent), :position => 4) | |
158 | Enumeration.create(:opt => "IPRI", :name => l(:default_priority_immediate)) |
|
158 | Enumeration.create(:opt => "IPRI", :name => l(:default_priority_immediate), :position => 5) | |
159 |
|
159 | |||
160 | Enumeration.create(:opt => "ACTI", :name => l(:default_activity_design)) |
|
160 | Enumeration.create(:opt => "ACTI", :name => l(:default_activity_design), :position => 1) | |
161 | Enumeration.create(:opt => "ACTI", :name => l(:default_activity_development)) |
|
161 | Enumeration.create(:opt => "ACTI", :name => l(:default_activity_development), :position => 2) | |
162 |
|
162 | |||
163 | rescue => error |
|
163 | rescue => error | |
164 | puts "Error: " + error |
|
164 | puts "Error: " + error |
General Comments 0
You need to be logged in to leave comments.
Login now