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

20230323191750_add_shard_settings_to_search_indices.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b032e3b8a61f7275da0319513e51b52f22800f0e (plain)
1
2
3
4
5
6
7
8
# frozen_string_literal: true

class AddShardSettingsToSearchIndices < Gitlab::Database::Migration[2.1]
  def change
    add_column :search_indices, :number_of_shards, :integer, default: 2, null: false
    add_column :search_indices, :number_of_replicas, :integer, default: 1, null: false
  end
end