20240812111200_add_checklist_item_ticket_association.rb 321 B

12345678910
  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. end
  8. end