spec/dummy/log/test.log in rails-uploader-0.0.6 vs spec/dummy/log/test.log in rails-uploader-0.0.7

- old
+ new

@@ -203,5 +203,74 @@  (0.1ms) commit transaction  (96.1ms) DELETE FROM "assets";  (90.6ms) DELETE FROM sqlite_sequence where name = 'assets';  (79.4ms) DELETE FROM "articles";  (79.4ms) DELETE FROM sqlite_sequence where name = 'articles'; +Connecting to database specified by database.yml +  (0.2ms) select sqlite_version(*) +  (125.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) +  (0.1ms) PRAGMA index_list("schema_migrations") +  (101.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  +Migrating to CreateAssets (20120508093416) +  (0.1ms) begin transaction +  (0.7ms) CREATE TABLE "assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "data_file_name" varchar(255) NOT NULL, "data_content_type" varchar(255), "data_file_size" integer, "assetable_id" integer NOT NULL, "assetable_type" varchar(25) NOT NULL, "type" varchar(25), "guid" varchar(10), "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  +  (0.1ms) PRAGMA index_list("assets") +  (0.3ms) CREATE INDEX "index_assets_on_assetable_type_and_assetable_id" ON "assets" ("assetable_type", "assetable_id") +  (0.1ms) PRAGMA index_list("assets") +  (0.1ms) PRAGMA index_info('index_assets_on_assetable_type_and_assetable_id') +  (0.3ms) CREATE INDEX "index_assets_on_user_id" ON "assets" ("user_id") +  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120508093416') +  (747.5ms) commit transaction +Migrating to CreateArticles (20120508093830) +  (0.1ms) begin transaction +  (0.6ms) CREATE TABLE "articles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) +  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120508093830') +  (97.0ms) commit transaction +  (85.8ms) DELETE FROM "assets"; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (79.2ms) DELETE FROM "articles"; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; + + +Started POST "/uploader/attachments" for 127.0.0.1 at 2012-09-12 16:41:06 +0300 +  (0.1ms) begin transaction + SQL (2.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", Wed, 12 Sep 2012 13:41:07 UTC +00:00], ["data_content_type", nil], ["data_file_name", "rails.png"], ["data_file_size", nil], ["guid", "SOMESTRING"], ["type", "Picture"], ["updated_at", Wed, 12 Sep 2012 13:41:07 UTC +00:00], ["user_id", nil]] +  (90.6ms) commit transaction +  (0.1ms) begin transaction + SQL (0.7ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", Wed, 12 Sep 2012 13:41:07 UTC +00:00], ["title", "MyString"], ["updated_at", Wed, 12 Sep 2012 13:41:07 UTC +00:00]] +  (88.2ms) 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", Wed, 12 Sep 2012 13:41:07 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Wed, 12 Sep 2012 13:41:07 UTC +00:00], ["user_id", nil]] +  (123.4ms) commit transaction +  (0.4ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') + + +Started DELETE "/uploader/attachments/2" for 127.0.0.1 at 2012-09-12 16:41:07 +0300 + 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]] +  (96.7ms) commit transaction +  (0.3ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') + + +Started POST "/uploader/attachments" for 127.0.0.1 at 2012-09-12 16:41:07 +0300 +  (132.3ms) DELETE FROM "assets"; +  (201.2ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (79.4ms) DELETE FROM "articles"; +  (79.6ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (0.2ms) begin transaction + SQL (0.7ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", Wed, 12 Sep 2012 13:41:08 UTC +00:00], ["title", "MyString"], ["updated_at", Wed, 12 Sep 2012 13:41:08 UTC +00:00]] +  (99.2ms) commit transaction +  (0.2ms) 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", Wed, 12 Sep 2012 13:41:08 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Wed, 12 Sep 2012 13:41:08 UTC +00:00], ["user_id", nil]] +  (96.2ms) commit transaction + Picture Load (0.4ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."guid" IS NULL LIMIT 1 + SQL (97.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" = 'KUq7GeHyu9' LIMIT 1 +  (0.1ms) begin transaction +  (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';