20171203000001_setting_es_pipeline.rb 579 B

12345678910111213141516171819
  1. # Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
  2. class SettingEsPipeline < 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 Pipeline Name',
  8. name: 'es_pipeline',
  9. area: 'SearchIndex::Elasticsearch',
  10. description: 'Define pipeline name for Elasticsearch.',
  11. state: '',
  12. preferences: { online_service_disable: true },
  13. frontend: false
  14. )
  15. end
  16. end