17 lines
269 B
Ruby
17 lines
269 B
Ruby
class AddBudgetGroupTranslations < ActiveRecord::Migration
|
|
|
|
def self.up
|
|
Budget::Group.create_translation_table!(
|
|
{
|
|
name: :string
|
|
},
|
|
{ migrate_data: true }
|
|
)
|
|
end
|
|
|
|
def self.down
|
|
Budget::Group.drop_translation_table!
|
|
end
|
|
|
|
end
|