debian-mirror-gitlab/db/migrate/20190219201635_add_asset_proxy_settings.rb

21 lines
831 B
Ruby
Raw Normal View History

2019-09-04 21:01:54 +05:30
# 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-05-24 23:13:21 +05:30
# rubocop:disable Migration/PreventStrings
# rubocop:disable Migration/AddLimitToTextColumns
2019-09-04 21:01:54 +05:30
def change
add_column :application_settings, :asset_proxy_enabled, :boolean, default: false, null: false
2020-05-24 23:13:21 +05:30
add_column :application_settings, :asset_proxy_url, :string
2019-09-04 21:01:54 +05:30
add_column :application_settings, :asset_proxy_whitelist, :text
add_column :application_settings, :encrypted_asset_proxy_secret_key, :text
2020-05-24 23:13:21 +05:30
add_column :application_settings, :encrypted_asset_proxy_secret_key_iv, :string
2019-09-04 21:01:54 +05:30
end
2020-05-24 23:13:21 +05:30
# rubocop:enable Migration/AddLimitToTextColumns
# rubocop:enable Migration/PreventStrings
2019-09-04 21:01:54 +05:30
end