spec/dummy/log/test.log in rails-uploader-0.2.7 vs spec/dummy/log/test.log in rails-uploader-0.2.8

- old
+ new

@@ -2892,5 +2892,284 @@  (0.8ms) rollback transaction MOPED: 127.0.0.1:27017 QUERY database=rails_uploader_test collection=system.namespaces selector={:name=>{"$not"=>/system|\$/}} flags=[:slave_ok] limit=0 skip=0 fields=nil (0.4249ms)  (0.1ms) begin transaction  (0.1ms) rollback transaction MOPED: 127.0.0.1:27017 QUERY database=rails_uploader_test collection=system.namespaces selector={:name=>{"$not"=>/system|\$/}} flags=[:slave_ok] limit=0 skip=0 fields=nil (0.4759ms) +Connecting to database specified by database.yml +Connecting to database specified by database.yml +Connecting to database specified by database.yml + ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" + ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" + ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" +Started POST "/uploader/attachments" for 127.0.0.1 at 2016-02-19 12:42:00 +0200 +  (0.2ms) begin transaction + Picture Exists (0.6ms) SELECT 1 AS one FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'xbjexK94H2AHrQFFSyar' LIMIT 1 + SQL (1.7ms) INSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_file_name", "guid", "public_token", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", "2016-02-19 10:42:00.862025"], ["data_file_name", "rails.png"], ["guid", "SOMESTRING"], ["public_token", "xbjexK94H2AHrQFFSyar"], ["type", "Picture"], ["updated_at", "2016-02-19 10:42:00.862025"]] +  (0.9ms) commit transaction +  (0.3ms) begin transaction + SQL (1.1ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-02-19 10:42:01.003470"], ["title", "MyString"], ["updated_at", "2016-02-19 10:42:01.003470"]] +  (0.9ms) commit transaction +  (0.1ms) begin transaction + Picture Exists (0.4ms) SELECT 1 AS one FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = '0eo4f8NLHt0SK5bwpyFw' LIMIT 1 + SQL (0.6ms) INSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "public_token", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", "2016-02-19 10:42:01.015685"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["public_token", "0eo4f8NLHt0SK5bwpyFw"], ["type", "Picture"], ["updated_at", "2016-02-19 10:42:01.015685"]] +  (1.1ms) commit transaction +Started DELETE "/uploader/attachments/wrong" for 127.0.0.1 at 2016-02-19 12:42:01 +0200 + Picture Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'wrong' ORDER BY "assets"."id" ASC LIMIT 1 +Started POST "/uploader/attachments" for 127.0.0.1 at 2016-02-19 12:42:01 +0200 +  (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.9ms) 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-02-19 12:42:30 +0200 +  (0.2ms) begin transaction + Picture Exists (0.4ms) SELECT 1 AS one FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'yW3Ss1OcqwtM57XLrUKQ' LIMIT 1 + SQL (1.6ms) INSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_file_name", "guid", "public_token", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", "2016-02-19 10:42:30.372910"], ["data_file_name", "rails.png"], ["guid", "SOMESTRING"], ["public_token", "yW3Ss1OcqwtM57XLrUKQ"], ["type", "Picture"], ["updated_at", "2016-02-19 10:42:30.372910"]] +  (0.8ms) commit transaction +  (0.2ms) begin transaction + SQL (1.3ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-02-19 10:42:30.466423"], ["title", "MyString"], ["updated_at", "2016-02-19 10:42:30.466423"]] +  (9.0ms) commit transaction +  (0.1ms) begin transaction + Picture Exists (0.2ms) SELECT 1 AS one FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'POeizRav9l81GDrYKe7R' LIMIT 1 + SQL (0.9ms) INSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "public_token", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", "2016-02-19 10:42:30.515566"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["public_token", "POeizRav9l81GDrYKe7R"], ["type", "Picture"], ["updated_at", "2016-02-19 10:42:30.515566"]] +  (0.7ms) commit transaction +  (0.2ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') +Started DELETE "/uploader/attachments/POeizRav9l81GDrYKe7R" for 127.0.0.1 at 2016-02-19 12:42:30 +0200 + Picture Load (0.3ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'POeizRav9l81GDrYKe7R' 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.8ms) 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-02-19 10:42:30.595708"], ["title", "MyString"], ["updated_at", "2016-02-19 10:42:30.595708"]] +  (0.9ms) commit transaction +  (0.1ms) begin transaction + Picture Exists (0.2ms) SELECT 1 AS one FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'PAZMiwhkz1jMZPvOyb9x' LIMIT 1 + SQL (0.3ms) INSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "public_token", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", 2], ["assetable_type", "Article"], ["created_at", "2016-02-19 10:42:30.599987"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["public_token", "PAZMiwhkz1jMZPvOyb9x"], ["type", "Picture"], ["updated_at", "2016-02-19 10:42:30.599987"]] +  (0.8ms) commit transaction +Started DELETE "/uploader/attachments/wrong" for 127.0.0.1 at 2016-02-19 12:42:30 +0200 + Picture Load (0.3ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'wrong' ORDER BY "assets"."id" ASC LIMIT 1 +Started POST "/uploader/attachments" for 127.0.0.1 at 2016-02-19 12:42:30 +0200 +  (1.2ms) DELETE FROM "assets"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.7ms) 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.6ms) SELECT "schema_migrations".* FROM "schema_migrations" + ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (2.8ms) DELETE FROM "assets"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.5ms) 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" +  (2.3ms) DELETE FROM "assets"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.5ms) 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" +  (2.6ms) 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'; +  (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.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.3ms) DELETE FROM "assets"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.5ms) 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.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (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.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" +  (1.4ms) DELETE FROM "assets"; +  (0.1ms) 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'; + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.1ms) begin transaction + SQL (0.5ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-02-19 10:47:58.842895"], ["title", "MyString"], ["updated_at", "2016-02-19 10:47:58.842895"]] +  (0.8ms) commit transaction +  (0.1ms) begin transaction + Picture Exists (0.3ms) SELECT 1 AS one FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'PyYDPgwxXibU5iebwvyT' LIMIT 1 + SQL (0.4ms) INSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "public_token", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", "2016-02-19 10:47:58.853151"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["public_token", "PyYDPgwxXibU5iebwvyT"], ["type", "Picture"], ["updated_at", "2016-02-19 10:47:58.853151"]] +  (0.8ms) commit transaction + Picture Load (0.3ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."guid" IS NULL AND "assets"."assetable_type" = 'Article' ORDER BY "assets"."id" ASC LIMIT 1 + SQL (1.1ms) UPDATE "assets" SET "assetable_id" = 1000, "guid" = NULL WHERE "assets"."type" IN ('Picture') AND "assets"."guid" IS NULL AND "assets"."assetable_type" = 'Article' + Picture Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? LIMIT 1 [["id", 1]] +  (1.0ms) 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.7ms) 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.5ms) 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-02-19 10:48:45.357911"], ["title", "MyString"], ["updated_at", "2016-02-19 10:48:45.357911"]] +  (0.8ms) commit transaction +  (0.1ms) begin transaction + Picture Exists (0.6ms) SELECT 1 AS one FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'Ug2WHhK2fKyetxUgA5Ru' LIMIT 1 + SQL (1.7ms) INSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "public_token", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", "2016-02-19 10:48:45.369731"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["public_token", "Ug2WHhK2fKyetxUgA5Ru"], ["type", "Picture"], ["updated_at", "2016-02-19 10:48:45.369731"]] +  (0.8ms) commit transaction + Picture Load (0.3ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."guid" IS NULL AND "assets"."assetable_type" = 'Article' ORDER BY "assets"."id" ASC LIMIT 1 + SQL (1.1ms) UPDATE "assets" SET "assetable_id" = 1000, "guid" = NULL WHERE "assets"."type" IN ('Picture') AND "assets"."guid" IS NULL AND "assets"."assetable_type" = 'Article' + Picture Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? LIMIT 1 [["id", 1]] + Picture Load (0.3ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."guid" = 'OsjMNcX47yDKobKKKqEE' AND "assets"."assetable_type" = 'Article' 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.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.8ms) DELETE FROM sqlite_sequence where name = 'articles'; + ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" + ActiveRecord::SchemaMigration Load (0.6ms) 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" + ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" + ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" + ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" + ActiveRecord::SchemaMigration Load (0.4ms) 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-02-19 10:55:27.336912"], ["title", "MyString"], ["updated_at", "2016-02-19 10:55:27.336912"]] +  (0.8ms) commit transaction +  (0.2ms) begin transaction + Picture Exists (0.7ms) SELECT 1 AS one FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'FnvHlFpNIhxXucfU9hjH' LIMIT 1 + SQL (1.8ms) INSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "public_token", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", "2016-02-19 10:55:27.349889"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["public_token", "FnvHlFpNIhxXucfU9hjH"], ["type", "Picture"], ["updated_at", "2016-02-19 10:55:27.349889"]] +  (0.9ms) commit transaction + Picture Load (0.7ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."guid" IS NULL AND "assets"."assetable_type" = 'Article' ORDER BY "assets"."id" ASC LIMIT 1 + SQL (1.3ms) UPDATE "assets" SET "assetable_id" = 1000, "guid" = NULL WHERE "assets"."type" IN ('Picture') AND "assets"."guid" IS NULL AND "assets"."assetable_type" = 'Article' + Picture Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? LIMIT 1 [["id", 1]] + Picture Load (0.3ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."guid" = 'ynxazZOJmFvcsnPO6Spz' AND "assets"."assetable_type" = 'Article' ORDER BY "assets"."id" ASC LIMIT 1 +  (3.8ms) DELETE FROM "assets"; +  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (6.8ms) 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.9ms) 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.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-02-19 12:55:28 +0200 +  (0.2ms) begin transaction + Picture Exists (0.2ms) SELECT 1 AS one FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'uvaCspoK4p0xCxTKfn0f' LIMIT 1 + SQL (0.4ms) INSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_file_name", "guid", "public_token", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", "2016-02-19 10:55:28.105561"], ["data_file_name", "rails.png"], ["guid", "SOMESTRING"], ["public_token", "uvaCspoK4p0xCxTKfn0f"], ["type", "Picture"], ["updated_at", "2016-02-19 10:55:28.105561"]] +  (1.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-02-19 10:55:28.181348"], ["title", "MyString"], ["updated_at", "2016-02-19 10:55:28.181348"]] +  (0.9ms) commit transaction +  (0.1ms) begin transaction + Picture Exists (0.2ms) SELECT 1 AS one FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'bYoSV4vKkPX11bI4yh95' LIMIT 1 + SQL (0.3ms) INSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "public_token", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", "2016-02-19 10:55:28.185905"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["public_token", "bYoSV4vKkPX11bI4yh95"], ["type", "Picture"], ["updated_at", "2016-02-19 10:55:28.185905"]] +  (0.8ms) commit transaction +  (0.2ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') +Started DELETE "/uploader/attachments/bYoSV4vKkPX11bI4yh95" for 127.0.0.1 at 2016-02-19 12:55:28 +0200 + Picture Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'bYoSV4vKkPX11bI4yh95' 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.6ms) 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-02-19 10:55:28.254449"], ["title", "MyString"], ["updated_at", "2016-02-19 10:55:28.254449"]] +  (0.8ms) commit transaction +  (0.1ms) begin transaction + Picture Exists (0.2ms) SELECT 1 AS one FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'KGveJ86llLfSsFiYfZBI' LIMIT 1 + SQL (0.3ms) INSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "public_token", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", 2], ["assetable_type", "Article"], ["created_at", "2016-02-19 10:55:28.258544"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["public_token", "KGveJ86llLfSsFiYfZBI"], ["type", "Picture"], ["updated_at", "2016-02-19 10:55:28.258544"]] +  (0.8ms) commit transaction +Started DELETE "/uploader/attachments/wrong" for 127.0.0.1 at 2016-02-19 12:55:28 +0200 + Picture Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'wrong' ORDER BY "assets"."id" ASC LIMIT 1 +Started POST "/uploader/attachments" for 127.0.0.1 at 2016-02-19 12:55:28 +0200 +  (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'; +  (1.4ms) 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.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.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'; + ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.1ms) begin transaction + SQL (0.5ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-02-19 10:55:35.721670"], ["title", "MyString"], ["updated_at", "2016-02-19 10:55:35.721670"]] +  (0.8ms) commit transaction +  (0.1ms) begin transaction + Picture Exists (0.2ms) SELECT 1 AS one FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'HiROxaE0uS82ywQrM1bB' LIMIT 1 + SQL (0.4ms) INSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "public_token", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", "2016-02-19 10:55:35.732535"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["public_token", "HiROxaE0uS82ywQrM1bB"], ["type", "Picture"], ["updated_at", "2016-02-19 10:55:35.732535"]] +  (0.9ms) commit transaction + Picture Load (0.5ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."guid" IS NULL AND "assets"."assetable_type" = 'Article' ORDER BY "assets"."id" ASC LIMIT 1 + SQL (1.1ms) UPDATE "assets" SET "assetable_id" = 1000, "guid" = NULL WHERE "assets"."type" IN ('Picture') AND "assets"."guid" IS NULL AND "assets"."assetable_type" = 'Article' + Picture Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? LIMIT 1 [["id", 1]] + Picture Load (0.3ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."guid" = 'O1YZnsLfnUVMybkjpN7e' AND "assets"."assetable_type" = 'Article' ORDER BY "assets"."id" ASC LIMIT 1 +  (1.1ms) DELETE FROM "assets"; +  (0.3ms) 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.1ms) DELETE FROM "assets"; +  (0.1ms) 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-02-19 12:55:35 +0200 +  (0.2ms) begin transaction + Picture Exists (0.4ms) SELECT 1 AS one FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'j9im6FlvUTOFF4GFapxl' LIMIT 1 + SQL (0.4ms) INSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_file_name", "guid", "public_token", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", "2016-02-19 10:55:35.905689"], ["data_file_name", "rails.png"], ["guid", "SOMESTRING"], ["public_token", "j9im6FlvUTOFF4GFapxl"], ["type", "Picture"], ["updated_at", "2016-02-19 10:55:35.905689"]] +  (1.0ms) commit transaction +  (0.2ms) begin transaction + SQL (0.3ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-02-19 10:55:35.979833"], ["title", "MyString"], ["updated_at", "2016-02-19 10:55:35.979833"]] +  (0.9ms) commit transaction +  (0.1ms) begin transaction + Picture Exists (0.2ms) SELECT 1 AS one FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'xs9Vi2ChWVPM1BGWgTqm' LIMIT 1 + SQL (0.3ms) INSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "public_token", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", "2016-02-19 10:55:35.983474"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["public_token", "xs9Vi2ChWVPM1BGWgTqm"], ["type", "Picture"], ["updated_at", "2016-02-19 10:55:35.983474"]] +  (1.0ms) commit transaction +  (0.3ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') +Started DELETE "/uploader/attachments/xs9Vi2ChWVPM1BGWgTqm" for 127.0.0.1 at 2016-02-19 12:55:35 +0200 + Picture Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'xs9Vi2ChWVPM1BGWgTqm' 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]] +  (0.9ms) commit transaction +  (0.2ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') +  (0.2ms) begin transaction + SQL (0.4ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-02-19 10:55:36.051689"], ["title", "MyString"], ["updated_at", "2016-02-19 10:55:36.051689"]] +  (2.1ms) commit transaction +  (0.2ms) begin transaction + Picture Exists (0.2ms) SELECT 1 AS one FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = '38sk1CwyEyMgItShzY0o' LIMIT 1 + SQL (0.3ms) INSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "public_token", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", 2], ["assetable_type", "Article"], ["created_at", "2016-02-19 10:55:36.058434"], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["public_token", "38sk1CwyEyMgItShzY0o"], ["type", "Picture"], ["updated_at", "2016-02-19 10:55:36.058434"]] +  (0.9ms) commit transaction +Started DELETE "/uploader/attachments/wrong" for 127.0.0.1 at 2016-02-19 12:55:36 +0200 + Picture Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'wrong' ORDER BY "assets"."id" ASC LIMIT 1 +Started POST "/uploader/attachments" for 127.0.0.1 at 2016-02-19 12:55:36 +0200 +  (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.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.9ms) 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';