20171203000001_setting_es_pipeline.rb 502 B

1234567891011121314151617
  1. class SettingEsPipeline < ActiveRecord::Migration[5.1]
  2. def up
  3. # return if it's a new setup
  4. return if !Setting.find_by(name: 'system_init_done')
  5. Setting.create_if_not_exists(
  6. title: 'Elasticsearch Pipeline Name',
  7. name: 'es_pipeline',
  8. area: 'SearchIndex::Elasticsearch',
  9. description: 'Define pipeline name for Elasticsearch.',
  10. state: '',
  11. preferences: { online_service_disable: true },
  12. frontend: false
  13. )
  14. end
  15. end