Migration: Add columns about 'Deployment' to project_settings
Related issue: #381418 (closed)
What does this MR do and why?
Add a column allow_deployment_trigger_to_approve
to table project_settings
, which means "whether the deployment trigger is allowed to approve".
# Up
main: == 20221122141046 AddAllowPipelineTriggerApproveDeploymentToProjectSettings: migrating
main: -- add_column(:project_settings, :allow_pipeline_trigger_approve_deployment, :boolean, {:default=>false, :null=>false})
main: -> 0.0011s
main: == 20221122141046 AddAllowPipelineTriggerApproveDeploymentToProjectSettings: migrated (0.0042s)
# Down
main: == 20221122141046 AddAllowPipelineTriggerApproveDeploymentToProjectSettings: reverting
main: -- remove_column(:project_settings, :allow_pipeline_trigger_approve_deployment, :boolean, {:default=>false, :null=>false})
main: -> 0.0019s
main: == 20221122141046 AddAllowPipelineTriggerApproveDeploymentToProjectSettings: reverted (0.0049s)
cc @prajnamas @icbd
Edited by Zhiyuan Lu