Use migrate_data option for globalize

This way the task to migrate the data doesn't have to be run manually if
these migrations weren't already executed.
This commit is contained in:
Javi Martín
2018-10-17 03:51:50 +02:00
parent a84a0f2b7d
commit be25e5fc45
10 changed files with 69 additions and 35 deletions

View File

@@ -2,10 +2,13 @@ class AddHomepageContentTranslations < ActiveRecord::Migration
def self.up
Widget::Card.create_translation_table!(
label: :string,
title: :string,
description: :text,
link_text: :string
{
label: :string,
title: :string,
description: :text,
link_text: :string
},
{ migrate_data: true }
)
end