debian-mirror-gitlab/db/migrate/20220927155407_add_column_inbound_job_token_scope_enabled_to_ci_cd_setting.rb
2022-11-25 23:54:43 +05:30

14 lines
371 B
Ruby

# 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