debian-mirror-gitlab/db/post_migrate/20220921111849_remove_and_add_ci_job_variables_raw_with_new_default.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
321 B
Ruby
Raw Normal View History

2022-11-25 23:54:43 +05:30
# frozen_string_literal: true
class RemoveAndAddCiJobVariablesRawWithNewDefault < Gitlab::Database::Migration[2.0]
enable_lock_retries!
def change
remove_column :ci_job_variables, :raw, :boolean, null: false, default: true
add_column :ci_job_variables, :raw, :boolean, null: false, default: false
end
end