Files
nairobi/db/migrate/20190104170114_add_active_polls_translations.rb
2019-02-18 13:34:07 +01:00

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