diff options
Diffstat (limited to 'db/migrate/20220927155407_add_column_inbound_job_token_scope_enabled_to_ci_cd_setting.rb')
-rw-r--r-- | db/migrate/20220927155407_add_column_inbound_job_token_scope_enabled_to_ci_cd_setting.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20220927155407_add_column_inbound_job_token_scope_enabled_to_ci_cd_setting.rb b/db/migrate/20220927155407_add_column_inbound_job_token_scope_enabled_to_ci_cd_setting.rb new file mode 100644 index 00000000000..811138cd2f2 --- /dev/null +++ b/db/migrate/20220927155407_add_column_inbound_job_token_scope_enabled_to_ci_cd_setting.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +class AddColumnInboundJobTokenScopeEnabledToCiCdSetting < Gitlab::Database::Migration[2.0] + enable_lock_retries! + + def up + add_column :project_ci_cd_settings, :inbound_job_token_scope_enabled, :boolean, default: false, null: false + end + + def down + remove_column :project_ci_cd_settings, :inbound_job_token_scope_enabled + end +end |