2019-02-20 18:51:55 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class AddAssetProxySettings < ActiveRecord::Migration[5.0]
|
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
# Set this constant to true if this migration requires downtime.
|
|
|
|
DOWNTIME = false
|
|
|
|
|
2020-04-21 11:21:10 -04:00
|
|
|
# rubocop:disable Migration/PreventStrings
|
|
|
|
# rubocop:disable Migration/AddLimitToTextColumns
|
2019-02-20 18:51:55 -05:00
|
|
|
def change
|
|
|
|
add_column :application_settings, :asset_proxy_enabled, :boolean, default: false, null: false
|
2020-04-21 11:21:10 -04:00
|
|
|
add_column :application_settings, :asset_proxy_url, :string
|
2019-02-20 18:51:55 -05:00
|
|
|
add_column :application_settings, :asset_proxy_whitelist, :text
|
|
|
|
add_column :application_settings, :encrypted_asset_proxy_secret_key, :text
|
2020-04-21 11:21:10 -04:00
|
|
|
add_column :application_settings, :encrypted_asset_proxy_secret_key_iv, :string
|
2019-02-20 18:51:55 -05:00
|
|
|
end
|
2020-04-21 11:21:10 -04:00
|
|
|
# rubocop:enable Migration/AddLimitToTextColumns
|
|
|
|
# rubocop:enable Migration/PreventStrings
|
2019-02-20 18:51:55 -05:00
|
|
|
end
|