spec/dummy/log/test.log in rails-uploader-0.3.4 vs spec/dummy/log/test.log in rails-uploader-0.4.0
- old
+ new
@@ -3496,5 +3496,830 @@
[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
+ [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (3.0ms)[0m DELETE FROM "assets";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.5ms)[0m DELETE FROM sqlite_sequence where name = 'assets';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.2ms)[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.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (2.6ms)[0m DELETE FROM "assets";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'assets';
+ [1m[36m (1.1ms)[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.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-10-24 13:33:19.664066"], ["title", "MyString"], ["updated_at", "2016-10-24 13:33:19.664066"]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (1.6ms)[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-10-24 13:33:19.676355"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-10-24 13:33:19.676355"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+ [1m[35mPicture Load (0.4ms)[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.2ms)[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" = 'I9yP5a3wci65pB6pj-Akkg' ORDER BY "assets"."id" ASC LIMIT 1[0m
+ [1m[35m (1.1ms)[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.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-10-24 16:33:34 +0300
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (2.1ms)[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-10-24 13:33:34.299843"], ["data_file_name", "rails.png"], ["guid", "SOMESTRING"], ["type", "Picture"], ["updated_at", "2016-10-24 13:33:34.299843"]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.8ms)[0m INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-10-24 13:33:34.369878"], ["title", "MyString"], ["updated_at", "2016-10-24 13:33:34.369878"]]
+ [1m[36m (0.7ms)[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-10-24 13:33:34.380335"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-10-24 13:33:34.380335"]]
+ [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/2" for 127.0.0.1 at 2016-10-24 16:33:34 +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.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? [["id", 2]]
+ [1m[36m (1.1ms)[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-10-24 13:33:34.456302"], ["title", "MyString"], ["updated_at", "2016-10-24 13:33:34.456302"]]
+ [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-10-24 13:33:34.460150"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-10-24 13:33:34.460150"]]
+ [1m[35m (0.8ms)[0m commit transaction
+Started DELETE "/uploader/attachments/wrong" for 127.0.0.1 at 2016-10-24 16:33:34 +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-10-24 16:33:34 +0300
+ [1m[35m (1.1ms)[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.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[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 (3.0ms)[0m DELETE FROM "assets";
+ [1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.6ms)[0m DELETE FROM sqlite_sequence where name = 'assets';
+ [1m[36m (1.4ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (2.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 (0.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 (0.1ms)[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 (2.2ms)[0m DELETE FROM "assets";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'assets';
+ [1m[36m (1.0ms)[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.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-10-24 13:45:16.252162"], ["title", "MyString"], ["updated_at", "2016-10-24 13:45:16.252162"]]
+ [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", 1], ["assetable_type", "Article"], ["created_at", "2016-10-24 13:45:16.262527"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-10-24 13:45:16.262527"]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+ [1m[35mPicture Load (0.4ms)[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" = '7jwhSvT7qfd-uC54WNHSZA' 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.9ms)[0m DELETE FROM sqlite_sequence where name = 'assets';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "articles";[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 = 'articles';[0m
+ [1m[35m (1.3ms)[0m DELETE FROM "assets";
+ [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 (1.0ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.2ms)[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
+Started POST "/uploader/attachments" for 127.0.0.1 at 2016-10-24 16:45:16 +0300
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.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-10-24 13:45:16.423833"], ["data_file_name", "rails.png"], ["guid", "SOMESTRING"], ["type", "Picture"], ["updated_at", "2016-10-24 13:45:16.423833"]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [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-10-24 13:45:16.483627"], ["title", "MyString"], ["updated_at", "2016-10-24 13:45:16.483627"]]
+ [1m[36m (0.8ms)[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", 1], ["assetable_type", "Article"], ["created_at", "2016-10-24 13:45:16.487238"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-10-24 13:45:16.487238"]]
+ [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-10-24 16:45:16 +0300
+ [1m[35mPicture Load (0.4ms)[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.4ms)[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.2ms)[0m SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture')
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (2.0ms)[0m INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-10-24 13:45:16.563272"], ["title", "MyString"], ["updated_at", "2016-10-24 13:45:16.563272"]]
+ [1m[36m (2.3ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (6.0ms)[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-10-24 13:45:16.570481"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-10-24 13:45:16.570481"]]
+ [1m[35m (0.8ms)[0m commit transaction
+Started DELETE "/uploader/attachments/wrong" for 127.0.0.1 at 2016-10-24 16:45:16 +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-10-24 16:45:16 +0300
+ [1m[35m (1.2ms)[0m DELETE FROM "assets";
+ [1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (20.9ms)[0m DELETE FROM sqlite_sequence where name = 'assets';
+ [1m[36m (1.9ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.4ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [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 (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'assets';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.2ms)[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.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.3ms)[0m begin transaction
+ [1m[36mSQL (1.5ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-10-26 13:13:59.892298"], ["title", "MyString"], ["updated_at", "2016-10-26 13:13:59.892298"]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (1.8ms)[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-10-26 13:13:59.904746"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-10-26 13:13:59.904746"]]
+ [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" = 'T_0OMTfR5PJqViPP6J6Acw' ORDER BY "assets"."id" ASC LIMIT 1
+ [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 (1.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'assets';[0m
+ [1m[35m (2.2ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (1.2ms)[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.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'assets';[0m
+ [1m[35m (0.9ms)[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.1ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+Started POST "/uploader/attachments" for 127.0.0.1 at 2016-10-26 16:14:00 +0300
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_file_name", "guid", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", "2016-10-26 13:14:00.204483"], ["data_file_name", "rails.png"], ["guid", "SOMESTRING"], ["type", "Picture"], ["updated_at", "2016-10-26 13:14:00.204483"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-10-26 13:14:00.274352"], ["title", "MyString"], ["updated_at", "2016-10-26 13:14:00.274352"]]
+ [1m[35m (0.9ms)[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", 1], ["assetable_type", "Article"], ["created_at", "2016-10-26 13:14:00.278015"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-10-26 13:14:00.278015"]]
+ [1m[36m (1.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture')
+Started DELETE "/uploader/attachments/2" for 127.0.0.1 at 2016-10-26 16:14:00 +0300
+ [1m[36mPicture Load (0.2ms)[0m [1mSELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = 2 ORDER BY "assets"."id" ASC LIMIT 1[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mDELETE FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ?[0m [["id", 2]]
+ [1m[35m (1.1ms)[0m commit transaction
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture')[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-10-26 13:14:00.357924"], ["title", "MyString"], ["updated_at", "2016-10-26 13:14:00.357924"]]
+ [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-10-26 13:14:00.361881"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-10-26 13:14:00.361881"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+Started DELETE "/uploader/attachments/wrong" for 127.0.0.1 at 2016-10-26 16:14:00 +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-10-26 16:14:00 +0300
+ [1m[36m (1.7ms)[0m [1mDELETE FROM "assets";[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 = 'assets';[0m
+ [1m[35m (0.9ms)[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.9ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [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.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'assets';[0m
+ [1m[35m (1.2ms)[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.1ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (2.4ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-10-26 13:17:14.396623"], ["title", "MyString"], ["updated_at", "2016-10-26 13:17:14.396623"]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (1.9ms)[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-10-26 13:17:14.409211"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-10-26 13:17:14.409211"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+ [1m[35mPicture Load (0.4ms)[0m SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."assetable_type" = 'Article' AND "assets"."guid" = 'BzHJlYgMgOM3-mLBZfUpgA' ORDER BY "assets"."id" ASC LIMIT 1
+ [1m[36mPicture Load (0.3ms)[0m [1mSELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."assetable_type" = 'Article' AND "assets"."guid" = 'xmmOM1PGCjvAHFTupppegQ' ORDER BY "assets"."id" ASC LIMIT 1[0m
+ [1m[35m (1.1ms)[0m DELETE FROM "assets";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'assets';
+ [1m[36m (2.3ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (1.4ms)[0m DELETE FROM "assets";
+ [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 (1.0ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.2ms)[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
+Started POST "/uploader/attachments" for 127.0.0.1 at 2016-10-26 16:17:14 +0300
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.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-10-26 13:17:14.585617"], ["data_file_name", "rails.png"], ["guid", "SOMESTRING"], ["type", "Picture"], ["updated_at", "2016-10-26 13:17:14.585617"]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-10-26 13:17:14.652856"], ["title", "MyString"], ["updated_at", "2016-10-26 13:17:14.652856"]]
+ [1m[36m (0.9ms)[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", 1], ["assetable_type", "Article"], ["created_at", "2016-10-26 13:17:14.656756"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-10-26 13:17:14.656756"]]
+ [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/2" for 127.0.0.1 at 2016-10-26 16:17:14 +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.4ms)[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.2ms)[0m SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture')
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-10-26 13:17:14.728115"], ["title", "MyString"], ["updated_at", "2016-10-26 13:17:14.728115"]]
+ [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", 2], ["assetable_type", "Article"], ["created_at", "2016-10-26 13:17:14.733379"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-10-26 13:17:14.733379"]]
+ [1m[35m (0.9ms)[0m commit transaction
+Started DELETE "/uploader/attachments/wrong" for 127.0.0.1 at 2016-10-26 16:17:14 +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-10-26 16:17:14 +0300
+ [1m[35m (1.3ms)[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.0ms)[0m DELETE FROM sqlite_sequence where name = 'assets';
+ [1m[36m (0.8ms)[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.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (1.6ms)[0m DELETE FROM "assets";
+ [1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'assets';
+ [1m[36m (1.7ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.2ms)[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.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (1.5ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-10-26 13:20:26.144004"], ["title", "MyString"], ["updated_at", "2016-10-26 13:20:26.144004"]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (1.9ms)[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-10-26 13:20:26.162470"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-10-26 13:20:26.162470"]]
+ [1m[36m (1.1ms)[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" = 'n9xXevZifLphocrpWRQ-hQ' ORDER BY "assets"."id" ASC LIMIT 1
+ [1m[36mPicture Load (0.3ms)[0m [1mSELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."assetable_type" = 'Article' AND "assets"."guid" = 'dbp8ByuPKm39dIb6BeNBhA' ORDER BY "assets"."id" ASC LIMIT 1[0m
+ [1m[35m (2.0ms)[0m DELETE FROM "assets";
+ [1m[36m (0.4ms)[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 (3.0ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (2.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (1.5ms)[0m DELETE FROM "assets";
+ [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 (2.9ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.2ms)[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
+Started POST "/uploader/attachments" for 127.0.0.1 at 2016-10-26 16:20:26 +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-10-26 13:20:26.353374"], ["data_file_name", "rails.png"], ["guid", "SOMESTRING"], ["type", "Picture"], ["updated_at", "2016-10-26 13:20:26.353374"]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.6ms)[0m INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-10-26 13:20:26.431765"], ["title", "MyString"], ["updated_at", "2016-10-26 13:20:26.431765"]]
+ [1m[36m (1.3ms)[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-10-26 13:20:26.437727"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-10-26 13:20:26.437727"]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture')[0m
+Started DELETE "/uploader/attachments/2" for 127.0.0.1 at 2016-10-26 16:20:26 +0300
+ [1m[35mPicture Load (0.5ms)[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 (1.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture')
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-10-26 13:20:26.529868"], ["title", "MyString"], ["updated_at", "2016-10-26 13:20:26.529868"]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.8ms)[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-10-26 13:20:26.534170"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-10-26 13:20:26.534170"]]
+ [1m[35m (0.9ms)[0m commit transaction
+Started DELETE "/uploader/attachments/wrong" for 127.0.0.1 at 2016-10-26 16:20:26 +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-10-26 16:20:26 +0300
+ [1m[35m (1.3ms)[0m DELETE FROM "assets";
+ [1m[36m (0.3ms)[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.8ms)[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.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (1.2ms)[0m DELETE FROM "assets";
+ [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 (1.4ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.2ms)[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.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-10-26 13:48:13.227765"], ["title", "MyString"], ["updated_at", "2016-10-26 13:48:13.227765"]]
+ [1m[35m (1.1ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (1.8ms)[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-10-26 13:48:13.240431"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-10-26 13:48:13.240431"]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+ [1m[35mPicture Load (0.4ms)[0m SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."assetable_type" = 'Article' AND "assets"."guid" = 'd8TEgYygw-7pHVr1ozgETA' ORDER BY "assets"."id" ASC LIMIT 1
+ [1m[36m (1.3ms)[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.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'assets';[0m
+ [1m[35m (2.6ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[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
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-10-26 13:48:27.202801"], ["title", "MyString"], ["updated_at", "2016-10-26 13:48:27.202801"]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.5ms)[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-10-26 13:48:27.213458"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-10-26 13:48:27.213458"]]
+ [1m[36m (1.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (2.1ms)[0m DELETE FROM "assets";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.2ms)[0m DELETE FROM sqlite_sequence where name = 'assets';
+ [1m[36m (1.2ms)[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.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-10-26 13:48:44.336301"], ["title", "MyString"], ["updated_at", "2016-10-26 13:48:44.336301"]]
+ [1m[35m (1.0ms)[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", 1], ["assetable_type", "Article"], ["created_at", "2016-10-26 13:48:44.347301"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-10-26 13:48:44.347301"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+ [1m[35m (1.2ms)[0m DELETE FROM "assets";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (5.8ms)[0m DELETE FROM sqlite_sequence where name = 'assets';
+ [1m[36m (2.0ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-10-26 13:48:55.135496"], ["title", "MyString"], ["updated_at", "2016-10-26 13:48:55.135496"]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.5ms)[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-10-26 13:48:55.146352"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-10-26 13:48:55.146352"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[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 (1.2ms)[0m DELETE FROM sqlite_sequence where name = 'assets';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-10-26 13:49:12.733586"], ["title", "MyString"], ["updated_at", "2016-10-26 13:49:12.733586"]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.5ms)[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-10-26 13:49:12.743320"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-10-26 13:49:12.743320"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+ [1m[35m (1.3ms)[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.5ms)[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 (2.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.3ms)[0m begin transaction
+ [1m[36mSQL (1.3ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-10-26 13:50:15.263772"], ["title", "MyString"], ["updated_at", "2016-10-26 13:50:15.263772"]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (1.8ms)[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-10-26 13:50:15.276745"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-10-26 13:50:15.276745"]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+ [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.0ms)[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.7ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.4ms)[0m begin transaction
+ [1m[36mSQL (1.4ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-10-26 13:50:53.684672"], ["title", "MyString"], ["updated_at", "2016-10-26 13:50:53.684672"]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (2.0ms)[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-10-26 13:50:53.697080"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-10-26 13:50:53.697080"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+ [1m[35m (1.2ms)[0m DELETE FROM "assets";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (2.1ms)[0m DELETE FROM sqlite_sequence where name = 'assets';
+ [1m[36m (0.9ms)[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.4ms)[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.5ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-10-26 13:52:10.080488"], ["title", "MyString"], ["updated_at", "2016-10-26 13:52:10.080488"]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (2.0ms)[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-10-26 13:52:10.091834"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-10-26 13:52:10.091834"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+ [1m[35mSQL (1.2ms)[0m UPDATE "assets" SET "guid" = 'Ihd01ufSYr7n7q1ryDWQ-A' WHERE "assets"."type" IN ('Picture') AND "assets"."id" = 1
+ [1m[36m (1.3ms)[0m [1mDELETE FROM "assets";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (3.5ms)[0m [1mDELETE FROM sqlite_sequence where name = 'assets';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.2ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mSQL (1.5ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-10-26 13:52:43.621068"], ["title", "MyString"], ["updated_at", "2016-10-26 13:52:43.621068"]]
+ [1m[35m (1.0ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (2.9ms)[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-10-26 13:52:43.638128"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-10-26 13:52:43.638128"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+ [1m[35mSQL (2.1ms)[0m UPDATE "assets" SET "guid" = 'g2um2ptp3UhZuR3SrJUVoA' WHERE "assets"."type" IN ('Picture') AND "assets"."id" = 1
+ [1m[36m (1.3ms)[0m [1mDELETE FROM "assets";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (4.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'assets';[0m
+ [1m[35m (1.6ms)[0m DELETE FROM "articles";
+ [1m[36m (1.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (4.1ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mSQL (1.4ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-10-26 13:54:38.617229"], ["title", "MyString"], ["updated_at", "2016-10-26 13:54:38.617229"]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (1.9ms)[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-10-26 13:54:38.630340"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-10-26 13:54:38.630340"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+ [1m[35mSQL (1.1ms)[0m UPDATE "assets" SET "guid" = 'vdoUuODN1YnbDxXa9QuW1Q' WHERE "assets"."type" IN ('Picture') AND "assets"."id" = 1
+ [1m[36mPicture Load (0.4ms)[0m [1mSELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."assetable_type" = 'Article' AND "assets"."guid" = 'vdoUuODN1YnbDxXa9QuW1Q' ORDER BY "assets"."id" ASC LIMIT 1[0m
+ [1m[35m (1.1ms)[0m DELETE FROM "assets";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'assets';
+ [1m[36m (1.0ms)[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.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-10-26 13:54:52.873748"], ["title", "MyString"], ["updated_at", "2016-10-26 13:54:52.873748"]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.6ms)[0m INSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", "2016-10-26 13:54:52.887498"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-10-26 13:54:52.887498"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+ [1m[35mSQL (1.2ms)[0m UPDATE "assets" SET "guid" = 'gXLx_Qbq-dqdDNa4wiJ4fg' WHERE "assets"."type" IN ('Picture') AND "assets"."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" = 'gXLx_Qbq-dqdDNa4wiJ4fg' ORDER BY "assets"."id" ASC LIMIT 1[0m
+ [1m[35mPicture Load (0.4ms)[0m SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."assetable_type" = 'Article' AND "assets"."guid" = 'L5jT8nIfAtfXoaWdo8uZyg' ORDER BY "assets"."id" ASC LIMIT 1
+ [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.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
+ [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-10-26 13:56:25.428514"], ["title", "MyString"], ["updated_at", "2016-10-26 13:56:25.428514"]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (1.9ms)[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-10-26 13:56:25.441237"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-10-26 13:56:25.441237"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+ [1m[35mSQL (1.2ms)[0m UPDATE "assets" SET "guid" = 'zvuNvf9POoYl_WNixz0K5w' WHERE "assets"."type" IN ('Picture') AND "assets"."id" = 1
+ [1m[36mPicture Load (0.4ms)[0m [1mSELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."assetable_type" = 'Article' AND "assets"."guid" = 'zvuNvf9POoYl_WNixz0K5w' ORDER BY "assets"."id" ASC LIMIT 1[0m
+ [1m[35mPicture Load (0.3ms)[0m SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."assetable_type" = 'Article' AND "assets"."guid" = 'Ee1JyJi0aAKbuud9-AvrVQ' ORDER BY "assets"."id" ASC LIMIT 1
+ [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.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
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-10-26 13:57:07.334147"], ["title", "MyString"], ["updated_at", "2016-10-26 13:57:07.334147"]]
+ [1m[35m (0.7ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (2.0ms)[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-10-26 13:57:07.345089"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-10-26 13:57:07.345089"]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+ [1m[35mSQL (1.3ms)[0m UPDATE "assets" SET "guid" = 'tYxhMtLI6uOn3o93joSahA' WHERE "assets"."type" IN ('Picture') AND "assets"."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" = 'tYxhMtLI6uOn3o93joSahA' ORDER BY "assets"."id" ASC LIMIT 1[0m
+ [1m[35mPicture Load (0.3ms)[0m SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."assetable_type" = 'Article' AND "assets"."guid" = 'r9BITbnEJkHDjmaoMXn28A' ORDER BY "assets"."id" ASC LIMIT 1
+ [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.7ms)[0m [1mDELETE FROM sqlite_sequence where name = 'assets';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-10-26 13:57:27.535063"], ["title", "MyString"], ["updated_at", "2016-10-26 13:57:27.535063"]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.9ms)[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-10-26 13:57:27.546801"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-10-26 13:57:27.546801"]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+ [1m[35mSQL (1.2ms)[0m UPDATE "assets" SET "guid" = 'sfZ2sAUknG-1tn47w_C7Jg' WHERE "assets"."type" IN ('Picture') AND "assets"."id" = 1
+ [1m[36mPicture Load (0.4ms)[0m [1mSELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."assetable_type" = 'Article' AND "assets"."guid" = 'sfZ2sAUknG-1tn47w_C7Jg' ORDER BY "assets"."id" ASC LIMIT 1[0m
+ [1m[35mPicture Load (0.3ms)[0m SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."assetable_type" = 'Article' AND "assets"."guid" = 'OeGaEFky-0kRpYtiJwNong' ORDER BY "assets"."id" ASC LIMIT 1
+ [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 (1.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'assets';[0m
+ [1m[35m (1.2ms)[0m DELETE FROM "articles";
+ [1m[36m (0.5ms)[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 = 'articles';
+ [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[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-10-26 13:57:54.638498"], ["title", "MyString"], ["updated_at", "2016-10-26 13:57:54.638498"]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (1.9ms)[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-10-26 13:57:54.649549"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-10-26 13:57:54.649549"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+ [1m[35mSQL (1.5ms)[0m UPDATE "assets" SET "guid" = 'fFlzzDpjyj7L2IyZlfLuwg' WHERE "assets"."type" IN ('Picture') AND "assets"."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" = 'fFlzzDpjyj7L2IyZlfLuwg' ORDER BY "assets"."id" ASC LIMIT 1[0m
+ [1m[35mPicture Load (0.3ms)[0m SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."assetable_type" = 'Article' AND "assets"."guid" = 'fIUP1gjQDHLOec38WjLwSg' ORDER BY "assets"."id" ASC LIMIT 1
+ [1m[36m (1.2ms)[0m [1mDELETE FROM "assets";[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 = 'assets';[0m
+ [1m[35m (0.9ms)[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[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.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'assets';[0m
+ [1m[35m (4.6ms)[0m DELETE FROM "articles";
+ [1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+Started POST "/uploader/attachments" for 127.0.0.1 at 2016-10-26 16:57:54 +0300
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.6ms)[0m INSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_file_name", "guid", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", "2016-10-26 13:57:54.920374"], ["data_file_name", "rails.png"], ["guid", "SOMESTRING"], ["type", "Picture"], ["updated_at", "2016-10-26 13:57:54.920374"]]
+ [1m[36m (1.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-10-26 13:57:54.992728"], ["title", "MyString"], ["updated_at", "2016-10-26 13:57:54.992728"]]
+ [1m[35m (1.1ms)[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", 1], ["assetable_type", "Article"], ["created_at", "2016-10-26 13:57:54.999028"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-10-26 13:57:54.999028"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture')
+Started DELETE "/uploader/attachments/2" for 127.0.0.1 at 2016-10-26 16:57:55 +0300
+ [1m[36mPicture Load (0.5ms)[0m [1mSELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = 2 ORDER BY "assets"."id" ASC LIMIT 1[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.5ms)[0m [1mDELETE FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ?[0m [["id", 2]]
+ [1m[35m (1.1ms)[0m commit transaction
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture')[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-10-26 13:57:55.074893"], ["title", "MyString"], ["updated_at", "2016-10-26 13:57:55.074893"]]
+ [1m[35m (0.9ms)[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-10-26 13:57:55.078705"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-10-26 13:57:55.078705"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+Started DELETE "/uploader/attachments/wrong" for 127.0.0.1 at 2016-10-26 16:57:55 +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-10-26 16:57:55 +0300
+ [1m[36m (1.3ms)[0m [1mDELETE FROM "assets";[0m
+ [1m[35m (0.2ms)[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 (1.0ms)[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.2ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (2.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.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'assets';[0m
+ [1m[35m (1.2ms)[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.1ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mSQL (1.4ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-10-26 13:59:58.398485"], ["title", "MyString"], ["updated_at", "2016-10-26 13:59:58.398485"]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (2.2ms)[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-10-26 13:59:58.412823"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-10-26 13:59:58.412823"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+ [1m[35mSQL (1.4ms)[0m UPDATE "assets" SET "guid" = 'z2ReSNjFhKYt4wRkanOmhw' WHERE "assets"."type" IN ('Picture') AND "assets"."id" = 1
+ [1m[36mPicture Load (0.4ms)[0m [1mSELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."assetable_type" = 'Article' AND "assets"."guid" = 'z2ReSNjFhKYt4wRkanOmhw' ORDER BY "assets"."id" ASC LIMIT 1[0m
+ [1m[35mPicture Load (0.3ms)[0m SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."assetable_type" = 'Article' AND "assets"."guid" = 'xUYLdRI7B0so0AD-AAJCng' ORDER BY "assets"."id" ASC LIMIT 1
+ [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 (1.0ms)[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.9ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [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.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'assets';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM "articles";
+ [1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+Started POST "/uploader/attachments" for 127.0.0.1 at 2016-10-26 16:59:58 +0300
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_file_name", "guid", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", "2016-10-26 13:59:58.624942"], ["data_file_name", "rails.png"], ["guid", "SOMESTRING"], ["type", "Picture"], ["updated_at", "2016-10-26 13:59:58.624942"]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-10-26 13:59:58.694283"], ["title", "MyString"], ["updated_at", "2016-10-26 13:59:58.694283"]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.8ms)[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-10-26 13:59:58.697846"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-10-26 13:59:58.697846"]]
+ [1m[36m (1.1ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture')
+Started DELETE "/uploader/attachments/2" for 127.0.0.1 at 2016-10-26 16:59:58 +0300
+ [1m[36mPicture Load (0.2ms)[0m [1mSELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = 2 ORDER BY "assets"."id" ASC LIMIT 1[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mDELETE FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ?[0m [["id", 2]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture')[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-10-26 13:59:58.772292"], ["title", "MyString"], ["updated_at", "2016-10-26 13:59:58.772292"]]
+ [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-10-26 13:59:58.776336"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-10-26 13:59:58.776336"]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+Started DELETE "/uploader/attachments/wrong" for 127.0.0.1 at 2016-10-26 16:59: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-10-26 16:59:58 +0300
+ [1m[36m (1.3ms)[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.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'assets';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (1.2ms)[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.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'assets';[0m
+ [1m[35m (0.9ms)[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.1ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-10-26 14:00:15.673824"], ["title", "MyString"], ["updated_at", "2016-10-26 14:00:15.673824"]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.5ms)[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-10-26 14:00:15.682788"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-10-26 14:00:15.682788"]]
+ [1m[36m (1.1ms)[0m [1mcommit transaction[0m
+ [1m[35mSQL (1.2ms)[0m UPDATE "assets" SET "guid" = 'sNrc4BWr8ItHUDgrTi2YLQ' WHERE "assets"."type" IN ('Picture') AND "assets"."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" = 'sNrc4BWr8ItHUDgrTi2YLQ' ORDER BY "assets"."id" ASC LIMIT 1[0m
+ [1m[35mPicture Load (0.3ms)[0m SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."assetable_type" = 'Article' AND "assets"."guid" = 'EkRyaBKF0jweysWHdz-VTw' ORDER BY "assets"."id" ASC LIMIT 1
+ [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.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.9ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [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.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'assets';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM "articles";
+ [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 = 'articles';
+Started POST "/uploader/attachments" for 127.0.0.1 at 2016-10-26 17:00:15 +0300
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_file_name", "guid", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", "2016-10-26 14:00:15.838042"], ["data_file_name", "rails.png"], ["guid", "SOMESTRING"], ["type", "Picture"], ["updated_at", "2016-10-26 14:00:15.838042"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-10-26 14:00:15.901644"], ["title", "MyString"], ["updated_at", "2016-10-26 14:00:15.901644"]]
+ [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", 1], ["assetable_type", "Article"], ["created_at", "2016-10-26 14:00:15.905201"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-10-26 14:00:15.905201"]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture')
+Started DELETE "/uploader/attachments/2" for 127.0.0.1 at 2016-10-26 17:00:15 +0300
+ [1m[36mPicture Load (0.2ms)[0m [1mSELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = 2 ORDER BY "assets"."id" ASC LIMIT 1[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mDELETE FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ?[0m [["id", 2]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture')[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-10-26 14:00:15.985110"], ["title", "MyString"], ["updated_at", "2016-10-26 14:00:15.985110"]]
+ [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-10-26 14:00:15.988608"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-10-26 14:00:15.988608"]]
+ [1m[36m (1.2ms)[0m [1mcommit transaction[0m
+Started DELETE "/uploader/attachments/wrong" for 127.0.0.1 at 2016-10-26 17:00:15 +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-10-26 17:00:16 +0300
+ [1m[36m (1.2ms)[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.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'assets';[0m
+ [1m[35m (0.9ms)[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.9ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (1.7ms)[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.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'assets';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM "articles";
+ [1m[36m (0.3ms)[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 = 'articles';
+ [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[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-10-26 14:00:27.587850"], ["title", "MyString"], ["updated_at", "2016-10-26 14:00:27.587850"]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (1.8ms)[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-10-26 14:00:27.599422"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-10-26 14:00:27.599422"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+ [1m[35mSQL (1.2ms)[0m UPDATE "assets" SET "guid" = 'XE8xu6m17GxCD-2gfi1KkA' WHERE "assets"."type" IN ('Picture') AND "assets"."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" = 'XE8xu6m17GxCD-2gfi1KkA' ORDER BY "assets"."id" ASC LIMIT 1[0m
+ [1m[35mPicture Load (0.3ms)[0m SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."assetable_type" = 'Article' AND "assets"."guid" = 'doM-ObhS8LVhCk-y0bMY8w' ORDER BY "assets"."id" ASC LIMIT 1
+ [1m[36m (1.2ms)[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.9ms)[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.9ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (1.6ms)[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.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'assets';[0m
+ [1m[35m (1.0ms)[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.1ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+Started POST "/uploader/attachments" for 127.0.0.1 at 2016-10-26 17:00:27 +0300
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_file_name", "guid", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", "2016-10-26 14:00:27.777090"], ["data_file_name", "rails.png"], ["guid", "SOMESTRING"], ["type", "Picture"], ["updated_at", "2016-10-26 14:00:27.777090"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-10-26 14:00:27.844503"], ["title", "MyString"], ["updated_at", "2016-10-26 14:00:27.844503"]]
+ [1m[35m (0.9ms)[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", 1], ["assetable_type", "Article"], ["created_at", "2016-10-26 14:00:27.848506"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-10-26 14:00:27.848506"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture')
+Started DELETE "/uploader/attachments/2" for 127.0.0.1 at 2016-10-26 17:00:27 +0300
+ [1m[36mPicture Load (0.2ms)[0m [1mSELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = 2 ORDER BY "assets"."id" ASC LIMIT 1[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mDELETE FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ?[0m [["id", 2]]
+ [1m[35m (1.0ms)[0m commit transaction
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture')[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-10-26 14:00:27.920751"], ["title", "MyString"], ["updated_at", "2016-10-26 14:00:27.920751"]]
+ [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-10-26 14:00:27.924357"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-10-26 14:00:27.924357"]]
+ [1m[36m (1.0ms)[0m [1mcommit transaction[0m
+Started DELETE "/uploader/attachments/wrong" for 127.0.0.1 at 2016-10-26 17:00:27 +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-10-26 17:00:27 +0300
+ [1m[36m (1.2ms)[0m [1mDELETE FROM "assets";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'assets';[0m
+ [1m[35m (0.9ms)[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.9ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (1.4ms)[0m [1mDELETE FROM "assets";[0m
+ [1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'assets';[0m
+ [1m[35m (1.7ms)[0m DELETE FROM "articles";
+ [1m[36m (0.4ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[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-10-26 15:27:14.768440"], ["title", "MyString"], ["updated_at", "2016-10-26 15:27:14.768440"]]
+ [1m[35m (1.0ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (1.9ms)[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-10-26 15:27:14.779369"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-10-26 15:27:14.779369"]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+ [1m[35mSQL (1.2ms)[0m UPDATE "assets" SET "guid" = 'm3L08d52fDZKEAWZQreUlA' WHERE "assets"."type" IN ('Picture') AND "assets"."id" = 1
+ [1m[36mPicture Load (0.4ms)[0m [1mSELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."assetable_type" = 'Article' AND "assets"."guid" = 'm3L08d52fDZKEAWZQreUlA' ORDER BY "assets"."id" ASC LIMIT 1[0m
+ [1m[35mPicture Load (0.3ms)[0m SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."assetable_type" = 'Article' AND "assets"."guid" = '_oeMofdoOYDxhSLvuEkDjA' ORDER BY "assets"."id" ASC LIMIT 1
+ [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.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 (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (1.3ms)[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.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'assets';[0m
+ [1m[35m (0.9ms)[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.1ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+Started POST "/uploader/attachments" for 127.0.0.1 at 2016-10-26 18:27:14 +0300
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.6ms)[0m INSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_file_name", "guid", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", "2016-10-26 15:27:15.046622"], ["data_file_name", "rails.png"], ["guid", "SOMESTRING"], ["type", "Picture"], ["updated_at", "2016-10-26 15:27:15.046622"]]
+ [1m[36m (1.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-10-26 15:27:15.112080"], ["title", "MyString"], ["updated_at", "2016-10-26 15:27:15.112080"]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.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-10-26 15:27:15.115716"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-10-26 15:27:15.115716"]]
+ [1m[36m (1.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture')
+Started DELETE "/uploader/attachments/2" for 127.0.0.1 at 2016-10-26 18:27:15 +0300
+ [1m[36mPicture Load (0.2ms)[0m [1mSELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = 2 ORDER BY "assets"."id" ASC LIMIT 1[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mDELETE FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ?[0m [["id", 2]]
+ [1m[35m (1.2ms)[0m commit transaction
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture')[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-10-26 15:27:15.193902"], ["title", "MyString"], ["updated_at", "2016-10-26 15:27:15.193902"]]
+ [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-10-26 15:27:15.197515"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-10-26 15:27:15.197515"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+Started DELETE "/uploader/attachments/wrong" for 127.0.0.1 at 2016-10-26 18:27:15 +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-10-26 18:27:15 +0300
+ [1m[36m (1.2ms)[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.9ms)[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[36m (1.6ms)[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.1ms)[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.1ms)[0m DELETE FROM sqlite_sequence where name = 'articles';