1 class AddTestData
< ActiveRecord
::Migration
5 Product
.create(:title => 'Snowball',
7 %{<p>The perfect gift for a hot summer's day. What could be better
8 than to surprise a loved one a gift of winter coolness? This
9 snowball has been loving crafted from the purest snow, hand-collected
10 from the pristine lawn of our back garden.
12 <p>Note that this is a perishable item and some melting may occur
13 while the snowball is in transit.
16 :image_url => '/images/snowball.jpg',
18 :date_available => Time.utc(2008, 12, 31)
21 Product.create(:title => 'Daisy',
23 %{<p>All the world is better for having flowers in it. And your home
24 will be the better for having this fine example of <i>Bellis
25 perennis</i> gracing its walls. The range of uses of this item are
26 truly remarkable. You can place it in an eggcup of water, you can
27 insert it in a jacket for a subtle buttonhole posy, or you even
28 purchase a multi-pack to create your own daisy chain!
31 :image_url => '/images/daisy.gif',
33 :date_available => Time.utc(2011, 7, 1)
36 Product.create(:title => 'Cardboard Box',
38 %{<p>The gift that keeps on giving, you'll wonder how you ever did
39 without a cardboard box in your home. Us it for a range of uses,
40 including putting things in and keeping things in. We can provide
41 you with a cardboard box that is versatile and suitable for any
42 occasion. Some of our directors even use them for sleeping in!
45 :image_url => '/images/cardboard-box.jpg',
47 :date_available => Time.utc(2007, 1, 1)
50 Product.create(:title => 'Air in a Can',
52 %{<p>An essential for all activities, <i>Air</i> is vital for your
53 wellbeing and vitality. Our air is carefully packaged to contain
54 only 100% pure air, with no artificial colours or preservatives.
59 :image_url => '/images/can-of-air.jpg',
61 :date_available => Time.utc(2009, 1, 1)