clarion/db/migrate/20140901103859_add_translat...

15 lines
459 B
Ruby
Raw Normal View History

2014-09-01 13:44:41 +03:00
class AddTranslationTablesToConferences < ActiveRecord::Migration
def up
Conference.create_translation_table!({
:title => :string,
:description => :text
}, {
:migrate_data => true
})
end
def down
Conference.drop_translation_table! :migrate_data => true
2014-09-01 13:44:41 +03:00
end
end