20240812111200_add_checklist_item_ticket_association.rb 367 B

123456789101112
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class AddChecklistItemTicketAssociation < ActiveRecord::Migration[5.0]
  3. def up
  4. # return if it's a new setup
  5. return if !Setting.exists?(name: 'system_init_done')
  6. add_reference :checklist_items, :ticket, foreign_key: true
  7. Checklist::Item.reset_column_information
  8. end
  9. end