diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-03-06 02:11:43 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-03-06 02:11:43 +0300 |
commit | 13d327df4f3c52505bf8ec1144f2dedb6a351ad6 (patch) | |
tree | 546e42fe159cde302b5e4d0b923d399e79bfbf71 /db/migrate | |
parent | 9a70fcd2e277721bbe7b9a0c92ed925ddea201b6 (diff) |
Add latest changes from gitlab-org/gitlab@13-9-stable-ee
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20210301200601_rename_asset_proxy_allowlist_on_application_settings.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/db/migrate/20210301200601_rename_asset_proxy_allowlist_on_application_settings.rb b/db/migrate/20210301200601_rename_asset_proxy_allowlist_on_application_settings.rb new file mode 100644 index 00000000000..8a9acd8b86e --- /dev/null +++ b/db/migrate/20210301200601_rename_asset_proxy_allowlist_on_application_settings.rb @@ -0,0 +1,21 @@ +# frozen_string_literal: true + +class RenameAssetProxyAllowlistOnApplicationSettings < ActiveRecord::Migration[6.0] + include Gitlab::Database::MigrationHelpers::V2 + + DOWNTIME = false + + disable_ddl_transaction! + + def up + rename_column_concurrently :application_settings, + :asset_proxy_allowlist, + :asset_proxy_whitelist + end + + def down + undo_rename_column_concurrently :application_settings, + :asset_proxy_allowlist, + :asset_proxy_whitelist + end +end |