+class AddProductDateAvailable < ActiveRecord::Migration
+ def self.up
+ add_column :products, :date_available, :date
+
+ Product.update(1, :date_available => Time.utc(2008, 12, 25))
+ Product.update(2, :date_available => Time.utc(2010, 12, 25))
+ Product.update(3, :date_available => Time.utc(2009, 1, 1))
+ end
+
+ def self.down
+ remove_column :products, :date_available
+ end
+end