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 @@  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'assets';  (0.9ms) DELETE FROM "articles";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'articles'; + ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations" + ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (3.0ms) DELETE FROM "assets"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.5ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (0.9ms) DELETE FROM "articles"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; + ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (2.6ms) DELETE FROM "assets"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.4ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (1.1ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; + ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.1ms) begin transaction + SQL (1.4ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-10-24 13:33:19.664066"], ["title", "MyString"], ["updated_at", "2016-10-24 13:33:19.664066"]] +  (0.8ms) commit transaction +  (0.1ms) begin transaction + SQL (1.6ms) 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"]] +  (0.9ms) commit transaction + Picture Load (0.4ms) 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 + SQL (1.2ms) UPDATE "assets" SET "assetable_id" = 1000, "guid" = NULL WHERE "assets"."type" IN ('Picture') AND "assets"."assetable_type" = 'Article' AND "assets"."guid" IS NULL + Picture Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? LIMIT 1 [["id", 1]] + Picture Load (0.3ms) SELECT "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 +  (1.1ms) DELETE FROM "assets"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.8ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (0.7ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.8ms) DELETE FROM sqlite_sequence where name = 'articles'; + ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" +Started POST "/uploader/attachments" for 127.0.0.1 at 2016-10-24 16:33:34 +0300 +  (0.1ms) begin transaction + SQL (2.1ms) 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-24 13:33:34.299843"], ["data_file_name", "rails.png"], ["guid", "SOMESTRING"], ["type", "Picture"], ["updated_at", "2016-10-24 13:33:34.299843"]] +  (0.8ms) commit transaction +  (0.2ms) begin transaction + SQL (0.8ms) 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"]] +  (0.7ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["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"]] +  (0.9ms) commit transaction +  (0.2ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') +Started DELETE "/uploader/attachments/2" for 127.0.0.1 at 2016-10-24 16:33:34 +0300 + Picture Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = 2 ORDER BY "assets"."id" ASC LIMIT 1 +  (0.1ms) begin transaction + SQL (0.3ms) DELETE FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? [["id", 2]] +  (1.1ms) commit transaction +  (0.2ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') +  (0.1ms) begin transaction + SQL (0.3ms) 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"]] +  (0.7ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) 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-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"]] +  (0.8ms) commit transaction +Started DELETE "/uploader/attachments/wrong" for 127.0.0.1 at 2016-10-24 16:33:34 +0300 + Picture Load (0.2ms) 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-24 16:33:34 +0300 +  (1.1ms) DELETE FROM "assets"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.8ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (0.8ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.9ms) DELETE FROM sqlite_sequence where name = 'articles'; + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" + ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" + ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (3.0ms) DELETE FROM "assets"; +  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.6ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (1.4ms) DELETE FROM "articles"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; + ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" + ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (2.1ms) DELETE FROM "assets"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.3ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (1.1ms) DELETE FROM "articles"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; + ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (2.2ms) DELETE FROM "assets"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.4ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (1.0ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; + ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.1ms) begin transaction + SQL (0.9ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-10-24 13:45:16.252162"], ["title", "MyString"], ["updated_at", "2016-10-24 13:45:16.252162"]] +  (0.8ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) 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"]] +  (0.8ms) commit transaction + Picture Load (0.4ms) 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 + SQL (1.0ms) UPDATE "assets" SET "assetable_id" = 1000, "guid" = NULL WHERE "assets"."type" IN ('Picture') AND "assets"."assetable_type" = 'Article' AND "assets"."guid" IS NULL + Picture Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? LIMIT 1 [["id", 1]] + Picture Load (0.3ms) SELECT "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 +  (1.0ms) DELETE FROM "assets"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.9ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (0.7ms) DELETE FROM "articles"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.8ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (1.3ms) DELETE FROM "assets"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (1.0ms) DELETE FROM "articles"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; +Started POST "/uploader/attachments" for 127.0.0.1 at 2016-10-24 16:45:16 +0300 +  (0.1ms) begin transaction + SQL (0.4ms) 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-24 13:45:16.423833"], ["data_file_name", "rails.png"], ["guid", "SOMESTRING"], ["type", "Picture"], ["updated_at", "2016-10-24 13:45:16.423833"]] +  (0.9ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) 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"]] +  (0.8ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) 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.487238"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-10-24 13:45:16.487238"]] +  (1.0ms) commit transaction +  (0.2ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') +Started DELETE "/uploader/attachments/2" for 127.0.0.1 at 2016-10-24 16:45:16 +0300 + Picture Load (0.4ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = 2 ORDER BY "assets"."id" ASC LIMIT 1 +  (0.1ms) begin transaction + SQL (0.4ms) DELETE FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? [["id", 2]] +  (0.9ms) commit transaction +  (0.2ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') +  (0.1ms) begin transaction + SQL (2.0ms) 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"]] +  (2.3ms) commit transaction +  (0.1ms) begin transaction + SQL (6.0ms) 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-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"]] +  (0.8ms) commit transaction +Started DELETE "/uploader/attachments/wrong" for 127.0.0.1 at 2016-10-24 16:45:16 +0300 + Picture Load (0.3ms) 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-24 16:45:16 +0300 +  (1.2ms) DELETE FROM "assets"; +  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (20.9ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (1.9ms) DELETE FROM "articles"; +  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (1.4ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (1.1ms) DELETE FROM "assets"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (0.7ms) DELETE FROM "articles"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; + ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.3ms) begin transaction + SQL (1.5ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-10-26 13:13:59.892298"], ["title", "MyString"], ["updated_at", "2016-10-26 13:13:59.892298"]] +  (0.8ms) commit transaction +  (0.1ms) begin transaction + SQL (1.8ms) 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"]] +  (0.9ms) commit transaction + Picture Load (0.3ms) 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 +  (1.2ms) DELETE FROM "assets"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (1.1ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (2.2ms) DELETE FROM "articles"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (1.0ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (1.2ms) DELETE FROM "assets"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (0.9ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; +Started POST "/uploader/attachments" for 127.0.0.1 at 2016-10-26 16:14:00 +0300 +  (0.1ms) begin transaction + SQL (0.5ms) 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"]] +  (0.9ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-10-26 13:14:00.274352"], ["title", "MyString"], ["updated_at", "2016-10-26 13:14:00.274352"]] +  (0.9ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "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"]] +  (1.0ms) commit transaction +  (0.2ms) 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 + Picture Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = 2 ORDER BY "assets"."id" ASC LIMIT 1 +  (0.1ms) begin transaction + SQL (0.4ms) DELETE FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? [["id", 2]] +  (1.1ms) commit transaction +  (0.2ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-10-26 13:14:00.357924"], ["title", "MyString"], ["updated_at", "2016-10-26 13:14:00.357924"]] +  (0.8ms) commit transaction +  (0.0ms) begin transaction + SQL (0.4ms) 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"]] +  (0.9ms) commit transaction +Started DELETE "/uploader/attachments/wrong" for 127.0.0.1 at 2016-10-26 16:14:00 +0300 + Picture Load (0.2ms) 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 +  (1.7ms) DELETE FROM "assets"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (1.1ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (0.9ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.9ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (1.1ms) DELETE FROM "assets"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (1.2ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; + ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.1ms) begin transaction + SQL (2.4ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-10-26 13:17:14.396623"], ["title", "MyString"], ["updated_at", "2016-10-26 13:17:14.396623"]] +  (0.9ms) commit transaction +  (0.1ms) begin transaction + SQL (1.9ms) 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"]] +  (0.9ms) commit transaction + Picture Load (0.4ms) 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 + Picture Load (0.3ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."assetable_type" = 'Article' AND "assets"."guid" = 'xmmOM1PGCjvAHFTupppegQ' ORDER BY "assets"."id" ASC LIMIT 1 +  (1.1ms) DELETE FROM "assets"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (1.0ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (2.3ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (1.0ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (1.4ms) DELETE FROM "assets"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (1.0ms) DELETE FROM "articles"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; +Started POST "/uploader/attachments" for 127.0.0.1 at 2016-10-26 16:17:14 +0300 +  (0.1ms) begin transaction + SQL (0.5ms) 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:17:14.585617"], ["data_file_name", "rails.png"], ["guid", "SOMESTRING"], ["type", "Picture"], ["updated_at", "2016-10-26 13:17:14.585617"]] +  (0.9ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) 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"]] +  (0.9ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) 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.656756"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-10-26 13:17:14.656756"]] +  (0.9ms) commit transaction +  (0.2ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') +Started DELETE "/uploader/attachments/2" for 127.0.0.1 at 2016-10-26 16:17:14 +0300 + Picture Load (0.3ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = 2 ORDER BY "assets"."id" ASC LIMIT 1 +  (0.1ms) begin transaction + SQL (0.4ms) DELETE FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? [["id", 2]] +  (0.9ms) commit transaction +  (0.2ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') +  (0.1ms) begin transaction + SQL (0.4ms) 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"]] +  (0.9ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["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"]] +  (0.9ms) commit transaction +Started DELETE "/uploader/attachments/wrong" for 127.0.0.1 at 2016-10-26 16:17:14 +0300 + Picture Load (0.2ms) 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:17:14 +0300 +  (1.3ms) DELETE FROM "assets"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (1.0ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (0.8ms) DELETE FROM "articles"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (1.2ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (1.6ms) DELETE FROM "assets"; +  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (1.7ms) DELETE FROM "articles"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; + ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.1ms) begin transaction + SQL (1.5ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-10-26 13:20:26.144004"], ["title", "MyString"], ["updated_at", "2016-10-26 13:20:26.144004"]] +  (0.8ms) commit transaction +  (0.1ms) begin transaction + SQL (1.9ms) 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"]] +  (1.1ms) commit transaction + Picture Load (0.3ms) 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 + Picture Load (0.3ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."assetable_type" = 'Article' AND "assets"."guid" = 'dbp8ByuPKm39dIb6BeNBhA' ORDER BY "assets"."id" ASC LIMIT 1 +  (2.0ms) DELETE FROM "assets"; +  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (1.3ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (3.0ms) DELETE FROM "articles"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (2.1ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (1.5ms) DELETE FROM "assets"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (2.9ms) DELETE FROM "articles"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; +Started POST "/uploader/attachments" for 127.0.0.1 at 2016-10-26 16:20:26 +0300 +  (0.2ms) begin transaction + SQL (0.7ms) 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:20:26.353374"], ["data_file_name", "rails.png"], ["guid", "SOMESTRING"], ["type", "Picture"], ["updated_at", "2016-10-26 13:20:26.353374"]] +  (0.9ms) commit transaction +  (0.1ms) begin transaction + SQL (0.6ms) 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"]] +  (1.3ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["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"]] +  (0.9ms) commit transaction +  (0.4ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') +Started DELETE "/uploader/attachments/2" for 127.0.0.1 at 2016-10-26 16:20:26 +0300 + Picture Load (0.5ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = 2 ORDER BY "assets"."id" ASC LIMIT 1 +  (0.1ms) begin transaction + SQL (0.5ms) DELETE FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? [["id", 2]] +  (1.0ms) commit transaction +  (0.2ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') +  (0.3ms) begin transaction + SQL (0.4ms) 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"]] +  (0.8ms) commit transaction +  (0.1ms) begin transaction + SQL (0.8ms) 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:20:26.534170"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["type", "Picture"], ["updated_at", "2016-10-26 13:20:26.534170"]] +  (0.9ms) commit transaction +Started DELETE "/uploader/attachments/wrong" for 127.0.0.1 at 2016-10-26 16:20:26 +0300 + Picture Load (0.2ms) 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:20:26 +0300 +  (1.3ms) DELETE FROM "assets"; +  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (1.3ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (1.8ms) DELETE FROM "articles"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (1.3ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (1.2ms) DELETE FROM "assets"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (1.4ms) DELETE FROM "articles"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; + ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.1ms) begin transaction + SQL (1.2ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-10-26 13:48:13.227765"], ["title", "MyString"], ["updated_at", "2016-10-26 13:48:13.227765"]] +  (1.1ms) commit transaction +  (0.1ms) begin transaction + SQL (1.8ms) 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"]] +  (0.8ms) commit transaction + Picture Load (0.4ms) 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 +  (1.3ms) DELETE FROM "assets"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (1.8ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (2.6ms) DELETE FROM "articles"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (1.1ms) DELETE FROM sqlite_sequence where name = 'articles'; + ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.2ms) begin transaction + SQL (0.6ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-10-26 13:48:27.202801"], ["title", "MyString"], ["updated_at", "2016-10-26 13:48:27.202801"]] +  (0.8ms) commit transaction +  (0.1ms) begin transaction + SQL (0.5ms) 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"]] +  (1.0ms) commit transaction +  (2.1ms) DELETE FROM "assets"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (1.2ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (1.2ms) DELETE FROM "articles"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (1.2ms) DELETE FROM sqlite_sequence where name = 'articles'; + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.1ms) begin transaction + SQL (0.7ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-10-26 13:48:44.336301"], ["title", "MyString"], ["updated_at", "2016-10-26 13:48:44.336301"]] +  (1.0ms) commit transaction +  (0.1ms) begin transaction + SQL (0.6ms) 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"]] +  (0.9ms) commit transaction +  (1.2ms) DELETE FROM "assets"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (5.8ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (2.0ms) DELETE FROM "articles"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.9ms) DELETE FROM sqlite_sequence where name = 'articles'; + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.2ms) begin transaction + SQL (0.6ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-10-26 13:48:55.135496"], ["title", "MyString"], ["updated_at", "2016-10-26 13:48:55.135496"]] +  (0.9ms) commit transaction +  (0.1ms) begin transaction + SQL (0.5ms) 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"]] +  (0.9ms) commit transaction +  (1.2ms) DELETE FROM "assets"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (1.2ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (1.1ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (1.3ms) DELETE FROM sqlite_sequence where name = 'articles'; + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.1ms) begin transaction + SQL (0.6ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-10-26 13:49:12.733586"], ["title", "MyString"], ["updated_at", "2016-10-26 13:49:12.733586"]] +  (0.8ms) commit transaction +  (0.1ms) begin transaction + SQL (0.5ms) 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"]] +  (0.9ms) commit transaction +  (1.3ms) DELETE FROM "assets"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (1.5ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (0.8ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (2.3ms) DELETE FROM sqlite_sequence where name = 'articles'; + ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.3ms) begin transaction + SQL (1.3ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-10-26 13:50:15.263772"], ["title", "MyString"], ["updated_at", "2016-10-26 13:50:15.263772"]] +  (0.9ms) commit transaction +  (0.1ms) begin transaction + SQL (1.8ms) 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"]] +  (0.8ms) commit transaction +  (1.1ms) DELETE FROM "assets"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (1.0ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (0.8ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.7ms) DELETE FROM sqlite_sequence where name = 'articles'; + ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.4ms) begin transaction + SQL (1.4ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-10-26 13:50:53.684672"], ["title", "MyString"], ["updated_at", "2016-10-26 13:50:53.684672"]] +  (0.8ms) commit transaction +  (0.1ms) begin transaction + SQL (2.0ms) 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"]] +  (0.9ms) commit transaction +  (1.2ms) DELETE FROM "assets"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (2.1ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (0.9ms) DELETE FROM "articles"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (1.4ms) DELETE FROM sqlite_sequence where name = 'articles'; + ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.1ms) begin transaction + SQL (1.5ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-10-26 13:52:10.080488"], ["title", "MyString"], ["updated_at", "2016-10-26 13:52:10.080488"]] +  (0.8ms) commit transaction +  (0.1ms) begin transaction + SQL (2.0ms) 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"]] +  (0.9ms) commit transaction + SQL (1.2ms) UPDATE "assets" SET "guid" = 'Ihd01ufSYr7n7q1ryDWQ-A' WHERE "assets"."type" IN ('Picture') AND "assets"."id" = 1 +  (1.3ms) DELETE FROM "assets"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (3.5ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (0.9ms) DELETE FROM "articles"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (1.2ms) DELETE FROM sqlite_sequence where name = 'articles'; + ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.2ms) begin transaction + SQL (1.5ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-10-26 13:52:43.621068"], ["title", "MyString"], ["updated_at", "2016-10-26 13:52:43.621068"]] +  (1.0ms) commit transaction +  (0.1ms) begin transaction + SQL (2.9ms) 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"]] +  (0.9ms) commit transaction + SQL (2.1ms) UPDATE "assets" SET "guid" = 'g2um2ptp3UhZuR3SrJUVoA' WHERE "assets"."type" IN ('Picture') AND "assets"."id" = 1 +  (1.3ms) DELETE FROM "assets"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (4.1ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (1.6ms) DELETE FROM "articles"; +  (1.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (4.1ms) DELETE FROM sqlite_sequence where name = 'articles'; + ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.2ms) begin transaction + SQL (1.4ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-10-26 13:54:38.617229"], ["title", "MyString"], ["updated_at", "2016-10-26 13:54:38.617229"]] +  (0.8ms) commit transaction +  (0.1ms) begin transaction + SQL (1.9ms) 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"]] +  (0.9ms) commit transaction + SQL (1.1ms) UPDATE "assets" SET "guid" = 'vdoUuODN1YnbDxXa9QuW1Q' WHERE "assets"."type" IN ('Picture') AND "assets"."id" = 1 + Picture Load (0.4ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."assetable_type" = 'Article' AND "assets"."guid" = 'vdoUuODN1YnbDxXa9QuW1Q' ORDER BY "assets"."id" ASC LIMIT 1 +  (1.1ms) DELETE FROM "assets"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (1.0ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (1.0ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.9ms) DELETE FROM sqlite_sequence where name = 'articles'; + ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.2ms) begin transaction + SQL (0.6ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-10-26 13:54:52.873748"], ["title", "MyString"], ["updated_at", "2016-10-26 13:54:52.873748"]] +  (0.9ms) commit transaction +  (0.2ms) begin transaction + SQL (0.6ms) 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"]] +  (0.9ms) commit transaction + SQL (1.2ms) UPDATE "assets" SET "guid" = 'gXLx_Qbq-dqdDNa4wiJ4fg' WHERE "assets"."type" IN ('Picture') AND "assets"."id" = 1 + Picture Load (0.3ms) SELECT "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 + Picture Load (0.4ms) 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 +  (1.2ms) DELETE FROM "assets"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.9ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (0.8ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.8ms) DELETE FROM sqlite_sequence where name = 'articles'; + ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.1ms) begin transaction + SQL (1.3ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-10-26 13:56:25.428514"], ["title", "MyString"], ["updated_at", "2016-10-26 13:56:25.428514"]] +  (0.9ms) commit transaction +  (0.1ms) begin transaction + SQL (1.9ms) 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"]] +  (0.9ms) commit transaction + SQL (1.2ms) UPDATE "assets" SET "guid" = 'zvuNvf9POoYl_WNixz0K5w' WHERE "assets"."type" IN ('Picture') AND "assets"."id" = 1 + Picture Load (0.4ms) SELECT "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 + Picture Load (0.3ms) 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 +  (1.2ms) DELETE FROM "assets"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.9ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (0.8ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.8ms) DELETE FROM sqlite_sequence where name = 'articles'; + ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.2ms) begin transaction + SQL (1.2ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-10-26 13:57:07.334147"], ["title", "MyString"], ["updated_at", "2016-10-26 13:57:07.334147"]] +  (0.7ms) commit transaction +  (0.1ms) begin transaction + SQL (2.0ms) 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"]] +  (0.8ms) commit transaction + SQL (1.3ms) UPDATE "assets" SET "guid" = 'tYxhMtLI6uOn3o93joSahA' WHERE "assets"."type" IN ('Picture') AND "assets"."id" = 1 + Picture Load (0.3ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."assetable_type" = 'Article' AND "assets"."guid" = 'tYxhMtLI6uOn3o93joSahA' ORDER BY "assets"."id" ASC LIMIT 1 + Picture Load (0.3ms) 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 +  (1.1ms) DELETE FROM "assets"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.7ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (0.8ms) DELETE FROM "articles"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (1.0ms) DELETE FROM sqlite_sequence where name = 'articles'; + ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.1ms) begin transaction + SQL (0.6ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-10-26 13:57:27.535063"], ["title", "MyString"], ["updated_at", "2016-10-26 13:57:27.535063"]] +  (0.9ms) commit transaction +  (0.1ms) begin transaction + SQL (0.9ms) 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"]] +  (0.8ms) commit transaction + SQL (1.2ms) UPDATE "assets" SET "guid" = 'sfZ2sAUknG-1tn47w_C7Jg' WHERE "assets"."type" IN ('Picture') AND "assets"."id" = 1 + Picture Load (0.4ms) SELECT "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 + Picture Load (0.3ms) 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 +  (1.1ms) DELETE FROM "assets"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (1.3ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (1.2ms) DELETE FROM "articles"; +  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.9ms) DELETE FROM sqlite_sequence where name = 'articles'; + ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.1ms) begin transaction + SQL (1.4ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-10-26 13:57:54.638498"], ["title", "MyString"], ["updated_at", "2016-10-26 13:57:54.638498"]] +  (0.8ms) commit transaction +  (0.1ms) begin transaction + SQL (1.9ms) 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"]] +  (0.9ms) commit transaction + SQL (1.5ms) UPDATE "assets" SET "guid" = 'fFlzzDpjyj7L2IyZlfLuwg' WHERE "assets"."type" IN ('Picture') AND "assets"."id" = 1 + Picture Load (0.3ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."assetable_type" = 'Article' AND "assets"."guid" = 'fFlzzDpjyj7L2IyZlfLuwg' ORDER BY "assets"."id" ASC LIMIT 1 + Picture Load (0.3ms) 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 +  (1.2ms) DELETE FROM "assets"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (1.1ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (0.9ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (1.1ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (1.1ms) DELETE FROM "assets"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (4.6ms) DELETE FROM "articles"; +  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.3ms) DELETE FROM sqlite_sequence where name = 'articles'; +Started POST "/uploader/attachments" for 127.0.0.1 at 2016-10-26 16:57:54 +0300 +  (0.1ms) begin transaction + SQL (0.6ms) 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"]] +  (1.0ms) commit transaction +  (0.2ms) begin transaction + SQL (1.1ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-10-26 13:57:54.992728"], ["title", "MyString"], ["updated_at", "2016-10-26 13:57:54.992728"]] +  (1.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "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"]] +  (0.9ms) commit transaction +  (0.2ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') +Started DELETE "/uploader/attachments/2" for 127.0.0.1 at 2016-10-26 16:57:55 +0300 + Picture Load (0.5ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = 2 ORDER BY "assets"."id" ASC LIMIT 1 +  (0.1ms) begin transaction + SQL (0.5ms) DELETE FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? [["id", 2]] +  (1.1ms) commit transaction +  (0.2ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-10-26 13:57:55.074893"], ["title", "MyString"], ["updated_at", "2016-10-26 13:57:55.074893"]] +  (0.9ms) commit transaction +  (0.1ms) begin transaction + SQL (0.6ms) 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"]] +  (0.9ms) commit transaction +Started DELETE "/uploader/attachments/wrong" for 127.0.0.1 at 2016-10-26 16:57:55 +0300 + Picture Load (0.2ms) 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 +  (1.3ms) DELETE FROM "assets"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (1.2ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (1.0ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (1.2ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (2.1ms) DELETE FROM "assets"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (1.2ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; + ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.2ms) begin transaction + SQL (1.4ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-10-26 13:59:58.398485"], ["title", "MyString"], ["updated_at", "2016-10-26 13:59:58.398485"]] +  (0.8ms) commit transaction +  (0.1ms) begin transaction + SQL (2.2ms) 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"]] +  (0.9ms) commit transaction + SQL (1.4ms) UPDATE "assets" SET "guid" = 'z2ReSNjFhKYt4wRkanOmhw' WHERE "assets"."type" IN ('Picture') AND "assets"."id" = 1 + Picture Load (0.4ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."assetable_type" = 'Article' AND "assets"."guid" = 'z2ReSNjFhKYt4wRkanOmhw' ORDER BY "assets"."id" ASC LIMIT 1 + Picture Load (0.3ms) 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 +  (1.1ms) DELETE FROM "assets"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (1.0ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (0.8ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.9ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (1.1ms) DELETE FROM "assets"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (1.1ms) DELETE FROM "articles"; +  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; +Started POST "/uploader/attachments" for 127.0.0.1 at 2016-10-26 16:59:58 +0300 +  (0.1ms) begin transaction + SQL (0.5ms) 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"]] +  (0.8ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-10-26 13:59:58.694283"], ["title", "MyString"], ["updated_at", "2016-10-26 13:59:58.694283"]] +  (0.8ms) commit transaction +  (0.1ms) begin transaction + SQL (0.8ms) 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"]] +  (1.1ms) commit transaction +  (0.3ms) 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 + Picture Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = 2 ORDER BY "assets"."id" ASC LIMIT 1 +  (0.1ms) begin transaction + SQL (0.4ms) DELETE FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? [["id", 2]] +  (0.9ms) commit transaction +  (0.3ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-10-26 13:59:58.772292"], ["title", "MyString"], ["updated_at", "2016-10-26 13:59:58.772292"]] +  (0.8ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) 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"]] +  (0.8ms) commit transaction +Started DELETE "/uploader/attachments/wrong" for 127.0.0.1 at 2016-10-26 16:59:58 +0300 + Picture Load (0.3ms) 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 +  (1.3ms) DELETE FROM "assets"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.9ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (0.8ms) DELETE FROM "articles"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (1.0ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (1.2ms) DELETE FROM "assets"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (0.9ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.1ms) begin transaction + SQL (0.6ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-10-26 14:00:15.673824"], ["title", "MyString"], ["updated_at", "2016-10-26 14:00:15.673824"]] +  (0.8ms) commit transaction +  (0.1ms) begin transaction + SQL (0.5ms) 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"]] +  (1.1ms) commit transaction + SQL (1.2ms) UPDATE "assets" SET "guid" = 'sNrc4BWr8ItHUDgrTi2YLQ' WHERE "assets"."type" IN ('Picture') AND "assets"."id" = 1 + Picture Load (0.3ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."assetable_type" = 'Article' AND "assets"."guid" = 'sNrc4BWr8ItHUDgrTi2YLQ' ORDER BY "assets"."id" ASC LIMIT 1 + Picture Load (0.3ms) 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 +  (1.2ms) DELETE FROM "assets"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.9ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (0.8ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.9ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (1.1ms) DELETE FROM "assets"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (0.9ms) DELETE FROM "articles"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; +Started POST "/uploader/attachments" for 127.0.0.1 at 2016-10-26 17:00:15 +0300 +  (0.1ms) begin transaction + SQL (0.5ms) 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"]] +  (0.9ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-10-26 14:00:15.901644"], ["title", "MyString"], ["updated_at", "2016-10-26 14:00:15.901644"]] +  (0.8ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) 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"]] +  (0.8ms) commit transaction +  (0.2ms) 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 + Picture Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = 2 ORDER BY "assets"."id" ASC LIMIT 1 +  (0.0ms) begin transaction + SQL (0.4ms) DELETE FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? [["id", 2]] +  (0.9ms) commit transaction +  (0.2ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-10-26 14:00:15.985110"], ["title", "MyString"], ["updated_at", "2016-10-26 14:00:15.985110"]] +  (0.8ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) 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"]] +  (1.2ms) commit transaction +Started DELETE "/uploader/attachments/wrong" for 127.0.0.1 at 2016-10-26 17:00:15 +0300 + Picture Load (0.2ms) 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 +  (1.2ms) DELETE FROM "assets"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.9ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (0.9ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.9ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (1.7ms) DELETE FROM "assets"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (0.9ms) DELETE FROM "articles"; +  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; + ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.1ms) begin transaction + SQL (1.4ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-10-26 14:00:27.587850"], ["title", "MyString"], ["updated_at", "2016-10-26 14:00:27.587850"]] +  (0.9ms) commit transaction +  (0.1ms) begin transaction + SQL (1.8ms) 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"]] +  (0.9ms) commit transaction + SQL (1.2ms) UPDATE "assets" SET "guid" = 'XE8xu6m17GxCD-2gfi1KkA' WHERE "assets"."type" IN ('Picture') AND "assets"."id" = 1 + Picture Load (0.3ms) SELECT "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 + Picture Load (0.3ms) 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 +  (1.2ms) DELETE FROM "assets"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.9ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (0.8ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.9ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (1.6ms) DELETE FROM "assets"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (1.0ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; +Started POST "/uploader/attachments" for 127.0.0.1 at 2016-10-26 17:00:27 +0300 +  (0.1ms) begin transaction + SQL (0.5ms) 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"]] +  (0.9ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-10-26 14:00:27.844503"], ["title", "MyString"], ["updated_at", "2016-10-26 14:00:27.844503"]] +  (0.9ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "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"]] +  (0.9ms) commit transaction +  (0.3ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') +Started DELETE "/uploader/attachments/2" for 127.0.0.1 at 2016-10-26 17:00:27 +0300 + Picture Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = 2 ORDER BY "assets"."id" ASC LIMIT 1 +  (0.0ms) begin transaction + SQL (0.4ms) DELETE FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? [["id", 2]] +  (1.0ms) commit transaction +  (0.2ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-10-26 14:00:27.920751"], ["title", "MyString"], ["updated_at", "2016-10-26 14:00:27.920751"]] +  (0.8ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) 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"]] +  (1.0ms) commit transaction +Started DELETE "/uploader/attachments/wrong" for 127.0.0.1 at 2016-10-26 17:00:27 +0300 + Picture Load (0.2ms) 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 +  (1.2ms) DELETE FROM "assets"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (1.0ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (0.9ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.9ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (1.4ms) DELETE FROM "assets"; +  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (1.7ms) DELETE FROM "articles"; +  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'articles'; + ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.1ms) begin transaction + SQL (1.3ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-10-26 15:27:14.768440"], ["title", "MyString"], ["updated_at", "2016-10-26 15:27:14.768440"]] +  (1.0ms) commit transaction +  (0.1ms) begin transaction + SQL (1.9ms) 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"]] +  (0.8ms) commit transaction + SQL (1.2ms) UPDATE "assets" SET "guid" = 'm3L08d52fDZKEAWZQreUlA' WHERE "assets"."type" IN ('Picture') AND "assets"."id" = 1 + Picture Load (0.4ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."assetable_type" = 'Article' AND "assets"."guid" = 'm3L08d52fDZKEAWZQreUlA' ORDER BY "assets"."id" ASC LIMIT 1 + Picture Load (0.3ms) 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 +  (1.1ms) DELETE FROM "assets"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.8ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (0.8ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (1.0ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (1.3ms) DELETE FROM "assets"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (0.9ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles'; +Started POST "/uploader/attachments" for 127.0.0.1 at 2016-10-26 18:27:14 +0300 +  (0.1ms) begin transaction + SQL (0.6ms) 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"]] +  (1.0ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-10-26 15:27:15.112080"], ["title", "MyString"], ["updated_at", "2016-10-26 15:27:15.112080"]] +  (0.8ms) commit transaction +  (0.1ms) begin transaction + SQL (0.7ms) 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"]] +  (1.0ms) commit transaction +  (0.2ms) 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 + Picture Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = 2 ORDER BY "assets"."id" ASC LIMIT 1 +  (0.0ms) begin transaction + SQL (0.4ms) DELETE FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? [["id", 2]] +  (1.2ms) commit transaction +  (0.2ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-10-26 15:27:15.193902"], ["title", "MyString"], ["updated_at", "2016-10-26 15:27:15.193902"]] +  (0.8ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) 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"]] +  (0.9ms) commit transaction +Started DELETE "/uploader/attachments/wrong" for 127.0.0.1 at 2016-10-26 18:27:15 +0300 + Picture Load (0.2ms) 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 +  (1.2ms) DELETE FROM "assets"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.9ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (0.8ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.8ms) DELETE FROM sqlite_sequence where name = 'articles'; +  (1.6ms) DELETE FROM "assets"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'assets'; +  (0.8ms) DELETE FROM "articles"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'articles';