diff options
Diffstat (limited to 'db/migrate/20210716074555_revert_default_job_token_scope.rb')
-rw-r--r-- | db/migrate/20210716074555_revert_default_job_token_scope.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/db/migrate/20210716074555_revert_default_job_token_scope.rb b/db/migrate/20210716074555_revert_default_job_token_scope.rb new file mode 100644 index 00000000000..d28f75605e4 --- /dev/null +++ b/db/migrate/20210716074555_revert_default_job_token_scope.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +class RevertDefaultJobTokenScope < ActiveRecord::Migration[6.1] + include Gitlab::Database::MigrationHelpers + + def up + with_lock_retries do + change_column_default :project_ci_cd_settings, :job_token_scope_enabled, from: true, to: false + end + end + + def down + with_lock_retries do + change_column_default :project_ci_cd_settings, :job_token_scope_enabled, from: false, to: true + end + end +end |