clarion/db/migrate/20151020071227_add_translat...

14 lines
259 B
Ruby
Raw Normal View History

class AddTranslationsToHalls < ActiveRecord::Migration[4.2]
2015-10-20 10:13:42 +03:00
def self.up
Hall.create_translation_table!({
2019-04-28 21:10:54 +03:00
name: :string,
2015-10-20 10:13:42 +03:00
}, {
2019-04-28 21:10:54 +03:00
migrate_data: true,
2015-10-20 10:13:42 +03:00
})
end
def self.down
2019-04-28 21:10:54 +03:00
Hall.drop_translation_table! migrate_data: true
2015-10-20 10:13:42 +03:00
end
end