2019-04-28 11:56:16 +03:00
|
|
|
class AddTranslationTablesToTracks < ActiveRecord::Migration[4.2]
|
2014-09-06 18:18:08 +03:00
|
|
|
def up
|
|
|
|
Track.create_translation_table!({
|
|
|
|
name: :string,
|
|
|
|
description: :text
|
|
|
|
}, {
|
|
|
|
migrate_data: true
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
Track.drop_translation_table! migrate_data: true
|
|
|
|
end
|
|
|
|
end
|