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 @@  (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.5350ms)  (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.4451ms) +Connecting to database specified by database.yml +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  +Migrating to CreateAssets (20120508093416) +Migrating to CreateArticles (20120508093830) +  (0.1ms) begin transaction +  (0.2ms) SAVEPOINT active_record_1 + SQL (4.5ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + Picture Exists (0.5ms) SELECT 1 AS one FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'WA1AbtuQ7jeQo1HP7mnZ' LIMIT 1 + SQL (2.4ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Picture Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."guid" IS NULL AND "assets"."assetable_type" = 'Article' LIMIT 1 + SQL (0.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.1ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? LIMIT 1 [["id", 1]] + Picture Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."guid" = 'TErF7L2krpzppOwEGMeQ' AND "assets"."assetable_type" = 'Article' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (1.1ms) 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) +  (0.1ms) begin transaction + 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) +  (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.4060ms) + MOPED: 127.0.0.1:27017 COMMAND database=rails_uploader_test command={:drop=>"mongoid_pictures"} (1.0200ms) +  (0.0ms) begin transaction + + +Started POST "/uploader/attachments" for 127.0.0.1 at 2015-09-16 17:12:20 +0300 +  (0.3ms) SAVEPOINT active_record_1 + Picture Exists (0.2ms) SELECT 1 AS one FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'TStytNh7GioJBxd7OL7y' LIMIT 1 + SQL (0.5ms) 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]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Picture Exists (0.1ms) SELECT 1 AS one FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = '0TLrTvyEaTDE0kuc1xYZ' LIMIT 1 + SQL (0.3ms) 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", "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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') + + +Started DELETE "/uploader/attachments/0TLrTvyEaTDE0kuc1xYZ" for 127.0.0.1 at 2015-09-16 17:12:20 +0300 + Picture Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = '0TLrTvyEaTDE0kuc1xYZ' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? [["id", 2]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Picture Exists (0.1ms) SELECT 1 AS one FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'twEIdMnq8h2LtMqmIyor' LIMIT 1 + SQL (0.3ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + + +Started DELETE "/uploader/attachments/wrong" for 127.0.0.1 at 2015-09-16 17:12:20 +0300 + Picture Load (0.1ms) 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 +  (0.7ms) 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.4277ms) +  (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.3839ms) +Connecting to database specified by database.yml +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  +Migrating to CreateAssets (20120508093416) +Migrating to CreateArticles (20120508093830) +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (3.6ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Picture Exists (0.4ms) SELECT 1 AS one FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'RB7rFB1gfx2mU8jmt9li' LIMIT 1 + SQL (2.3ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Picture Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."guid" IS NULL AND "assets"."assetable_type" = 'Article' LIMIT 1 + SQL (0.2ms) 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.1ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? LIMIT 1 [["id", 1]] + Picture Load (0.1ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."guid" = 'tA6rmhFYHkxKDtxs5B5i' AND "assets"."assetable_type" = 'Article' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) 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) +  (0.1ms) begin transaction + 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) +  (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.7539ms) + MOPED: 127.0.0.1:27017 COMMAND database=rails_uploader_test command={:drop=>"mongoid_pictures"} (0.7379ms) +  (0.1ms) begin transaction + + +Started POST "/uploader/attachments" for 127.0.0.1 at 2015-09-16 17:13:13 +0300 +  (0.2ms) SAVEPOINT active_record_1 + Picture Exists (0.2ms) SELECT 1 AS one FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'GfDlXbSV3Nah5tKGq57h' LIMIT 1 + SQL (0.6ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Picture Exists (0.1ms) SELECT 1 AS one FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'TrnRntbWh3Cv2oIWeKlb' LIMIT 1 + SQL (0.3ms) 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", "TrnRntbWh3Cv2oIWeKlb"], ["type", "Picture"], ["updated_at", Wed, 16 Sep 2015 14:13:13 UTC +00:00], ["user_id", nil]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') + + +Started DELETE "/uploader/attachments/TrnRntbWh3Cv2oIWeKlb" for 127.0.0.1 at 2015-09-16 17:13:13 +0300 + Picture Load (0.1ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'TrnRntbWh3Cv2oIWeKlb' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."id" = ? [["id", 2]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "assets" WHERE "assets"."type" IN ('Picture') +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Picture Exists (0.1ms) SELECT 1 AS one FROM "assets" WHERE "assets"."type" IN ('Picture') AND "assets"."public_token" = 'F7zCRaX4iwCVVLqHQ5kM' LIMIT 1 + SQL (0.4ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + + +Started DELETE "/uploader/attachments/wrong" for 127.0.0.1 at 2015-09-16 17:13:13 +0300 + Picture Load (0.2ms) 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 +  (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)