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

elasticsearch_migration.txt « elasticsearch « migrations « fixtures « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 122d3ef6d2b36a72c5b7110b256e652ec88deb03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# frozen_string_literal: true

class ElasticsearchMigration < Elastic::Migration
    include Elastic::MigrationUpdateMappingsHelper

    private

    def index_name
      Project.__elasticsearch__.index_name
    end

    def new_mappings
      {
        readme_content: {
          type: 'text'
        },
        ci_catalog: {
          type: 'boolean'
        }
      }
    end
end