Merge branches 'feature/planning-element-type-migration' and 'feature/better-defaults' into feature/merge_planning_element_type_with_type
commit
f946d2d48c
@ -0,0 +1,17 @@ |
||||
class MovePlanningElementTypesToLegacyPlanningElementTypes < ActiveRecord::Migration |
||||
def up |
||||
rename_table :default_planning_element_types, :legacy_default_planning_element_types |
||||
rename_table :enabled_planning_element_types, :legacy_enabled_planning_element_types |
||||
rename_table :planning_element_types, :legacy_planning_element_types |
||||
|
||||
remove_column :work_packages, :planning_element_type_id |
||||
end |
||||
|
||||
def down |
||||
rename_table :legacy_default_planning_element_types, :default_planning_element_types |
||||
rename_table :legacy_enabled_planning_element_types, :enabled_planning_element_types |
||||
rename_table :legacy_planning_element_types, :planning_element_types |
||||
|
||||
add_column :work_packages, :planning_element_type_id, :integer |
||||
end |
||||
end |
Loading…
Reference in new issue