20221107081315_issue4306_excludes_setting.rb 605 B

12345678910111213141516171819
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. class Issue4306ExcludesSetting < ActiveRecord::Migration[6.1]
  3. def change
  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 Excludes',
  8. name: 'es_excludes',
  9. area: 'SearchIndex::Elasticsearch',
  10. description: 'Defines if the search index is using excluded attributes.',
  11. state: true,
  12. preferences: { online_service_disable: true },
  13. frontend: false
  14. )
  15. end
  16. end