Sha256: 7deb86f95baf867edd38d10fddaa1bab56b50c459c5dfcddb2bd15a5ee78b898

Contents?: true

Size: 336 Bytes

Versions: 7

Compression:

Stored size: 336 Bytes

Contents

class CreateGlobalizeCollectionProduct < ActiveRecord::Migration
  def up
    Collection.create_translation_table! :name => :string, :description => :text
    Product.create_translation_table! :name => :string, :description => :text
  end

  def down
    Collection.drop_translation_table!
    Product.drop_translation_table!
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ab_admin-0.2.3 spec/dummy/db/migrate/20130130175446_create_globalize_collection_product.rb
ab_admin-0.2.2 spec/dummy/db/migrate/20130130175446_create_globalize_collection_product.rb
ab_admin-0.2.1 spec/dummy/db/migrate/20130130175446_create_globalize_collection_product.rb
ab_admin-0.2.0 spec/dummy/db/migrate/20130130175446_create_globalize_collection_product.rb
ab_admin-0.1.2 spec/dummy/db/migrate/20130130175446_create_globalize_collection_product.rb
ab_admin-0.1.1 spec/dummy/db/migrate/20130130175446_create_globalize_collection_product.rb
ab_admin-0.1.0 spec/dummy/db/migrate/20130130175446_create_globalize_collection_product.rb