trabajo-afectivo/db/migrate/20210903085041_translation_add_sync_columns.rb
2022-01-01 14:38:12 +01:00

15 lines
485 B
Ruby

# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
class TranslationAddSyncColumns < ActiveRecord::Migration[6.0]
def change
# return if it's a new setup
return if !Setting.exists?(name: 'system_init_done')
add_column :translations, :is_synchronized_from_codebase, :boolean, null: false, default: false
add_column :translations, :synchronized_from_translation_file, :string, limit: 255
Translation.reset_column_information
end
end