15 lines
279 B
Ruby
15 lines
279 B
Ruby
class AddPollQuestionAnswerTranslations < ActiveRecord::Migration
|
|
|
|
def self.up
|
|
Poll::Question::Answer.create_translation_table!(
|
|
title: :string,
|
|
description: :text
|
|
)
|
|
end
|
|
|
|
def self.down
|
|
Poll::Question::Answer.drop_translation_table!
|
|
end
|
|
|
|
end
|