|
|
@ -150,55 +150,55 @@ module Redmine |
|
|
|
end).flatten] |
|
|
|
end).flatten] |
|
|
|
|
|
|
|
|
|
|
|
# Types |
|
|
|
# Types |
|
|
|
task = Type.create! name: l(:default_type_task), |
|
|
|
task = ::Type.create! name: l(:default_type_task), |
|
|
|
color_id: colors[:Mint], |
|
|
|
color_id: colors[:Mint], |
|
|
|
is_default: false, |
|
|
|
is_default: false, |
|
|
|
is_in_roadmap: true, |
|
|
|
is_in_roadmap: true, |
|
|
|
in_aggregation: true, |
|
|
|
in_aggregation: true, |
|
|
|
is_milestone: false, |
|
|
|
is_milestone: false, |
|
|
|
position: 1 |
|
|
|
position: 1 |
|
|
|
|
|
|
|
|
|
|
|
deliverable = Type.create! name: l(:default_type_deliverable), |
|
|
|
deliverable = ::Type.create! name: l(:default_type_deliverable), |
|
|
|
is_default: false, |
|
|
|
is_default: false, |
|
|
|
color_id: colors[:Orange], |
|
|
|
color_id: colors[:Orange], |
|
|
|
is_in_roadmap: true, |
|
|
|
is_in_roadmap: true, |
|
|
|
|
|
|
|
in_aggregation: true, |
|
|
|
|
|
|
|
is_milestone: false, |
|
|
|
|
|
|
|
position: 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
milestone = ::Type.create! name: l(:default_type_milestone), |
|
|
|
|
|
|
|
is_default: true, |
|
|
|
|
|
|
|
color_id: colors[:Purple], |
|
|
|
|
|
|
|
is_in_roadmap: false, |
|
|
|
in_aggregation: true, |
|
|
|
in_aggregation: true, |
|
|
|
is_milestone: false, |
|
|
|
is_milestone: true, |
|
|
|
position: 2 |
|
|
|
position: 3 |
|
|
|
|
|
|
|
|
|
|
|
milestone = Type.create! name: l(:default_type_milestone), |
|
|
|
phase = ::Type.create! name: l(:default_type_phase), |
|
|
|
is_default: true, |
|
|
|
is_default: true, |
|
|
|
color_id: colors[:Purple], |
|
|
|
color_id: colors[:Lime], |
|
|
|
is_in_roadmap: false, |
|
|
|
is_in_roadmap: false, |
|
|
|
in_aggregation: true, |
|
|
|
in_aggregation: true, |
|
|
|
is_milestone: true, |
|
|
|
is_milestone: false, |
|
|
|
position: 3 |
|
|
|
position: 4 |
|
|
|
|
|
|
|
|
|
|
|
phase = Type.create! name: l(:default_type_phase), |
|
|
|
bug = ::Type.create! name: l(:default_type_bug), |
|
|
|
is_default: true, |
|
|
|
is_default: false, |
|
|
|
color_id: colors[:Lime], |
|
|
|
color_id: colors[:'Red-bright'], |
|
|
|
is_in_roadmap: false, |
|
|
|
is_in_roadmap: true, |
|
|
|
in_aggregation: true, |
|
|
|
in_aggregation: true, |
|
|
|
is_milestone: false, |
|
|
|
is_milestone: false, |
|
|
|
position: 4 |
|
|
|
position: 5 |
|
|
|
|
|
|
|
|
|
|
|
bug = Type.create! name: l(:default_type_bug), |
|
|
|
feature = ::Type.create! name: l(:default_type_feature), |
|
|
|
is_default: false, |
|
|
|
is_default: false, |
|
|
|
color_id: colors[:'Red-bright'], |
|
|
|
color_id: colors[:Blue], |
|
|
|
is_in_roadmap: true, |
|
|
|
is_in_roadmap: true, |
|
|
|
in_aggregation: true, |
|
|
|
in_aggregation: true, |
|
|
|
is_milestone: false, |
|
|
|
is_milestone: false, |
|
|
|
position: 5 |
|
|
|
position: 6 |
|
|
|
|
|
|
|
|
|
|
|
feature = Type.create! name: l(:default_type_feature), |
|
|
|
|
|
|
|
is_default: false, |
|
|
|
|
|
|
|
color_id: colors[:Blue], |
|
|
|
|
|
|
|
is_in_roadmap: true, |
|
|
|
|
|
|
|
in_aggregation: true, |
|
|
|
|
|
|
|
is_milestone: false, |
|
|
|
|
|
|
|
position: 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
none = Type.standard_type |
|
|
|
none = ::Type.standard_type |
|
|
|
|
|
|
|
|
|
|
|
# Issue statuses |
|
|
|
# Issue statuses |
|
|
|
new = Status.create!(name: l(:default_status_new), is_closed: false, is_default: true, position: 1) |
|
|
|
new = Status.create!(name: l(:default_status_new), is_closed: false, is_default: true, position: 1) |
|
|
|