Skip to content

Add work items hierarchy restrictions table

Jan Provaznik requested to merge jp-hierarchy-tabl into master

What does this MR do and why?

Adds table which will be used for storing parent/child restrictions for work item types.

Related to #378799 (closed)

DB migration

$ rake db:migrate
main: == 20221111142921 AddHierarchyRestrictions: migrating =========================
main: -- create_table(:work_item_hierarchy_restrictions, {})
main:    -> 0.0191s
main: == 20221111142921 AddHierarchyRestrictions: migrated (0.0194s) ================

ci: == 20221111142921 AddHierarchyRestrictions: migrating =========================
ci: -- create_table(:work_item_hierarchy_restrictions, {})
ci:    -> 0.0217s
ci: == 20221111142921 AddHierarchyRestrictions: migrated (0.0219s) ================

$ rake db:rollback:main
main: == 20221111142921 AddHierarchyRestrictions: reverting =========================
main: -- drop_table(:work_item_hierarchy_restrictions)
main:    -> 0.0021s
main: == 20221111142921 AddHierarchyRestrictions: reverted (0.0024s) ================

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Jan Provaznik

Merge request reports