1 class AddMoreTestData
< ActiveRecord
::Migration
3 Product
.create(:title => 'Rainbow',
5 %{<p>What could be better than a beautiful rainbow to brighten up your
6 day? Experience the wonder of light and water in all its glory.
8 <p>Due to metreological variations, the rainbow you receive may
9 differ slightly from the one shown here.
11 <p>(Terminal gold not included.)
14 :image_url => '/images/rainbow.jpg',
16 :date_available => Time.utc(2008, 12, 31),
17 :date_available_until => Time.utc(2009, 1, 1)
18 # :available_until => 'fred'
19 # :au => Time.utc(2008, 12, 31)
23 box.update_attribute(:date_available_until, Time.utc(2010, 7, 1))
24 # box.update_attribute(:available_until, 'tom')
25 # box.update_attribute(:au, Time.utc(2010, 7, 1))
29 Product.delete_all(["title = ?", 'Rainbow'])