spec/dummy/log/test.log in rails-uploader-0.2.6 vs spec/dummy/log/test.log in rails-uploader-0.2.7
- old
+ new
@@ -2730,5 +2730,167 @@
[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.5350ms)
[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.4451ms)
+Connecting to database specified by database.yml
+ [1m[36m (0.4ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
+Migrating to CreateAssets (20120508093416)
+Migrating to CreateArticles (20120508093830)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (4.5ms)[0m INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", Wed, 16 Sep 2015 14:12:19 UTC +00:00], ["title", "MyString"], ["updated_at", Wed, 16 Sep 2015 14:12:19 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mPicture Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'WA1AbtuQ7jeQo1HP7mnZ' LIMIT 1[0m
+ [1m[35mSQL (2.4ms)[0m INSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "guid", "public_token", "type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", Wed, 16 Sep 2015 14:12:19 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", nil], ["guid", nil], ["public_token", "WA1AbtuQ7jeQo1HP7mnZ"], ["type", "Picture"], ["updated_at", Wed, 16 Sep 2015 14:12:19 UTC +00:00], ["user_id", nil]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mPicture Load (0.2ms)[0m SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."guid" IS NULL AND "assets"."assetable_type" = 'Article' LIMIT 1
+ [1m[36mSQL (0.3ms)[0m [1mUPDATE "assets" SET "assetable_id" = 1000, "guid" = NULL WHERE "assets"."type" IN ('Picture') AND "assets"."guid" IS NULL AND "assets"."assetable_type" = 'Article'[0m
+ [1m[35mPicture Load (0.1ms)[0m SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mPicture Load (0.2ms)[0m [1mSELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."guid" = 'TErF7L2krpzppOwEGMeQ' AND "assets"."assetable_type" = 'Article' LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (1.1ms)[0m rollback transaction
+ MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (88.7461ms)
+ 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 (20.8700ms)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ MOPED: 127.0.0.1:27017 QUERY database=rails_uploader_test collection=mongoid_pictures selector={"public_token"=>"FnCMBiWn0PB2EICBr1Xn"} flags=[:slave_ok] limit=1 skip=0 fields={:_id=>1} (2.1381ms)
+ MOPED: 127.0.0.1:27017 INSERT database=rails_uploader_test collection=mongoid_pictures documents=[{"_id"=>"55f978c3dc26e7324d000001", "guid"=>"guid", "assetable_type"=>"MongoidArticle", "public_token"=>"FnCMBiWn0PB2EICBr1Xn"}] flags=[] (0.1543ms)
+ MOPED: 127.0.0.1:27017 QUERY database=rails_uploader_test collection=mongoid_pictures selector={"$query"=>{"guid"=>"guid", "assetable_type"=>"MongoidArticle"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 fields=nil (22.0480ms)
+ MOPED: 127.0.0.1:27017 COMMAND database=rails_uploader_test command={:count=>"mongoid_pictures", :query=>{}} (0.7770ms)
+ MOPED: 127.0.0.1:27017 QUERY database=rails_uploader_test collection=mongoid_pictures selector={} flags=[:slave_ok] limit=0 skip=0 fields=nil (0.3068ms)
+ MOPED: 127.0.0.1:27017 DELETE database=rails_uploader_test collection=mongoid_pictures selector={"_id"=>"55f978c3dc26e7324d000001"} flags=[:remove_first] (0.1030ms)
+ MOPED: 127.0.0.1:27017 QUERY database=rails_uploader_test collection=mongoid_pictures selector={"public_token"=>"KMpsmnXsl7rSpHIBhL0E"} flags=[:slave_ok] limit=1 skip=0 fields={:_id=>1} (0.7970ms)
+ MOPED: 127.0.0.1:27017 INSERT database=rails_uploader_test collection=mongoid_pictures documents=[{"_id"=>"55f978c4dc26e7324d000002", "guid"=>"guid", "assetable_type"=>"MongoidArticle", "public_token"=>"KMpsmnXsl7rSpHIBhL0E"}] flags=[] (0.1121ms)
+ MOPED: 127.0.0.1:27017 UPDATE database=rails_uploader_test collection=mongoid_pictures selector={"guid"=>"guid", "assetable_type"=>"MongoidArticle"} update={"$set"=>{:assetable_id=>1000, :guid=>nil}} flags=[:multi] (0.1042ms)
+ MOPED: 127.0.0.1:27017 QUERY database=rails_uploader_test collection=mongoid_pictures selector={:_id=>"55f978c4dc26e7324d000002"} flags=[:slave_ok] limit=-1 skip=0 fields=nil (4.2341ms)
+ MOPED: 127.0.0.1:27017 COMMAND database=rails_uploader_test command={:count=>"mongoid_pictures", :query=>{}} (0.3488ms)
+ MOPED: 127.0.0.1:27017 QUERY database=rails_uploader_test collection=mongoid_pictures selector={} flags=[:slave_ok] limit=0 skip=0 fields=nil (0.2899ms)
+ MOPED: 127.0.0.1:27017 DELETE database=rails_uploader_test collection=mongoid_pictures selector={"_id"=>"55f978c4dc26e7324d000002"} flags=[:remove_first] (0.0730ms)
+ [1m[35m (0.1ms)[0m 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.4060ms)
+ MOPED: 127.0.0.1:27017 COMMAND database=rails_uploader_test command={:drop=>"mongoid_pictures"} (1.0200ms)
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+
+
+Started POST "/uploader/attachments" for 127.0.0.1 at 2015-09-16 17:12:20 +0300
+ [1m[35m (0.3ms)[0m SAVEPOINT active_record_1
+ [1m[36mPicture Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'TStytNh7GioJBxd7OL7y' LIMIT 1[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "guid", "public_token", "type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", Wed, 16 Sep 2015 14:12:20 UTC +00:00], ["data_content_type", nil], ["data_file_name", "rails.png"], ["data_file_size", nil], ["guid", "SOMESTRING"], ["public_token", "TStytNh7GioJBxd7OL7y"], ["type", "Picture"], ["updated_at", Wed, 16 Sep 2015 14:12:20 UTC +00:00], ["user_id", nil]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", Wed, 16 Sep 2015 14:12:20 UTC +00:00], ["title", "MyString"], ["updated_at", Wed, 16 Sep 2015 14:12:20 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mPicture Exists (0.1ms)[0m SELECT 1 AS one FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = '0TLrTvyEaTDE0kuc1xYZ' LIMIT 1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "guid", "public_token", "type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", Wed, 16 Sep 2015 14:12:20 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", nil], ["guid", nil], ["public_token", "0TLrTvyEaTDE0kuc1xYZ"], ["type", "Picture"], ["updated_at", Wed, 16 Sep 2015 14:12:20 UTC +00:00], ["user_id", nil]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture')[0m
+
+
+Started DELETE "/uploader/attachments/0TLrTvyEaTDE0kuc1xYZ" for 127.0.0.1 at 2015-09-16 17:12:20 +0300
+ [1m[35mPicture Load (0.2ms)[0m SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = '0TLrTvyEaTDE0kuc1xYZ' LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m DELETE FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? [["id", 2]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture')
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", Wed, 16 Sep 2015 14:12:20 UTC +00:00], ["title", "MyString"], ["updated_at", Wed, 16 Sep 2015 14:12:20 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mPicture Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'twEIdMnq8h2LtMqmIyor' LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "guid", "public_token", "type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", 2], ["assetable_type", "Article"], ["created_at", Wed, 16 Sep 2015 14:12:20 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", nil], ["guid", nil], ["public_token", "twEIdMnq8h2LtMqmIyor"], ["type", "Picture"], ["updated_at", Wed, 16 Sep 2015 14:12:20 UTC +00:00], ["user_id", nil]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+
+
+Started DELETE "/uploader/attachments/wrong" for 127.0.0.1 at 2015-09-16 17:12:20 +0300
+ [1m[35mPicture Load (0.1ms)[0m SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'wrong' LIMIT 1
+
+
+Started POST "/uploader/attachments" for 127.0.0.1 at 2015-09-16 17:12:20 +0300
+ [1m[36m (0.7ms)[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.4277ms)
+ [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.3839ms)
+Connecting to database specified by database.yml
+ [1m[36m (0.5ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
+Migrating to CreateAssets (20120508093416)
+Migrating to CreateArticles (20120508093830)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (3.6ms)[0m INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", Wed, 16 Sep 2015 14:13:13 UTC +00:00], ["title", "MyString"], ["updated_at", Wed, 16 Sep 2015 14:13:13 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mPicture Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'RB7rFB1gfx2mU8jmt9li' LIMIT 1[0m
+ [1m[35mSQL (2.3ms)[0m INSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "guid", "public_token", "type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", Wed, 16 Sep 2015 14:13:13 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", nil], ["guid", nil], ["public_token", "RB7rFB1gfx2mU8jmt9li"], ["type", "Picture"], ["updated_at", Wed, 16 Sep 2015 14:13:13 UTC +00:00], ["user_id", nil]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mPicture Load (0.2ms)[0m SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."guid" IS NULL AND "assets"."assetable_type" = 'Article' LIMIT 1
+ [1m[36mSQL (0.2ms)[0m [1mUPDATE "assets" SET "assetable_id" = 1000, "guid" = NULL WHERE "assets"."type" IN ('Picture') AND "assets"."guid" IS NULL AND "assets"."assetable_type" = 'Article'[0m
+ [1m[35mPicture Load (0.1ms)[0m SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mPicture Load (0.1ms)[0m [1mSELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."guid" = 'tA6rmhFYHkxKDtxs5B5i' AND "assets"."assetable_type" = 'Article' LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.7ms)[0m rollback transaction
+ MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (8.0287ms)
+ 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.9520ms)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ MOPED: 127.0.0.1:27017 QUERY database=rails_uploader_test collection=mongoid_pictures selector={"public_token"=>"zHh3o7TylhVJuFDXh8bn"} flags=[:slave_ok] limit=1 skip=0 fields={:_id=>1} (0.3500ms)
+ MOPED: 127.0.0.1:27017 INSERT database=rails_uploader_test collection=mongoid_pictures documents=[{"_id"=>"55f978f9dc26e7574d000001", "guid"=>"guid", "assetable_type"=>"MongoidArticle", "public_token"=>"zHh3o7TylhVJuFDXh8bn"}] flags=[] (0.1650ms)
+ MOPED: 127.0.0.1:27017 QUERY database=rails_uploader_test collection=mongoid_pictures selector={"$query"=>{"guid"=>"guid", "assetable_type"=>"MongoidArticle"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 fields=nil (9.3479ms)
+ MOPED: 127.0.0.1:27017 COMMAND database=rails_uploader_test command={:count=>"mongoid_pictures", :query=>{}} (0.4559ms)
+ MOPED: 127.0.0.1:27017 QUERY database=rails_uploader_test collection=mongoid_pictures selector={} flags=[:slave_ok] limit=0 skip=0 fields=nil (0.4208ms)
+ MOPED: 127.0.0.1:27017 DELETE database=rails_uploader_test collection=mongoid_pictures selector={"_id"=>"55f978f9dc26e7574d000001"} flags=[:remove_first] (0.1740ms)
+ MOPED: 127.0.0.1:27017 QUERY database=rails_uploader_test collection=mongoid_pictures selector={"public_token"=>"7i2rXkK0QZo3XzZVPgsU"} flags=[:slave_ok] limit=1 skip=0 fields={:_id=>1} (0.5198ms)
+ MOPED: 127.0.0.1:27017 INSERT database=rails_uploader_test collection=mongoid_pictures documents=[{"_id"=>"55f978f9dc26e7574d000002", "guid"=>"guid", "assetable_type"=>"MongoidArticle", "public_token"=>"7i2rXkK0QZo3XzZVPgsU"}] flags=[] (0.2198ms)
+ MOPED: 127.0.0.1:27017 UPDATE database=rails_uploader_test collection=mongoid_pictures selector={"guid"=>"guid", "assetable_type"=>"MongoidArticle"} update={"$set"=>{:assetable_id=>1000, :guid=>nil}} flags=[:multi] (2.1350ms)
+ MOPED: 127.0.0.1:27017 QUERY database=rails_uploader_test collection=mongoid_pictures selector={:_id=>"55f978f9dc26e7574d000002"} flags=[:slave_ok] limit=-1 skip=0 fields=nil (6.9222ms)
+ MOPED: 127.0.0.1:27017 COMMAND database=rails_uploader_test command={:count=>"mongoid_pictures", :query=>{}} (0.7071ms)
+ MOPED: 127.0.0.1:27017 QUERY database=rails_uploader_test collection=mongoid_pictures selector={} flags=[:slave_ok] limit=0 skip=0 fields=nil (0.4852ms)
+ MOPED: 127.0.0.1:27017 DELETE database=rails_uploader_test collection=mongoid_pictures selector={"_id"=>"55f978f9dc26e7574d000002"} flags=[:remove_first] (0.1302ms)
+ [1m[35m (0.1ms)[0m 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.7539ms)
+ MOPED: 127.0.0.1:27017 COMMAND database=rails_uploader_test command={:drop=>"mongoid_pictures"} (0.7379ms)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+
+
+Started POST "/uploader/attachments" for 127.0.0.1 at 2015-09-16 17:13:13 +0300
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mPicture Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'GfDlXbSV3Nah5tKGq57h' LIMIT 1[0m
+ [1m[35mSQL (0.6ms)[0m INSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "guid", "public_token", "type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", Wed, 16 Sep 2015 14:13:13 UTC +00:00], ["data_content_type", nil], ["data_file_name", "rails.png"], ["data_file_size", nil], ["guid", "SOMESTRING"], ["public_token", "GfDlXbSV3Nah5tKGq57h"], ["type", "Picture"], ["updated_at", Wed, 16 Sep 2015 14:13:13 UTC +00:00], ["user_id", nil]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "MyText"], ["created_at", Wed, 16 Sep 2015 14:13:13 UTC +00:00], ["title", "MyString"], ["updated_at", Wed, 16 Sep 2015 14:13:13 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mPicture Exists (0.1ms)[0m SELECT 1 AS one FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'TrnRntbWh3Cv2oIWeKlb' LIMIT 1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "guid", "public_token", "type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["assetable_id", 1], ["assetable_type", "Article"], ["created_at", Wed, 16 Sep 2015 14:13:13 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", nil], ["guid", nil], ["public_token", "TrnRntbWh3Cv2oIWeKlb"], ["type", "Picture"], ["updated_at", Wed, 16 Sep 2015 14:13:13 UTC +00:00], ["user_id", nil]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture')[0m
+
+
+Started DELETE "/uploader/attachments/TrnRntbWh3Cv2oIWeKlb" for 127.0.0.1 at 2015-09-16 17:13:13 +0300
+ [1m[35mPicture Load (0.1ms)[0m SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'TrnRntbWh3Cv2oIWeKlb' LIMIT 1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m DELETE FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? [["id", 2]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture')
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "MyText"], ["created_at", Wed, 16 Sep 2015 14:13:13 UTC +00:00], ["title", "MyString"], ["updated_at", Wed, 16 Sep 2015 14:13:13 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mPicture Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'F7zCRaX4iwCVVLqHQ5kM' LIMIT 1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "guid", "public_token", "type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", 2], ["assetable_type", "Article"], ["created_at", Wed, 16 Sep 2015 14:13:13 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", nil], ["guid", nil], ["public_token", "F7zCRaX4iwCVVLqHQ5kM"], ["type", "Picture"], ["updated_at", Wed, 16 Sep 2015 14:13:13 UTC +00:00], ["user_id", nil]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+
+
+Started DELETE "/uploader/attachments/wrong" for 127.0.0.1 at 2015-09-16 17:13:13 +0300
+ [1m[35mPicture Load (0.2ms)[0m SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'wrong' LIMIT 1
+
+
+Started POST "/uploader/attachments" for 127.0.0.1 at 2015-09-16 17:13:13 +0300
+ [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)