Sha256: 69cd2d84e21b2caf61fa2ca7bb06225dda7fed140636f8488475b667cae1887e
Contents?: true
Size: 506 Bytes
Versions: 9
Compression:
Stored size: 506 Bytes
Contents
class CreateKktShoppeProductCategoryTranslationTable < ActiveRecord::Migration def up KktShoppe::ProductCategory.create_translation_table! :name => :string, :permalink => :string, :description => :text KktShoppe::ProductCategory.all.each do |pc| l = pc.translations.new l.locale = "en" l.name = pc.name l.permalink = pc.permalink l.description = pc.description l.save! end end def down KktShoppe::ProductCategory.drop_translation_table! end end
Version data entries
9 entries across 9 versions & 1 rubygems