Make Widget::Card translatable
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
class AddHomepageContentTranslations < ActiveRecord::Migration
|
||||
|
||||
def self.up
|
||||
Widget::Card.create_translation_table!(
|
||||
label: :string,
|
||||
title: :string,
|
||||
description: :text,
|
||||
link_text: :string
|
||||
)
|
||||
end
|
||||
|
||||
def self.down
|
||||
Widget::Card.drop_translation_table!
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user