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