20221205151816_issue_4381_templates_active_field.rb 392 B

1234567891011121314
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. class Issue4381TemplatesActiveField < 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. change_table :templates do |t|
  7. t.boolean :active, default: true, null: false
  8. end
  9. Template.reset_column_information
  10. end
  11. end