spec/dummy/log/test.log in rails-uploader-0.0.4 vs spec/dummy/log/test.log in rails-uploader-0.0.5

- old
+ new

@@ -1,946 +1,207 @@ -  (0.1ms) select sqlite_version(*) -  (150.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) -  (0.1ms) PRAGMA index_list("schema_migrations") -  (91.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-05-08 12:26:16 +0300 -  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  -Migrating to CreateAssets (20120508093416) -  (0.0ms) select sqlite_version(*) -  (0.0ms) begin transaction -  (0.6ms) 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.2ms) CREATE INDEX "index_assets_on_assetable_type_and_assetable_id" ON "assets" ("assetable_type", "assetable_id") -  (0.0ms) PRAGMA index_list("assets") -  (0.0ms) PRAGMA index_info('index_assets_on_assetable_type_and_assetable_id') -  (0.1ms) CREATE INDEX "index_assets_on_user_id" ON "assets" ("user_id") -  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120508093416') -  (253.0ms) commit transaction -Migrating to CreateArticles (20120508093830) -  (0.1ms) begin transaction -  (0.5ms) 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') -  (142.7ms) commit transaction - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-05-08 12:52:57 +0300 -  (151.6ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (120.9ms) DELETE FROM "articles"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; -  (162.6ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (109.8ms) DELETE FROM "articles"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; -  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  -Migrating to CreateAssets (20120508093416) -Migrating to CreateArticles (20120508093830) - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-05-08 12:53:51 +0300 -  (162.9ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (118.5ms) DELETE FROM "articles"; -  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; -  (95.4ms) DELETE FROM "assets"; -  (0.3ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (120.8ms) DELETE FROM "articles"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; -  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  -Migrating to CreateAssets (20120508093416) -Migrating to CreateArticles (20120508093830) - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 09:53:19 +0300 -  (241.3ms) DELETE FROM "assets"; -  (0.3ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (210.1ms) DELETE FROM "articles"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; -  (199.6ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (276.5ms) DELETE FROM "articles"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; -  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  -Migrating to CreateAssets (20120508093416) -Migrating to CreateArticles (20120508093830) - - -Started POST "/uploader/attachments?klass=picture" for 127.0.0.1 at 2012-06-18 10:05:04 +0300 - - -Started POST "/uploader/attachments?klass=wrong" for 127.0.0.1 at 2012-06-18 10:05:04 +0300 -  (427.3ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (210.0ms) DELETE FROM "articles"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; -  (184.6ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (209.9ms) DELETE FROM "articles"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; -  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  -Migrating to CreateAssets (20120508093416) -Migrating to CreateArticles (20120508093830) - - -Started POST "/uploader/attachments?klass=Picture" for 127.0.0.1 at 2012-06-18 10:06:17 +0300 -  (0.1ms) begin transaction - SQL (105.9ms) 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", nil], ["assetable_type", nil], ["created_at", Mon, 18 Jun 2012 07:06:17 UTC +00:00], ["data_content_type", nil], ["data_file_name", nil], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Mon, 18 Jun 2012 07:06:17 UTC +00:00], ["user_id", nil]] -SQLite3::ConstraintException: assets.data_file_name may not be NULL: 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) -  (0.1ms) rollback transaction - - -Started POST "/uploader/attachments?klass=wrong" for 127.0.0.1 at 2012-06-18 10:06:17 +0300 -  (319.2ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (278.2ms) DELETE FROM "articles"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; -  (256.8ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (254.1ms) DELETE FROM "articles"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; -  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  -Migrating to CreateAssets (20120508093416) -Migrating to CreateArticles (20120508093830) - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 10:16:18 +0300 -  (222.3ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (165.6ms) DELETE FROM "articles"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; -  (175.0ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (154.8ms) DELETE FROM "articles"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; -  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  -Migrating to CreateAssets (20120508093416) -Migrating to CreateArticles (20120508093830) - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 10:16:42 +0300 -  (229.6ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (166.1ms) DELETE FROM "articles"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; -  (163.1ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (177.0ms) DELETE FROM "articles"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; -  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  -Migrating to CreateAssets (20120508093416) -Migrating to CreateArticles (20120508093830) - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 10:16:52 +0300 -  (251.7ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (165.7ms) DELETE FROM "articles"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; -  (163.2ms) DELETE FROM "assets"; -  (0.3ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (187.8ms) DELETE FROM "articles"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; -  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  -Migrating to CreateAssets (20120508093416) -Migrating to CreateArticles (20120508093830) - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 10:17:05 +0300 -  (228.6ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (198.9ms) DELETE FROM "articles"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; -  (184.5ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (176.7ms) DELETE FROM "articles"; -  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; -  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  -Migrating to CreateAssets (20120508093416) -Migrating to CreateArticles (20120508093830) - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 10:17:25 +0300 -  (233.3ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (265.2ms) DELETE FROM "articles"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; -  (176.4ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (154.7ms) DELETE FROM "articles"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; -  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  -Migrating to CreateAssets (20120508093416) -Migrating to CreateArticles (20120508093830) - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 10:17:38 +0300 -  (222.2ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (189.6ms) DELETE FROM "articles"; -  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; -  (162.8ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (199.1ms) DELETE FROM "articles"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; -  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  -Migrating to CreateAssets (20120508093416) -Migrating to CreateArticles (20120508093830) - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 10:18:11 +0300 - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 10:18:11 +0300 -  (233.1ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (165.8ms) DELETE FROM "articles"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; -  (151.6ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (143.8ms) DELETE FROM "articles"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; Connecting to database specified by database.yml -  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateAssets (20120508093416) Migrating to CreateArticles (20120508093830) - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 10:29:33 +0300 - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 10:29:33 +0300 -  (245.0ms) DELETE FROM "assets"; +  (154.0ms) DELETE FROM "assets";  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (176.7ms) DELETE FROM "articles"; -  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; -  (185.7ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (176.7ms) DELETE FROM "articles"; +  (79.0ms) DELETE FROM "articles";  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; -Connecting to database specified by database.yml -  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  -Migrating to CreateAssets (20120508093416) -Migrating to CreateArticles (20120508093830) -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 10:33:16 +0300 -  (0.1ms) begin transaction - SQL (1.5ms) 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", nil], ["assetable_type", nil], ["created_at", Mon, 18 Jun 2012 07:33:16 UTC +00:00], ["data_content_type", nil], ["data_file_name", nil], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Mon, 18 Jun 2012 07:33:16 UTC +00:00], ["user_id", nil]] -SQLite3::ConstraintException: assets.data_file_name may not be NULL: 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) -  (0.1ms) rollback transaction - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 10:33:16 +0300 -  (268.7ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (188.0ms) DELETE FROM "articles"; -  (0.3ms) DELETE FROM sqlite_sequence where name = 'articles'; -  (181.9ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (200.8ms) DELETE FROM "articles"; -  (0.3ms) DELETE FROM sqlite_sequence where name = 'articles'; -Connecting to database specified by database.yml -  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  -Migrating to CreateAssets (20120508093416) -Migrating to CreateArticles (20120508093830) - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 10:39:21 +0300 -  (232.8ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (165.6ms) DELETE FROM "articles"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; -  (243.0ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (176.7ms) DELETE FROM "articles"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; -Connecting to database specified by database.yml -  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  -Migrating to CreateAssets (20120508093416) -Migrating to CreateArticles (20120508093830) - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 10:39:39 +0300 -  (0.1ms) begin transaction - SQL (1.5ms) 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", nil], ["assetable_type", nil], ["created_at", Mon, 18 Jun 2012 07:39:39 UTC +00:00], ["data_content_type", nil], ["data_file_name", nil], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Mon, 18 Jun 2012 07:39:39 UTC +00:00], ["user_id", nil]] -SQLite3::ConstraintException: assets.data_file_name may not be NULL: 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) -  (0.1ms) rollback transaction - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 10:39:39 +0300 -  (246.1ms) DELETE FROM "assets"; -  (0.1ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (165.9ms) DELETE FROM "articles"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; -  (127.1ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (154.8ms) DELETE FROM "articles"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; -Connecting to database specified by database.yml -  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  -Migrating to CreateAssets (20120508093416) -Migrating to CreateArticles (20120508093830) - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 10:43:02 +0300 -  (0.1ms) begin transaction - SQL (1.5ms) 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", nil], ["assetable_type", nil], ["created_at", Mon, 18 Jun 2012 07:43:02 UTC +00:00], ["data_content_type", nil], ["data_file_name", nil], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Mon, 18 Jun 2012 07:43:02 UTC +00:00], ["user_id", nil]] -SQLite3::ConstraintException: assets.data_file_name may not be NULL: 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) -  (0.1ms) rollback transaction - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 10:43:02 +0300 -  (221.6ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (243.2ms) DELETE FROM "articles"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; -  (192.1ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (199.0ms) DELETE FROM "articles"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; -Connecting to database specified by database.yml -  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  -Migrating to CreateAssets (20120508093416) -Migrating to CreateArticles (20120508093830) - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 10:43:35 +0300 -  (0.1ms) begin transaction - SQL (1.5ms) 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", nil], ["assetable_type", nil], ["created_at", Mon, 18 Jun 2012 07:43:35 UTC +00:00], ["data_content_type", nil], ["data_file_name", nil], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Mon, 18 Jun 2012 07:43:35 UTC +00:00], ["user_id", nil]] -SQLite3::ConstraintException: assets.data_file_name may not be NULL: 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) -  (0.1ms) rollback transaction - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 10:43:35 +0300 -  (243.0ms) DELETE FROM "assets"; -  (0.3ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (176.7ms) DELETE FROM "articles"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; -  (225.1ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (154.8ms) DELETE FROM "articles"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; -Connecting to database specified by database.yml -Connecting to database specified by database.yml -Connecting to database specified by database.yml -  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  -Migrating to CreateAssets (20120508093416) -Migrating to CreateArticles (20120508093830) - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 10:50:55 +0300 -  (0.1ms) begin transaction - SQL (1.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", nil], ["assetable_type", nil], ["created_at", Mon, 18 Jun 2012 07:50:55 UTC +00:00], ["data_content_type", nil], ["data_file_name", nil], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Mon, 18 Jun 2012 07:50:55 UTC +00:00], ["user_id", nil]] -SQLite3::ConstraintException: assets.data_file_name may not be NULL: 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) -  (0.1ms) rollback transaction -  (0.1ms) begin transaction - SQL (0.5ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", Mon, 18 Jun 2012 07:50:55 UTC +00:00], ["title", "MyString"], ["updated_at", Mon, 18 Jun 2012 07:50:55 UTC +00:00]] -  (291.5ms) commit transaction +Started POST "/uploader/attachments" for 127.0.0.1 at 2012-07-08 11:08:21 +0300  (0.2ms) begin transaction - SQL (0.4ms) 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", Mon, 18 Jun 2012 07:50:55 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", nil], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Mon, 18 Jun 2012 07:50:55 UTC +00:00], ["user_id", nil]] -SQLite3::ConstraintException: assets.data_file_name may not be NULL: 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) -  (0.0ms) rollback transaction - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 10:50:55 +0300 -  (180.5ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (187.7ms) DELETE FROM "articles"; -  (155.4ms) DELETE FROM sqlite_sequence where name = 'articles'; -  (153.4ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (132.6ms) DELETE FROM "articles"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; -Connecting to database specified by database.yml -  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  -Migrating to CreateAssets (20120508093416) -Migrating to CreateArticles (20120508093830) - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 10:51:34 +0300 -  (0.1ms) begin transaction - SQL (1.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", nil], ["assetable_type", nil], ["created_at", Mon, 18 Jun 2012 07:51:34 UTC +00:00], ["data_content_type", nil], ["data_file_name", nil], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Mon, 18 Jun 2012 07:51:34 UTC +00:00], ["user_id", nil]] -SQLite3::ConstraintException: assets.data_file_name may not be NULL: 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) -  (0.1ms) rollback transaction + SQL (28.2ms) 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, 08 Jul 2012 08:08:22 UTC +00:00], ["data_content_type", nil], ["data_file_name", "rails.png"], ["data_file_size", nil], ["guid", "SOMESTRING"], ["type", "Picture"], ["updated_at", Sun, 08 Jul 2012 08:08:22 UTC +00:00], ["user_id", nil]] +  (91.7ms) commit transaction  (0.1ms) begin transaction - SQL (1.1ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", Mon, 18 Jun 2012 07:51:34 UTC +00:00], ["title", "MyString"], ["updated_at", Mon, 18 Jun 2012 07:51:34 UTC +00:00]] -  (219.0ms) commit transaction -  (0.2ms) begin transaction - SQL (0.4ms) 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", Mon, 18 Jun 2012 07:51:34 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", nil], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Mon, 18 Jun 2012 07:51:34 UTC +00:00], ["user_id", nil]] -SQLite3::ConstraintException: assets.data_file_name may not be NULL: 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) -  (0.0ms) rollback transaction - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 10:51:34 +0300 -  (267.5ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (210.1ms) DELETE FROM "articles"; -  (199.3ms) DELETE FROM sqlite_sequence where name = 'articles'; -  (219.5ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (265.4ms) DELETE FROM "articles"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; -Connecting to database specified by database.yml -  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  -Migrating to CreateAssets (20120508093416) -Migrating to CreateArticles (20120508093830) - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 10:54:19 +0300 + SQL (0.7ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", Sun, 08 Jul 2012 08:08:22 UTC +00:00], ["title", "MyString"], ["updated_at", Sun, 08 Jul 2012 08:08:22 UTC +00:00]] +  (90.4ms) commit transaction  (0.1ms) begin transaction - SQL (2.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", nil], ["assetable_type", nil], ["created_at", Mon, 18 Jun 2012 07:54:19 UTC +00:00], ["data_content_type", nil], ["data_file_name", nil], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Mon, 18 Jun 2012 07:54:19 UTC +00:00], ["user_id", nil]] -SQLite3::ConstraintException: assets.data_file_name may not be NULL: 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) -  (0.1ms) rollback transaction -  (0.1ms) begin transaction - SQL (0.7ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", Mon, 18 Jun 2012 07:54:20 UTC +00:00], ["title", "MyString"], ["updated_at", Mon, 18 Jun 2012 07:54:20 UTC +00:00]] -  (334.2ms) commit transaction -  (0.2ms) begin transaction - SQL (0.4ms) 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", Mon, 18 Jun 2012 07:54:20 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", nil], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Mon, 18 Jun 2012 07:54:20 UTC +00:00], ["user_id", nil]] -SQLite3::ConstraintException: assets.data_file_name may not be NULL: 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) -  (0.0ms) rollback 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, 08 Jul 2012 08:08:22 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Sun, 08 Jul 2012 08:08:22 UTC +00:00], ["user_id", nil]] +  (80.1ms) commit transaction +  (0.4ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 10:54:20 +0300 -  (253.4ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (222.8ms) DELETE FROM "articles"; -  (309.8ms) DELETE FROM sqlite_sequence where name = 'articles'; -  (167.2ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (165.9ms) DELETE FROM "articles"; -  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; -Connecting to database specified by database.yml -  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  -Migrating to CreateAssets (20120508093416) -Migrating to CreateArticles (20120508093830) - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 10:55:31 +0300 -  (0.1ms) begin transaction - SQL (1.5ms) 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", nil], ["assetable_type", nil], ["created_at", Mon, 18 Jun 2012 07:55:31 UTC +00:00], ["data_content_type", nil], ["data_file_name", nil], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Mon, 18 Jun 2012 07:55:31 UTC +00:00], ["user_id", nil]] -SQLite3::ConstraintException: assets.data_file_name may not be NULL: 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) -  (0.1ms) rollback transaction +Started DELETE "/uploader/attachments/2" for 127.0.0.1 at 2012-07-08 11:08:23 +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 (1.4ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", Mon, 18 Jun 2012 07:55:31 UTC +00:00], ["title", "MyString"], ["updated_at", Mon, 18 Jun 2012 07:55:31 UTC +00:00]] -  (243.1ms) commit transaction -  (0.2ms) begin transaction - SQL (0.4ms) 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", Mon, 18 Jun 2012 07:55:32 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", nil], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Mon, 18 Jun 2012 07:55:32 UTC +00:00], ["user_id", nil]] -SQLite3::ConstraintException: assets.data_file_name may not be NULL: 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) -  (0.0ms) rollback transaction + SQL (0.4ms) DELETE FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? [["id", 2]] +  (94.3ms) commit transaction +  (0.3ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 10:55:32 +0300 -  (261.2ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (154.5ms) DELETE FROM "articles"; -  (221.5ms) DELETE FROM sqlite_sequence where name = 'articles'; -  (201.8ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (187.9ms) DELETE FROM "articles"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; -Connecting to database specified by database.yml -Connecting to database specified by database.yml -  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  -Migrating to CreateAssets (20120508093416) -Migrating to CreateArticles (20120508093830) - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 10:58:43 +0300 -  (0.1ms) begin transaction - SQL (1.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", nil], ["assetable_type", nil], ["created_at", Mon, 18 Jun 2012 07:58:44 UTC +00:00], ["data_content_type", nil], ["data_file_name", nil], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Mon, 18 Jun 2012 07:58:44 UTC +00:00], ["user_id", nil]] -SQLite3::ConstraintException: assets.data_file_name may not be NULL: 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) -  (0.1ms) rollback transaction +Started POST "/uploader/attachments" for 127.0.0.1 at 2012-07-08 11:08:23 +0300 +  (99.8ms) DELETE FROM "assets"; +  (156.9ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (178.5ms) DELETE FROM "articles"; +  (79.3ms) DELETE FROM sqlite_sequence where name = 'articles';  (0.1ms) begin transaction - SQL (1.5ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", Mon, 18 Jun 2012 07:58:44 UTC +00:00], ["title", "MyString"], ["updated_at", Mon, 18 Jun 2012 07:58:44 UTC +00:00]] -  (207.6ms) commit transaction + SQL (0.6ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", Sun, 08 Jul 2012 08:08:23 UTC +00:00], ["title", "MyString"], ["updated_at", Sun, 08 Jul 2012 08:08:23 UTC +00:00]] +  (101.7ms) commit transaction  (0.1ms) begin transaction - SQL (0.4ms) 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", Mon, 18 Jun 2012 07:58:44 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", nil], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Mon, 18 Jun 2012 07:58:44 UTC +00:00], ["user_id", nil]] -SQLite3::ConstraintException: assets.data_file_name may not be NULL: 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) -  (0.0ms) rollback transaction - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 10:58:44 +0300 -  (183.4ms) DELETE FROM "assets"; -  (0.3ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (165.7ms) DELETE FROM "articles"; -  (199.3ms) DELETE FROM sqlite_sequence where name = 'articles'; -  (149.7ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (165.8ms) DELETE FROM "articles"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; -Connecting to database specified by database.yml -  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  -Migrating to CreateAssets (20120508093416) -Migrating to CreateArticles (20120508093830) - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 10:59:21 +0300 + 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, 08 Jul 2012 08:08:23 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Sun, 08 Jul 2012 08:08:23 UTC +00:00], ["user_id", nil]] +  (96.4ms) commit transaction + Picture Load (0.5ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."guid" IS NULL LIMIT 1 + SQL (83.9ms) 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.4ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."guid" = 'dyFa17gret' LIMIT 1  (0.1ms) begin transaction - SQL (4.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", nil], ["assetable_type", nil], ["created_at", Mon, 18 Jun 2012 07:59:21 UTC +00:00], ["data_content_type", nil], ["data_file_name", nil], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Mon, 18 Jun 2012 07:59:21 UTC +00:00], ["user_id", nil]] -SQLite3::ConstraintException: assets.data_file_name may not be NULL: 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) -  (0.1ms) rollback transaction -  (0.1ms) begin transaction - SQL (0.5ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", Mon, 18 Jun 2012 07:59:21 UTC +00:00], ["title", "MyString"], ["updated_at", Mon, 18 Jun 2012 07:59:21 UTC +00:00]] -  (242.2ms) commit transaction -  (0.1ms) begin transaction - SQL (0.5ms) 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", Mon, 18 Jun 2012 07:59:22 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", nil], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Mon, 18 Jun 2012 07:59:22 UTC +00:00], ["user_id", nil]] -SQLite3::ConstraintException: assets.data_file_name may not be NULL: 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) -  (0.0ms) rollback transaction - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 10:59:22 +0300 -  (228.8ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (187.9ms) DELETE FROM "articles"; -  (155.1ms) DELETE FROM sqlite_sequence where name = 'articles'; -  (151.8ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (210.0ms) DELETE FROM "articles"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (0.1ms) commit transaction +  (83.7ms) DELETE FROM "assets"; +  (90.5ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (79.2ms) DELETE FROM "articles"; +  (201.6ms) DELETE FROM sqlite_sequence where name = 'articles'; Connecting to database specified by database.yml -  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateAssets (20120508093416) Migrating to CreateArticles (20120508093830) - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 10:59:55 +0300 -  (0.1ms) begin transaction - SQL (4.9ms) 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", nil], ["assetable_type", nil], ["created_at", Mon, 18 Jun 2012 07:59:55 UTC +00:00], ["data_content_type", nil], ["data_file_name", nil], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Mon, 18 Jun 2012 07:59:55 UTC +00:00], ["user_id", nil]] -SQLite3::ConstraintException: assets.data_file_name may not be NULL: 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) -  (0.1ms) rollback transaction -  (0.1ms) begin transaction - SQL (0.7ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", Mon, 18 Jun 2012 07:59:55 UTC +00:00], ["title", "MyString"], ["updated_at", Mon, 18 Jun 2012 07:59:55 UTC +00:00]] -  (214.3ms) commit transaction -  (0.1ms) begin transaction - SQL (0.4ms) 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", Mon, 18 Jun 2012 07:59:55 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Mon, 18 Jun 2012 07:59:55 UTC +00:00], ["user_id", nil]] -  (167.9ms) commit transaction -  (0.3ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') - - -Started DELETE "/uploader/attachments" for 127.0.0.1 at 2012-06-18 10:59:55 +0300 - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 10:59:55 +0300 -  (178.0ms) DELETE FROM "assets"; -  (188.5ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (199.1ms) DELETE FROM "articles"; -  (221.6ms) DELETE FROM sqlite_sequence where name = 'articles'; -  (212.5ms) DELETE FROM "assets"; +  (119.7ms) DELETE FROM "assets";  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (166.0ms) DELETE FROM "articles"; +  (78.8ms) DELETE FROM "articles";  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; -Connecting to database specified by database.yml -  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  -Migrating to CreateAssets (20120508093416) -Migrating to CreateArticles (20120508093830) -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 11:01:10 +0300 -  (0.1ms) begin transaction - SQL (5.4ms) 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", nil], ["assetable_type", nil], ["created_at", Mon, 18 Jun 2012 08:01:10 UTC +00:00], ["data_content_type", nil], ["data_file_name", nil], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Mon, 18 Jun 2012 08:01:10 UTC +00:00], ["user_id", nil]] -SQLite3::ConstraintException: assets.data_file_name may not be NULL: 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) -  (0.1ms) rollback transaction +Started POST "/uploader/attachments" for 127.0.0.1 at 2012-07-08 11:08:45 +0300 +  (0.2ms) begin transaction + SQL (3.0ms) 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, 08 Jul 2012 08:08:45 UTC +00:00], ["data_content_type", nil], ["data_file_name", "rails.png"], ["data_file_size", nil], ["guid", "SOMESTRING"], ["type", "Picture"], ["updated_at", Sun, 08 Jul 2012 08:08:45 UTC +00:00], ["user_id", nil]] +  (84.4ms) commit transaction  (0.1ms) begin transaction - SQL (1.2ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", Mon, 18 Jun 2012 08:01:10 UTC +00:00], ["title", "MyString"], ["updated_at", Mon, 18 Jun 2012 08:01:10 UTC +00:00]] -  (228.3ms) commit transaction + SQL (0.7ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", Sun, 08 Jul 2012 08:08:46 UTC +00:00], ["title", "MyString"], ["updated_at", Sun, 08 Jul 2012 08:08:46 UTC +00:00]] +  (92.1ms) commit transaction  (0.1ms) begin transaction - SQL (0.4ms) 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", Mon, 18 Jun 2012 08:01:10 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Mon, 18 Jun 2012 08:01:10 UTC +00:00], ["user_id", nil]] -  (175.4ms) commit transaction -  (0.4ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') + 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, 08 Jul 2012 08:08:46 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Sun, 08 Jul 2012 08:08:46 UTC +00:00], ["user_id", nil]] +  (91.1ms) commit transaction +  (0.3ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') -Started DELETE "/uploader/attachments/1" for 127.0.0.1 at 2012-06-18 11:01:10 +0300 - Picture Load (0.5ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? LIMIT 1 [["id", "1"]] -  (0.0ms) begin transaction - SQL (0.2ms) DELETE FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? [["id", 1]] -  (196.7ms) commit transaction +Started DELETE "/uploader/attachments/2" for 127.0.0.1 at 2012-07-08 11:08:46 +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]] +  (97.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-06-18 11:01:11 +0300 -  (186.8ms) DELETE FROM "assets"; -  (166.1ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (157.0ms) DELETE FROM "articles"; -  (177.3ms) DELETE FROM sqlite_sequence where name = 'articles'; -  (149.6ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (143.6ms) DELETE FROM "articles"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; -Connecting to database specified by database.yml -  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  -Migrating to CreateAssets (20120508093416) -Migrating to CreateArticles (20120508093830) - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 11:01:44 +0300 -  (0.1ms) begin transaction - SQL (6.4ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", Mon, 18 Jun 2012 08:01:44 UTC +00:00], ["title", "MyString"], ["updated_at", Mon, 18 Jun 2012 08:01:44 UTC +00:00]] -  (271.3ms) commit transaction +Started POST "/uploader/attachments" for 127.0.0.1 at 2012-07-08 11:08:46 +0300 +  (88.8ms) DELETE FROM "assets"; +  (79.2ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (201.9ms) DELETE FROM "articles"; +  (79.3ms) DELETE FROM sqlite_sequence where name = 'articles';  (0.1ms) begin transaction - SQL (0.5ms) 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", Mon, 18 Jun 2012 08:01:44 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Mon, 18 Jun 2012 08:01:44 UTC +00:00], ["user_id", nil]] -  (172.2ms) commit transaction -  (0.4ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') - - -Started DELETE "/uploader/attachments/1" for 127.0.0.1 at 2012-06-18 11:01:44 +0300 - Picture Load (0.3ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? LIMIT 1 [["id", "1"]] -  (0.0ms) begin transaction - SQL (0.2ms) DELETE FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? [["id", 1]] -  (199.9ms) commit transaction -  (0.3ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 11:01:44 +0300 -  (153.5ms) DELETE FROM "assets"; -  (155.1ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (166.2ms) DELETE FROM "articles"; -  (134.9ms) DELETE FROM sqlite_sequence where name = 'articles'; -  (166.5ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (143.6ms) DELETE FROM "articles"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; -Connecting to database specified by database.yml -  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  -Migrating to CreateAssets (20120508093416) -Migrating to CreateArticles (20120508093830) - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 11:03:15 +0300 + SQL (0.6ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", Sun, 08 Jul 2012 08:08:47 UTC +00:00], ["title", "MyString"], ["updated_at", Sun, 08 Jul 2012 08:08:47 UTC +00:00]] +  (91.7ms) commit transaction  (0.1ms) begin transaction - SQL (4.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", nil], ["assetable_type", nil], ["created_at", Mon, 18 Jun 2012 08:03:15 UTC +00:00], ["data_content_type", nil], ["data_file_name", nil], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Mon, 18 Jun 2012 08:03:15 UTC +00:00], ["user_id", nil]] -SQLite3::ConstraintException: assets.data_file_name may not be NULL: 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) -  (0.1ms) rollback 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, 08 Jul 2012 08:08:47 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Sun, 08 Jul 2012 08:08:47 UTC +00:00], ["user_id", nil]] +  (96.7ms) commit transaction + Picture Load (0.5ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."guid" IS NULL LIMIT 1 + SQL (94.8ms) 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" = 'aZhq54HCdE' LIMIT 1  (0.1ms) begin transaction - SQL (0.6ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", Mon, 18 Jun 2012 08:03:15 UTC +00:00], ["title", "MyString"], ["updated_at", Mon, 18 Jun 2012 08:03:15 UTC +00:00]] -  (226.6ms) commit transaction -  (0.1ms) begin transaction - SQL (0.4ms) 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", Mon, 18 Jun 2012 08:03:15 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Mon, 18 Jun 2012 08:03:15 UTC +00:00], ["user_id", nil]] -  (139.5ms) commit transaction -  (0.4ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') - - -Started DELETE "/uploader/attachments/1" for 127.0.0.1 at 2012-06-18 11:03:15 +0300 - Picture Load (0.5ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? LIMIT 1 [["id", "1"]] -  (0.1ms) begin transaction - SQL (0.2ms) DELETE FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? [["id", 1]] -  (185.8ms) commit transaction -  (0.3ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 11:03:16 +0300 -  (192.2ms) DELETE FROM "assets"; -  (199.3ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (177.0ms) DELETE FROM "articles"; -  (166.2ms) DELETE FROM sqlite_sequence where name = 'articles'; -  (159.8ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (154.7ms) DELETE FROM "articles"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (0.1ms) commit transaction +  (116.3ms) DELETE FROM "assets"; +  (79.1ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (79.4ms) DELETE FROM "articles"; +  (90.5ms) DELETE FROM sqlite_sequence where name = 'articles'; Connecting to database specified by database.yml -  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateAssets (20120508093416) Migrating to CreateArticles (20120508093830) - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 11:04:21 +0300 -  (0.1ms) begin transaction - SQL (5.7ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", Mon, 18 Jun 2012 08:04:21 UTC +00:00], ["title", "MyString"], ["updated_at", Mon, 18 Jun 2012 08:04:21 UTC +00:00]] -  (267.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", Mon, 18 Jun 2012 08:04:21 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Mon, 18 Jun 2012 08:04:21 UTC +00:00], ["user_id", nil]] -  (172.0ms) commit transaction -  (0.2ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') - - -Started DELETE "/uploader/attachments/1" for 127.0.0.1 at 2012-06-18 11:04:21 +0300 - Picture Load (0.3ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? LIMIT 1 [["id", "1"]] -  (0.0ms) begin transaction - SQL (0.2ms) DELETE FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? [["id", 1]] -  (201.6ms) commit transaction -  (0.3ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 11:04:22 +0300 -  (167.0ms) DELETE FROM "assets"; -  (167.9ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (221.5ms) DELETE FROM "articles"; -  (177.1ms) DELETE FROM sqlite_sequence where name = 'articles'; -  (185.5ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (165.7ms) DELETE FROM "articles"; +  (175.2ms) DELETE FROM "assets"; +  (0.3ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (90.2ms) DELETE FROM "articles";  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; -Connecting to database specified by database.yml -  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  -Migrating to CreateAssets (20120508093416) -Migrating to CreateArticles (20120508093830) -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 11:05:11 +0300 -  (0.1ms) begin transaction - SQL (6.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", Mon, 18 Jun 2012 08:05:11 UTC +00:00], ["data_content_type", nil], ["data_file_name", nil], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Mon, 18 Jun 2012 08:05:11 UTC +00:00], ["user_id", nil]] -SQLite3::ConstraintException: assets.data_file_name may not be NULL: 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) -  (0.1ms) rollback transaction +Started POST "/uploader/attachments" for 127.0.0.1 at 2012-07-08 11:40:21 +0300 +  (0.2ms) begin transaction + SQL (3.9ms) 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, 08 Jul 2012 08:40:21 UTC +00:00], ["data_content_type", nil], ["data_file_name", "rails.png"], ["data_file_size", nil], ["guid", "SOMESTRING"], ["type", "Picture"], ["updated_at", Sun, 08 Jul 2012 08:40:21 UTC +00:00], ["user_id", nil]] +  (82.7ms) commit transaction  (0.1ms) begin transaction - SQL (0.6ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", Mon, 18 Jun 2012 08:05:11 UTC +00:00], ["title", "MyString"], ["updated_at", Mon, 18 Jun 2012 08:05:11 UTC +00:00]] -  (220.3ms) commit transaction + SQL (3.5ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", Sun, 08 Jul 2012 08:40:22 UTC +00:00], ["title", "MyString"], ["updated_at", Sun, 08 Jul 2012 08:40:22 UTC +00:00]] +  (80.1ms) commit transaction  (0.1ms) begin transaction - SQL (0.5ms) 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", Mon, 18 Jun 2012 08:05:11 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Mon, 18 Jun 2012 08:05:11 UTC +00:00], ["user_id", nil]] -  (177.8ms) commit transaction + SQL (4.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, 08 Jul 2012 08:40:22 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Sun, 08 Jul 2012 08:40:22 UTC +00:00], ["user_id", nil]] +  (81.5ms) commit transaction  (0.4ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') -Started DELETE "/uploader/attachments/1" for 127.0.0.1 at 2012-06-18 11:05:12 +0300 - Picture Load (0.5ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? LIMIT 1 [["id", "1"]] -  (0.1ms) begin transaction - SQL (0.4ms) DELETE FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? [["id", 1]] -  (162.0ms) commit transaction -  (0.3ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') +Started DELETE "/uploader/attachments/2" for 127.0.0.1 at 2012-07-08 11:40:22 +0300 + Picture Load (1.4ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? LIMIT 1 [["id", "2"]] +  (1.7ms) begin transaction + SQL (1.6ms) DELETE FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? [["id", 2]] +  (87.8ms) commit transaction +  (0.4ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 11:05:12 +0300 -  (143.1ms) DELETE FROM "assets"; -  (210.3ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (177.1ms) DELETE FROM "articles"; -  (155.1ms) DELETE FROM sqlite_sequence where name = 'articles'; -  (158.3ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (210.1ms) DELETE FROM "articles"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; -Connecting to database specified by database.yml -  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  -Migrating to CreateAssets (20120508093416) -Migrating to CreateArticles (20120508093830) - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 11:05:54 +0300 +Started POST "/uploader/attachments" for 127.0.0.1 at 2012-07-08 11:40:22 +0300 +  (93.8ms) DELETE FROM "assets"; +  (156.9ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (178.6ms) DELETE FROM "articles"; +  (79.3ms) 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", Sun, 08 Jul 2012 08:40:23 UTC +00:00], ["title", "MyString"], ["updated_at", Sun, 08 Jul 2012 08:40:23 UTC +00:00]] +  (87.6ms) commit transaction  (0.1ms) begin transaction - SQL (4.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", Mon, 18 Jun 2012 08:05:54 UTC +00:00], ["data_content_type", nil], ["data_file_name", nil], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Mon, 18 Jun 2012 08:05:54 UTC +00:00], ["user_id", nil]] -SQLite3::ConstraintException: assets.data_file_name may not be NULL: 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) -  (0.1ms) rollback transaction + SQL (1.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, 08 Jul 2012 08:40:23 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Sun, 08 Jul 2012 08:40:23 UTC +00:00], ["user_id", nil]] +  (113.5ms) commit transaction + Picture Load (0.5ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."guid" IS NULL LIMIT 1 + SQL (151.8ms) 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.3ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? LIMIT 1 [["id", 1]] + Picture Load (0.5ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."guid" = 'gXzs8ISAOh' LIMIT 1  (0.1ms) begin transaction - SQL (0.8ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", Mon, 18 Jun 2012 08:05:54 UTC +00:00], ["title", "MyString"], ["updated_at", Mon, 18 Jun 2012 08:05:54 UTC +00:00]] -  (236.3ms) commit transaction -  (0.1ms) begin transaction - SQL (0.4ms) 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", Mon, 18 Jun 2012 08:05:54 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Mon, 18 Jun 2012 08:05:54 UTC +00:00], ["user_id", nil]] -  (166.7ms) commit transaction -  (0.3ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') - - -Started DELETE "/uploader/attachments/1" for 127.0.0.1 at 2012-06-18 11:05:54 +0300 - Picture Load (0.3ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? LIMIT 1 [["id", "1"]] -  (0.0ms) begin transaction - SQL (0.2ms) DELETE FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? [["id", 1]] -  (155.6ms) commit transaction -  (0.3ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 11:05:55 +0300 -  (167.2ms) DELETE FROM "assets"; -  (155.1ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (144.0ms) DELETE FROM "articles"; -  (144.1ms) DELETE FROM sqlite_sequence where name = 'articles'; -  (177.4ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (176.8ms) DELETE FROM "articles"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (0.1ms) commit transaction +  (157.4ms) DELETE FROM "assets"; +  (79.3ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (79.3ms) DELETE FROM "articles"; +  (79.4ms) DELETE FROM sqlite_sequence where name = 'articles'; Connecting to database specified by database.yml -  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateAssets (20120508093416) Migrating to CreateArticles (20120508093830) - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 11:09:27 +0300 -  (0.1ms) begin transaction - SQL (4.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", Mon, 18 Jun 2012 08:09:27 UTC +00:00], ["data_content_type", nil], ["data_file_name", nil], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Mon, 18 Jun 2012 08:09:27 UTC +00:00], ["user_id", nil]] -SQLite3::ConstraintException: assets.data_file_name may not be NULL: 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) -  (0.1ms) rollback transaction -  (0.1ms) begin transaction - SQL (0.5ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", Mon, 18 Jun 2012 08:09:27 UTC +00:00], ["title", "MyString"], ["updated_at", Mon, 18 Jun 2012 08:09:27 UTC +00:00]] -  (282.3ms) commit transaction -  (0.1ms) begin transaction - SQL (0.4ms) 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", Mon, 18 Jun 2012 08:09:27 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Mon, 18 Jun 2012 08:09:27 UTC +00:00], ["user_id", nil]] -  (194.2ms) commit transaction -  (0.3ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') - - -Started DELETE "/uploader/attachments/1" for 127.0.0.1 at 2012-06-18 11:09:27 +0300 - Picture Load (0.3ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? LIMIT 1 [["id", "1"]] -  (0.1ms) begin transaction - SQL (0.2ms) DELETE FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? [["id", 1]] -  (223.7ms) commit transaction -  (0.2ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 11:09:28 +0300 -  (238.6ms) DELETE FROM "assets"; -  (154.9ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (144.1ms) DELETE FROM "articles"; -  (210.4ms) DELETE FROM sqlite_sequence where name = 'articles'; -  (202.8ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (186.1ms) DELETE FROM "articles"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; -Connecting to database specified by database.yml -  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  -Migrating to CreateAssets (20120508093416) -Migrating to CreateArticles (20120508093830) - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 11:10:02 +0300 -  (0.1ms) begin transaction - SQL (4.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", Mon, 18 Jun 2012 08:10:03 UTC +00:00], ["data_content_type", nil], ["data_file_name", nil], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Mon, 18 Jun 2012 08:10:03 UTC +00:00], ["user_id", nil]] -SQLite3::ConstraintException: assets.data_file_name may not be NULL: 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) -  (0.1ms) rollback transaction -  (0.1ms) begin transaction - SQL (0.5ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", Mon, 18 Jun 2012 08:10:03 UTC +00:00], ["title", "MyString"], ["updated_at", Mon, 18 Jun 2012 08:10:03 UTC +00:00]] -  (199.5ms) commit transaction -  (0.1ms) begin transaction - SQL (0.4ms) 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", Mon, 18 Jun 2012 08:10:03 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Mon, 18 Jun 2012 08:10:03 UTC +00:00], ["user_id", nil]] -  (222.0ms) commit transaction -  (0.4ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') - - -Started DELETE "/uploader/attachments/1" for 127.0.0.1 at 2012-06-18 11:10:03 +0300 - Picture Load (0.3ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? LIMIT 1 [["id", "1"]] -  (0.1ms) begin transaction - SQL (0.2ms) DELETE FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? [["id", 1]] -  (199.0ms) commit transaction -  (0.3ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 11:10:03 +0300 -  (164.7ms) DELETE FROM "assets"; -  (177.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (155.1ms) DELETE FROM "articles"; -  (177.3ms) DELETE FROM sqlite_sequence where name = 'articles'; -  (161.4ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (165.7ms) DELETE FROM "articles"; -  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; -Connecting to database specified by database.yml -  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  -Migrating to CreateAssets (20120508093416) -Migrating to CreateArticles (20120508093830) - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 11:11:37 +0300 - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 11:11:37 +0300 -  (222.0ms) DELETE FROM "assets"; +  (138.5ms) DELETE FROM "assets";  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (188.0ms) DELETE FROM "articles"; +  (79.2ms) DELETE FROM "articles";  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; -  (164.7ms) DELETE FROM "assets"; -  (0.1ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (166.0ms) DELETE FROM "articles"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; -Connecting to database specified by database.yml -  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  -Migrating to CreateAssets (20120508093416) -Migrating to CreateArticles (20120508093830) -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 11:12:11 +0300 +Started POST "/uploader/attachments" for 127.0.0.1 at 2012-07-08 11:43:37 +0300  (0.2ms) begin transaction - SQL (3.2ms) 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", Mon, 18 Jun 2012 08:12:12 UTC +00:00], ["data_content_type", nil], ["data_file_name", "rails.png"], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Mon, 18 Jun 2012 08:12:12 UTC +00:00], ["user_id", nil]] -  (174.3ms) commit transaction + SQL (2.9ms) 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, 08 Jul 2012 08:43:37 UTC +00:00], ["data_content_type", nil], ["data_file_name", "rails.png"], ["data_file_size", nil], ["guid", "SOMESTRING"], ["type", "Picture"], ["updated_at", Sun, 08 Jul 2012 08:43:37 UTC +00:00], ["user_id", nil]] +  (97.5ms) commit transaction  (0.1ms) begin transaction - SQL (0.4ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", Mon, 18 Jun 2012 08:12:12 UTC +00:00], ["title", "MyString"], ["updated_at", Mon, 18 Jun 2012 08:12:12 UTC +00:00]] -  (169.2ms) commit transaction + SQL (0.7ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", Sun, 08 Jul 2012 08:43:37 UTC +00:00], ["title", "MyString"], ["updated_at", Sun, 08 Jul 2012 08:43:37 UTC +00:00]] +  (79.7ms) commit transaction  (0.1ms) begin transaction - SQL (0.4ms) 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", Mon, 18 Jun 2012 08:12:12 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Mon, 18 Jun 2012 08:12:12 UTC +00:00], ["user_id", nil]] -  (170.9ms) commit transaction -  (0.2ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') - - -Started DELETE "/uploader/attachments/2" for 127.0.0.1 at 2012-06-18 11:12:12 +0300 - Picture Load (0.3ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? LIMIT 1 [["id", "2"]] -  (0.0ms) begin transaction - SQL (0.2ms) DELETE FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? [["id", 2]] -  (159.0ms) commit transaction -  (0.3ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 11:12:13 +0300 -  (140.9ms) DELETE FROM "assets"; -  (166.0ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (211.0ms) DELETE FROM "articles"; -  (177.4ms) DELETE FROM sqlite_sequence where name = 'articles'; -  (175.0ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (154.6ms) DELETE FROM "articles"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; -Connecting to database specified by database.yml -  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  -Migrating to CreateAssets (20120508093416) -Migrating to CreateArticles (20120508093830) - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 11:15:16 +0300 -  (0.2ms) begin transaction - SQL (3.1ms) 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", Mon, 18 Jun 2012 08:15:16 UTC +00:00], ["data_content_type", nil], ["data_file_name", "rails.png"], ["data_file_size", nil], ["guid", "SOMESTRING"], ["type", "Picture"], ["updated_at", Mon, 18 Jun 2012 08:15:16 UTC +00:00], ["user_id", nil]] -  (195.0ms) commit transaction -  (0.1ms) begin transaction - SQL (0.7ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", Mon, 18 Jun 2012 08:15:16 UTC +00:00], ["title", "MyString"], ["updated_at", Mon, 18 Jun 2012 08:15:16 UTC +00:00]] -  (148.9ms) commit transaction -  (0.1ms) begin transaction - SQL (0.4ms) 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", Mon, 18 Jun 2012 08:15:17 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Mon, 18 Jun 2012 08:15:17 UTC +00:00], ["user_id", nil]] -  (160.7ms) commit 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, 08 Jul 2012 08:43:37 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Sun, 08 Jul 2012 08:43:37 UTC +00:00], ["user_id", nil]] +  (103.8ms) commit transaction  (0.3ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') -Started DELETE "/uploader/attachments/2" for 127.0.0.1 at 2012-06-18 11:15:17 +0300 - Picture Load (0.3ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? LIMIT 1 [["id", "2"]] +Started DELETE "/uploader/attachments/2" for 127.0.0.1 at 2012-07-08 11:43:37 +0300 + Picture Load (0.5ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? LIMIT 1 [["id", "2"]]  (0.1ms) begin transaction - SQL (0.2ms) DELETE FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? [["id", 2]] -  (179.7ms) commit transaction -  (0.4ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') + SQL (0.4ms) DELETE FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? [["id", 2]] +  (87.0ms) commit transaction +  (0.3ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 11:15:17 +0300 -  (165.1ms) DELETE FROM "assets"; -  (188.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (177.3ms) DELETE FROM "articles"; -  (188.2ms) DELETE FROM sqlite_sequence where name = 'articles'; -  (185.2ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (178.8ms) DELETE FROM "articles"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; -Connecting to database specified by database.yml -  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  -Migrating to CreateAssets (20120508093416) -Migrating to CreateArticles (20120508093830) - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 11:15:47 +0300 -  (0.2ms) begin transaction - SQL (3.1ms) 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", Mon, 18 Jun 2012 08:15:47 UTC +00:00], ["data_content_type", nil], ["data_file_name", "rails.png"], ["data_file_size", nil], ["guid", "SOMESTRING"], ["type", "Picture"], ["updated_at", Mon, 18 Jun 2012 08:15:47 UTC +00:00], ["user_id", nil]] -  (182.4ms) commit transaction -  (0.1ms) begin transaction - SQL (0.6ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", Mon, 18 Jun 2012 08:15:47 UTC +00:00], ["title", "MyString"], ["updated_at", Mon, 18 Jun 2012 08:15:47 UTC +00:00]] -  (165.6ms) commit transaction +Started POST "/uploader/attachments" for 127.0.0.1 at 2012-07-08 11:43:37 +0300 +  (89.3ms) DELETE FROM "assets"; +  (201.6ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (90.8ms) DELETE FROM "articles"; +  (79.4ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (0.2ms) begin transaction + SQL (0.6ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", Sun, 08 Jul 2012 08:43:38 UTC +00:00], ["title", "MyString"], ["updated_at", Sun, 08 Jul 2012 08:43:38 UTC +00:00]] +  (101.4ms) commit transaction  (0.1ms) begin transaction - SQL (0.4ms) 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", Mon, 18 Jun 2012 08:15:48 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Mon, 18 Jun 2012 08:15:48 UTC +00:00], ["user_id", nil]] -  (147.9ms) commit transaction -  (0.3ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') - - -Started DELETE "/uploader/attachments/2" for 127.0.0.1 at 2012-06-18 11:15:48 +0300 - Picture Load (0.3ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? LIMIT 1 [["id", "2"]] + 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, 08 Jul 2012 08:43:38 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", nil], ["guid", nil], ["type", "Picture"], ["updated_at", Sun, 08 Jul 2012 08:43:38 UTC +00:00], ["user_id", nil]] +  (96.9ms) commit transaction + Picture Load (0.5ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."guid" IS NULL LIMIT 1 + SQL (84.0ms) 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" = 'aFodiuJVaA' LIMIT 1  (0.1ms) begin transaction - SQL (0.2ms) DELETE FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? [["id", 2]] -  (168.0ms) commit transaction -  (0.3ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') - - -Started POST "/uploader/attachments" for 127.0.0.1 at 2012-06-18 11:15:48 +0300 -  (189.8ms) DELETE FROM "assets"; -  (155.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (177.1ms) DELETE FROM "articles"; -  (155.2ms) DELETE FROM sqlite_sequence where name = 'articles'; -  (156.5ms) DELETE FROM "assets"; -  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; -  (176.7ms) DELETE FROM "articles"; -  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (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';