20211213105441_drop_text_module_foreign_id.rb 347 B

1234567891011
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class DropTextModuleForeignId < ActiveRecord::Migration[6.0]
  3. def change
  4. # return if it's a new setup
  5. return if !Setting.exists?(name: 'system_init_done')
  6. remove_column :text_modules, :foreign_id, :integer
  7. TextModule.reset_column_information
  8. end
  9. end