20230312210126_email_addresses_email_match_user_email.rb 369 B

123456789101112
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class EmailAddressesEmailMatchUserEmail < 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_column :email_addresses, :email, :string, limit: 255
  7. EmailAddress.reset_column_information
  8. end
  9. end