X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=db%2Fmigrate%2F20090202160925_add_date_available_to_product.rb;fp=db%2Fmigrate%2F20090202160925_add_date_available_to_product.rb;h=e624b2b27354c813f83d1bdc114f4bfd73288dc6;hb=09cd438e77dd418b03b67e3e6a4b48ec95b72d1d;hp=0000000000000000000000000000000000000000;hpb=be9356cf35ae0ccfc15674b786386a61278bf305;p=depot.git

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
index 0000000..e624b2b
--- /dev/null
+++ b/db/migrate/20090202160925_add_date_available_to_product.rb
@@ -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