Redid up to end of Chapter 6 under Rails2.2.2 and Gems 1.3.1, with Product.date_available
[depot.git] / db / migrate / 20090202160745_add_price_to_product.rb
1 class AddPriceToProduct < ActiveRecord::Migration
2 def self.up
3 add_column :products, :price, :decimal,
4 :precision => 8, :scale => 2, :default => 0
5 end
6
7 def self.down
8 remove_column :products, :price
9 end
10 end