clarion/db/migrate/20151020071227_add_translations_to_halls.rb
2019-04-28 22:02:02 +03:00

14 lines
259 B
Ruby

class AddTranslationsToHalls < ActiveRecord::Migration[4.2]
def self.up
Hall.create_translation_table!({
name: :string,
}, {
migrate_data: true,
})
end
def self.down
Hall.drop_translation_table! migrate_data: true
end
end