Make Admin Notifications translatable
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user