Class: AddTranslationOfNameToIllustrations
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- AddTranslationOfNameToIllustrations
- Defined in:
- lib/generators/tkh_illustrations/create_or_update_migrations/templates/add_translation_of_name_to_illustrations.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
10 11 12 |
# 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 ⇒ Object
2 3 4 5 6 7 8 |
# 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 |