20190415000001_setting_es_multi_index.rb 597 B

1234567891011121314151617181920
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. class SettingEsMultiIndex < ActiveRecord::Migration[5.1]
  3. def up
  4. # return if it's a new setup
  5. return if !Setting.exists?(name: 'system_init_done')
  6. Setting.create_if_not_exists(
  7. title: 'Elasticsearch Multi Index',
  8. name: 'es_multi_index',
  9. area: 'SearchIndex::Elasticsearch',
  10. description: 'Define if Elasticsearch is using multiple indexes.',
  11. state: false,
  12. preferences: { online_service_disable: true },
  13. frontend: false
  14. )
  15. end
  16. end