class AddTranslationOfNameToIllustrations
Public Class Methods
down()
click to toggle source
# File lib/generators/tkh_illustrations/create_or_update_migrations/templates/add_translation_of_name_to_illustrations.rb, line 10 def self.down Illustration.drop_translation_table! :migrate_data => true end
up()
click to toggle source
# File lib/generators/tkh_illustrations/create_or_update_migrations/templates/add_translation_of_name_to_illustrations.rb, line 2 def self.up Illustration.create_translation_table!({ name: :string }, { :migrate_data => true }) end