# Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/ class Issue5028Undo < ActiveRecord::Migration[7.0] def change # return if it's a new setup return if !Setting.exists?(name: 'system_init_done') field = ObjectManager::Attribute.for_object('TicketArticle').find_by(name: 'body') field.screens.delete('create_middle') field.save! end end