2019-04-28 11:56:16 +03:00
|
|
|
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
|