Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20210105052229_clean_up_asset_proxy_whitelist_rename_on_application_settings.rb « post_migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8f6d312ae5e589cf37d82834bbbcb5e2351537ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# frozen_string_literal: true

class CleanUpAssetProxyWhitelistRenameOnApplicationSettings < ActiveRecord::Migration[6.0]
  include Gitlab::Database::MigrationHelpers::V2

  DOWNTIME = false

  disable_ddl_transaction!

  def up
    cleanup_concurrent_column_rename :application_settings,
      :asset_proxy_whitelist,
      :asset_proxy_allowlist
  end

  def down
    undo_cleanup_concurrent_column_rename :application_settings,
      :asset_proxy_whitelist,
      :asset_proxy_allowlist
  end
end