Redid up to end of Chapter 6 under Rails2.2.2 and Gems 1.3.1, with Product.date_available
[depot.git] / db / migrate / 20090202160925_add_date_available_to_product.rb
diff --git a/db/migrate/20090202160925_add_date_available_to_product.rb b/db/migrate/20090202160925_add_date_available_to_product.rb
new file mode 100644 (file)
index 0000000..e624b2b
--- /dev/null
@@ -0,0 +1,9 @@
+class AddDateAvailableToProduct < ActiveRecord::Migration
+  def self.up
+    add_column :products, :date_available, :date
+  end
+
+  def self.down
+    remove_column :products, :date_available
+  end
+end