Add debate translations
This commit is contained in:
committed by
voodoorai2000
parent
78c2f54c5d
commit
740c738fc5
15
db/migrate/20181130141019_add_debates_translations.rb
Normal file
15
db/migrate/20181130141019_add_debates_translations.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
class AddDebatesTranslations < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
Debate.create_translation_table!(
|
||||
{
|
||||
title: :string,
|
||||
description: :text
|
||||
},
|
||||
{ migrate_data: true }
|
||||
)
|
||||
end
|
||||
|
||||
def self.down
|
||||
Debate.drop_translation_table!
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user