Files
nairobi/db/migrate/20181205102153_add_comments_translations.rb
Senén Rodero Rodríguez 158af0217d Add comments translations
Co-Authored-By: Sebastia <sebastia.roig@gmail.com>
2019-06-27 09:19:37 +02:00

15 lines
270 B
Ruby

class AddCommentsTranslations < ActiveRecord::Migration[4.2]
def self.up
Comment.create_translation_table!(
{
body: :text
},
{ migrate_data: true }
)
end
def self.down
Comment.drop_translation_table!
end
end