20210903085041_translation_add_sync_columns.rb 485 B

123456789101112131415
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. class TranslationAddSyncColumns < 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. add_column :translations, :is_synchronized_from_codebase, :boolean, null: false, default: false
  7. add_column :translations, :synchronized_from_translation_file, :string, limit: 255
  8. Translation.reset_column_information
  9. end
  10. end