20221031105719_create_knowledge_base_feed.rb 471 B

1234567891011121314
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. # Using older 5.0 migration to stick to Integer primary keys. Otherwise migration fails in MySQL.
  3. class CreateKnowledgeBaseFeed < ActiveRecord::Migration[5.0]
  4. def change
  5. return if !Setting.exists?(name: 'system_init_done')
  6. change_table :knowledge_bases do |t|
  7. t.boolean :show_feed_icon, default: false, null: false
  8. end
  9. KnowledgeBase.reset_column_information
  10. end
  11. end