trabajo-afectivo/db/migrate/20210903085041_translation_add_sync_columns.rb

16 lines
485 B
Ruby
Raw Normal View History

2022-01-01 13:38:12 +00:00
# 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