summaryrefslogtreecommitdiff
path: root/db/post_migrate/20210909152027_remove_container_registry_enabled.rb
blob: d97faaf58d22ab3bd62f161bc5078dfbafd35c28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 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