debian-mirror-gitlab/db/post_migrate/20210909152027_remove_container_registry_enabled.rb
2021-11-11 11:23:49 +05:30

17 lines
410 B
Ruby

# frozen_string_literal: true
class RemoveContainerRegistryEnabled < Gitlab::Database::Migration[1.0]
disable_ddl_transaction!
def up
with_lock_retries do
remove_column :projects, :container_registry_enabled
end
end
def down
with_lock_retries do
add_column :projects, :container_registry_enabled, :boolean # rubocop:disable Migration/AddColumnsToWideTables
end
end
end