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 @@
[1m[35m (0.1ms)[0m commit transaction
[1m[36m (96.1ms)[0m [1mDELETE FROM "assets";[0m
[1m[35m (90.6ms)[0m DELETE FROM sqlite_sequence where name = 'assets';
[1m[36m (79.4ms)[0m [1mDELETE FROM "articles";[0m
[1m[35m (79.4ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+Connecting to database specified by database.yml
+ [1m[36m (0.2ms)[0m [1mselect sqlite_version(*)[0m
+ [1m[35m (125.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
+ [1m[36m (0.1ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
+ [1m[35m (101.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
+Migrating to CreateAssets (20120508093416)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.7ms)[0m [1mCREATE 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) [0m
+ [1m[35m (0.1ms)[0m PRAGMA index_list("assets")
+ [1m[36m (0.3ms)[0m [1mCREATE INDEX "index_assets_on_assetable_type_and_assetable_id" ON "assets" ("assetable_type", "assetable_id")[0m
+ [1m[35m (0.1ms)[0m PRAGMA index_list("assets")
+ [1m[36m (0.1ms)[0m [1mPRAGMA index_info('index_assets_on_assetable_type_and_assetable_id')[0m
+ [1m[35m (0.3ms)[0m CREATE INDEX "index_assets_on_user_id" ON "assets" ("user_id")
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20120508093416')[0m
+ [1m[35m (747.5ms)[0m commit transaction
+Migrating to CreateArticles (20120508093830)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.6ms)[0m 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)
+ [1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20120508093830')[0m
+ [1m[35m (97.0ms)[0m commit transaction
+ [1m[36m (85.8ms)[0m [1mDELETE FROM "assets";[0m
+ [1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'assets';
+ [1m[36m (79.2ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+
+
+Started POST "/uploader/attachments" for 127.0.0.1 at 2012-09-12 16:41:06 +0300
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (2.8ms)[0m 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]]
+ [1m[36m (90.6ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["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]]
+ [1m[35m (88.2ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.6ms)[0m 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]]
+ [1m[36m (123.4ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36mPicture Load (0.4ms)[0m [1mSELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? LIMIT 1[0m [["id", "2"]]
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mDELETE FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ?[0m [["id", 2]]
+ [1m[35m (96.7ms)[0m commit transaction
+ [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture')[0m
+
+
+Started POST "/uploader/attachments" for 127.0.0.1 at 2012-09-12 16:41:07 +0300
+ [1m[35m (132.3ms)[0m DELETE FROM "assets";
+ [1m[36m (201.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'assets';[0m
+ [1m[35m (79.4ms)[0m DELETE FROM "articles";
+ [1m[36m (79.6ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["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]]
+ [1m[35m (99.2ms)[0m commit transaction
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.6ms)[0m 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]]
+ [1m[36m (96.2ms)[0m [1mcommit transaction[0m
+ [1m[35mPicture Load (0.4ms)[0m SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."guid" IS NULL LIMIT 1
+ [1m[36mSQL (97.4ms)[0m [1mUPDATE "assets" SET "assetable_id" = 1000, "guid" = NULL WHERE "assets"."type" IN ('Picture') AND "assets"."guid" IS NULL AND "assets"."assetable_type" = 'Article'[0m
+ [1m[35mPicture Load (0.2ms)[0m SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mPicture Load (0.4ms)[0m [1mSELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."guid" = 'KUq7GeHyu9' LIMIT 1[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mcommit transaction[0m
+ [1m[35m (81.7ms)[0m DELETE FROM "assets";
+ [1m[36m (79.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'assets';[0m
+ [1m[35m (79.6ms)[0m DELETE FROM "articles";
+ [1m[36m (79.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m