diff options
Diffstat (limited to 'db/post_migrate')
-rw-r--r-- | db/post_migrate/20210301200959_clean_up_asset_proxy_allowlist_rename_on_application_settings.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/db/post_migrate/20210301200959_clean_up_asset_proxy_allowlist_rename_on_application_settings.rb b/db/post_migrate/20210301200959_clean_up_asset_proxy_allowlist_rename_on_application_settings.rb new file mode 100644 index 00000000000..d0b372b84f0 --- /dev/null +++ b/db/post_migrate/20210301200959_clean_up_asset_proxy_allowlist_rename_on_application_settings.rb @@ -0,0 +1,21 @@ +# frozen_string_literal: true + +class CleanUpAssetProxyAllowlistRenameOnApplicationSettings < ActiveRecord::Migration[6.0] + include Gitlab::Database::MigrationHelpers::V2 + + DOWNTIME = false + + disable_ddl_transaction! + + def up + cleanup_concurrent_column_rename :application_settings, + :asset_proxy_allowlist, + :asset_proxy_whitelist + end + + def down + undo_cleanup_concurrent_column_rename :application_settings, + :asset_proxy_allowlist, + :asset_proxy_whitelist + end +end |