Add a boolean column for tracking MR draft status
What does this MR do?
Adds a boolean draft
column to merge_requests
. This will allow us to track draft (formerly "WIP") status as an attribute of the MR rather by our current method (regex parsing the title..) This change will help support a seamless migration of "WIP" -> "Draft" as our nomenclature. Dropping official support for "WIP" is scheduled for %14.0, but we can get some of this background work done now.
UP
== 20210513093418 AddDraftColumnToMergeRequests: migrating ====================
-- add_column(:merge_requests, :draft, :boolean, {:default=>false, :null=>false})
-> 0.0048s
== 20210513093418 AddDraftColumnToMergeRequests: migrated (0.0137s) ===========
DOWN
== 20210513093418 AddDraftColumnToMergeRequests: reverting ====================
-- remove_column(:merge_requests, :draft)
-> 0.0031s
== 20210513093418 AddDraftColumnToMergeRequests: reverted (0.0126s) ===========
Related to #330274 (closed)
Edited by Kerri Miller