Files
nairobi/db/migrate/20180730213824_add_poll_translations.rb
2018-09-20 17:07:43 +02:00

16 lines
255 B
Ruby

class AddPollTranslations < ActiveRecord::Migration
def self.up
Poll.create_translation_table!(
name: :string,
summary: :text,
description: :text
)
end
def self.down
Poll.drop_translation_table!
end
end