Make Admin Notifications translatable

This commit is contained in:
Marko Lovic
2018-08-01 14:38:07 +02:00
committed by Javi Martín
parent 5ff85d33d6
commit f6749049c9
8 changed files with 57 additions and 7 deletions

View File

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