ruby on rails - Globalize3 english translations in posts or post_translations? -


I have an existing site with fields in post.title and post.body. After installing Globilize 3, post.title returns blank. Is there a way that I do not need to migrate existing information into post_translation?

You can migrate this data defined for migrating data when creating a translation table at first time Does.

Example.

  class TranslationPosts & lt; ActiveRecord :: Migration DF self.up Post.create_translation_table! ({: Title = & gt ;: string ;: text = & gt ;: text}, {: migrate_data = & gt; true}) end def self.down Post.drop_translation_table! : Migrate_data = & gt; The end of the true end   

You have to leave the existing translation translation table already.

Comments