2019-07-26 12:08:05 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-07-26 10:21:52 +00:00
|
|
|
class RenameAllowLocalRequestsFromHooksAndServicesApplicationSetting < ActiveRecord::Migration[5.2]
|
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
|
|
|
def up
|
2019-07-30 10:53:23 +00:00
|
|
|
rename_column_concurrently :application_settings, :allow_local_requests_from_hooks_and_services, :allow_local_requests_from_web_hooks_and_services
|
2019-07-26 10:21:52 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
2019-07-30 10:53:23 +00:00
|
|
|
cleanup_concurrent_column_rename :application_settings, :allow_local_requests_from_web_hooks_and_services, :allow_local_requests_from_hooks_and_services
|
2019-07-26 10:21:52 +00:00
|
|
|
end
|
|
|
|
end
|