15 lines
256 B
Ruby
15 lines
256 B
Ruby
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
|
|
|