Files
nairobi/db/migrate/20180730120800_add_homepage_content_translations.rb
2018-09-26 16:09:09 +02:00

17 lines
312 B
Ruby

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