Files
nairobi/db/migrate/20190119160418_add_budget_phase_translations.rb
2019-02-13 11:44:56 +01:00

18 lines
298 B
Ruby

class AddBudgetPhaseTranslations < ActiveRecord::Migration
def self.up
Budget::Phase.create_translation_table!(
{
description: :text,
summary: :text
},
{ migrate_data: true }
)
end
def self.down
Budget::Phase.drop_translation_table!
end
end