Sha256: 80b8bd15551e2c6cd93d76bd42bd6adba5d695bc7d2ec278b5702b939825d8c7
Contents?: true
Size: 465 Bytes
Versions: 35
Compression:
Stored size: 465 Bytes
Contents
class FixTranslationUserRelation < ActiveRecord::Migration def up rename_column :translation_center_translations, :user_id, :translator_id add_column :translation_center_translations, :translator_type, :string TranslationCenter::Translation.update_all(translator_type: 'User') end def down rename_column :translation_center_translations, :translator_id, :user_id remove_column :translation_center_translations, :translator_type end end
Version data entries
35 entries across 33 versions & 2 rubygems