Skip to content
Snippets Groups Projects

Add schema_version to main index mapping

Merged Terri Chu requested to merge 214601-add-schema_version-to-main-index into master
All threads resolved!
5 files
+ 78
31
Compare changes
  • Side-by-side
  • Inline
Files
5
# frozen_string_literal: true
class AddSchemaVersionToMainIndexMapping < Elastic::Migration
include Elastic::MigrationUpdateMappingsHelper
private
def index_name
Project.__elasticsearch__.index_name
end
def new_mappings
{
schema_version: {
type: 'short'
}
}
end
end
Loading