2019-04-28 11:56:16 +03:00
|
|
|
class AddTranslationTablesToConferences < ActiveRecord::Migration[4.2]
|
2014-09-01 13:44:41 +03:00
|
|
|
def up
|
|
|
|
Conference.create_translation_table!({
|
2019-04-28 21:10:54 +03:00
|
|
|
title: :string,
|
|
|
|
description: :text,
|
|
|
|
}, {
|
|
|
|
migrate_data: true,
|
|
|
|
})
|
2014-09-01 13:44:41 +03:00
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
2019-04-28 21:10:54 +03:00
|
|
|
Conference.drop_translation_table! migrate_data: true
|
2014-09-01 13:44:41 +03:00
|
|
|
end
|
|
|
|
end
|