Added date_available_from to products, updated conditions in product.find_products_fo...
[depot.git] / db / migrate / 20090226212213_add_date_avilable_until_to_product.rb
diff --git a/db/migrate/20090226212213_add_date_avilable_until_to_product.rb b/db/migrate/20090226212213_add_date_avilable_until_to_product.rb
new file mode 100644 (file)
index 0000000..bfc90e5
--- /dev/null
@@ -0,0 +1,10 @@
+class AddDateAvilableUntilToProduct < ActiveRecord::Migration
+  def self.up
+    add_column :products, :date_available_until, :date
+    Product.reset_column_information
+  end
+
+  def self.down
+    remove_column :products, :date_available_until
+  end
+end