Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20200207132752_add_es_bulk_config.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c460971139c146aab6646c3f81aee7ea993164b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
# 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