debian-mirror-gitlab/db/migrate/20190726101133_add_allow_local_requests_from_system_hooks_to_application_settings.rb
2019-10-12 21:52:04 +05:30

19 lines
473 B
Ruby

# frozen_string_literal: true
class AddAllowLocalRequestsFromSystemHooksToApplicationSettings < ActiveRecord::Migration[5.2]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
def up
add_column(:application_settings, :allow_local_requests_from_system_hooks,
:boolean,
default: true,
null: false)
end
def down
remove_column(:application_settings, :allow_local_requests_from_system_hooks)
end
end