From 127aadd04c2b26dfa7ab7e91b7838c38382eee0b Mon Sep 17 00:00:00 2001 From: Neil Smith Date: Tue, 3 Feb 2009 09:12:28 +0000 Subject: [PATCH] Tweaked test data --- db/migrate/20090202163608_add_test_data.rb | 13 +- log/development.log | 416 +++++++++++++++++++++ 2 files changed, 421 insertions(+), 8 deletions(-) diff --git a/db/migrate/20090202163608_add_test_data.rb b/db/migrate/20090202163608_add_test_data.rb index 5b79b4f..35a0a7a 100644 --- a/db/migrate/20090202163608_add_test_data.rb +++ b/db/migrate/20090202163608_add_test_data.rb @@ -4,26 +4,23 @@ class AddTestData < ActiveRecord::Migration Product.create(:title => 'Snowball', :description => - %{

- The perfect gift for a hot summer's day. What could be better + %{

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.

-

- Note that this is a perisiable item and some melting may occur +

Note that this is a perishable item and some melting may occur while the snowball is in transit.

}, :image_url => '/images/snowball.jpg', - :price => 12.00, + :price => 11.99, :date_available => Time.utc(2008, 12, 31) ) Product.create(:title => 'Daisy', :description => - %{

- All the world is better for having flowers in it. And your home + %{

All the world is better for having flowers in it. And your home will be the better for having this fine example of Bellis perennis gracing its walls. The range of uses of this item are truly remarkable. You can place it in an eggcup of water, you can @@ -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 => %{

An essential for all activities, Air is vital for your wellbeing and vitality. Our air is carefully packaged to contain diff --git a/log/development.log b/log/development.log index 617525e..df17da6 100644 --- a/log/development.log +++ b/log/development.log @@ -796,3 +796,419 @@ Rendering template within layouts/products Rendering products/index Product Columns (1.1ms) SHOW FIELDS FROM `products` Completed in 48ms (View: 35, DB: 2) | 200 OK [http://localhost/products] + + +Processing ProductsController#index (for 127.0.0.1 at 2009-02-02 20:17:43) [GET] + SQL (0.1ms) SET NAMES 'utf8' + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + Product Load (0.2ms) SELECT * FROM `products`  +Rendering template within layouts/products +Rendering products/index + Product Columns (1.7ms) SHOW FIELDS FROM `products` +Completed in 59ms (View: 41, DB: 2) | 200 OK [http://localhost/products] + SQL (0.2ms) SET NAMES 'utf8' + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + SQL (0.3ms) SHOW TABLES + SQL (0.1ms) SELECT version FROM schema_migrations + SQL (0.3ms) SHOW TABLES + SQL (0.1ms) SELECT version FROM schema_migrations +Migrating to AddTestData (20090202163608) + Product Delete all (28.1ms) DELETE FROM `products`  + SQL (0.7ms) DELETE FROM schema_migrations WHERE version = '20090202163608' +Migrating to AddDateAvailableToProduct (20090202160925) + SQL (38.8ms) ALTER TABLE `products` DROP `date_available` + SQL (1.1ms) DELETE FROM schema_migrations WHERE version = '20090202160925' +Migrating to AddPriceToProduct (20090202160745) + SQL (6.4ms) ALTER TABLE `products` DROP `price` + SQL (0.8ms) DELETE FROM schema_migrations WHERE version = '20090202160745' +Migrating to CreateProducts (20090202160210) + SQL (1.4ms) DROP TABLE `products` + SQL (0.9ms) DELETE FROM schema_migrations WHERE version = '20090202160210' + SQL (0.4ms) SHOW TABLES + SQL (0.3ms) SELECT version FROM schema_migrations + SQL (0.3ms) SHOW TABLES + SQL (0.2ms) SET NAMES 'utf8' + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + SQL (0.4ms) SHOW TABLES + SQL (0.1ms) SELECT version FROM schema_migrations +Migrating to CreateProducts (20090202160210) + SQL (37.1ms) CREATE TABLE `products` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `description` text, `image_url` varchar(255), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB + SQL (0.7ms) INSERT INTO schema_migrations (version) VALUES ('20090202160210') +Migrating to AddPriceToProduct (20090202160745) + SQL (21.6ms) ALTER TABLE `products` ADD `price` decimal(8,2) DEFAULT 0 + SQL (0.6ms) INSERT INTO schema_migrations (version) VALUES ('20090202160745') +Migrating to AddDateAvailableToProduct (20090202160925) + SQL (6.7ms) ALTER TABLE `products` ADD `date_available` date + SQL (0.6ms) INSERT INTO schema_migrations (version) VALUES ('20090202160925') +Migrating to AddTestData (20090202163608) + Product Delete all (0.3ms) DELETE FROM `products`  + Product Columns (1.1ms) SHOW FIELDS FROM `products` + SQL (0.2ms) BEGIN + Product Exists (0.3ms) SELECT `products`.id FROM `products` WHERE (`products`.`title` = BINARY 'Snowball') LIMIT 1 + Product Create (0.4ms) INSERT INTO `products` (`image_url`, `updated_at`, `title`, `price`, `date_available`, `description`, `created_at`) VALUES('/images/snowball.jpg', '2009-02-02 22:16:01', 'Snowball', 12.0, '2008-12-31 00:00:00', '

The perfect gift for a hot summer\'s day. What could be better \n than to surprise a loved one a gift of winter coolness? This\n snowball has been loving crafted from the purest snow, hand-collected\n from the pristine lawn of our back garden. \n

\n

\n Note that this is a perisiable item and some melting may occur \n while the snowball is in transit. \n

\n ', '2009-02-02 22:16:01') + SQL (0.6ms) COMMIT + SQL (0.1ms) BEGIN + Product Exists (0.4ms) SELECT `products`.id FROM `products` WHERE (`products`.`title` = BINARY 'Daisy') LIMIT 1 + Product Create (0.6ms) INSERT INTO `products` (`image_url`, `updated_at`, `title`, `price`, `date_available`, `description`, `created_at`) VALUES('/images/daisy.gif', '2009-02-02 22:16:01', 'Daisy', 5.0, '2011-07-01 00:00:00', '

All the world is better for having flowers in it. And your home \n will be the better for having this fine example of Bellis \n perennis gracing its walls. The range of uses of this item are\n truly remarkable. You can place it in an eggcup of water, you can \n insert it in a jacket for a subtle buttonhole posy, or you even \n purchase a multi-pack to create your own daisy chain!\n

\n ', '2009-02-02 22:16:01') + SQL (1.1ms) COMMIT + SQL (0.3ms) BEGIN + Product Exists (0.9ms) SELECT `products`.id FROM `products` WHERE (`products`.`title` = BINARY 'Cardboard Box') LIMIT 1 + Product Create (0.5ms) INSERT INTO `products` (`image_url`, `updated_at`, `title`, `price`, `date_available`, `description`, `created_at`) VALUES('/images/cardboard-box.jpg', '2009-02-02 22:16:01', 'Cardboard Box', 10.0, '2007-01-01 00:00:00', '

The gift that keeps on giving, you\'ll wonder how you ever did \n without a cardboard box in your home. Us it for a range of uses, \n including putting things in and keeping things in. We can provide\n you with a cardboard box that is versatile and suitable for any\n occasion. Some of our directors even use them for sleeping in!\n

\n ', '2009-02-02 22:16:01') + SQL (0.8ms) COMMIT + SQL (0.2ms) BEGIN + Product Exists (0.5ms) SELECT `products`.id FROM `products` WHERE (`products`.`title` = BINARY 'Air') LIMIT 1 + Product Create (0.3ms) INSERT INTO `products` (`image_url`, `updated_at`, `title`, `price`, `date_available`, `description`, `created_at`) VALUES('/images/can-of-air.jpg', '2009-02-02 22:16:01', 'Air', 5000.0, '2009-01-01 00:00:00', '

An essential for all activities, Air is vital for your\n wellbeing and vitality. Our air is carefully packaged to contain\n only 100% pure air, with no artificial colours or preservatives.\n

\n

May contain nuts.\n

\n ', '2009-02-02 22:16:01') + SQL (0.5ms) COMMIT + SQL (0.6ms) INSERT INTO schema_migrations (version) VALUES ('20090202163608') + SQL (0.3ms) SHOW TABLES + SQL (0.3ms) SELECT version FROM schema_migrations + SQL (0.3ms) SHOW TABLES + SQL (1.1ms) SHOW FIELDS FROM `products` + SQL (1.0ms) describe `products` + SQL (0.4ms) SHOW KEYS FROM `products` + + +Processing ProductsController#index (for 127.0.0.1 at 2009-02-02 22:16:08) [GET] + SQL (0.2ms) SET NAMES 'utf8' + SQL (0.2ms) SET SQL_AUTO_IS_NULL=0 + Product Load (0.5ms) SELECT * FROM `products`  +Rendering template within layouts/products +Rendering products/index + Product Columns (1.1ms) SHOW FIELDS FROM `products` +Completed in 56ms (View: 38, DB: 2) | 200 OK [http://localhost/products] + + +Processing ProductsController#edit (for 127.0.0.1 at 2009-02-02 22:16:31) [GET] + Parameters: {"id"=>"1"} + SQL (0.1ms) SET NAMES 'utf8' + SQL (1.3ms) SET SQL_AUTO_IS_NULL=0 + Product Columns (1.8ms) SHOW FIELDS FROM `products` + Product Load (0.4ms) SELECT * FROM `products` WHERE (`products`.`id` = 1)  +Rendering template within layouts/products +Rendering products/edit +Completed in 57ms (View: 37, DB: 4) | 200 OK [http://localhost/products/1/edit] + SQL (0.2ms) SET NAMES 'utf8' + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + SQL (0.4ms) SHOW TABLES + SQL (0.1ms) SELECT version FROM schema_migrations + SQL (0.3ms) SHOW TABLES + SQL (0.2ms) SELECT version FROM schema_migrations +Migrating to AddTestData (20090202163608) + Product Delete all (38.0ms) DELETE FROM `products`  + SQL (0.8ms) DELETE FROM schema_migrations WHERE version = '20090202163608' +Migrating to AddDateAvailableToProduct (20090202160925) + SQL (26.5ms) ALTER TABLE `products` DROP `date_available` + SQL (0.7ms) DELETE FROM schema_migrations WHERE version = '20090202160925' +Migrating to AddPriceToProduct (20090202160745) + SQL (14.0ms) ALTER TABLE `products` DROP `price` + SQL (0.7ms) DELETE FROM schema_migrations WHERE version = '20090202160745' +Migrating to CreateProducts (20090202160210) + SQL (1.5ms) DROP TABLE `products` + SQL (0.7ms) DELETE FROM schema_migrations WHERE version = '20090202160210' + SQL (0.3ms) SHOW TABLES + SQL (0.3ms) SELECT version FROM schema_migrations + SQL (0.3ms) SHOW TABLES + SQL (0.1ms) SET NAMES 'utf8' + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + SQL (0.4ms) SHOW TABLES + SQL (0.1ms) SELECT version FROM schema_migrations +Migrating to CreateProducts (20090202160210) + SQL (7.7ms) CREATE TABLE `products` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `description` text, `image_url` varchar(255), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB + SQL (1.3ms) INSERT INTO schema_migrations (version) VALUES ('20090202160210') +Migrating to AddPriceToProduct (20090202160745) + SQL (23.0ms) ALTER TABLE `products` ADD `price` decimal(8,2) DEFAULT 0 + SQL (12.3ms) INSERT INTO schema_migrations (version) VALUES ('20090202160745') +Migrating to AddDateAvailableToProduct (20090202160925) + SQL (17.7ms) ALTER TABLE `products` ADD `date_available` date + SQL (2.5ms) INSERT INTO schema_migrations (version) VALUES ('20090202160925') +Migrating to AddTestData (20090202163608) + Product Delete all (0.3ms) DELETE FROM `products`  + Product Columns (1.1ms) SHOW FIELDS FROM `products` + SQL (0.1ms) BEGIN + Product Exists (2.3ms) SELECT `products`.id FROM `products` WHERE (`products`.`title` = BINARY 'Snowball') LIMIT 1 + Product Create (0.8ms) INSERT INTO `products` (`image_url`, `updated_at`, `title`, `price`, `date_available`, `description`, `created_at`) VALUES('/images/snowball.jpg', '2009-02-02 22:17:07', 'Snowball', 12.0, '2008-12-31 00:00:00', '

The perfect gift for a hot summer\'s day. What could be better \n than to surprise a loved one a gift of winter coolness? This\n snowball has been loving crafted from the purest snow, hand-collected\n from the pristine lawn of our back garden. \n

\n

\n Note that this is a perishiable item and some melting may occur \n while the snowball is in transit. \n

\n ', '2009-02-02 22:17:07') + SQL (1.0ms) COMMIT + SQL (0.1ms) BEGIN + Product Exists (0.3ms) SELECT `products`.id FROM `products` WHERE (`products`.`title` = BINARY 'Daisy') LIMIT 1 + Product Create (0.7ms) INSERT INTO `products` (`image_url`, `updated_at`, `title`, `price`, `date_available`, `description`, `created_at`) VALUES('/images/daisy.gif', '2009-02-02 22:17:07', 'Daisy', 5.0, '2011-07-01 00:00:00', '

All the world is better for having flowers in it. And your home \n will be the better for having this fine example of Bellis \n perennis gracing its walls. The range of uses of this item are\n truly remarkable. You can place it in an eggcup of water, you can \n insert it in a jacket for a subtle buttonhole posy, or you even \n purchase a multi-pack to create your own daisy chain!\n

\n ', '2009-02-02 22:17:07') + SQL (0.5ms) COMMIT + SQL (0.1ms) BEGIN + Product Exists (0.3ms) SELECT `products`.id FROM `products` WHERE (`products`.`title` = BINARY 'Cardboard Box') LIMIT 1 + Product Create (0.3ms) INSERT INTO `products` (`image_url`, `updated_at`, `title`, `price`, `date_available`, `description`, `created_at`) VALUES('/images/cardboard-box.jpg', '2009-02-02 22:17:07', 'Cardboard Box', 10.0, '2007-01-01 00:00:00', '

The gift that keeps on giving, you\'ll wonder how you ever did \n without a cardboard box in your home. Us it for a range of uses, \n including putting things in and keeping things in. We can provide\n you with a cardboard box that is versatile and suitable for any\n occasion. Some of our directors even use them for sleeping in!\n

\n ', '2009-02-02 22:17:07') + SQL (0.5ms) COMMIT + SQL (0.1ms) BEGIN + Product Exists (0.4ms) SELECT `products`.id FROM `products` WHERE (`products`.`title` = BINARY 'Air') LIMIT 1 + Product Create (0.3ms) INSERT INTO `products` (`image_url`, `updated_at`, `title`, `price`, `date_available`, `description`, `created_at`) VALUES('/images/can-of-air.jpg', '2009-02-02 22:17:07', 'Air', 5000.0, '2009-01-01 00:00:00', '

An essential for all activities, Air is vital for your\n wellbeing and vitality. Our air is carefully packaged to contain\n only 100% pure air, with no artificial colours or preservatives.\n

\n

May contain nuts.\n

\n ', '2009-02-02 22:17:07') + SQL (8.3ms) COMMIT + SQL (0.6ms) INSERT INTO schema_migrations (version) VALUES ('20090202163608') + SQL (9.7ms) SHOW TABLES + SQL (0.8ms) SELECT version FROM schema_migrations + SQL (0.7ms) SHOW TABLES + SQL (1.7ms) SHOW FIELDS FROM `products` + SQL (2.1ms) describe `products` + SQL (0.5ms) SHOW KEYS FROM `products` + + +Processing ProductsController#edit (for 127.0.0.1 at 2009-02-02 22:17:11) [GET] + Parameters: {"id"=>"1"} + SQL (0.1ms) SET NAMES 'utf8' + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + Product Columns (1.4ms) SHOW FIELDS FROM `products` + Product Load (0.4ms) SELECT * FROM `products` WHERE (`products`.`id` = 1)  +Rendering template within layouts/products +Rendering products/edit +Completed in 43ms (View: 26, DB: 2) | 200 OK [http://localhost/products/1/edit] + SQL (0.1ms) SET NAMES 'utf8' + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + SQL (0.4ms) SHOW TABLES + SQL (0.1ms) SELECT version FROM schema_migrations + SQL (0.3ms) SHOW TABLES + SQL (0.1ms) SELECT version FROM schema_migrations +Migrating to AddTestData (20090202163608) + Product Delete all (2.2ms) DELETE FROM `products`  + SQL (0.7ms) DELETE FROM schema_migrations WHERE version = '20090202163608' +Migrating to AddDateAvailableToProduct (20090202160925) + SQL (7.5ms) ALTER TABLE `products` DROP `date_available` + SQL (0.9ms) DELETE FROM schema_migrations WHERE version = '20090202160925' +Migrating to AddPriceToProduct (20090202160745) + SQL (23.4ms) ALTER TABLE `products` DROP `price` + SQL (0.7ms) DELETE FROM schema_migrations WHERE version = '20090202160745' +Migrating to CreateProducts (20090202160210) + SQL (2.9ms) DROP TABLE `products` + SQL (0.7ms) DELETE FROM schema_migrations WHERE version = '20090202160210' + SQL (0.8ms) SHOW TABLES + SQL (0.5ms) SELECT version FROM schema_migrations + SQL (0.4ms) SHOW TABLES + SQL (0.2ms) SET NAMES 'utf8' + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + SQL (0.5ms) SHOW TABLES + SQL (0.1ms) SELECT version FROM schema_migrations +Migrating to CreateProducts (20090202160210) + SQL (37.0ms) CREATE TABLE `products` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `description` text, `image_url` varchar(255), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB + SQL (1.3ms) INSERT INTO schema_migrations (version) VALUES ('20090202160210') +Migrating to AddPriceToProduct (20090202160745) + SQL (17.0ms) ALTER TABLE `products` ADD `price` decimal(8,2) DEFAULT 0 + SQL (1.9ms) INSERT INTO schema_migrations (version) VALUES ('20090202160745') +Migrating to AddDateAvailableToProduct (20090202160925) + SQL (6.5ms) ALTER TABLE `products` ADD `date_available` date + SQL (0.6ms) INSERT INTO schema_migrations (version) VALUES ('20090202160925') +Migrating to AddTestData (20090202163608) + Product Delete all (0.3ms) DELETE FROM `products`  + Product Columns (1.1ms) SHOW FIELDS FROM `products` + SQL (0.1ms) BEGIN + Product Exists (0.3ms) SELECT `products`.id FROM `products` WHERE (`products`.`title` = BINARY 'Snowball') LIMIT 1 + Product Create (0.4ms) INSERT INTO `products` (`image_url`, `updated_at`, `title`, `price`, `date_available`, `description`, `created_at`) VALUES('/images/snowball.jpg', '2009-02-02 22:17:43', 'Snowball', 12.0, '2008-12-31 00:00:00', '

The perfect gift for a hot summer\'s day. What could be better \n than to surprise a loved one a gift of winter coolness? This\n snowball has been loving crafted from the purest snow, hand-collected\n from the pristine lawn of our back garden. \n

\n

Note that this is a perishable item and some melting may occur \n while the snowball is in transit. \n

\n ', '2009-02-02 22:17:43') + SQL (0.5ms) COMMIT + SQL (0.1ms) BEGIN + Product Exists (0.5ms) SELECT `products`.id FROM `products` WHERE (`products`.`title` = BINARY 'Daisy') LIMIT 1 + Product Create (0.4ms) INSERT INTO `products` (`image_url`, `updated_at`, `title`, `price`, `date_available`, `description`, `created_at`) VALUES('/images/daisy.gif', '2009-02-02 22:17:43', 'Daisy', 5.0, '2011-07-01 00:00:00', '

All the world is better for having flowers in it. And your home \n will be the better for having this fine example of Bellis \n perennis gracing its walls. The range of uses of this item are\n truly remarkable. You can place it in an eggcup of water, you can \n insert it in a jacket for a subtle buttonhole posy, or you even \n purchase a multi-pack to create your own daisy chain!\n

\n ', '2009-02-02 22:17:43') + SQL (0.5ms) COMMIT + SQL (0.1ms) BEGIN + Product Exists (0.4ms) SELECT `products`.id FROM `products` WHERE (`products`.`title` = BINARY 'Cardboard Box') LIMIT 1 + Product Create (0.5ms) INSERT INTO `products` (`image_url`, `updated_at`, `title`, `price`, `date_available`, `description`, `created_at`) VALUES('/images/cardboard-box.jpg', '2009-02-02 22:17:43', 'Cardboard Box', 10.0, '2007-01-01 00:00:00', '

The gift that keeps on giving, you\'ll wonder how you ever did \n without a cardboard box in your home. Us it for a range of uses, \n including putting things in and keeping things in. We can provide\n you with a cardboard box that is versatile and suitable for any\n occasion. Some of our directors even use them for sleeping in!\n

\n ', '2009-02-02 22:17:43') + SQL (1.3ms) COMMIT + SQL (0.2ms) BEGIN + Product Exists (0.7ms) SELECT `products`.id FROM `products` WHERE (`products`.`title` = BINARY 'Air') LIMIT 1 + Product Create (0.7ms) INSERT INTO `products` (`image_url`, `updated_at`, `title`, `price`, `date_available`, `description`, `created_at`) VALUES('/images/can-of-air.jpg', '2009-02-02 22:17:43', 'Air', 5000.0, '2009-01-01 00:00:00', '

An essential for all activities, Air is vital for your\n wellbeing and vitality. Our air is carefully packaged to contain\n only 100% pure air, with no artificial colours or preservatives.\n

\n

May contain nuts.\n

\n ', '2009-02-02 22:17:43') + SQL (9.4ms) COMMIT + SQL (0.6ms) INSERT INTO schema_migrations (version) VALUES ('20090202163608') + SQL (0.4ms) SHOW TABLES + SQL (0.3ms) SELECT version FROM schema_migrations + SQL (0.3ms) SHOW TABLES + SQL (1.0ms) SHOW FIELDS FROM `products` + SQL (1.1ms) describe `products` + SQL (0.4ms) SHOW KEYS FROM `products` + + +Processing ProductsController#edit (for 127.0.0.1 at 2009-02-02 22:17:48) [GET] + Parameters: {"id"=>"1"} + SQL (0.2ms) SET NAMES 'utf8' + SQL (0.2ms) SET SQL_AUTO_IS_NULL=0 + Product Columns (1.6ms) SHOW FIELDS FROM `products` + Product Load (0.4ms) SELECT * FROM `products` WHERE (`products`.`id` = 1)  +Rendering template within layouts/products +Rendering products/edit +Completed in 44ms (View: 27, DB: 2) | 200 OK [http://localhost/products/1/edit] + + +Processing ProductsController#edit (for 127.0.0.1 at 2009-02-02 22:17:52) [GET] + Parameters: {"id"=>"2"} + SQL (0.2ms) SET NAMES 'utf8' + SQL (0.2ms) SET SQL_AUTO_IS_NULL=0 + Product Columns (2.6ms) SHOW FIELDS FROM `products` + Product Load (0.8ms) SELECT * FROM `products` WHERE (`products`.`id` = 2)  +Rendering template within layouts/products +Rendering products/edit +Completed in 62ms (View: 37, DB: 4) | 200 OK [http://localhost/products/2/edit] + + +Processing ProductsController#edit (for 127.0.0.1 at 2009-02-02 22:17:56) [GET] + Parameters: {"id"=>"3"} + SQL (0.2ms) SET NAMES 'utf8' + SQL (0.2ms) SET SQL_AUTO_IS_NULL=0 + Product Columns (1.6ms) SHOW FIELDS FROM `products` + Product Load (0.5ms) SELECT * FROM `products` WHERE (`products`.`id` = 3)  +Rendering template within layouts/products +Rendering products/edit +Completed in 77ms (View: 50, DB: 3) | 200 OK [http://localhost/products/3/edit] + + +Processing ProductsController#edit (for 127.0.0.1 at 2009-02-02 22:18:00) [GET] + Parameters: {"id"=>"4"} + SQL (0.1ms) SET NAMES 'utf8' + SQL (0.2ms) SET SQL_AUTO_IS_NULL=0 + Product Columns (1.9ms) SHOW FIELDS FROM `products` + Product Load (0.6ms) SELECT * FROM `products` WHERE (`products`.`id` = 4)  +Rendering template within layouts/products +Rendering products/edit +Completed in 58ms (View: 37, DB: 3) | 200 OK [http://localhost/products/4/edit] + + +Processing ProductsController#index (for 127.0.0.1 at 2009-02-03 08:54:41) [GET] + SQL (0.1ms) SET NAMES 'utf8' + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + Product Load (18.9ms) SELECT * FROM `products`  +Rendering template within layouts/products +Rendering products/index + Product Columns (28.5ms) SHOW FIELDS FROM `products` +Completed in 190ms (View: 126, DB: 48) | 200 OK [http://localhost/products] + SQL (0.2ms) SET NAMES 'utf8' + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + SQL (0.4ms) SHOW TABLES + SQL (0.1ms) SELECT version FROM schema_migrations + SQL (0.3ms) SHOW TABLES + SQL (0.1ms) SELECT version FROM schema_migrations +Migrating to AddTestData (20090202163608) + Product Delete all (54.6ms) DELETE FROM `products`  + SQL (0.7ms) DELETE FROM schema_migrations WHERE version = '20090202163608' +Migrating to AddDateAvailableToProduct (20090202160925) + SQL (82.6ms) ALTER TABLE `products` DROP `date_available` + SQL (0.9ms) DELETE FROM schema_migrations WHERE version = '20090202160925' +Migrating to AddPriceToProduct (20090202160745) + SQL (23.1ms) ALTER TABLE `products` DROP `price` + SQL (0.7ms) DELETE FROM schema_migrations WHERE version = '20090202160745' +Migrating to CreateProducts (20090202160210) + SQL (1.6ms) DROP TABLE `products` + SQL (0.7ms) DELETE FROM schema_migrations WHERE version = '20090202160210' + SQL (0.4ms) SHOW TABLES + SQL (0.3ms) SELECT version FROM schema_migrations + SQL (0.5ms) SHOW TABLES + SQL (0.2ms) SET NAMES 'utf8' + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + SQL (0.4ms) SHOW TABLES + SQL (0.2ms) SELECT version FROM schema_migrations +Migrating to CreateProducts (20090202160210) + SQL (40.6ms) CREATE TABLE `products` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `description` text, `image_url` varchar(255), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB + SQL (10.8ms) INSERT INTO schema_migrations (version) VALUES ('20090202160210') +Migrating to AddPriceToProduct (20090202160745) + SQL (11.9ms) ALTER TABLE `products` ADD `price` decimal(8,2) DEFAULT 0 + SQL (0.7ms) INSERT INTO schema_migrations (version) VALUES ('20090202160745') +Migrating to AddDateAvailableToProduct (20090202160925) + SQL (34.6ms) ALTER TABLE `products` ADD `date_available` date + SQL (3.8ms) INSERT INTO schema_migrations (version) VALUES ('20090202160925') +Migrating to AddTestData (20090202163608) + Product Delete all (0.4ms) DELETE FROM `products`  + Product Columns (1.1ms) SHOW FIELDS FROM `products` + SQL (0.1ms) BEGIN + Product Exists (0.3ms) SELECT `products`.id FROM `products` WHERE (`products`.`title` = BINARY 'Snowball') LIMIT 1 + Product Create (0.4ms) INSERT INTO `products` (`image_url`, `updated_at`, `title`, `price`, `date_available`, `description`, `created_at`) VALUES('/images/snowball.jpg', '2009-02-03 08:55:34', 'Snowball', 11.99, '2008-12-31 00:00:00', '

The perfect gift for a hot summer\'s day. What could be better \n than to surprise a loved one a gift of winter coolness? This\n snowball has been loving crafted from the purest snow, hand-collected\n from the pristine lawn of our back garden. \n

\n

Note that this is a perishable item and some melting may occur \n while the snowball is in transit. \n

\n ', '2009-02-03 08:55:34') + SQL (0.7ms) COMMIT + SQL (0.1ms) BEGIN + Product Exists (0.5ms) SELECT `products`.id FROM `products` WHERE (`products`.`title` = BINARY 'Daisy') LIMIT 1 + Product Create (0.4ms) INSERT INTO `products` (`image_url`, `updated_at`, `title`, `price`, `date_available`, `description`, `created_at`) VALUES('/images/daisy.gif', '2009-02-03 08:55:34', 'Daisy', 5.0, '2011-07-01 00:00:00', '

All the world is better for having flowers in it. And your home \n will be the better for having this fine example of Bellis \n perennis gracing its walls. The range of uses of this item are\n truly remarkable. You can place it in an eggcup of water, you can \n insert it in a jacket for a subtle buttonhole posy, or you even \n purchase a multi-pack to create your own daisy chain!\n

\n ', '2009-02-03 08:55:34') + SQL (1.5ms) COMMIT + SQL (0.1ms) BEGIN + Product Exists (0.3ms) SELECT `products`.id FROM `products` WHERE (`products`.`title` = BINARY 'Cardboard Box') LIMIT 1 + Product Create (0.4ms) INSERT INTO `products` (`image_url`, `updated_at`, `title`, `price`, `date_available`, `description`, `created_at`) VALUES('/images/cardboard-box.jpg', '2009-02-03 08:55:34', 'Cardboard Box', 10.0, '2007-01-01 00:00:00', '

The gift that keeps on giving, you\'ll wonder how you ever did \n without a cardboard box in your home. Us it for a range of uses, \n including putting things in and keeping things in. We can provide\n you with a cardboard box that is versatile and suitable for any\n occasion. Some of our directors even use them for sleeping in!\n

\n ', '2009-02-03 08:55:34') + SQL (0.5ms) COMMIT + SQL (0.1ms) BEGIN + Product Exists (0.4ms) SELECT `products`.id FROM `products` WHERE (`products`.`title` = BINARY 'Air') LIMIT 1 + Product Create (0.5ms) INSERT INTO `products` (`image_url`, `updated_at`, `title`, `price`, `date_available`, `description`, `created_at`) VALUES('/images/can-of-air.jpg', '2009-02-03 08:55:34', 'Air', 5000.0, '2009-01-01 00:00:00', '

An essential for all activities, Air is vital for your\n wellbeing and vitality. Our air is carefully packaged to contain\n only 100% pure air, with no artificial colours or preservatives.\n

\n

May contain nuts.\n

\n ', '2009-02-03 08:55:34') + SQL (3.5ms) COMMIT + SQL (0.9ms) INSERT INTO schema_migrations (version) VALUES ('20090202163608') + SQL (0.4ms) SHOW TABLES + SQL (0.4ms) SELECT version FROM schema_migrations + SQL (0.4ms) SHOW TABLES + SQL (1.1ms) SHOW FIELDS FROM `products` + SQL (1.1ms) describe `products` + SQL (0.5ms) SHOW KEYS FROM `products` + + +Processing ProductsController#index (for 127.0.0.1 at 2009-02-03 08:55:37) [GET] + SQL (0.1ms) SET NAMES 'utf8' + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + Product Load (0.5ms) SELECT * FROM `products`  +Rendering template within layouts/products +Rendering products/index + Product Columns (1.2ms) SHOW FIELDS FROM `products` +Completed in 58ms (View: 42, DB: 2) | 200 OK [http://localhost/products] + SQL (0.2ms) SET NAMES 'utf8' + SQL (0.3ms) SET SQL_AUTO_IS_NULL=0 + SQL (0.4ms) SHOW TABLES + SQL (0.1ms) SELECT version FROM schema_migrations + SQL (0.3ms) SHOW TABLES + SQL (0.1ms) SELECT version FROM schema_migrations +Migrating to AddTestData (20090202163608) + Product Delete all (27.5ms) DELETE FROM `products`  + SQL (29.7ms) DELETE FROM schema_migrations WHERE version = '20090202163608' +Migrating to AddDateAvailableToProduct (20090202160925) + SQL (20.7ms) ALTER TABLE `products` DROP `date_available` + SQL (10.0ms) DELETE FROM schema_migrations WHERE version = '20090202160925' +Migrating to AddPriceToProduct (20090202160745) + SQL (6.5ms) ALTER TABLE `products` DROP `price` + SQL (5.6ms) DELETE FROM schema_migrations WHERE version = '20090202160745' +Migrating to CreateProducts (20090202160210) + SQL (1.4ms) DROP TABLE `products` + SQL (0.8ms) DELETE FROM schema_migrations WHERE version = '20090202160210' + SQL (0.3ms) SHOW TABLES + SQL (0.3ms) SELECT version FROM schema_migrations + SQL (0.3ms) SHOW TABLES + SQL (0.2ms) SET NAMES 'utf8' + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + SQL (0.4ms) SHOW TABLES + SQL (0.1ms) SELECT version FROM schema_migrations +Migrating to CreateProducts (20090202160210) + SQL (43.0ms) CREATE TABLE `products` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `description` text, `image_url` varchar(255), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB + SQL (13.7ms) INSERT INTO schema_migrations (version) VALUES ('20090202160210') +Migrating to AddPriceToProduct (20090202160745) + SQL (8.1ms) ALTER TABLE `products` ADD `price` decimal(8,2) DEFAULT 0 + SQL (2.7ms) INSERT INTO schema_migrations (version) VALUES ('20090202160745') +Migrating to AddDateAvailableToProduct (20090202160925) + SQL (41.8ms) ALTER TABLE `products` ADD `date_available` date + SQL (1.3ms) INSERT INTO schema_migrations (version) VALUES ('20090202160925') +Migrating to AddTestData (20090202163608) + Product Delete all (0.4ms) DELETE FROM `products`  + Product Columns (1.1ms) SHOW FIELDS FROM `products` + SQL (0.2ms) BEGIN + Product Exists (0.3ms) SELECT `products`.id FROM `products` WHERE (`products`.`title` = BINARY 'Snowball') LIMIT 1 + Product Create (0.4ms) INSERT INTO `products` (`image_url`, `updated_at`, `title`, `price`, `date_available`, `description`, `created_at`) VALUES('/images/snowball.jpg', '2009-02-03 08:56:57', 'Snowball', 11.99, '2008-12-31 00:00:00', '

The perfect gift for a hot summer\'s day. What could be better \n than to surprise a loved one a gift of winter coolness? This\n snowball has been loving crafted from the purest snow, hand-collected\n from the pristine lawn of our back garden. \n

\n

Note that this is a perishable item and some melting may occur \n while the snowball is in transit. \n

\n ', '2009-02-03 08:56:57') + SQL (0.7ms) COMMIT + SQL (0.1ms) BEGIN + Product Exists (0.4ms) SELECT `products`.id FROM `products` WHERE (`products`.`title` = BINARY 'Daisy') LIMIT 1 + Product Create (0.4ms) INSERT INTO `products` (`image_url`, `updated_at`, `title`, `price`, `date_available`, `description`, `created_at`) VALUES('/images/daisy.gif', '2009-02-03 08:56:57', 'Daisy', 5.0, '2011-07-01 00:00:00', '

All the world is better for having flowers in it. And your home \n will be the better for having this fine example of Bellis \n perennis gracing its walls. The range of uses of this item are\n truly remarkable. You can place it in an eggcup of water, you can \n insert it in a jacket for a subtle buttonhole posy, or you even \n purchase a multi-pack to create your own daisy chain!\n

\n ', '2009-02-03 08:56:57') + SQL (0.9ms) COMMIT + SQL (0.1ms) BEGIN + Product Exists (0.5ms) SELECT `products`.id FROM `products` WHERE (`products`.`title` = BINARY 'Cardboard Box') LIMIT 1 + Product Create (0.6ms) INSERT INTO `products` (`image_url`, `updated_at`, `title`, `price`, `date_available`, `description`, `created_at`) VALUES('/images/cardboard-box.jpg', '2009-02-03 08:56:57', 'Cardboard Box', 10.0, '2007-01-01 00:00:00', '

The gift that keeps on giving, you\'ll wonder how you ever did \n without a cardboard box in your home. Us it for a range of uses, \n including putting things in and keeping things in. We can provide\n you with a cardboard box that is versatile and suitable for any\n occasion. Some of our directors even use them for sleeping in!\n

\n ', '2009-02-03 08:56:57') + SQL (7.1ms) COMMIT + SQL (2.4ms) BEGIN + Product Exists (4.7ms) SELECT `products`.id FROM `products` WHERE (`products`.`title` = BINARY 'Air in a Can') LIMIT 1 + Product Create (0.4ms) INSERT INTO `products` (`image_url`, `updated_at`, `title`, `price`, `date_available`, `description`, `created_at`) VALUES('/images/can-of-air.jpg', '2009-02-03 08:56:57', 'Air in a Can', 5000.0, '2009-01-01 00:00:00', '

An essential for all activities, Air is vital for your\n wellbeing and vitality. Our air is carefully packaged to contain\n only 100% pure air, with no artificial colours or preservatives.\n

\n

May contain nuts.\n

\n ', '2009-02-03 08:56:57') + SQL (0.9ms) COMMIT + SQL (0.8ms) INSERT INTO schema_migrations (version) VALUES ('20090202163608') + SQL (0.4ms) SHOW TABLES + SQL (0.3ms) SELECT version FROM schema_migrations + SQL (0.3ms) SHOW TABLES + SQL (1.1ms) SHOW FIELDS FROM `products` + SQL (1.1ms) describe `products` + SQL (0.5ms) SHOW KEYS FROM `products` + + +Processing ProductsController#index (for 127.0.0.1 at 2009-02-03 08:57:00) [GET] + SQL (0.2ms) SET NAMES 'utf8' + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + Product Load (0.5ms) SELECT * FROM `products`  +Rendering template within layouts/products +Rendering products/index + Product Columns (1.1ms) SHOW FIELDS FROM `products` +Completed in 53ms (View: 40, DB: 2) | 200 OK [http://localhost/products] -- 2.34.1