Sha256: d999841255494357b306ab2ab00a0a0d683d820339da6111095588f5e8aa0cf9

Contents?: true

Size: 429 Bytes

Versions: 2

Compression:

Stored size: 429 Bytes

Contents

# This migration comes from piggybak_engine (originally 20120627173754)
class AddDescriptionToLineItem < ActiveRecord::Migration
  def up
    add_column :line_items, :description, :string, :null => false, :default => ''

    #Piggybak::LineItem.all.each do |line_item|
    #  line_item.update_attribute(:description, line_item.variant.description)
    #end
  end

  def down
    remove_column :line_items, :description
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
piggybak_free_shipping_by_product-0.0.2 test/dummy/db/migrate/20120627175044_add_description_to_line_item.piggybak_engine.rb
piggybak_free_shipping_by_product-0.0.1 test/dummy/db/migrate/20120627175044_add_description_to_line_item.piggybak_engine.rb