clarion/db/migrate/20140906151433_add_translat...

15 lines
283 B
Ruby
Raw Permalink Normal View History

class AddTranslationTablesToTracks < ActiveRecord::Migration[4.2]
def up
Track.create_translation_table!({
2019-04-28 21:10:54 +03:00
name: :string,
description: :text,
}, {
migrate_data: true,
})
end
def down
Track.drop_translation_table! migrate_data: true
end
end