Added date_available_from to products, updated conditions in product.find_products_fo...
[depot.git] / db / migrate / 20090202163608_add_test_data.rb
index 5b79b4f3312214bfcc0df4d26ca21e050cf3c2bb..0bf4e82e13dfd8e0468b079f4447b4fa9aacf48d 100644 (file)
@@ -4,26 +4,23 @@ class AddTestData < ActiveRecord::Migration
 
     Product.create(:title => 'Snowball',
       :description => 
-        %{<p>
-            The perfect gift for a hot summer's day.  What could be better 
+        %{<p>The perfect gift for a hot summer's day.  What could be better 
             than to surprise a loved one a gift of winter coolness?  This
             snowball has been loving crafted from the purest snow, hand-collected
             from the pristine lawn of our back garden.  
           </p>
-          <p>
-            Note that this is a perisiable item and some melting may occur 
+          <p>Note that this is a perishable item and some melting may occur 
             while the snowball is in transit. 
           </p>
         },
         :image_url => '/images/snowball.jpg',
-        :price => 12.00,
+        :price => 11.99,
         :date_available => Time.utc(2008, 12, 31)
     )
     
     Product.create(:title => 'Daisy',
       :description => 
-        %{<p>
-            All the world is better for having flowers in it.  And your home 
+        %{<p>All the world is better for having flowers in it.  And your home 
             will be the better for having this fine example of <i>Bellis 
             perennis</i> gracing its walls.  The range of uses of this item are
             truly remarkable.  You can place it in an eggcup of water, you can 
@@ -32,7 +29,7 @@ class AddTestData < ActiveRecord::Migration
           </p>
         },
       :image_url => '/images/daisy.gif',
-      :price => 5.00,
+      :price => 4.99,
       :date_available => Time.utc(2011, 7, 1)
       )
       
@@ -50,7 +47,7 @@ class AddTestData < ActiveRecord::Migration
       :date_available => Time.utc(2007, 1, 1)
       )
 
-    Product.create(:title => 'Air',
+    Product.create(:title => 'Air in a Can',
       :description =>
         %{<p>An essential for all activities, <i>Air</i> is vital for your
             wellbeing and vitality.  Our air is carefully packaged to contain
@@ -60,7 +57,7 @@ class AddTestData < ActiveRecord::Migration
           </p>
         },
       :image_url => '/images/can-of-air.jpg',
-      :price => 5000.00,
+      :price => 4999.95,
       :date_available => Time.utc(2009, 1, 1)
       )
   end