Make Banners translatable

This commit is contained in:
Marko Lovic
2018-07-27 14:57:49 +02:00
committed by María Checa
parent bfd9032e9d
commit 0fa4b60f39
7 changed files with 203 additions and 14 deletions

View File

@@ -0,0 +1,14 @@
class AddBannerTranslations < ActiveRecord::Migration
def self.up
Banner.create_translation_table!(
title: :string,
description: :text
)
end
def self.down
Banner.drop_translation_table!
end
end