2017-12-04 00:24:58 +00:00
|
|
|
class SettingEsPipeline < ActiveRecord::Migration[5.1]
|
|
|
|
def up
|
|
|
|
|
|
|
|
# return if it's a new setup
|
|
|
|
return if !Setting.find_by(name: 'system_init_done')
|
2018-10-09 06:17:41 +00:00
|
|
|
|
2017-12-04 00:24:58 +00:00
|
|
|
Setting.create_if_not_exists(
|
2018-12-19 17:31:51 +00:00
|
|
|
title: 'Elasticsearch Pipeline Name',
|
|
|
|
name: 'es_pipeline',
|
|
|
|
area: 'SearchIndex::Elasticsearch',
|
2017-12-04 00:24:58 +00:00
|
|
|
description: 'Define pipeline name for Elasticsearch.',
|
2018-12-19 17:31:51 +00:00
|
|
|
state: '',
|
2017-12-04 00:24:58 +00:00
|
|
|
preferences: { online_service_disable: true },
|
2018-12-19 17:31:51 +00:00
|
|
|
frontend: false
|
2017-12-04 00:24:58 +00:00
|
|
|
)
|
|
|
|
end
|
2017-12-04 00:34:27 +00:00
|
|
|
end
|