20201013095141_elastic_search_lower65_obsolete.rb 310 B

1234567891011
  1. # Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
  2. class ElasticSearchLower65Obsolete < ActiveRecord::Migration[5.2]
  3. def change
  4. # return if it's a new setup
  5. return if !Setting.exists?(name: 'system_init_done')
  6. Setting.find_by(name: 'es_multi_index').destroy
  7. end
  8. end