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 @@
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
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)
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
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
+ [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+Started POST "/uploader/attachments" for 127.0.0.1 at 2016-02-19 12:42:00 +0200
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mPicture Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'xbjexK94H2AHrQFFSyar' LIMIT 1[0m
+ [1m[35mSQL (1.7ms)[0m 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"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.3ms)[0m begin transaction
+ [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-02-19 10:42:01.003470"], ["title", "MyString"], ["updated_at", "2016-02-19 10:42:01.003470"]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mPicture Exists (0.4ms)[0m SELECT 1 AS one FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = '0eo4f8NLHt0SK5bwpyFw' LIMIT 1
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "public_token", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (1.1ms)[0m commit transaction
+Started DELETE "/uploader/attachments/wrong" for 127.0.0.1 at 2016-02-19 12:42:01 +0200
+ [1m[36mPicture Load (0.2ms)[0m [1mSELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'wrong' ORDER BY "assets"."id" ASC LIMIT 1[0m
+Started POST "/uploader/attachments" for 127.0.0.1 at 2016-02-19 12:42:01 +0200
+ [1m[35m (1.1ms)[0m DELETE FROM "assets";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'assets';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+Started POST "/uploader/attachments" for 127.0.0.1 at 2016-02-19 12:42:30 +0200
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mPicture Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'yW3Ss1OcqwtM57XLrUKQ' LIMIT 1[0m
+ [1m[35mSQL (1.6ms)[0m 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"]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mSQL (1.3ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-02-19 10:42:30.466423"], ["title", "MyString"], ["updated_at", "2016-02-19 10:42:30.466423"]]
+ [1m[35m (9.0ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mPicture Exists (0.2ms)[0m SELECT 1 AS one FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'POeizRav9l81GDrYKe7R' LIMIT 1
+ [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "public_token", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.7ms)[0m commit transaction
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture')[0m
+Started DELETE "/uploader/attachments/POeizRav9l81GDrYKe7R" for 127.0.0.1 at 2016-02-19 12:42:30 +0200
+ [1m[35mPicture Load (0.3ms)[0m SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'POeizRav9l81GDrYKe7R' ORDER BY "assets"."id" ASC LIMIT 1
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m DELETE FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? [["id", 2]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture')
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m 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"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mPicture Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'PAZMiwhkz1jMZPvOyb9x' LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+Started DELETE "/uploader/attachments/wrong" for 127.0.0.1 at 2016-02-19 12:42:30 +0200
+ [1m[35mPicture Load (0.3ms)[0m 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
+ [1m[36m (1.2ms)[0m [1mDELETE FROM "assets";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM sqlite_sequence where name = 'assets';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM "articles";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (2.8ms)[0m DELETE FROM "assets";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.5ms)[0m DELETE FROM sqlite_sequence where name = 'assets';
+ [1m[36m (1.4ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (2.3ms)[0m DELETE FROM "assets";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.5ms)[0m DELETE FROM sqlite_sequence where name = 'assets';
+ [1m[36m (1.2ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (2.6ms)[0m DELETE FROM "assets";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.5ms)[0m DELETE FROM sqlite_sequence where name = 'assets';
+ [1m[36m (1.2ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (1.3ms)[0m DELETE FROM "assets";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.5ms)[0m DELETE FROM sqlite_sequence where name = 'assets';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (1.4ms)[0m DELETE FROM "assets";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'assets';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (1.4ms)[0m DELETE FROM "assets";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'assets';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-02-19 10:47:58.842895"], ["title", "MyString"], ["updated_at", "2016-02-19 10:47:58.842895"]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mPicture Exists (0.3ms)[0m SELECT 1 AS one FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'PyYDPgwxXibU5iebwvyT' LIMIT 1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "public_token", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36mPicture Load (0.3ms)[0m [1mSELECT "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[0m
+ [1m[35mSQL (1.1ms)[0m UPDATE "assets" SET "assetable_id" = 1000, "guid" = NULL WHERE "assets"."type" IN ('Picture') AND "assets"."guid" IS NULL AND "assets"."assetable_type" = 'Article'
+ [1m[36mPicture Load (0.2ms)[0m [1mSELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (1.0ms)[0m DELETE FROM "assets";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'assets';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (1.3ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-02-19 10:48:45.357911"], ["title", "MyString"], ["updated_at", "2016-02-19 10:48:45.357911"]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mPicture Exists (0.6ms)[0m SELECT 1 AS one FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'Ug2WHhK2fKyetxUgA5Ru' LIMIT 1
+ [1m[36mSQL (1.7ms)[0m [1mINSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "public_token", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36mPicture Load (0.3ms)[0m [1mSELECT "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[0m
+ [1m[35mSQL (1.1ms)[0m UPDATE "assets" SET "assetable_id" = 1000, "guid" = NULL WHERE "assets"."type" IN ('Picture') AND "assets"."guid" IS NULL AND "assets"."assetable_type" = 'Article'
+ [1m[36mPicture Load (0.2ms)[0m [1mSELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mPicture Load (0.3ms)[0m 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
+ [1m[36m (1.2ms)[0m [1mDELETE FROM "assets";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'assets';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "articles";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (1.3ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-02-19 10:55:27.336912"], ["title", "MyString"], ["updated_at", "2016-02-19 10:55:27.336912"]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35mPicture Exists (0.7ms)[0m SELECT 1 AS one FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'FnvHlFpNIhxXucfU9hjH' LIMIT 1
+ [1m[36mSQL (1.8ms)[0m [1mINSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "public_token", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36mPicture Load (0.7ms)[0m [1mSELECT "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[0m
+ [1m[35mSQL (1.3ms)[0m UPDATE "assets" SET "assetable_id" = 1000, "guid" = NULL WHERE "assets"."type" IN ('Picture') AND "assets"."guid" IS NULL AND "assets"."assetable_type" = 'Article'
+ [1m[36mPicture Load (0.2ms)[0m [1mSELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mPicture Load (0.3ms)[0m 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
+ [1m[36m (3.8ms)[0m [1mDELETE FROM "assets";[0m
+ [1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (6.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'assets';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (1.2ms)[0m [1mDELETE FROM "assets";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'assets';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM "articles";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+Started POST "/uploader/attachments" for 127.0.0.1 at 2016-02-19 12:55:28 +0200
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35mPicture Exists (0.2ms)[0m SELECT 1 AS one FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'uvaCspoK4p0xCxTKfn0f' LIMIT 1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_file_name", "guid", "public_token", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (1.1ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", "2016-02-19 10:55:28.181348"], ["title", "MyString"], ["updated_at", "2016-02-19 10:55:28.181348"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mPicture Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'bYoSV4vKkPX11bI4yh95' LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture')
+Started DELETE "/uploader/attachments/bYoSV4vKkPX11bI4yh95" for 127.0.0.1 at 2016-02-19 12:55:28 +0200
+ [1m[36mPicture Load (0.2ms)[0m [1mSELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'bYoSV4vKkPX11bI4yh95' ORDER BY "assets"."id" ASC LIMIT 1[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ?[0m [["id", 2]]
+ [1m[35m (1.6ms)[0m commit transaction
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture')[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-02-19 10:55:28.254449"], ["title", "MyString"], ["updated_at", "2016-02-19 10:55:28.254449"]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mPicture Exists (0.2ms)[0m SELECT 1 AS one FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'KGveJ86llLfSsFiYfZBI' LIMIT 1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "public_token", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.8ms)[0m commit transaction
+Started DELETE "/uploader/attachments/wrong" for 127.0.0.1 at 2016-02-19 12:55:28 +0200
+ [1m[36mPicture Load (0.2ms)[0m [1mSELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'wrong' ORDER BY "assets"."id" ASC LIMIT 1[0m
+Started POST "/uploader/attachments" for 127.0.0.1 at 2016-02-19 12:55:28 +0200
+ [1m[35m (1.3ms)[0m DELETE FROM "assets";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'assets';
+ [1m[36m (1.4ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM "assets";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'assets';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-02-19 10:55:35.721670"], ["title", "MyString"], ["updated_at", "2016-02-19 10:55:35.721670"]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mPicture Exists (0.2ms)[0m SELECT 1 AS one FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'HiROxaE0uS82ywQrM1bB' LIMIT 1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "public_token", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36mPicture Load (0.5ms)[0m [1mSELECT "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[0m
+ [1m[35mSQL (1.1ms)[0m UPDATE "assets" SET "assetable_id" = 1000, "guid" = NULL WHERE "assets"."type" IN ('Picture') AND "assets"."guid" IS NULL AND "assets"."assetable_type" = 'Article'
+ [1m[36mPicture Load (0.2ms)[0m [1mSELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mPicture Load (0.3ms)[0m 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
+ [1m[36m (1.1ms)[0m [1mDELETE FROM "assets";[0m
+ [1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'assets';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM "assets";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'assets';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM "articles";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+Started POST "/uploader/attachments" for 127.0.0.1 at 2016-02-19 12:55:35 +0200
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35mPicture Exists (0.4ms)[0m SELECT 1 AS one FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'j9im6FlvUTOFF4GFapxl' LIMIT 1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_file_name", "guid", "public_token", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (1.0ms)[0m commit transaction
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mPicture Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'xs9Vi2ChWVPM1BGWgTqm' LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (1.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.3ms)[0m 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
+ [1m[36mPicture Load (0.2ms)[0m [1mSELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'xs9Vi2ChWVPM1BGWgTqm' ORDER BY "assets"."id" ASC LIMIT 1[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ?[0m [["id", 2]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture')[0m
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", "2016-02-19 10:55:36.051689"], ["title", "MyString"], ["updated_at", "2016-02-19 10:55:36.051689"]]
+ [1m[35m (2.1ms)[0m commit transaction
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35mPicture Exists (0.2ms)[0m SELECT 1 AS one FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = '38sk1CwyEyMgItShzY0o' LIMIT 1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "public_token", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.9ms)[0m commit transaction
+Started DELETE "/uploader/attachments/wrong" for 127.0.0.1 at 2016-02-19 12:55:36 +0200
+ [1m[36mPicture Load (0.2ms)[0m [1mSELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'wrong' ORDER BY "assets"."id" ASC LIMIT 1[0m
+Started POST "/uploader/attachments" for 127.0.0.1 at 2016-02-19 12:55:36 +0200
+ [1m[35m (1.3ms)[0m DELETE FROM "assets";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'assets';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (1.3ms)[0m DELETE FROM "assets";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'assets';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m