spec/dummy/log/test.log in rails-uploader-0.0.8 vs spec/dummy/log/test.log in rails-uploader-0.1.0

- old
+ new

@@ -272,5 +272,57 @@  (0.1ms) commit transaction  (81.7ms) DELETE FROM "assets";  (79.3ms) DELETE FROM sqlite_sequence where name = 'assets';  (79.6ms) DELETE FROM "articles";  (79.3ms) DELETE FROM sqlite_sequence where name = 'articles'; +Connecting to database specified by database.yml +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  +Migrating to CreateAssets (20120508093416) +Migrating to CreateArticles (20120508093830) +  (256.6ms) DELETE FROM "assets"; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (256.3ms) DELETE FROM "articles"; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; + + +Started POST "/uploader/attachments" for 127.0.0.1 at 2013-02-25 01:51:39 +0200 +  (0.2ms) begin transaction + SQL (142.8ms) INSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "guid", "type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", Sun, 24 Feb 2013 23:51:40 UTC +00:00], ["data_content_type", nil], ["data_file_name", "rails.png"], ["data_file_size", nil], ["guid", "SOMESTRING"], ["type", "Picture"], ["updated_at", Sun, 24 Feb 2013 23:51:40 UTC +00:00], ["user_id", nil]] +  (577.5ms) commit transaction +  (0.1ms) begin transaction + SQL (0.7ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", Sun, 24 Feb 2013 23:51:41 UTC +00:00], ["title", "MyString"], ["updated_at", Sun, 24 Feb 2013 23:51:41 UTC +00:00]] +  (398.0ms) commit transaction +  (0.2ms) begin transaction + SQL (0.7ms) INSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "guid", "type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", Sun, 24 Feb 2013 23:51:41 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Sun, 24 Feb 2013 23:51:41 UTC +00:00], ["user_id", nil]] +  (341.3ms) commit transaction +  (0.3ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') + + +Started DELETE "/uploader/attachments/2" for 127.0.0.1 at 2013-02-25 01:51:42 +0200 + Picture Load (0.4ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? LIMIT 1 [["id", "2"]] +  (0.1ms) begin transaction + SQL (0.4ms) DELETE FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? [["id", 2]] +  (379.4ms) commit transaction +  (0.3ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') + + +Started POST "/uploader/attachments" for 127.0.0.1 at 2013-02-25 01:51:42 +0200 +  (490.1ms) DELETE FROM "assets"; +  (442.8ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (335.7ms) DELETE FROM "articles"; +  (548.4ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (0.1ms) begin transaction + SQL (0.6ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", Sun, 24 Feb 2013 23:51:44 UTC +00:00], ["title", "MyString"], ["updated_at", Sun, 24 Feb 2013 23:51:44 UTC +00:00]] +  (487.8ms) commit transaction +  (0.1ms) begin transaction + SQL (0.6ms) INSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "guid", "type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", Sun, 24 Feb 2013 23:51:45 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Sun, 24 Feb 2013 23:51:45 UTC +00:00], ["user_id", nil]] +  (481.1ms) commit transaction + Picture Load (0.5ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."guid" IS NULL LIMIT 1 + SQL (2057.4ms) UPDATE "assets" SET "assetable_id" = 1000, "guid" = NULL WHERE "assets"."type" IN ('Picture') AND "assets"."guid" IS NULL AND "assets"."assetable_type" = 'Article' + Picture Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? LIMIT 1 [["id", 1]] + Picture Load (0.4ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."guid" = 'h4uBeA8SVy' LIMIT 1 +  (0.2ms) begin transaction +  (0.1ms) commit transaction +  (901.4ms) DELETE FROM "assets"; +  (684.1ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (900.7ms) DELETE FROM "articles"; +  (764.7ms) DELETE FROM sqlite_sequence where name = 'articles';