17 lines
272 B
Ruby
17 lines
272 B
Ruby
class AddActivePollsTranslations < ActiveRecord::Migration
|
|
|
|
def self.up
|
|
ActivePoll.create_translation_table!(
|
|
{
|
|
description: :text
|
|
},
|
|
{ migrate_data: true }
|
|
)
|
|
end
|
|
|
|
def self.down
|
|
ActivePollPoll.drop_translation_table!
|
|
end
|
|
|
|
end
|