debian-mirror-gitlab/db/migrate/20200207132752_add_es_bulk_config.rb
2020-03-13 15:44:24 +05:30

11 lines
412 B
Ruby

# frozen_string_literal: true
class AddEsBulkConfig < ActiveRecord::Migration[6.0]
# Set this constant to true if this migration requires downtime.
DOWNTIME = false
def change
add_column :application_settings, :elasticsearch_max_bulk_size_mb, :smallint, null: false, default: 10
add_column :application_settings, :elasticsearch_max_bulk_concurrency, :smallint, null: false, default: 10
end
end