# File lib/globalize/active_record/migration.rb, line 111 def move_data_to_translation_table model.find_each do |record| translation = record.translation_for(I18n.default_locale) || record.translations.build(:locale => I18n.default_locale) fields.each do |attribute_name, attribute_type| translation[attribute_name] = record.read_attribute(attribute_name, {:translated => false}) end translation.save! end end