009_add_quantity_available_to_product.rb from crlove at Krugle
Show 009_add_quantity_available_to_product.rb syntax highlighted
class AddQuantityAvailableToProduct < ActiveRecord::Migration
def self.up
add_column :products, :quantity_available, :integer, :null => false, :default => 0
end
def self.down
remove_column :products, :quantity_available
end
end
See more files for this project here