Sha256: a2bae2c972a16b978957240221f25de99dd99e4dd750e33da16700b9bcf437e2

Contents?: true

Size: 306 Bytes

Versions: 16

Compression:

Stored size: 306 Bytes

Contents

class AddTranslationOfNameToIllustrations < ActiveRecord::Migration
  def self.up
    Illustration.create_translation_table!({
          name: :string
        }, {
          :migrate_data => true
        }) 
  end
  
  def self.down
    Illustration.drop_translation_table! :migrate_data => true
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
tkh_illustrations-0.9.6 lib/generators/tkh_illustrations/create_or_update_migrations/templates/add_translation_of_name_to_illustrations.rb
tkh_illustrations-0.9.5 lib/generators/tkh_illustrations/create_or_update_migrations/templates/add_translation_of_name_to_illustrations.rb
tkh_illustrations-0.9.4 lib/generators/tkh_illustrations/create_or_update_migrations/templates/add_translation_of_name_to_illustrations.rb
tkh_illustrations-0.9.3 lib/generators/tkh_illustrations/create_or_update_migrations/templates/add_translation_of_name_to_illustrations.rb
tkh_illustrations-0.9.2 lib/generators/tkh_illustrations/create_or_update_migrations/templates/add_translation_of_name_to_illustrations.rb
tkh_illustrations-0.9.1 lib/generators/tkh_illustrations/create_or_update_migrations/templates/add_translation_of_name_to_illustrations.rb
tkh_illustrations-0.2.5 lib/generators/tkh_illustrations/create_or_update_migrations/templates/add_translation_of_name_to_illustrations.rb
tkh_illustrations-0.9 lib/generators/tkh_illustrations/create_or_update_migrations/templates/add_translation_of_name_to_illustrations.rb
tkh_illustrations-0.2.4 lib/generators/tkh_illustrations/create_or_update_migrations/templates/add_translation_of_name_to_illustrations.rb
tkh_illustrations-0.2.3 lib/generators/tkh_illustrations/create_or_update_migrations/templates/add_translation_of_name_to_illustrations.rb
tkh_illustrations-0.2 lib/generators/tkh_illustrations/create_or_update_migrations/templates/add_translation_of_name_to_illustrations.rb
tkh_illustrations-0.1 lib/generators/tkh_illustrations/create_or_update_migrations/templates/add_translation_of_name_to_illustrations.rb
tkh_illustrations-0.0.10 lib/generators/tkh_illustrations/create_or_update_migrations/templates/add_translation_of_name_to_illustrations.rb
tkh_illustrations-0.0.9 lib/generators/tkh_illustrations/create_or_update_migrations/templates/add_translation_of_name_to_illustrations.rb
tkh_illustrations-0.0.8 lib/generators/tkh_illustrations/create_or_update_migrations/templates/add_translation_of_name_to_illustrations.rb
tkh_illustrations-0.0.7 lib/generators/tkh_illustrations/create_or_update_migrations/templates/add_translation_of_name_to_illustrations.rb