spec/dummy/log/test.log in rails-uploader-0.2.8 vs spec/dummy/log/test.log in rails-uploader-0.3.0
- old
+ new
@@ -3171,5 +3171,330 @@
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'assets';
[1m[36m (0.9ms)[0m [1mDELETE FROM "articles";[0m
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (1.4ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-06-06 15:29:08.438518"], ["title", "MyString"], ["updated_at", "2016-06-06 15:29:08.438518"]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (1.7ms)[0m INSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", "2016-06-06 15:29:08.450083"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-06-06 15:29:08.450083"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+ [1m[35mPicture Load (0.3ms)[0m SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."assetable_type" = 'Article' AND "assets"."guid" IS NULL ORDER BY "assets"."id" ASC LIMIT 1
+ [1m[36mSQL (1.1ms)[0m [1mUPDATE "assets" SET "assetable_id" = 1000, "guid" = NULL WHERE "assets"."type" IN ('Picture') AND "assets"."assetable_type" = 'Article' AND "assets"."guid" IS NULL[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.3ms)[0m [1mSELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."assetable_type" = 'Article' AND "assets"."guid" = 'kyAiZm9riQtqcxdoxWfR' ORDER BY "assets"."id" ASC LIMIT 1[0m
+ [1m[35m (1.0ms)[0m DELETE FROM "assets";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'assets';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (1.3ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-06-06 15:29:59.495508"], ["title", "MyString"], ["updated_at", "2016-06-06 15:29:59.495508"]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (1.7ms)[0m INSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", "2016-06-06 15:29:59.507167"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-06-06 15:29:59.507167"]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+ [1m[35mPicture Load (0.3ms)[0m SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."assetable_type" = 'Article' AND "assets"."guid" IS NULL ORDER BY "assets"."id" ASC LIMIT 1
+ [1m[36mSQL (1.0ms)[0m [1mUPDATE "assets" SET "assetable_id" = 1000, "guid" = NULL WHERE "assets"."type" IN ('Picture') AND "assets"."assetable_type" = 'Article' AND "assets"."guid" IS NULL[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.3ms)[0m [1mSELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."assetable_type" = 'Article' AND "assets"."guid" = 'iHBdWsyCRUqG2BKrqJd7' ORDER BY "assets"."id" ASC LIMIT 1[0m
+ [1m[35m (1.2ms)[0m DELETE FROM "assets";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'assets';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+Started POST "/uploader/attachments" for 127.0.0.1 at 2016-06-06 18:30:13 +0300
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mSQL (2.2ms)[0m [1mINSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_file_name", "guid", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", "2016-06-06 15:30:13.289159"], ["data_file_name", "rails.png"], ["guid", "SOMESTRING"], ["type", "Picture"], ["updated_at", "2016-06-06 15:30:13.289159"]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.9ms)[0m INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-06-06 15:30:13.365296"], ["title", "MyString"], ["updated_at", "2016-06-06 15:30:13.365296"]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", "2016-06-06 15:30:13.376686"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-06-06 15:30:13.376686"]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture')[0m
+Started DELETE "/uploader/attachments/" for 127.0.0.1 at 2016-06-06 18:30:13 +0300
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-06-06 15:30:13.445535"], ["title", "MyString"], ["updated_at", "2016-06-06 15:30:13.445535"]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["assetable_id", 2], ["assetable_type", "Article"], ["created_at", "2016-06-06 15:30:13.449493"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-06-06 15:30:13.449493"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+Started DELETE "/uploader/attachments/wrong" for 127.0.0.1 at 2016-06-06 18:30:13 +0300
+ [1m[35mPicture Load (0.3ms)[0m SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = 0 ORDER BY "assets"."id" ASC LIMIT 1
+Started POST "/uploader/attachments" for 127.0.0.1 at 2016-06-06 18:30:13 +0300
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "assets";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'assets';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "articles";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+Started POST "/uploader/attachments" for 127.0.0.1 at 2016-06-06 18:30:58 +0300
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mSQL (2.4ms)[0m [1mINSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_file_name", "guid", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", "2016-06-06 15:30:58.546491"], ["data_file_name", "rails.png"], ["guid", "SOMESTRING"], ["type", "Picture"], ["updated_at", "2016-06-06 15:30:58.546491"]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.9ms)[0m INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-06-06 15:30:58.620358"], ["title", "MyString"], ["updated_at", "2016-06-06 15:30:58.620358"]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", "2016-06-06 15:30:58.631533"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-06-06 15:30:58.631533"]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture')[0m
+Started DELETE "/uploader/attachments/" for 127.0.0.1 at 2016-06-06 18:30:58 +0300
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-06-06 15:30:58.692947"], ["title", "MyString"], ["updated_at", "2016-06-06 15:30:58.692947"]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["assetable_id", 2], ["assetable_type", "Article"], ["created_at", "2016-06-06 15:30:58.696861"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-06-06 15:30:58.696861"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+Started DELETE "/uploader/attachments/wrong" for 127.0.0.1 at 2016-06-06 18:30:58 +0300
+ [1m[35mPicture Load (0.3ms)[0m SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = 0 ORDER BY "assets"."id" ASC LIMIT 1
+Started POST "/uploader/attachments" for 127.0.0.1 at 2016-06-06 18:30:58 +0300
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "assets";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'assets';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "articles";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+Started POST "/uploader/attachments" for 127.0.0.1 at 2016-06-06 18:31:18 +0300
+ [1m[35m (0.3ms)[0m begin transaction
+ [1m[36mSQL (2.2ms)[0m [1mINSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_file_name", "guid", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", "2016-06-06 15:31:18.273292"], ["data_file_name", "rails.png"], ["guid", "SOMESTRING"], ["type", "Picture"], ["updated_at", "2016-06-06 15:31:18.273292"]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.9ms)[0m INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-06-06 15:31:18.350751"], ["title", "MyString"], ["updated_at", "2016-06-06 15:31:18.350751"]]
+ [1m[36m (1.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", "2016-06-06 15:31:18.365141"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-06-06 15:31:18.365141"]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture')[0m
+Started DELETE "/uploader/attachments/" for 127.0.0.1 at 2016-06-06 18:31:18 +0300
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-06-06 15:31:18.452551"], ["title", "MyString"], ["updated_at", "2016-06-06 15:31:18.452551"]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["assetable_id", 2], ["assetable_type", "Article"], ["created_at", "2016-06-06 15:31:18.456692"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-06-06 15:31:18.456692"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+Started DELETE "/uploader/attachments/wrong" for 127.0.0.1 at 2016-06-06 18:31:18 +0300
+ [1m[35mPicture Load (0.2ms)[0m SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = 0 ORDER BY "assets"."id" ASC LIMIT 1
+Started POST "/uploader/attachments" for 127.0.0.1 at 2016-06-06 18:31:18 +0300
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "assets";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM sqlite_sequence where name = 'assets';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "articles";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+Started POST "/uploader/attachments" for 127.0.0.1 at 2016-06-06 18:31:33 +0300
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (2.5ms)[0m [1mINSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_file_name", "guid", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", "2016-06-06 15:31:34.072296"], ["data_file_name", "rails.png"], ["guid", "SOMESTRING"], ["type", "Picture"], ["updated_at", "2016-06-06 15:31:34.072296"]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.9ms)[0m INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-06-06 15:31:34.147659"], ["title", "MyString"], ["updated_at", "2016-06-06 15:31:34.147659"]]
+ [1m[36m (0.7ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", "2016-06-06 15:31:34.158844"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-06-06 15:31:34.158844"]]
+ [1m[35m (1.0ms)[0m commit transaction
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture')[0m
+Started DELETE "/uploader/attachments/" for 127.0.0.1 at 2016-06-06 18:31:34 +0300
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-06-06 15:31:34.223368"], ["title", "MyString"], ["updated_at", "2016-06-06 15:31:34.223368"]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["assetable_id", 2], ["assetable_type", "Article"], ["created_at", "2016-06-06 15:31:34.227250"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-06-06 15:31:34.227250"]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+Started DELETE "/uploader/attachments/wrong" for 127.0.0.1 at 2016-06-06 18:31:34 +0300
+ [1m[35mPicture Load (0.2ms)[0m SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = 0 ORDER BY "assets"."id" ASC LIMIT 1
+Started POST "/uploader/attachments" for 127.0.0.1 at 2016-06-06 18:31:34 +0300
+ [1m[36m (1.2ms)[0m [1mDELETE FROM "assets";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'assets';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "articles";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+Started POST "/uploader/attachments" for 127.0.0.1 at 2016-06-06 18:32:35 +0300
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (2.2ms)[0m [1mINSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_file_name", "guid", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", "2016-06-06 15:32:35.670110"], ["data_file_name", "rails.png"], ["guid", "SOMESTRING"], ["type", "Picture"], ["updated_at", "2016-06-06 15:32:35.670110"]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.9ms)[0m INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-06-06 15:32:35.743570"], ["title", "MyString"], ["updated_at", "2016-06-06 15:32:35.743570"]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", "2016-06-06 15:32:35.756631"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-06-06 15:32:35.756631"]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture')[0m
+Started DELETE "/uploader/attachments/" for 127.0.0.1 at 2016-06-06 18:32:35 +0300
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-06-06 15:32:35.821022"], ["title", "MyString"], ["updated_at", "2016-06-06 15:32:35.821022"]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["assetable_id", 2], ["assetable_type", "Article"], ["created_at", "2016-06-06 15:32:35.824882"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-06-06 15:32:35.824882"]]
+ [1m[36m (1.0ms)[0m [1mcommit transaction[0m
+Started DELETE "/uploader/attachments/wrong" for 127.0.0.1 at 2016-06-06 18:32:35 +0300
+ [1m[35mPicture Load (0.2ms)[0m SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = 0 ORDER BY "assets"."id" ASC LIMIT 1
+Started POST "/uploader/attachments" for 127.0.0.1 at 2016-06-06 18:32:35 +0300
+ [1m[36m (1.1ms)[0m [1mDELETE FROM "assets";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'assets';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "articles";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+Started POST "/uploader/attachments" for 127.0.0.1 at 2016-06-06 18:32:44 +0300
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_file_name", "guid", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", "2016-06-06 15:32:44.542100"], ["data_file_name", "rails.png"], ["guid", "SOMESTRING"], ["type", "Picture"], ["updated_at", "2016-06-06 15:32:44.542100"]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-06-06 15:32:44.621199"], ["title", "MyString"], ["updated_at", "2016-06-06 15:32:44.621199"]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", "2016-06-06 15:32:44.631376"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-06-06 15:32:44.631376"]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture')[0m
+Started DELETE "/uploader/attachments/" for 127.0.0.1 at 2016-06-06 18:32:44 +0300
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-06-06 15:32:44.692573"], ["title", "MyString"], ["updated_at", "2016-06-06 15:32:44.692573"]]
+ [1m[35m (0.8ms)[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", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["assetable_id", 2], ["assetable_type", "Article"], ["created_at", "2016-06-06 15:32:44.696399"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-06-06 15:32:44.696399"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+Started DELETE "/uploader/attachments/wrong" for 127.0.0.1 at 2016-06-06 18:32:44 +0300
+ [1m[35mPicture Load (0.3ms)[0m SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = 0 ORDER BY "assets"."id" ASC LIMIT 1
+Started POST "/uploader/attachments" for 127.0.0.1 at 2016-06-06 18:32:44 +0300
+ [1m[36m (1.1ms)[0m [1mDELETE FROM "assets";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'assets';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "articles";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+Started POST "/uploader/attachments" for 127.0.0.1 at 2016-06-06 18:37:50 +0300
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mSQL (2.2ms)[0m [1mINSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_file_name", "guid", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", "2016-06-06 15:37:50.540551"], ["data_file_name", "rails.png"], ["guid", "SOMESTRING"], ["type", "Picture"], ["updated_at", "2016-06-06 15:37:50.540551"]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (1.0ms)[0m INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-06-06 15:37:50.614538"], ["title", "MyString"], ["updated_at", "2016-06-06 15:37:50.614538"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", "2016-06-06 15:37:50.629457"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-06-06 15:37:50.629457"]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture')[0m
+Started DELETE "/uploader/attachments/" for 127.0.0.1 at 2016-06-06 18:37:50 +0300
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-06-06 15:37:50.692807"], ["title", "MyString"], ["updated_at", "2016-06-06 15:37:50.692807"]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["assetable_id", 2], ["assetable_type", "Article"], ["created_at", "2016-06-06 15:37:50.696889"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-06-06 15:37:50.696889"]]
+ [1m[36m (1.1ms)[0m [1mcommit transaction[0m
+Started DELETE "/uploader/attachments/wrong" for 127.0.0.1 at 2016-06-06 18:37:50 +0300
+ [1m[35mPicture Load (0.2ms)[0m SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = 0 ORDER BY "assets"."id" ASC LIMIT 1
+Started POST "/uploader/attachments" for 127.0.0.1 at 2016-06-06 18:37:50 +0300
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "assets";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'assets';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "articles";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+Started POST "/uploader/attachments" for 127.0.0.1 at 2016-06-06 18:39:02 +0300
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mSQL (2.5ms)[0m [1mINSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_file_name", "guid", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", "2016-06-06 15:39:02.896748"], ["data_file_name", "rails.png"], ["guid", "SOMESTRING"], ["type", "Picture"], ["updated_at", "2016-06-06 15:39:02.896748"]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.8ms)[0m INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-06-06 15:39:02.967362"], ["title", "MyString"], ["updated_at", "2016-06-06 15:39:02.967362"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", "2016-06-06 15:39:02.979112"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-06-06 15:39:02.979112"]]
+ [1m[35m (1.3ms)[0m commit transaction
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture')[0m
+Started DELETE "/uploader/attachments/" for 127.0.0.1 at 2016-06-06 18:39:02 +0300
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-06-06 15:39:03.040208"], ["title", "MyString"], ["updated_at", "2016-06-06 15:39:03.040208"]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["assetable_id", 2], ["assetable_type", "Article"], ["created_at", "2016-06-06 15:39:03.044289"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-06-06 15:39:03.044289"]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+Started DELETE "/uploader/attachments/wrong" for 127.0.0.1 at 2016-06-06 18:39:03 +0300
+ [1m[35mPicture Load (0.2ms)[0m SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = 0 ORDER BY "assets"."id" ASC LIMIT 1
+Started POST "/uploader/attachments" for 127.0.0.1 at 2016-06-06 18:39:03 +0300
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "assets";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'assets';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "articles";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+Started POST "/uploader/attachments" for 127.0.0.1 at 2016-06-06 18:39:23 +0300
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mSQL (2.4ms)[0m [1mINSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_file_name", "guid", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", "2016-06-06 15:39:24.022812"], ["data_file_name", "rails.png"], ["guid", "SOMESTRING"], ["type", "Picture"], ["updated_at", "2016-06-06 15:39:24.022812"]]
+ [1m[35m (1.8ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.7ms)[0m INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-06-06 15:39:24.131617"], ["title", "MyString"], ["updated_at", "2016-06-06 15:39:24.131617"]]
+ [1m[36m (1.7ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", "2016-06-06 15:39:24.150265"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-06-06 15:39:24.150265"]]
+ [1m[35m (1.0ms)[0m commit transaction
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture')[0m
+Started DELETE "/uploader/attachments/2" for 127.0.0.1 at 2016-06-06 18:39:24 +0300
+ [1m[35mPicture Load (0.3ms)[0m SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = 2 ORDER BY "assets"."id" ASC LIMIT 1
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.5ms)[0m DELETE FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? [["id", 2]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture')
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-06-06 15:39:24.250117"], ["title", "MyString"], ["updated_at", "2016-06-06 15:39:24.250117"]]
+ [1m[36m (1.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["assetable_id", 2], ["assetable_type", "Article"], ["created_at", "2016-06-06 15:39:24.270074"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-06-06 15:39:24.270074"]]
+ [1m[35m (1.2ms)[0m commit transaction
+Started DELETE "/uploader/attachments/wrong" for 127.0.0.1 at 2016-06-06 18:39:24 +0300
+ [1m[36mPicture Load (0.3ms)[0m [1mSELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = 0 ORDER BY "assets"."id" ASC LIMIT 1[0m
+Started POST "/uploader/attachments" for 127.0.0.1 at 2016-06-06 18:39:24 +0300
+ [1m[35m (1.1ms)[0m DELETE FROM "assets";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.3ms)[0m DELETE FROM sqlite_sequence where name = 'assets';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+Started POST "/uploader/attachments" for 127.0.0.1 at 2016-06-08 16:15:12 +0300
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (2.2ms)[0m [1mINSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_file_name", "guid", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", "2016-06-08 13:15:13.046440"], ["data_file_name", "rails.png"], ["guid", "SOMESTRING"], ["type", "Picture"], ["updated_at", "2016-06-08 13:15:13.046440"]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (1.2ms)[0m INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-06-08 13:15:13.116947"], ["title", "MyString"], ["updated_at", "2016-06-08 13:15:13.116947"]]
+ [1m[36m (1.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", "2016-06-08 13:15:13.131176"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-06-08 13:15:13.131176"]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture')[0m
+Started DELETE "/uploader/attachments/2" for 127.0.0.1 at 2016-06-08 16:15:13 +0300
+ [1m[35mPicture Load (0.2ms)[0m SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = 2 ORDER BY "assets"."id" ASC LIMIT 1
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? [["id", 2]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture')
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-06-08 13:15:13.213701"], ["title", "MyString"], ["updated_at", "2016-06-08 13:15:13.213701"]]
+ [1m[36m (0.7ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["assetable_id", 2], ["assetable_type", "Article"], ["created_at", "2016-06-08 13:15:13.217333"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-06-08 13:15:13.217333"]]
+ [1m[35m (0.8ms)[0m commit transaction
+Started DELETE "/uploader/attachments/wrong" for 127.0.0.1 at 2016-06-08 16:15:13 +0300
+ [1m[36mPicture Load (0.2ms)[0m [1mSELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = 0 ORDER BY "assets"."id" ASC LIMIT 1[0m
+Started POST "/uploader/attachments" for 127.0.0.1 at 2016-06-08 16:15:13 +0300
+ [1m[35m (0.9ms)[0m DELETE FROM "assets";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'assets';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m