Add debate translations

This commit is contained in:
Senén Rodero Rodríguez
2018-12-22 23:39:41 +01:00
committed by voodoorai2000
parent 78c2f54c5d
commit 740c738fc5
4 changed files with 58 additions and 7 deletions

View 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