ActiveRecord::SchemaMigration Load (27.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (6.1ms) BEGIN --------------------- QueryTest: test_exist --------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1401-1q7pr7i.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (27.1ms) INSERT INTO "shops" ("name", "logo", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "first"], ["logo", "{\"id\":\"95908bd84e8e41c4a887bd0703b5f119\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T12:50:19.762-03:00\",\"paths\":{\"original\":\"first/95908bd84e8e41c4a887bd0703b5f119-original.png\",\"tiny\":\"first/95908bd84e8e41c4a887bd0703b5f119-tiny.png\",\"small\":\"first/95908bd84e8e41c4a887bd0703b5f119-small.png\",\"medium\":\"first/95908bd84e8e41c4a887bd0703b5f119-medium.png\",\"large\":\"first/95908bd84e8e41c4a887bd0703b5f119-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-11-20 15:50:19.762931"], ["updated_at", "2016-11-20 15:50:19.762931"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1401-1q7pr7i.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1401-mh3jjt.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1401-mh3jjt.png => first/95908bd84e8e41c4a887bd0703b5f119-original.png  (5.4ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_renames ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1401-191zv1e.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["logo", "{\"id\":\"572c897f194946ffb1fa80deb96308bd\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T12:50:20.065-03:00\",\"paths\":{\"original\":\"anderstons/572c897f194946ffb1fa80deb96308bd-original.png\",\"tiny\":\"anderstons/572c897f194946ffb1fa80deb96308bd-tiny.png\",\"small\":\"anderstons/572c897f194946ffb1fa80deb96308bd-small.png\",\"medium\":\"anderstons/572c897f194946ffb1fa80deb96308bd-medium.png\",\"large\":\"anderstons/572c897f194946ffb1fa80deb96308bd-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["name", "Anderstons"], ["created_at", "2016-11-20 15:50:20.065844"], ["updated_at", "2016-11-20 15:50:20.065844"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1401-191zv1e.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1401-dl1n47.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1401-dl1n47.png => anderstons/572c897f194946ffb1fa80deb96308bd-original.png  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- AttachmentTest: test_nested_attributes -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1401-19veima.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1401-pax848.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- AttachmentTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1401-ni9d8y.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (6.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"777ed13a23874c69b73db7840a53b159\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T12:50:20.133-03:00\",\"paths\":{\"original\":\"777ed13a23874c69b73db7840a53b159-original.png\",\"tiny\":\"777ed13a23874c69b73db7840a53b159-tiny.png\",\"small\":\"777ed13a23874c69b73db7840a53b159-small.png\",\"medium\":\"777ed13a23874c69b73db7840a53b159-medium.png\",\"large\":\"777ed13a23874c69b73db7840a53b159-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-11-20 15:50:20.133981"], ["updated_at", "2016-11-20 15:50:20.133981"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1401-ni9d8y.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1401-1dmz4u5.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1401-1dmz4u5.png => 777ed13a23874c69b73db7840a53b159-original.png  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------- UploadTest: test_upload ----------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1401-r297es.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (9.4ms) INSERT INTO "uploads" ("file", "record_type", "record_attribute", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "{\"id\":\"679171dc404e4bb29a0d2d4cfd46b6b0\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T12:50:20.187-03:00\",\"paths\":{\"original\":\"679171dc404e4bb29a0d2d4cfd46b6b0-original.jpg\",\"tiny\":\"679171dc404e4bb29a0d2d4cfd46b6b0-tiny.jpg\",\"small\":\"679171dc404e4bb29a0d2d4cfd46b6b0-small.jpg\",\"medium\":\"679171dc404e4bb29a0d2d4cfd46b6b0-medium.jpg\",\"large\":\"679171dc404e4bb29a0d2d4cfd46b6b0-large.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["record_type", "Shop"], ["record_attribute", "logo"], ["created_at", "2016-11-20 15:50:20.188152"], ["updated_at", "2016-11-20 15:50:20.188152"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1401-r297es.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1401-hbwgi7.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1401-hbwgi7.jpg => 679171dc404e4bb29a0d2d4cfd46b6b0-original.jpg  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- GeneratorsTest: test_install ----------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- GeneratorsTest: test_upload ---------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidatorsTest: test_methods ----------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidatorsTest: test_size_greater_than -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161120-1401-1m769m7.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1401-1xof0g.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1401-1g7zg4c.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- ValidatorsTest: test_size_within -------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161120-1401-10df5u0.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1401-1s37qxk.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161120-1401-isubca.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1401-100k021.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1401-1i47qco.jpg'  (0.3ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------- ValidatorsTest: test_content_type_with -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1401-1vtgvfz.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1401-i4dxve.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1401-10pwm41.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ ValidatorsTest: test_content_type_in ------------------------------------ Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1401-82gh53.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1401-1dd0se2.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1401-1auenp3.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidatorsTest: test_size_in ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161120-1401-lw5xz1.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1401-1iipbnh.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161120-1401-krb71v.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1401-b7uld0.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1401-1f61kjx.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- ValidatorsTest: test_size_less_than ----------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161120-1401-1piepmr.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1401-10g1cpc.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1401-1515sln.jpg'  (0.3ms) ROLLBACK  (0.2ms) BEGIN ---------------------------------------- ValidatorsTest: test_content_type_within ---------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1401-vpe3el.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1401-it8ysp.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1401-1u5qhjh.jpg'  (0.3ms) ROLLBACK  (0.2ms) BEGIN ------------------------- ConcernTest: test_inherit -------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------- CollectionTest: test_size ------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1401-a1lhxy.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1401-33hpu.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (19.2ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"8740b7ebbfcf4870bbf527139d3d95ad\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T12:50:20.521-03:00\",\"paths\":{\"original\":\"8740b7ebbfcf4870bbf527139d3d95ad-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725},{\"id\":\"e07acbea30554d54a4e8be64a88d439f\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T12:50:20.522-03:00\",\"paths\":{\"original\":\"e07acbea30554d54a4e8be64a88d439f-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-11-20 15:50:20.522808"], ["updated_at", "2016-11-20 15:50:20.522808"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1401-a1lhxy.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1401-1f1953y.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1401-1f1953y.jpg => 8740b7ebbfcf4870bbf527139d3d95ad-original.jpg  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------- CollectionTest: test_index -------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1401-1yaxele.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1401-ezg6nh.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"0283b9613175475d95d9014655770ad0\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T12:50:20.577-03:00\",\"paths\":{\"original\":\"0283b9613175475d95d9014655770ad0-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725},{\"id\":\"d2c69a39738b41078b6229ab2a4af1d3\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T12:50:20.578-03:00\",\"paths\":{\"original\":\"d2c69a39738b41078b6229ab2a4af1d3-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-11-20 15:50:20.579102"], ["updated_at", "2016-11-20 15:50:20.579102"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1401-1yaxele.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1401-1h7rt63.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1401-1h7rt63.jpg => 0283b9613175475d95d9014655770ad0-original.jpg  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------- TasksTest: test_clear --------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1401-c7lq9v.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"b19dca5c9ca54443b7b0c7287136e97d\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T12:50:20.636-03:00\",\"paths\":{\"original\":\"b19dca5c9ca54443b7b0c7287136e97d-original.png\",\"tiny\":\"b19dca5c9ca54443b7b0c7287136e97d-tiny.png\",\"small\":\"b19dca5c9ca54443b7b0c7287136e97d-small.png\",\"medium\":\"b19dca5c9ca54443b7b0c7287136e97d-medium.png\",\"large\":\"b19dca5c9ca54443b7b0c7287136e97d-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-11-20 15:50:20.637141"], ["updated_at", "2016-11-20 15:50:20.637141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1401-c7lq9v.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1401-beq2g9.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1401-beq2g9.png => b19dca5c9ca54443b7b0c7287136e97d-original.png  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- TasksTest: test_fix_missings ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1401-13mqbe3.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"a8cc96fe988645da929826c028e66900\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T12:50:20.682-03:00\",\"paths\":{\"original\":\"a8cc96fe988645da929826c028e66900-original.png\",\"tiny\":\"a8cc96fe988645da929826c028e66900-tiny.png\",\"small\":\"a8cc96fe988645da929826c028e66900-small.png\",\"medium\":\"a8cc96fe988645da929826c028e66900-medium.png\",\"large\":\"a8cc96fe988645da929826c028e66900-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-11-20 15:50:20.682996"], ["updated_at", "2016-11-20 15:50:20.682996"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1401-13mqbe3.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1401-18wu1l6.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1401-18wu1l6.png => a8cc96fe988645da929826c028e66900-original.png  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------- TasksTest: test_reprocess ------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1401-1wppcij.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"2ffd50917b7c4e17afb513d662359170\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T12:50:20.725-03:00\",\"paths\":{\"original\":\"2ffd50917b7c4e17afb513d662359170-original.png\",\"tiny\":\"2ffd50917b7c4e17afb513d662359170-tiny.png\",\"small\":\"2ffd50917b7c4e17afb513d662359170-small.png\",\"medium\":\"2ffd50917b7c4e17afb513d662359170-medium.png\",\"large\":\"2ffd50917b7c4e17afb513d662359170-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-11-20 15:50:20.725935"], ["updated_at", "2016-11-20 15:50:20.725935"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1401-1wppcij.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1401-1cj6qm9.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1401-1cj6qm9.png => 2ffd50917b7c4e17afb513d662359170-original.png  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------- MigrationTest: test_column -------------------------- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateUploads (20161031135453)  (0.1ms) SAVEPOINT active_record_1  (35.3ms) DROP TABLE "uploads" SQL (22.8ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161031135453"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Migrating to AddBriefToProducts (20161030160506)  (0.1ms) SAVEPOINT active_record_1  (27.9ms) ALTER TABLE "products" DROP "brief" SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161030160506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to CreateProducts (20161024234029)  (0.1ms) SAVEPOINT active_record_1  (14.1ms) DROP TABLE "products" SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161024234029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to CreateShops (20161024234003)  (0.1ms) SAVEPOINT active_record_1  (0.8ms) DROP TABLE "shops" SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161024234003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateShops (20161024234003)  (0.1ms) SAVEPOINT active_record_1  (36.7ms) CREATE TABLE "shops" ("id" serial primary key, "name" character varying, "logo" jsonb DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161024234003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to CreateProducts (20161024234029)  (0.1ms) SAVEPOINT active_record_1  (1.9ms) CREATE TABLE "products" ("id" serial primary key, "shop_id" integer, "name" character varying, "pictures" jsonb DEFAULT '[]', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161024234029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to AddBriefToProducts (20161030160506)  (0.1ms) SAVEPOINT active_record_1  (2.6ms) ALTER TABLE "products" ADD "brief" jsonb DEFAULT '{}' SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161030160506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to CreateUploads (20161031135453)  (0.1ms) SAVEPOINT active_record_1  (3.0ms) CREATE TABLE "uploads" ("id" serial primary key, "file" jsonb DEFAULT '{}', "record_type" character varying, "record_attribute" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161031135453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.8ms) ROLLBACK  (0.2ms) BEGIN --------------------------- HelperTest: test_fields_for --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1401-1tmo655.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"3ae8b940db52475c80b055e1e0d14dc5\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T12:50:20.941-03:00\",\"paths\":{\"original\":\"3ae8b940db52475c80b055e1e0d14dc5-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-11-20 15:50:20.942444"], ["updated_at", "2016-11-20 15:50:20.942444"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1401-1tmo655.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1401-1y5lo6j.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1401-1y5lo6j.jpg => 3ae8b940db52475c80b055e1e0d14dc5-original.jpg  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN -------------------------- CollectionTest: test_index -------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-alpzon.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-1a8e8rk.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"bc5cc627b1e942a5949709177b75cfcb\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T13:04:38.270-03:00\",\"paths\":{\"original\":\"bc5cc627b1e942a5949709177b75cfcb-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725},{\"id\":\"600790abe43f4504940b734d5fb4f6db\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T13:04:38.271-03:00\",\"paths\":{\"original\":\"600790abe43f4504940b734d5fb4f6db-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-11-20 16:04:38.272703"], ["updated_at", "2016-11-20 16:04:38.272703"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-alpzon.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-y3qk5k.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-y3qk5k.jpg => bc5cc627b1e942a5949709177b75cfcb-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-1a8e8rk.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-qomb57.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-qomb57.jpg => 600790abe43f4504940b734d5fb4f6db-original.jpg  (0.3ms) SAVEPOINT active_record_1 SQL (5.9ms) UPDATE "products" SET "pictures" = $1, "updated_at" = $2 WHERE "products"."id" = $3 [["pictures", "[{\"id\":\"bc5cc627b1e942a5949709177b75cfcb\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T13:04:38.270-03:00\",\"paths\":{\"original\":\"bc5cc627b1e942a5949709177b75cfcb-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725},{\"id\":\"600790abe43f4504940b734d5fb4f6db\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T13:04:38.271-03:00\",\"paths\":{\"original\":\"600790abe43f4504940b734d5fb4f6db-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725,\"position\":0}]"], ["updated_at", "2016-11-20 16:04:40.855570"], ["id", 102]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (5.6ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 102]] [ActiveJob] [Attachs::Jobs::DeleteJob] [5e607392-67a5-4902-a3fb-19881f123557] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["600790abe43f4504940b734d5fb4f6db-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [5e607392-67a5-4902-a3fb-19881f123557] Deleting: 600790abe43f4504940b734d5fb4f6db-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [5e607392-67a5-4902-a3fb-19881f123557] Performed Attachs::Jobs::DeleteJob from Inline(default) in 468.96ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 5e607392-67a5-4902-a3fb-19881f123557) to Inline(default) with arguments: ["600790abe43f4504940b734d5fb4f6db-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [0c0d4df8-1fb0-432c-ae8f-164898777ad0] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["bc5cc627b1e942a5949709177b75cfcb-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [0c0d4df8-1fb0-432c-ae8f-164898777ad0] Deleting: bc5cc627b1e942a5949709177b75cfcb-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [0c0d4df8-1fb0-432c-ae8f-164898777ad0] Performed Attachs::Jobs::DeleteJob from Inline(default) in 407.61ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 0c0d4df8-1fb0-432c-ae8f-164898777ad0) to Inline(default) with arguments: ["bc5cc627b1e942a5949709177b75cfcb-original.jpg"]  (0.4ms) ROLLBACK  (0.2ms) BEGIN ------------------------- CollectionTest: test_size ------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-17v50vw.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-12lqrv4.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"8008832775bb4466bddde45f5a5437f5\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T13:04:41.792-03:00\",\"paths\":{\"original\":\"8008832775bb4466bddde45f5a5437f5-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725},{\"id\":\"704432ed63a746e1889ec159f284183d\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T13:04:41.793-03:00\",\"paths\":{\"original\":\"704432ed63a746e1889ec159f284183d-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-11-20 16:04:41.794429"], ["updated_at", "2016-11-20 16:04:41.794429"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-17v50vw.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-nmkqpp.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-nmkqpp.jpg => 8008832775bb4466bddde45f5a5437f5-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-12lqrv4.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-dwja5g.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-dwja5g.jpg => 704432ed63a746e1889ec159f284183d-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [0c0fd678-2e45-45ca-8294-d61ee07d8650] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["8008832775bb4466bddde45f5a5437f5-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [0c0fd678-2e45-45ca-8294-d61ee07d8650] Deleting: 8008832775bb4466bddde45f5a5437f5-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [0c0fd678-2e45-45ca-8294-d61ee07d8650] Performed Attachs::Jobs::DeleteJob from Inline(default) in 406.72ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 0c0fd678-2e45-45ca-8294-d61ee07d8650) to Inline(default) with arguments: ["8008832775bb4466bddde45f5a5437f5-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [d3a36430-d7a8-4cd3-b8e8-7d132acd680d] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["704432ed63a746e1889ec159f284183d-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [d3a36430-d7a8-4cd3-b8e8-7d132acd680d] Deleting: 704432ed63a746e1889ec159f284183d-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [d3a36430-d7a8-4cd3-b8e8-7d132acd680d] Performed Attachs::Jobs::DeleteJob from Inline(default) in 407.59ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: d3a36430-d7a8-4cd3-b8e8-7d132acd680d) to Inline(default) with arguments: ["704432ed63a746e1889ec159f284183d-original.jpg"]  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------- ConcernTest: test_inherit -------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------- QueryTest: test_exist --------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-1317ps8.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "logo", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "first"], ["logo", "{\"id\":\"93a91e4752954b669a3a924ee9a82a19\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T13:04:43.742-03:00\",\"paths\":{\"original\":\"first/93a91e4752954b669a3a924ee9a82a19-original.png\",\"tiny\":\"first/93a91e4752954b669a3a924ee9a82a19-tiny.png\",\"small\":\"first/93a91e4752954b669a3a924ee9a82a19-small.png\",\"medium\":\"first/93a91e4752954b669a3a924ee9a82a19-medium.png\",\"large\":\"first/93a91e4752954b669a3a924ee9a82a19-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-11-20 16:04:43.742929"], ["updated_at", "2016-11-20 16:04:43.742929"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-1317ps8.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-nq9jka.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-nq9jka.png => first/93a91e4752954b669a3a924ee9a82a19-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-1317ps8.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1mf55io.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1mf55io.png => first/93a91e4752954b669a3a924ee9a82a19-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-1317ps8.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-6un40i.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-6un40i.png => first/93a91e4752954b669a3a924ee9a82a19-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-1317ps8.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1tn6yj7.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1tn6yj7.png => first/93a91e4752954b669a3a924ee9a82a19-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-1317ps8.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1fnjhfi.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1fnjhfi.png => first/93a91e4752954b669a3a924ee9a82a19-large.png  (0.3ms) SAVEPOINT active_record_1 SQL (1.8ms) UPDATE "shops" SET "name" = $1, "updated_at" = $2 WHERE "shops"."id" = $3 [["name", "second"], ["updated_at", "2016-11-20 16:04:48.022145"], ["id", 151]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 151]] [ActiveJob] [Attachs::Jobs::UpdateJob] [91973249-dbb1-492e-a0b7-37dc1287f674] Performing Attachs::Jobs::UpdateJob from Inline(default) with arguments: gid://dummy/Shop/151, "logo" [ActiveJob] [Attachs::Jobs::UpdateJob] [91973249-dbb1-492e-a0b7-37dc1287f674] Copying: first/93a91e4752954b669a3a924ee9a82a19-original.png => second/93a91e4752954b669a3a924ee9a82a19-original.png [ActiveJob] [Attachs::Jobs::UpdateJob] [91973249-dbb1-492e-a0b7-37dc1287f674] Copying: first/93a91e4752954b669a3a924ee9a82a19-tiny.png => second/93a91e4752954b669a3a924ee9a82a19-tiny.png [ActiveJob] [Attachs::Jobs::UpdateJob] [91973249-dbb1-492e-a0b7-37dc1287f674] Copying: first/93a91e4752954b669a3a924ee9a82a19-small.png => second/93a91e4752954b669a3a924ee9a82a19-small.png [ActiveJob] [Attachs::Jobs::UpdateJob] [91973249-dbb1-492e-a0b7-37dc1287f674] Copying: first/93a91e4752954b669a3a924ee9a82a19-medium.png => second/93a91e4752954b669a3a924ee9a82a19-medium.png [ActiveJob] [Attachs::Jobs::UpdateJob] [91973249-dbb1-492e-a0b7-37dc1287f674] Copying: first/93a91e4752954b669a3a924ee9a82a19-large.png => second/93a91e4752954b669a3a924ee9a82a19-large.png [ActiveJob] [Attachs::Jobs::UpdateJob] [91973249-dbb1-492e-a0b7-37dc1287f674] SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"tiny":"second/93a91e4752954b669a3a924ee9a82a19-tiny.png","large":"second/93a91e4752954b669a3a924ee9a82a19-large.png","small":"second/93a91e4752954b669a3a924ee9a82a19-small.png","medium":"second/93a91e4752954b669a3a924ee9a82a19-medium.png","original":"second/93a91e4752954b669a3a924ee9a82a19-original.png"},"old_paths":["first/93a91e4752954b669a3a924ee9a82a19-original.png","first/93a91e4752954b669a3a924ee9a82a19-tiny.png","first/93a91e4752954b669a3a924ee9a82a19-small.png","first/93a91e4752954b669a3a924ee9a82a19-medium.png","first/93a91e4752954b669a3a924ee9a82a19-large.png"],"id":"93a91e4752954b669a3a924ee9a82a19","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-11-20T13:04:43.742-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 151]] [ActiveJob] [Attachs::Jobs::UpdateJob] [91973249-dbb1-492e-a0b7-37dc1287f674] Performed Attachs::Jobs::UpdateJob from Inline(default) in 2963.46ms [ActiveJob] Enqueued Attachs::Jobs::UpdateJob (Job ID: 91973249-dbb1-492e-a0b7-37dc1287f674) to Inline(default) with arguments: gid://dummy/Shop/151, "logo" Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-1wdyqay.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-nt83bn.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"ff14aa43d1b94f8e80ba87d1f33474a5\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T13:04:51.016-03:00\",\"paths\":{\"original\":\"ff14aa43d1b94f8e80ba87d1f33474a5-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725},{\"id\":\"9837d221ed664f69a7094b99a6e23709\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T13:04:51.016-03:00\",\"paths\":{\"original\":\"9837d221ed664f69a7094b99a6e23709-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-11-20 16:04:51.017516"], ["updated_at", "2016-11-20 16:04:51.017516"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-1wdyqay.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-nc6j5e.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-nc6j5e.jpg => ff14aa43d1b94f8e80ba87d1f33474a5-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-nt83bn.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1u3ngoa.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1u3ngoa.jpg => 9837d221ed664f69a7094b99a6e23709-original.jpg  (27.3ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/93a91e4752954b669a3a924ee9a82a19-original.png' OR old_paths.value = 'first/93a91e4752954b669a3a924ee9a82a19-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/93a91e4752954b669a3a924ee9a82a19-original.png' OR old_paths.value = 'first/93a91e4752954b669a3a924ee9a82a19-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/93a91e4752954b669a3a924ee9a82a19-original.png' OR old_paths.value = 'first/93a91e4752954b669a3a924ee9a82a19-original.png')  (0.7ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/93a91e4752954b669a3a924ee9a82a19-original.png' OR old_paths.value = 'first/93a91e4752954b669a3a924ee9a82a19-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/93a91e4752954b669a3a924ee9a82a19-original.png' OR old_paths.value = 'first/93a91e4752954b669a3a924ee9a82a19-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/93a91e4752954b669a3a924ee9a82a19-original.png' OR old_paths.value = 'first/93a91e4752954b669a3a924ee9a82a19-original.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'ff14aa43d1b94f8e80ba87d1f33474a5-original.jpg' OR old_paths.value = 'ff14aa43d1b94f8e80ba87d1f33474a5-original.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'ff14aa43d1b94f8e80ba87d1f33474a5-original.jpg' OR old_paths.value = 'ff14aa43d1b94f8e80ba87d1f33474a5-original.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'ff14aa43d1b94f8e80ba87d1f33474a5-original.jpg' OR old_paths.value = 'ff14aa43d1b94f8e80ba87d1f33474a5-original.jpg') [ActiveJob] [Attachs::Jobs::DeleteJob] [642a8e6d-cf77-4e85-95be-dde81dcc8949] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["first/93a91e4752954b669a3a924ee9a82a19-original.png", "first/93a91e4752954b669a3a924ee9a82a19-tiny.png", "first/93a91e4752954b669a3a924ee9a82a19-small.png", "first/93a91e4752954b669a3a924ee9a82a19-medium.png", "first/93a91e4752954b669a3a924ee9a82a19-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [642a8e6d-cf77-4e85-95be-dde81dcc8949] Deleting: first/93a91e4752954b669a3a924ee9a82a19-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [642a8e6d-cf77-4e85-95be-dde81dcc8949] Deleting: first/93a91e4752954b669a3a924ee9a82a19-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [642a8e6d-cf77-4e85-95be-dde81dcc8949] Deleting: first/93a91e4752954b669a3a924ee9a82a19-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [642a8e6d-cf77-4e85-95be-dde81dcc8949] Deleting: first/93a91e4752954b669a3a924ee9a82a19-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [642a8e6d-cf77-4e85-95be-dde81dcc8949] Deleting: first/93a91e4752954b669a3a924ee9a82a19-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [642a8e6d-cf77-4e85-95be-dde81dcc8949] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2106.2ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 642a8e6d-cf77-4e85-95be-dde81dcc8949) to Inline(default) with arguments: ["first/93a91e4752954b669a3a924ee9a82a19-original.png", "first/93a91e4752954b669a3a924ee9a82a19-tiny.png", "first/93a91e4752954b669a3a924ee9a82a19-small.png", "first/93a91e4752954b669a3a924ee9a82a19-medium.png", "first/93a91e4752954b669a3a924ee9a82a19-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [4f672e80-359d-41a3-abf7-bae9dc9dce8d] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["ff14aa43d1b94f8e80ba87d1f33474a5-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [4f672e80-359d-41a3-abf7-bae9dc9dce8d] Deleting: ff14aa43d1b94f8e80ba87d1f33474a5-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [4f672e80-359d-41a3-abf7-bae9dc9dce8d] Performed Attachs::Jobs::DeleteJob from Inline(default) in 512.55ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 4f672e80-359d-41a3-abf7-bae9dc9dce8d) to Inline(default) with arguments: ["ff14aa43d1b94f8e80ba87d1f33474a5-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [a6f3e416-878b-4ae9-a26a-6fc5b955fe28] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["9837d221ed664f69a7094b99a6e23709-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [a6f3e416-878b-4ae9-a26a-6fc5b955fe28] Deleting: 9837d221ed664f69a7094b99a6e23709-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [a6f3e416-878b-4ae9-a26a-6fc5b955fe28] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2146.02ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: a6f3e416-878b-4ae9-a26a-6fc5b955fe28) to Inline(default) with arguments: ["9837d221ed664f69a7094b99a6e23709-original.jpg"]  (0.3ms) ROLLBACK  (0.2ms) BEGIN --------------------------- HelperTest: test_fields_for --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-pyj053.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"e350d95ca1134b319d04c0f985c91cc9\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T13:04:56.942-03:00\",\"paths\":{\"original\":\"e350d95ca1134b319d04c0f985c91cc9-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-11-20 16:04:56.943095"], ["updated_at", "2016-11-20 16:04:56.943095"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-pyj053.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-c1yp5p.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-c1yp5p.jpg => e350d95ca1134b319d04c0f985c91cc9-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [2fea30ac-2f65-4ba2-9394-c3a310b9351a] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["e350d95ca1134b319d04c0f985c91cc9-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [2fea30ac-2f65-4ba2-9394-c3a310b9351a] Deleting: e350d95ca1134b319d04c0f985c91cc9-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [2fea30ac-2f65-4ba2-9394-c3a310b9351a] Performed Attachs::Jobs::DeleteJob from Inline(default) in 393.95ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 2fea30ac-2f65-4ba2-9394-c3a310b9351a) to Inline(default) with arguments: ["e350d95ca1134b319d04c0f985c91cc9-original.jpg"]  (0.3ms) ROLLBACK  (0.1ms) BEGIN --------------------- TasksTest: test_clear --------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-1wzlfez.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"c9d44c7f03c9410a8b756b9e33701164\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T13:04:57.990-03:00\",\"paths\":{\"original\":\"c9d44c7f03c9410a8b756b9e33701164-original.png\",\"tiny\":\"c9d44c7f03c9410a8b756b9e33701164-tiny.png\",\"small\":\"c9d44c7f03c9410a8b756b9e33701164-small.png\",\"medium\":\"c9d44c7f03c9410a8b756b9e33701164-medium.png\",\"large\":\"c9d44c7f03c9410a8b756b9e33701164-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-11-20 16:04:57.991078"], ["updated_at", "2016-11-20 16:04:57.991078"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-1wzlfez.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1alvjw2.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1alvjw2.png => c9d44c7f03c9410a8b756b9e33701164-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-1wzlfez.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-5ct2kv.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-5ct2kv.png => c9d44c7f03c9410a8b756b9e33701164-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-1wzlfez.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-ooxur.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-ooxur.png => c9d44c7f03c9410a8b756b9e33701164-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-1wzlfez.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-18t9635.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-18t9635.png => c9d44c7f03c9410a8b756b9e33701164-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-1wzlfez.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1b3jefl.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1b3jefl.png => c9d44c7f03c9410a8b756b9e33701164-large.png Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-15jsx3t.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"13fca99f93b74249acc5b7b475fe39e1\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T13:05:05.236-03:00\",\"paths\":{\"original\":\"13fca99f93b74249acc5b7b475fe39e1-original.png\",\"tiny\":\"13fca99f93b74249acc5b7b475fe39e1-tiny.png\",\"small\":\"13fca99f93b74249acc5b7b475fe39e1-small.png\",\"medium\":\"13fca99f93b74249acc5b7b475fe39e1-medium.png\",\"large\":\"13fca99f93b74249acc5b7b475fe39e1-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-11-20 16:05:05.236675"], ["updated_at", "2016-11-20 16:05:05.236675"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-15jsx3t.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-s64tfm.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-s64tfm.png => 13fca99f93b74249acc5b7b475fe39e1-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-15jsx3t.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-tcjdg7.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-tcjdg7.png => 13fca99f93b74249acc5b7b475fe39e1-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-15jsx3t.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-18ppsid.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-18ppsid.png => 13fca99f93b74249acc5b7b475fe39e1-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-15jsx3t.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1xgxgyi.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1xgxgyi.png => 13fca99f93b74249acc5b7b475fe39e1-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-15jsx3t.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1hgvw47.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1hgvw47.png => 13fca99f93b74249acc5b7b475fe39e1-large.png SQL (0.2ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 153]]  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '13fca99f93b74249acc5b7b475fe39e1-large.png' OR old_paths.value = '13fca99f93b74249acc5b7b475fe39e1-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '13fca99f93b74249acc5b7b475fe39e1-large.png' OR old_paths.value = '13fca99f93b74249acc5b7b475fe39e1-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '13fca99f93b74249acc5b7b475fe39e1-large.png' OR old_paths.value = '13fca99f93b74249acc5b7b475fe39e1-large.png') Deleting 13fca99f93b74249acc5b7b475fe39e1-large.png Deleting: 13fca99f93b74249acc5b7b475fe39e1-large.png  (0.9ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '13fca99f93b74249acc5b7b475fe39e1-medium.png' OR old_paths.value = '13fca99f93b74249acc5b7b475fe39e1-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '13fca99f93b74249acc5b7b475fe39e1-medium.png' OR old_paths.value = '13fca99f93b74249acc5b7b475fe39e1-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '13fca99f93b74249acc5b7b475fe39e1-medium.png' OR old_paths.value = '13fca99f93b74249acc5b7b475fe39e1-medium.png') Deleting 13fca99f93b74249acc5b7b475fe39e1-medium.png Deleting: 13fca99f93b74249acc5b7b475fe39e1-medium.png  (4.2ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '13fca99f93b74249acc5b7b475fe39e1-original.png' OR old_paths.value = '13fca99f93b74249acc5b7b475fe39e1-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '13fca99f93b74249acc5b7b475fe39e1-original.png' OR old_paths.value = '13fca99f93b74249acc5b7b475fe39e1-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '13fca99f93b74249acc5b7b475fe39e1-original.png' OR old_paths.value = '13fca99f93b74249acc5b7b475fe39e1-original.png') Deleting 13fca99f93b74249acc5b7b475fe39e1-original.png Deleting: 13fca99f93b74249acc5b7b475fe39e1-original.png  (0.7ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '13fca99f93b74249acc5b7b475fe39e1-small.png' OR old_paths.value = '13fca99f93b74249acc5b7b475fe39e1-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '13fca99f93b74249acc5b7b475fe39e1-small.png' OR old_paths.value = '13fca99f93b74249acc5b7b475fe39e1-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '13fca99f93b74249acc5b7b475fe39e1-small.png' OR old_paths.value = '13fca99f93b74249acc5b7b475fe39e1-small.png') Deleting 13fca99f93b74249acc5b7b475fe39e1-small.png Deleting: 13fca99f93b74249acc5b7b475fe39e1-small.png  (1.1ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '13fca99f93b74249acc5b7b475fe39e1-tiny.png' OR old_paths.value = '13fca99f93b74249acc5b7b475fe39e1-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '13fca99f93b74249acc5b7b475fe39e1-tiny.png' OR old_paths.value = '13fca99f93b74249acc5b7b475fe39e1-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '13fca99f93b74249acc5b7b475fe39e1-tiny.png' OR old_paths.value = '13fca99f93b74249acc5b7b475fe39e1-tiny.png') Deleting 13fca99f93b74249acc5b7b475fe39e1-tiny.png Deleting: 13fca99f93b74249acc5b7b475fe39e1-tiny.png  (1.2ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c9d44c7f03c9410a8b756b9e33701164-large.png' OR old_paths.value = 'c9d44c7f03c9410a8b756b9e33701164-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c9d44c7f03c9410a8b756b9e33701164-large.png' OR old_paths.value = 'c9d44c7f03c9410a8b756b9e33701164-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c9d44c7f03c9410a8b756b9e33701164-large.png' OR old_paths.value = 'c9d44c7f03c9410a8b756b9e33701164-large.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c9d44c7f03c9410a8b756b9e33701164-medium.png' OR old_paths.value = 'c9d44c7f03c9410a8b756b9e33701164-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c9d44c7f03c9410a8b756b9e33701164-medium.png' OR old_paths.value = 'c9d44c7f03c9410a8b756b9e33701164-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c9d44c7f03c9410a8b756b9e33701164-medium.png' OR old_paths.value = 'c9d44c7f03c9410a8b756b9e33701164-medium.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c9d44c7f03c9410a8b756b9e33701164-original.png' OR old_paths.value = 'c9d44c7f03c9410a8b756b9e33701164-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c9d44c7f03c9410a8b756b9e33701164-original.png' OR old_paths.value = 'c9d44c7f03c9410a8b756b9e33701164-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c9d44c7f03c9410a8b756b9e33701164-original.png' OR old_paths.value = 'c9d44c7f03c9410a8b756b9e33701164-original.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c9d44c7f03c9410a8b756b9e33701164-small.png' OR old_paths.value = 'c9d44c7f03c9410a8b756b9e33701164-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c9d44c7f03c9410a8b756b9e33701164-small.png' OR old_paths.value = 'c9d44c7f03c9410a8b756b9e33701164-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c9d44c7f03c9410a8b756b9e33701164-small.png' OR old_paths.value = 'c9d44c7f03c9410a8b756b9e33701164-small.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c9d44c7f03c9410a8b756b9e33701164-tiny.png' OR old_paths.value = 'c9d44c7f03c9410a8b756b9e33701164-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c9d44c7f03c9410a8b756b9e33701164-tiny.png' OR old_paths.value = 'c9d44c7f03c9410a8b756b9e33701164-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c9d44c7f03c9410a8b756b9e33701164-tiny.png' OR old_paths.value = 'c9d44c7f03c9410a8b756b9e33701164-tiny.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/038ae083f90d40fe979ef5f2a0c0063d-large.png' OR old_paths.value = 'second/038ae083f90d40fe979ef5f2a0c0063d-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/038ae083f90d40fe979ef5f2a0c0063d-large.png' OR old_paths.value = 'second/038ae083f90d40fe979ef5f2a0c0063d-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/038ae083f90d40fe979ef5f2a0c0063d-large.png' OR old_paths.value = 'second/038ae083f90d40fe979ef5f2a0c0063d-large.png') Deleting second/038ae083f90d40fe979ef5f2a0c0063d-large.png Deleting: second/038ae083f90d40fe979ef5f2a0c0063d-large.png  (1.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/038ae083f90d40fe979ef5f2a0c0063d-medium.png' OR old_paths.value = 'second/038ae083f90d40fe979ef5f2a0c0063d-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/038ae083f90d40fe979ef5f2a0c0063d-medium.png' OR old_paths.value = 'second/038ae083f90d40fe979ef5f2a0c0063d-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/038ae083f90d40fe979ef5f2a0c0063d-medium.png' OR old_paths.value = 'second/038ae083f90d40fe979ef5f2a0c0063d-medium.png') Deleting second/038ae083f90d40fe979ef5f2a0c0063d-medium.png Deleting: second/038ae083f90d40fe979ef5f2a0c0063d-medium.png  (0.8ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/038ae083f90d40fe979ef5f2a0c0063d-original.png' OR old_paths.value = 'second/038ae083f90d40fe979ef5f2a0c0063d-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/038ae083f90d40fe979ef5f2a0c0063d-original.png' OR old_paths.value = 'second/038ae083f90d40fe979ef5f2a0c0063d-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/038ae083f90d40fe979ef5f2a0c0063d-original.png' OR old_paths.value = 'second/038ae083f90d40fe979ef5f2a0c0063d-original.png') Deleting second/038ae083f90d40fe979ef5f2a0c0063d-original.png Deleting: second/038ae083f90d40fe979ef5f2a0c0063d-original.png  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/038ae083f90d40fe979ef5f2a0c0063d-small.png' OR old_paths.value = 'second/038ae083f90d40fe979ef5f2a0c0063d-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/038ae083f90d40fe979ef5f2a0c0063d-small.png' OR old_paths.value = 'second/038ae083f90d40fe979ef5f2a0c0063d-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/038ae083f90d40fe979ef5f2a0c0063d-small.png' OR old_paths.value = 'second/038ae083f90d40fe979ef5f2a0c0063d-small.png') Deleting second/038ae083f90d40fe979ef5f2a0c0063d-small.png Deleting: second/038ae083f90d40fe979ef5f2a0c0063d-small.png  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/038ae083f90d40fe979ef5f2a0c0063d-tiny.png' OR old_paths.value = 'second/038ae083f90d40fe979ef5f2a0c0063d-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/038ae083f90d40fe979ef5f2a0c0063d-tiny.png' OR old_paths.value = 'second/038ae083f90d40fe979ef5f2a0c0063d-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/038ae083f90d40fe979ef5f2a0c0063d-tiny.png' OR old_paths.value = 'second/038ae083f90d40fe979ef5f2a0c0063d-tiny.png') Deleting second/038ae083f90d40fe979ef5f2a0c0063d-tiny.png Deleting: second/038ae083f90d40fe979ef5f2a0c0063d-tiny.png  (0.8ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/93a91e4752954b669a3a924ee9a82a19-large.png' OR old_paths.value = 'second/93a91e4752954b669a3a924ee9a82a19-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/93a91e4752954b669a3a924ee9a82a19-large.png' OR old_paths.value = 'second/93a91e4752954b669a3a924ee9a82a19-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/93a91e4752954b669a3a924ee9a82a19-large.png' OR old_paths.value = 'second/93a91e4752954b669a3a924ee9a82a19-large.png') Deleting second/93a91e4752954b669a3a924ee9a82a19-large.png Deleting: second/93a91e4752954b669a3a924ee9a82a19-large.png  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/93a91e4752954b669a3a924ee9a82a19-medium.png' OR old_paths.value = 'second/93a91e4752954b669a3a924ee9a82a19-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/93a91e4752954b669a3a924ee9a82a19-medium.png' OR old_paths.value = 'second/93a91e4752954b669a3a924ee9a82a19-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/93a91e4752954b669a3a924ee9a82a19-medium.png' OR old_paths.value = 'second/93a91e4752954b669a3a924ee9a82a19-medium.png') Deleting second/93a91e4752954b669a3a924ee9a82a19-medium.png Deleting: second/93a91e4752954b669a3a924ee9a82a19-medium.png  (0.7ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/93a91e4752954b669a3a924ee9a82a19-original.png' OR old_paths.value = 'second/93a91e4752954b669a3a924ee9a82a19-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/93a91e4752954b669a3a924ee9a82a19-original.png' OR old_paths.value = 'second/93a91e4752954b669a3a924ee9a82a19-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/93a91e4752954b669a3a924ee9a82a19-original.png' OR old_paths.value = 'second/93a91e4752954b669a3a924ee9a82a19-original.png') Deleting second/93a91e4752954b669a3a924ee9a82a19-original.png Deleting: second/93a91e4752954b669a3a924ee9a82a19-original.png  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/93a91e4752954b669a3a924ee9a82a19-small.png' OR old_paths.value = 'second/93a91e4752954b669a3a924ee9a82a19-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/93a91e4752954b669a3a924ee9a82a19-small.png' OR old_paths.value = 'second/93a91e4752954b669a3a924ee9a82a19-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/93a91e4752954b669a3a924ee9a82a19-small.png' OR old_paths.value = 'second/93a91e4752954b669a3a924ee9a82a19-small.png') Deleting second/93a91e4752954b669a3a924ee9a82a19-small.png Deleting: second/93a91e4752954b669a3a924ee9a82a19-small.png  (1.0ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/93a91e4752954b669a3a924ee9a82a19-tiny.png' OR old_paths.value = 'second/93a91e4752954b669a3a924ee9a82a19-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/93a91e4752954b669a3a924ee9a82a19-tiny.png' OR old_paths.value = 'second/93a91e4752954b669a3a924ee9a82a19-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/93a91e4752954b669a3a924ee9a82a19-tiny.png' OR old_paths.value = 'second/93a91e4752954b669a3a924ee9a82a19-tiny.png') Deleting second/93a91e4752954b669a3a924ee9a82a19-tiny.png Deleting: second/93a91e4752954b669a3a924ee9a82a19-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [79cf2798-06f3-44ed-b30f-d352b0b2ed65] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["c9d44c7f03c9410a8b756b9e33701164-original.png", "c9d44c7f03c9410a8b756b9e33701164-tiny.png", "c9d44c7f03c9410a8b756b9e33701164-small.png", "c9d44c7f03c9410a8b756b9e33701164-medium.png", "c9d44c7f03c9410a8b756b9e33701164-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [79cf2798-06f3-44ed-b30f-d352b0b2ed65] Deleting: c9d44c7f03c9410a8b756b9e33701164-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [79cf2798-06f3-44ed-b30f-d352b0b2ed65] Deleting: c9d44c7f03c9410a8b756b9e33701164-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [79cf2798-06f3-44ed-b30f-d352b0b2ed65] Deleting: c9d44c7f03c9410a8b756b9e33701164-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [79cf2798-06f3-44ed-b30f-d352b0b2ed65] Deleting: c9d44c7f03c9410a8b756b9e33701164-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [79cf2798-06f3-44ed-b30f-d352b0b2ed65] Deleting: c9d44c7f03c9410a8b756b9e33701164-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [79cf2798-06f3-44ed-b30f-d352b0b2ed65] Performed Attachs::Jobs::DeleteJob from Inline(default) in 3068.94ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 79cf2798-06f3-44ed-b30f-d352b0b2ed65) to Inline(default) with arguments: ["c9d44c7f03c9410a8b756b9e33701164-original.png", "c9d44c7f03c9410a8b756b9e33701164-tiny.png", "c9d44c7f03c9410a8b756b9e33701164-small.png", "c9d44c7f03c9410a8b756b9e33701164-medium.png", "c9d44c7f03c9410a8b756b9e33701164-large.png"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- TasksTest: test_fix_missings ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-7stota.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"7d79dedcd44647ddba20b8eb2f22d06a\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T13:05:29.744-03:00\",\"paths\":{\"original\":\"7d79dedcd44647ddba20b8eb2f22d06a-original.png\",\"tiny\":\"7d79dedcd44647ddba20b8eb2f22d06a-tiny.png\",\"small\":\"7d79dedcd44647ddba20b8eb2f22d06a-small.png\",\"medium\":\"7d79dedcd44647ddba20b8eb2f22d06a-medium.png\",\"large\":\"7d79dedcd44647ddba20b8eb2f22d06a-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-11-20 16:05:29.744982"], ["updated_at", "2016-11-20 16:05:29.744982"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-7stota.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1qfbqz9.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1qfbqz9.png => 7d79dedcd44647ddba20b8eb2f22d06a-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-7stota.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-5gcxkz.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-5gcxkz.png => 7d79dedcd44647ddba20b8eb2f22d06a-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-7stota.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1utmlu7.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1utmlu7.png => 7d79dedcd44647ddba20b8eb2f22d06a-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-7stota.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-hjasdg.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-hjasdg.png => 7d79dedcd44647ddba20b8eb2f22d06a-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-7stota.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-16up910.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-16up910.png => 7d79dedcd44647ddba20b8eb2f22d06a-large.png Deleting: 7d79dedcd44647ddba20b8eb2f22d06a-tiny.png Deleting: 7d79dedcd44647ddba20b8eb2f22d06a-small.png Shop Load (2.8ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Fix missings of Shop #154 => logo Generating: tiny => 7d79dedcd44647ddba20b8eb2f22d06a-tiny.png Generating: small => 7d79dedcd44647ddba20b8eb2f22d06a-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1i0szrg.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-dlapqn.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-dlapqn.png => 7d79dedcd44647ddba20b8eb2f22d06a-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1i0szrg.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-16ma3o4.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-16ma3o4.png => 7d79dedcd44647ddba20b8eb2f22d06a-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1i0szrg.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1pinoq2.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1pinoq2.png => 7d79dedcd44647ddba20b8eb2f22d06a-small.png ConcernTest::Subclass Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Fix missings of Shop #154 => logo ConcernTest::Subclass Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 [ActiveJob] [Attachs::Jobs::DeleteJob] [0dcf5290-7b53-4999-a0cb-0785bd8b62ac] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["7d79dedcd44647ddba20b8eb2f22d06a-original.png", "7d79dedcd44647ddba20b8eb2f22d06a-tiny.png", "7d79dedcd44647ddba20b8eb2f22d06a-small.png", "7d79dedcd44647ddba20b8eb2f22d06a-medium.png", "7d79dedcd44647ddba20b8eb2f22d06a-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [0dcf5290-7b53-4999-a0cb-0785bd8b62ac] Deleting: 7d79dedcd44647ddba20b8eb2f22d06a-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [0dcf5290-7b53-4999-a0cb-0785bd8b62ac] Deleting: 7d79dedcd44647ddba20b8eb2f22d06a-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [0dcf5290-7b53-4999-a0cb-0785bd8b62ac] Deleting: 7d79dedcd44647ddba20b8eb2f22d06a-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [0dcf5290-7b53-4999-a0cb-0785bd8b62ac] Deleting: 7d79dedcd44647ddba20b8eb2f22d06a-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [0dcf5290-7b53-4999-a0cb-0785bd8b62ac] Deleting: 7d79dedcd44647ddba20b8eb2f22d06a-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [0dcf5290-7b53-4999-a0cb-0785bd8b62ac] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2662.72ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 0dcf5290-7b53-4999-a0cb-0785bd8b62ac) to Inline(default) with arguments: ["7d79dedcd44647ddba20b8eb2f22d06a-original.png", "7d79dedcd44647ddba20b8eb2f22d06a-tiny.png", "7d79dedcd44647ddba20b8eb2f22d06a-small.png", "7d79dedcd44647ddba20b8eb2f22d06a-medium.png", "7d79dedcd44647ddba20b8eb2f22d06a-large.png"]  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------- TasksTest: test_reprocess ------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-6waggo.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"77787a7fac9c406bb87e444f1d3cb287\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T13:05:49.380-03:00\",\"paths\":{\"original\":\"77787a7fac9c406bb87e444f1d3cb287-original.png\",\"tiny\":\"77787a7fac9c406bb87e444f1d3cb287-tiny.png\",\"small\":\"77787a7fac9c406bb87e444f1d3cb287-small.png\",\"medium\":\"77787a7fac9c406bb87e444f1d3cb287-medium.png\",\"large\":\"77787a7fac9c406bb87e444f1d3cb287-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-11-20 16:05:49.381691"], ["updated_at", "2016-11-20 16:05:49.381691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-6waggo.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1krvqiy.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1krvqiy.png => 77787a7fac9c406bb87e444f1d3cb287-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-6waggo.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-18lxt6a.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-18lxt6a.png => 77787a7fac9c406bb87e444f1d3cb287-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-6waggo.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-jfcuof.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-jfcuof.png => 77787a7fac9c406bb87e444f1d3cb287-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-6waggo.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-vsrpif.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-vsrpif.png => 77787a7fac9c406bb87e444f1d3cb287-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-6waggo.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1i5hhxh.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1i5hhxh.png => 77787a7fac9c406bb87e444f1d3cb287-large.png Deleting: 77787a7fac9c406bb87e444f1d3cb287-tiny.png Deleting: 77787a7fac9c406bb87e444f1d3cb287-small.png Deleting: 77787a7fac9c406bb87e444f1d3cb287-medium.png Deleting: 77787a7fac9c406bb87e444f1d3cb287-large.png Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Reprocessing Shop #155 => logo Regenerating: tiny => 77787a7fac9c406bb87e444f1d3cb287-tiny.png Regenerating: large => 77787a7fac9c406bb87e444f1d3cb287-large.png Regenerating: small => 77787a7fac9c406bb87e444f1d3cb287-small.png Regenerating: medium => 77787a7fac9c406bb87e444f1d3cb287-medium.png Deleting: 77787a7fac9c406bb87e444f1d3cb287-original.png Regenerating: original => 77787a7fac9c406bb87e444f1d3cb287-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1txn21t.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-4pgygq.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-4pgygq.png => 77787a7fac9c406bb87e444f1d3cb287-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1txn21t.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-10vekts.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-10vekts.png => 77787a7fac9c406bb87e444f1d3cb287-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1txn21t.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-105dp9f.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-105dp9f.png => 77787a7fac9c406bb87e444f1d3cb287-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1txn21t.png' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1ojqhdy.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1ojqhdy.png => 77787a7fac9c406bb87e444f1d3cb287-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1txn21t.png' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1xrxtef.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1xrxtef.png => 77787a7fac9c406bb87e444f1d3cb287-large.png SQL (5.0ms) UPDATE "shops" SET "logo" = '{"paths":{"original":"77787a7fac9c406bb87e444f1d3cb287-original.png","tiny":"77787a7fac9c406bb87e444f1d3cb287-tiny.png","small":"77787a7fac9c406bb87e444f1d3cb287-small.png","medium":"77787a7fac9c406bb87e444f1d3cb287-medium.png","large":"77787a7fac9c406bb87e444f1d3cb287-large.png"},"old_paths":[],"id":"77787a7fac9c406bb87e444f1d3cb287","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-11-20T13:05:49.380-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 155]] ConcernTest::Subclass Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Reprocessing Shop #155 => logo Deleting: 77787a7fac9c406bb87e444f1d3cb287-tiny.png Regenerating: tiny => 77787a7fac9c406bb87e444f1d3cb287-tiny.png Deleting: 77787a7fac9c406bb87e444f1d3cb287-large.png Regenerating: large => 77787a7fac9c406bb87e444f1d3cb287-large.png Deleting: 77787a7fac9c406bb87e444f1d3cb287-small.png Regenerating: small => 77787a7fac9c406bb87e444f1d3cb287-small.png Deleting: 77787a7fac9c406bb87e444f1d3cb287-medium.png Regenerating: medium => 77787a7fac9c406bb87e444f1d3cb287-medium.png Deleting: 77787a7fac9c406bb87e444f1d3cb287-original.png Regenerating: original => 77787a7fac9c406bb87e444f1d3cb287-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-rheoa5.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1plps24.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1plps24.png => 77787a7fac9c406bb87e444f1d3cb287-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-rheoa5.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1ijm6ul.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1ijm6ul.png => 77787a7fac9c406bb87e444f1d3cb287-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-rheoa5.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1uej1k8.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1uej1k8.png => 77787a7fac9c406bb87e444f1d3cb287-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-rheoa5.png' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-10q7hbr.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-10q7hbr.png => 77787a7fac9c406bb87e444f1d3cb287-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-rheoa5.png' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1mzyc8r.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1mzyc8r.png => 77787a7fac9c406bb87e444f1d3cb287-large.png SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"original":"77787a7fac9c406bb87e444f1d3cb287-original.png","tiny":"77787a7fac9c406bb87e444f1d3cb287-tiny.png","small":"77787a7fac9c406bb87e444f1d3cb287-small.png","medium":"77787a7fac9c406bb87e444f1d3cb287-medium.png","large":"77787a7fac9c406bb87e444f1d3cb287-large.png"},"old_paths":[],"id":"77787a7fac9c406bb87e444f1d3cb287","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-11-20T13:05:49.380-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 155]] ConcernTest::Subclass Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Reprocessing Shop #155 => logo Deleting: 77787a7fac9c406bb87e444f1d3cb287-tiny.png Regenerating: tiny => 77787a7fac9c406bb87e444f1d3cb287-tiny.png Deleting: 77787a7fac9c406bb87e444f1d3cb287-large.png Regenerating: large => 77787a7fac9c406bb87e444f1d3cb287-large.png Deleting: 77787a7fac9c406bb87e444f1d3cb287-small.png Regenerating: small => 77787a7fac9c406bb87e444f1d3cb287-small.png Deleting: 77787a7fac9c406bb87e444f1d3cb287-medium.png Regenerating: medium => 77787a7fac9c406bb87e444f1d3cb287-medium.png Deleting: 77787a7fac9c406bb87e444f1d3cb287-original.png Regenerating: original => 77787a7fac9c406bb87e444f1d3cb287-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-b6hach.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1pl9t2.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1pl9t2.png => 77787a7fac9c406bb87e444f1d3cb287-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-b6hach.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-19dfj12.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-19dfj12.png => 77787a7fac9c406bb87e444f1d3cb287-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-b6hach.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-pr9wfn.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-pr9wfn.png => 77787a7fac9c406bb87e444f1d3cb287-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-b6hach.png' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-17rfp07.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-17rfp07.png => 77787a7fac9c406bb87e444f1d3cb287-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-b6hach.png' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1ubr1db.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1ubr1db.png => 77787a7fac9c406bb87e444f1d3cb287-large.png SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"original":"77787a7fac9c406bb87e444f1d3cb287-original.png","tiny":"77787a7fac9c406bb87e444f1d3cb287-tiny.png","small":"77787a7fac9c406bb87e444f1d3cb287-small.png","medium":"77787a7fac9c406bb87e444f1d3cb287-medium.png","large":"77787a7fac9c406bb87e444f1d3cb287-large.png"},"old_paths":[],"id":"77787a7fac9c406bb87e444f1d3cb287","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-11-20T13:05:49.380-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 155]] ConcernTest::Subclass Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 155]] [ActiveJob] [Attachs::Jobs::DeleteJob] [45ca88b2-3431-427c-a582-517fba02f1f6] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["77787a7fac9c406bb87e444f1d3cb287-tiny.png", "77787a7fac9c406bb87e444f1d3cb287-large.png", "77787a7fac9c406bb87e444f1d3cb287-small.png", "77787a7fac9c406bb87e444f1d3cb287-medium.png", "77787a7fac9c406bb87e444f1d3cb287-original.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [45ca88b2-3431-427c-a582-517fba02f1f6] Deleting: 77787a7fac9c406bb87e444f1d3cb287-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [45ca88b2-3431-427c-a582-517fba02f1f6] Deleting: 77787a7fac9c406bb87e444f1d3cb287-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [45ca88b2-3431-427c-a582-517fba02f1f6] Deleting: 77787a7fac9c406bb87e444f1d3cb287-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [45ca88b2-3431-427c-a582-517fba02f1f6] Deleting: 77787a7fac9c406bb87e444f1d3cb287-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [45ca88b2-3431-427c-a582-517fba02f1f6] Deleting: 77787a7fac9c406bb87e444f1d3cb287-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [45ca88b2-3431-427c-a582-517fba02f1f6] Performed Attachs::Jobs::DeleteJob from Inline(default) in 5933.55ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 45ca88b2-3431-427c-a582-517fba02f1f6) to Inline(default) with arguments: ["77787a7fac9c406bb87e444f1d3cb287-tiny.png", "77787a7fac9c406bb87e444f1d3cb287-large.png", "77787a7fac9c406bb87e444f1d3cb287-small.png", "77787a7fac9c406bb87e444f1d3cb287-medium.png", "77787a7fac9c406bb87e444f1d3cb287-original.png"]  (0.3ms) ROLLBACK  (0.2ms) BEGIN ---------------------------- ValidatorsTest: test_size_in ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161120-1660-gn56ia.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-g7659n.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161120-1660-c50b8n.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-draz5a.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-dev2ra.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidatorsTest: test_methods ----------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidatorsTest: test_content_type_with -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-1ffzto2.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-1vkf1jq.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-ko2p15.jpg'  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------- ValidatorsTest: test_size_less_than ----------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161120-1660-1747ar.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-1slby6k.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-1n28kj9.jpg'  (0.3ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------ ValidatorsTest: test_content_type_in ------------------------------------ Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-136tvus.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-tqstr7.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-1slx1up.jpg'  (0.3ms) ROLLBACK  (0.2ms) BEGIN -------------------------------- ValidatorsTest: test_size_within -------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161120-1660-r71tld.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-15754cd.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161120-1660-ooih92.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-1xqb6kn.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-e0o2tn.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidatorsTest: test_size_greater_than -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161120-1660-1lyv0ng.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-ras5dk.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-1gm7nxj.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- ValidatorsTest: test_content_type_within ---------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-1i57uxn.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-1ybrn05.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-ly1dby.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------- UploadTest: test_upload ----------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-1vhenu7.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (7.1ms) INSERT INTO "uploads" ("file", "record_type", "record_attribute", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "{\"id\":\"e858b77304004d119a68d47a691b1fb0\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T13:06:49.592-03:00\",\"paths\":{\"original\":\"e858b77304004d119a68d47a691b1fb0-original.jpg\",\"tiny\":\"e858b77304004d119a68d47a691b1fb0-tiny.jpg\",\"small\":\"e858b77304004d119a68d47a691b1fb0-small.jpg\",\"medium\":\"e858b77304004d119a68d47a691b1fb0-medium.jpg\",\"large\":\"e858b77304004d119a68d47a691b1fb0-large.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["record_type", "Shop"], ["record_attribute", "logo"], ["created_at", "2016-11-20 16:06:49.593049"], ["updated_at", "2016-11-20 16:06:49.593049"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-1vhenu7.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-or671e.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-or671e.jpg => e858b77304004d119a68d47a691b1fb0-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-1vhenu7.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-7irxb1.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-7irxb1.jpg => e858b77304004d119a68d47a691b1fb0-tiny.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-1vhenu7.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-b69sev.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-b69sev.jpg => e858b77304004d119a68d47a691b1fb0-small.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-1vhenu7.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-w12sex.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-w12sex.jpg => e858b77304004d119a68d47a691b1fb0-medium.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-1vhenu7.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1lr7x4y.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1lr7x4y.jpg => e858b77304004d119a68d47a691b1fb0-large.jpg  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"b67805bed41c4adab5ab36f38242c7dc\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T13:06:53.260-03:00\",\"paths\":{\"original\":\"b67805bed41c4adab5ab36f38242c7dc-original.png\",\"tiny\":\"b67805bed41c4adab5ab36f38242c7dc-tiny.png\",\"small\":\"b67805bed41c4adab5ab36f38242c7dc-small.png\",\"medium\":\"b67805bed41c4adab5ab36f38242c7dc-medium.png\",\"large\":\"b67805bed41c4adab5ab36f38242c7dc-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-11-20 16:06:53.263056"], ["updated_at", "2016-11-20 16:06:53.263056"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1ar4i9n.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-8pw6nm.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-8pw6nm.png => b67805bed41c4adab5ab36f38242c7dc-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1ar4i9n.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-cw51sk.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-cw51sk.png => b67805bed41c4adab5ab36f38242c7dc-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1ar4i9n.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-3emptz.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-3emptz.png => b67805bed41c4adab5ab36f38242c7dc-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1ar4i9n.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-5ujz21.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-5ujz21.png => b67805bed41c4adab5ab36f38242c7dc-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1ar4i9n.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-zrkxiw.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-zrkxiw.png => b67805bed41c4adab5ab36f38242c7dc-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [de0caa25-9409-4a01-bff3-2a62b2cd3287] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["b67805bed41c4adab5ab36f38242c7dc-original.png", "b67805bed41c4adab5ab36f38242c7dc-tiny.png", "b67805bed41c4adab5ab36f38242c7dc-small.png", "b67805bed41c4adab5ab36f38242c7dc-medium.png", "b67805bed41c4adab5ab36f38242c7dc-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [de0caa25-9409-4a01-bff3-2a62b2cd3287] Deleting: b67805bed41c4adab5ab36f38242c7dc-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [de0caa25-9409-4a01-bff3-2a62b2cd3287] Deleting: b67805bed41c4adab5ab36f38242c7dc-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [de0caa25-9409-4a01-bff3-2a62b2cd3287] Deleting: b67805bed41c4adab5ab36f38242c7dc-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [de0caa25-9409-4a01-bff3-2a62b2cd3287] Deleting: b67805bed41c4adab5ab36f38242c7dc-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [de0caa25-9409-4a01-bff3-2a62b2cd3287] Deleting: b67805bed41c4adab5ab36f38242c7dc-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [de0caa25-9409-4a01-bff3-2a62b2cd3287] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2764.3ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: de0caa25-9409-4a01-bff3-2a62b2cd3287) to Inline(default) with arguments: ["b67805bed41c4adab5ab36f38242c7dc-original.png", "b67805bed41c4adab5ab36f38242c7dc-tiny.png", "b67805bed41c4adab5ab36f38242c7dc-small.png", "b67805bed41c4adab5ab36f38242c7dc-medium.png", "b67805bed41c4adab5ab36f38242c7dc-large.png"] Upload Load (0.3ms) SELECT "uploads".* FROM "uploads" WHERE "uploads"."id" = $1 LIMIT 1 [["id", 13]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"paths\":{\"original\":\"3df40c946a7b4ef8a1fb0c33c777710f-original.png\",\"tiny\":\"3df40c946a7b4ef8a1fb0c33c777710f-tiny.png\",\"small\":\"3df40c946a7b4ef8a1fb0c33c777710f-small.png\",\"medium\":\"3df40c946a7b4ef8a1fb0c33c777710f-medium.png\",\"large\":\"3df40c946a7b4ef8a1fb0c33c777710f-large.png\"},\"old_paths\":[],\"id\":\"3df40c946a7b4ef8a1fb0c33c777710f\",\"size\":74474,\"ratio\":0.6725,\"width\":400,\"height\":269,\"filename\":\"image.jpg\",\"uploaded_at\":\"2016-11-20T13:07:25.215-03:00\",\"content_type\":\"image/jpeg\"}"], ["created_at", "2016-11-20 16:07:25.216387"], ["updated_at", "2016-11-20 16:07:25.216387"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Copying: e858b77304004d119a68d47a691b1fb0-tiny.jpg => 3df40c946a7b4ef8a1fb0c33c777710f-tiny.png Copying: e858b77304004d119a68d47a691b1fb0-large.jpg => 3df40c946a7b4ef8a1fb0c33c777710f-large.png Copying: e858b77304004d119a68d47a691b1fb0-small.jpg => 3df40c946a7b4ef8a1fb0c33c777710f-small.png Copying: e858b77304004d119a68d47a691b1fb0-medium.jpg => 3df40c946a7b4ef8a1fb0c33c777710f-medium.png Copying: e858b77304004d119a68d47a691b1fb0-original.jpg => 3df40c946a7b4ef8a1fb0c33c777710f-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [2a7ca368-384e-48b9-bd6d-9b9b62ead048] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["3df40c946a7b4ef8a1fb0c33c777710f-original.png", "3df40c946a7b4ef8a1fb0c33c777710f-tiny.png", "3df40c946a7b4ef8a1fb0c33c777710f-small.png", "3df40c946a7b4ef8a1fb0c33c777710f-medium.png", "3df40c946a7b4ef8a1fb0c33c777710f-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [2a7ca368-384e-48b9-bd6d-9b9b62ead048] Deleting: 3df40c946a7b4ef8a1fb0c33c777710f-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [2a7ca368-384e-48b9-bd6d-9b9b62ead048] Deleting: 3df40c946a7b4ef8a1fb0c33c777710f-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [2a7ca368-384e-48b9-bd6d-9b9b62ead048] Deleting: 3df40c946a7b4ef8a1fb0c33c777710f-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [2a7ca368-384e-48b9-bd6d-9b9b62ead048] Deleting: 3df40c946a7b4ef8a1fb0c33c777710f-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [2a7ca368-384e-48b9-bd6d-9b9b62ead048] Deleting: 3df40c946a7b4ef8a1fb0c33c777710f-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [2a7ca368-384e-48b9-bd6d-9b9b62ead048] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2760.28ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 2a7ca368-384e-48b9-bd6d-9b9b62ead048) to Inline(default) with arguments: ["3df40c946a7b4ef8a1fb0c33c777710f-original.png", "3df40c946a7b4ef8a1fb0c33c777710f-tiny.png", "3df40c946a7b4ef8a1fb0c33c777710f-small.png", "3df40c946a7b4ef8a1fb0c33c777710f-medium.png", "3df40c946a7b4ef8a1fb0c33c777710f-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [aa97a1ab-5145-4a0e-8fc9-1930bc180038] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["e858b77304004d119a68d47a691b1fb0-original.jpg", "e858b77304004d119a68d47a691b1fb0-tiny.jpg", "e858b77304004d119a68d47a691b1fb0-small.jpg", "e858b77304004d119a68d47a691b1fb0-medium.jpg", "e858b77304004d119a68d47a691b1fb0-large.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [aa97a1ab-5145-4a0e-8fc9-1930bc180038] Deleting: e858b77304004d119a68d47a691b1fb0-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [aa97a1ab-5145-4a0e-8fc9-1930bc180038] Deleting: e858b77304004d119a68d47a691b1fb0-tiny.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [aa97a1ab-5145-4a0e-8fc9-1930bc180038] Deleting: e858b77304004d119a68d47a691b1fb0-small.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [aa97a1ab-5145-4a0e-8fc9-1930bc180038] Deleting: e858b77304004d119a68d47a691b1fb0-medium.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [aa97a1ab-5145-4a0e-8fc9-1930bc180038] Deleting: e858b77304004d119a68d47a691b1fb0-large.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [aa97a1ab-5145-4a0e-8fc9-1930bc180038] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2046.04ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: aa97a1ab-5145-4a0e-8fc9-1930bc180038) to Inline(default) with arguments: ["e858b77304004d119a68d47a691b1fb0-original.jpg", "e858b77304004d119a68d47a691b1fb0-tiny.jpg", "e858b77304004d119a68d47a691b1fb0-small.jpg", "e858b77304004d119a68d47a691b1fb0-medium.jpg", "e858b77304004d119a68d47a691b1fb0-large.jpg"]  (0.3ms) ROLLBACK  (0.2ms) BEGIN --------------------------- GeneratorsTest: test_upload ---------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- GeneratorsTest: test_install ----------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- AttachmentTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-1m9hsr.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"0e495cd283fd4e12934781dd7e36b22a\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T13:07:36.493-03:00\",\"paths\":{\"original\":\"0e495cd283fd4e12934781dd7e36b22a-original.png\",\"tiny\":\"0e495cd283fd4e12934781dd7e36b22a-tiny.png\",\"small\":\"0e495cd283fd4e12934781dd7e36b22a-small.png\",\"medium\":\"0e495cd283fd4e12934781dd7e36b22a-medium.png\",\"large\":\"0e495cd283fd4e12934781dd7e36b22a-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-11-20 16:07:36.494178"], ["updated_at", "2016-11-20 16:07:36.494178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-1m9hsr.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1iohvvu.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1iohvvu.png => 0e495cd283fd4e12934781dd7e36b22a-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-1m9hsr.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-16nd5c7.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-16nd5c7.png => 0e495cd283fd4e12934781dd7e36b22a-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-1m9hsr.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-p7bpiu.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-p7bpiu.png => 0e495cd283fd4e12934781dd7e36b22a-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-1m9hsr.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1myy4zv.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1myy4zv.png => 0e495cd283fd4e12934781dd7e36b22a-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-1m9hsr.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-p97vpa.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-p97vpa.png => 0e495cd283fd4e12934781dd7e36b22a-large.png Shop Load (0.4ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 158]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 158]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Attachs::Jobs::DeleteJob] [9654ee18-e6e2-45ee-a1ab-44dc33b6c8dc] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["0e495cd283fd4e12934781dd7e36b22a-tiny.png", "0e495cd283fd4e12934781dd7e36b22a-large.png", "0e495cd283fd4e12934781dd7e36b22a-small.png", "0e495cd283fd4e12934781dd7e36b22a-medium.png", "0e495cd283fd4e12934781dd7e36b22a-original.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [9654ee18-e6e2-45ee-a1ab-44dc33b6c8dc] Deleting: 0e495cd283fd4e12934781dd7e36b22a-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [9654ee18-e6e2-45ee-a1ab-44dc33b6c8dc] Deleting: 0e495cd283fd4e12934781dd7e36b22a-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [9654ee18-e6e2-45ee-a1ab-44dc33b6c8dc] Deleting: 0e495cd283fd4e12934781dd7e36b22a-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [9654ee18-e6e2-45ee-a1ab-44dc33b6c8dc] Deleting: 0e495cd283fd4e12934781dd7e36b22a-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [9654ee18-e6e2-45ee-a1ab-44dc33b6c8dc] Deleting: 0e495cd283fd4e12934781dd7e36b22a-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [9654ee18-e6e2-45ee-a1ab-44dc33b6c8dc] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2856.5ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 9654ee18-e6e2-45ee-a1ab-44dc33b6c8dc) to Inline(default) with arguments: ["0e495cd283fd4e12934781dd7e36b22a-tiny.png", "0e495cd283fd4e12934781dd7e36b22a-large.png", "0e495cd283fd4e12934781dd7e36b22a-small.png", "0e495cd283fd4e12934781dd7e36b22a-medium.png", "0e495cd283fd4e12934781dd7e36b22a-original.png"]  (0.4ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- AttachmentTest: test_nested_attributes -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-ntmc1x.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-pf32i4.jpg'  (0.4ms) ROLLBACK  (0.2ms) BEGIN ---------------------------- AttachmentTest: test_renames ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-iy8b61.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("logo", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["logo", "{\"id\":\"632eb593ed4a42d2ba7a1d038c962a0b\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T13:08:10.911-03:00\",\"paths\":{\"original\":\"anderstons/632eb593ed4a42d2ba7a1d038c962a0b-original.png\",\"tiny\":\"anderstons/632eb593ed4a42d2ba7a1d038c962a0b-tiny.png\",\"small\":\"anderstons/632eb593ed4a42d2ba7a1d038c962a0b-small.png\",\"medium\":\"anderstons/632eb593ed4a42d2ba7a1d038c962a0b-medium.png\",\"large\":\"anderstons/632eb593ed4a42d2ba7a1d038c962a0b-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["name", "Anderstons"], ["created_at", "2016-11-20 16:08:10.912635"], ["updated_at", "2016-11-20 16:08:10.912635"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-iy8b61.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1ckuqwe.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1ckuqwe.png => anderstons/632eb593ed4a42d2ba7a1d038c962a0b-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-iy8b61.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-or0k0p.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-or0k0p.png => anderstons/632eb593ed4a42d2ba7a1d038c962a0b-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-iy8b61.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1h5xujs.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1h5xujs.png => anderstons/632eb593ed4a42d2ba7a1d038c962a0b-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-iy8b61.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1w1sfx5.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-1w1sfx5.png => anderstons/632eb593ed4a42d2ba7a1d038c962a0b-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-1660-iy8b61.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-8wvuhj.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-1660-8wvuhj.png => anderstons/632eb593ed4a42d2ba7a1d038c962a0b-large.png  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "shops" SET "name" = $1, "updated_at" = $2 WHERE "shops"."id" = $3 [["name", "Musicians Friend"], ["updated_at", "2016-11-20 16:08:24.194776"], ["id", 159]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 159]] [ActiveJob] [Attachs::Jobs::UpdateJob] [b52a5bfe-632e-42dc-adee-7b2a7d57beb2] Performing Attachs::Jobs::UpdateJob from Inline(default) with arguments: gid://dummy/Shop/159, "logo" [ActiveJob] [Attachs::Jobs::UpdateJob] [b52a5bfe-632e-42dc-adee-7b2a7d57beb2] Copying: anderstons/632eb593ed4a42d2ba7a1d038c962a0b-original.png => musicians-friend/632eb593ed4a42d2ba7a1d038c962a0b-original.png [ActiveJob] [Attachs::Jobs::UpdateJob] [b52a5bfe-632e-42dc-adee-7b2a7d57beb2] Copying: anderstons/632eb593ed4a42d2ba7a1d038c962a0b-tiny.png => musicians-friend/632eb593ed4a42d2ba7a1d038c962a0b-tiny.png [ActiveJob] [Attachs::Jobs::UpdateJob] [b52a5bfe-632e-42dc-adee-7b2a7d57beb2] Copying: anderstons/632eb593ed4a42d2ba7a1d038c962a0b-small.png => musicians-friend/632eb593ed4a42d2ba7a1d038c962a0b-small.png [ActiveJob] [Attachs::Jobs::UpdateJob] [b52a5bfe-632e-42dc-adee-7b2a7d57beb2] Copying: anderstons/632eb593ed4a42d2ba7a1d038c962a0b-medium.png => musicians-friend/632eb593ed4a42d2ba7a1d038c962a0b-medium.png [ActiveJob] [Attachs::Jobs::UpdateJob] [b52a5bfe-632e-42dc-adee-7b2a7d57beb2] Copying: anderstons/632eb593ed4a42d2ba7a1d038c962a0b-large.png => musicians-friend/632eb593ed4a42d2ba7a1d038c962a0b-large.png [ActiveJob] [Attachs::Jobs::UpdateJob] [b52a5bfe-632e-42dc-adee-7b2a7d57beb2] SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"tiny":"musicians-friend/632eb593ed4a42d2ba7a1d038c962a0b-tiny.png","large":"musicians-friend/632eb593ed4a42d2ba7a1d038c962a0b-large.png","small":"musicians-friend/632eb593ed4a42d2ba7a1d038c962a0b-small.png","medium":"musicians-friend/632eb593ed4a42d2ba7a1d038c962a0b-medium.png","original":"musicians-friend/632eb593ed4a42d2ba7a1d038c962a0b-original.png"},"old_paths":["anderstons/632eb593ed4a42d2ba7a1d038c962a0b-original.png","anderstons/632eb593ed4a42d2ba7a1d038c962a0b-tiny.png","anderstons/632eb593ed4a42d2ba7a1d038c962a0b-small.png","anderstons/632eb593ed4a42d2ba7a1d038c962a0b-medium.png","anderstons/632eb593ed4a42d2ba7a1d038c962a0b-large.png"],"id":"632eb593ed4a42d2ba7a1d038c962a0b","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-11-20T13:08:10.911-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 159]] [ActiveJob] [Attachs::Jobs::UpdateJob] [b52a5bfe-632e-42dc-adee-7b2a7d57beb2] Performed Attachs::Jobs::UpdateJob from Inline(default) in 4292.06ms [ActiveJob] Enqueued Attachs::Jobs::UpdateJob (Job ID: b52a5bfe-632e-42dc-adee-7b2a7d57beb2) to Inline(default) with arguments: gid://dummy/Shop/159, "logo" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 159]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 159]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Attachs::Jobs::DeleteJob] [53909a40-6664-443f-84e2-f909b3d54e99] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["musicians-friend/632eb593ed4a42d2ba7a1d038c962a0b-tiny.png", "musicians-friend/632eb593ed4a42d2ba7a1d038c962a0b-large.png", "musicians-friend/632eb593ed4a42d2ba7a1d038c962a0b-small.png", "musicians-friend/632eb593ed4a42d2ba7a1d038c962a0b-medium.png", "musicians-friend/632eb593ed4a42d2ba7a1d038c962a0b-original.png", "anderstons/632eb593ed4a42d2ba7a1d038c962a0b-original.png", "anderstons/632eb593ed4a42d2ba7a1d038c962a0b-tiny.png", "anderstons/632eb593ed4a42d2ba7a1d038c962a0b-small.png", "anderstons/632eb593ed4a42d2ba7a1d038c962a0b-medium.png", "anderstons/632eb593ed4a42d2ba7a1d038c962a0b-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [53909a40-6664-443f-84e2-f909b3d54e99] Deleting: musicians-friend/632eb593ed4a42d2ba7a1d038c962a0b-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [53909a40-6664-443f-84e2-f909b3d54e99] Deleting: musicians-friend/632eb593ed4a42d2ba7a1d038c962a0b-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [53909a40-6664-443f-84e2-f909b3d54e99] Deleting: musicians-friend/632eb593ed4a42d2ba7a1d038c962a0b-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [53909a40-6664-443f-84e2-f909b3d54e99] Deleting: musicians-friend/632eb593ed4a42d2ba7a1d038c962a0b-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [53909a40-6664-443f-84e2-f909b3d54e99] Deleting: musicians-friend/632eb593ed4a42d2ba7a1d038c962a0b-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [53909a40-6664-443f-84e2-f909b3d54e99] Deleting: anderstons/632eb593ed4a42d2ba7a1d038c962a0b-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [53909a40-6664-443f-84e2-f909b3d54e99] Deleting: anderstons/632eb593ed4a42d2ba7a1d038c962a0b-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [53909a40-6664-443f-84e2-f909b3d54e99] Deleting: anderstons/632eb593ed4a42d2ba7a1d038c962a0b-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [53909a40-6664-443f-84e2-f909b3d54e99] Deleting: anderstons/632eb593ed4a42d2ba7a1d038c962a0b-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [53909a40-6664-443f-84e2-f909b3d54e99] Deleting: anderstons/632eb593ed4a42d2ba7a1d038c962a0b-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [53909a40-6664-443f-84e2-f909b3d54e99] Performed Attachs::Jobs::DeleteJob from Inline(default) in 5116.28ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 53909a40-6664-443f-84e2-f909b3d54e99) to Inline(default) with arguments: ["musicians-friend/632eb593ed4a42d2ba7a1d038c962a0b-tiny.png", "musicians-friend/632eb593ed4a42d2ba7a1d038c962a0b-large.png", "musicians-friend/632eb593ed4a42d2ba7a1d038c962a0b-small.png", "musicians-friend/632eb593ed4a42d2ba7a1d038c962a0b-medium.png", "musicians-friend/632eb593ed4a42d2ba7a1d038c962a0b-original.png", "anderstons/632eb593ed4a42d2ba7a1d038c962a0b-original.png", "anderstons/632eb593ed4a42d2ba7a1d038c962a0b-tiny.png", "anderstons/632eb593ed4a42d2ba7a1d038c962a0b-small.png", "anderstons/632eb593ed4a42d2ba7a1d038c962a0b-medium.png", "anderstons/632eb593ed4a42d2ba7a1d038c962a0b-large.png"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------- MigrationTest: test_column -------------------------- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateUploads (20161031135453)  (0.1ms) SAVEPOINT active_record_1  (1.3ms) DROP TABLE "uploads" SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161031135453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to AddBriefToProducts (20161030160506)  (0.1ms) SAVEPOINT active_record_1  (0.4ms) ALTER TABLE "products" DROP "brief" SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161030160506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to CreateProducts (20161024234029)  (0.1ms) SAVEPOINT active_record_1  (0.6ms) DROP TABLE "products" SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161024234029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to CreateShops (20161024234003)  (0.1ms) SAVEPOINT active_record_1  (0.6ms) DROP TABLE "shops" SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161024234003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateShops (20161024234003)  (0.1ms) SAVEPOINT active_record_1  (20.6ms) CREATE TABLE "shops" ("id" serial primary key, "name" character varying, "logo" jsonb DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161024234003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to CreateProducts (20161024234029)  (0.1ms) SAVEPOINT active_record_1  (2.0ms) CREATE TABLE "products" ("id" serial primary key, "shop_id" integer, "name" character varying, "pictures" jsonb DEFAULT '[]', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161024234029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to AddBriefToProducts (20161030160506)  (0.1ms) SAVEPOINT active_record_1  (2.3ms) ALTER TABLE "products" ADD "brief" jsonb DEFAULT '{}' SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161030160506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to CreateUploads (20161031135453)  (0.1ms) SAVEPOINT active_record_1  (2.9ms) CREATE TABLE "uploads" ("id" serial primary key, "file" jsonb DEFAULT '{}', "record_type" character varying, "record_attribute" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161031135453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.5ms) ROLLBACK ActiveRecord::SchemaMigration Load (6.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN -------------------------- CollectionTest: test_index -------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2163-jwhqra.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2163-r24yz5.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"b28941f2ec484755b59cf515ccc31341\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T13:36:10.517-03:00\",\"paths\":{\"original\":\"b28941f2ec484755b59cf515ccc31341-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725,\"position\":0},{\"id\":\"99348a6493c340aaaa6a637bc5343d4e\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T13:36:10.519-03:00\",\"paths\":{\"original\":\"99348a6493c340aaaa6a637bc5343d4e-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-11-20 16:36:10.520484"], ["updated_at", "2016-11-20 16:36:10.520484"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 106]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------- CollectionTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2163-pua67e.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- CollectionTest: test_nested_attributes -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2163-v2m0fb.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2163-1fagnss.jpg'  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN ------------------------------- CollectionTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2236-9ddzp8.jpg' ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN -------------------------- CollectionTest: test_index -------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2304-1tiprms.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2304-ezxxr5.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"60350081df3144339e7864d5c981fc17\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T13:44:57.662-03:00\",\"paths\":{\"original\":\"60350081df3144339e7864d5c981fc17-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725,\"position\":0},{\"id\":\"ac394c297f0c4d2fb4e8e1f7bc01e59e\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T13:44:57.663-03:00\",\"paths\":{\"original\":\"ac394c297f0c4d2fb4e8e1f7bc01e59e-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-11-20 16:44:57.664505"], ["updated_at", "2016-11-20 16:44:57.664505"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 107]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- CollectionTest: test_nested_attributes -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2304-16uitmo.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2304-byvlml.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- CollectionTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2304-1a9pqe6.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2304-a2frk1.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"fabc1e8a7e52402cbae76e6eef216daa\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T13:44:57.711-03:00\",\"paths\":{\"original\":\"fabc1e8a7e52402cbae76e6eef216daa-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725},{\"id\":\"1fffcd9ef0ce4b8e8513f7bdcd2d1d43\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T13:44:57.713-03:00\",\"paths\":{\"original\":\"1fffcd9ef0ce4b8e8513f7bdcd2d1d43-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-11-20 16:44:57.714304"], ["updated_at", "2016-11-20 16:44:57.714304"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2304-1a9pqe6.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2304-wn98t0.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2304-wn98t0.jpg => fabc1e8a7e52402cbae76e6eef216daa-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2304-a2frk1.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2304-fp4vai.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2304-fp4vai.jpg => 1fffcd9ef0ce4b8e8513f7bdcd2d1d43-original.jpg Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 108]] [ActiveJob] [Attachs::Jobs::DeleteJob] [f1f0ea76-bae6-424b-8fd3-9b5948868e5b] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["fabc1e8a7e52402cbae76e6eef216daa-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [f1f0ea76-bae6-424b-8fd3-9b5948868e5b] Deleting: fabc1e8a7e52402cbae76e6eef216daa-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [f1f0ea76-bae6-424b-8fd3-9b5948868e5b] Performed Attachs::Jobs::DeleteJob from Inline(default) in 396.65ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: f1f0ea76-bae6-424b-8fd3-9b5948868e5b) to Inline(default) with arguments: ["fabc1e8a7e52402cbae76e6eef216daa-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [9091fd15-320c-4eca-bfda-e454b0c18e15] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["1fffcd9ef0ce4b8e8513f7bdcd2d1d43-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [9091fd15-320c-4eca-bfda-e454b0c18e15] Deleting: 1fffcd9ef0ce4b8e8513f7bdcd2d1d43-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [9091fd15-320c-4eca-bfda-e454b0c18e15] Performed Attachs::Jobs::DeleteJob from Inline(default) in 407.9ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 9091fd15-320c-4eca-bfda-e454b0c18e15) to Inline(default) with arguments: ["1fffcd9ef0ce4b8e8513f7bdcd2d1d43-original.jpg"]  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN --------------------- TasksTest: test_clear --------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-7gkpwx.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"66c88f07cf424107bdedda6d2e8e0d64\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T13:45:48.375-03:00\",\"paths\":{\"original\":\"66c88f07cf424107bdedda6d2e8e0d64-original.png\",\"tiny\":\"66c88f07cf424107bdedda6d2e8e0d64-tiny.png\",\"small\":\"66c88f07cf424107bdedda6d2e8e0d64-small.png\",\"medium\":\"66c88f07cf424107bdedda6d2e8e0d64-medium.png\",\"large\":\"66c88f07cf424107bdedda6d2e8e0d64-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-11-20 16:45:48.376280"], ["updated_at", "2016-11-20 16:45:48.376280"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-7gkpwx.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1qd3jax.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1qd3jax.png => 66c88f07cf424107bdedda6d2e8e0d64-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-7gkpwx.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-4r9pk0.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-4r9pk0.png => 66c88f07cf424107bdedda6d2e8e0d64-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-7gkpwx.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-xad8pf.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-xad8pf.png => 66c88f07cf424107bdedda6d2e8e0d64-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-7gkpwx.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-mu2lm1.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-mu2lm1.png => 66c88f07cf424107bdedda6d2e8e0d64-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-7gkpwx.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1yy78oq.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1yy78oq.png => 66c88f07cf424107bdedda6d2e8e0d64-large.png Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-a4z3ur.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"41e2db9f786d4ba5bdcc6b828fbe49d5\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T13:45:53.744-03:00\",\"paths\":{\"original\":\"41e2db9f786d4ba5bdcc6b828fbe49d5-original.png\",\"tiny\":\"41e2db9f786d4ba5bdcc6b828fbe49d5-tiny.png\",\"small\":\"41e2db9f786d4ba5bdcc6b828fbe49d5-small.png\",\"medium\":\"41e2db9f786d4ba5bdcc6b828fbe49d5-medium.png\",\"large\":\"41e2db9f786d4ba5bdcc6b828fbe49d5-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-11-20 16:45:53.745285"], ["updated_at", "2016-11-20 16:45:53.745285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-a4z3ur.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-4f56mi.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-4f56mi.png => 41e2db9f786d4ba5bdcc6b828fbe49d5-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-a4z3ur.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-m5qdeq.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-m5qdeq.png => 41e2db9f786d4ba5bdcc6b828fbe49d5-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-a4z3ur.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1ctg6hb.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1ctg6hb.png => 41e2db9f786d4ba5bdcc6b828fbe49d5-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-a4z3ur.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1n4i2ra.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1n4i2ra.png => 41e2db9f786d4ba5bdcc6b828fbe49d5-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-a4z3ur.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-107zzom.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-107zzom.png => 41e2db9f786d4ba5bdcc6b828fbe49d5-large.png SQL (0.5ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 161]]  (1.1ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '41e2db9f786d4ba5bdcc6b828fbe49d5-large.png' OR old_paths.value = '41e2db9f786d4ba5bdcc6b828fbe49d5-large.png') Deleting 41e2db9f786d4ba5bdcc6b828fbe49d5-large.png Deleting: 41e2db9f786d4ba5bdcc6b828fbe49d5-large.png  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '41e2db9f786d4ba5bdcc6b828fbe49d5-medium.png' OR old_paths.value = '41e2db9f786d4ba5bdcc6b828fbe49d5-medium.png') Deleting 41e2db9f786d4ba5bdcc6b828fbe49d5-medium.png Deleting: 41e2db9f786d4ba5bdcc6b828fbe49d5-medium.png  (0.9ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '41e2db9f786d4ba5bdcc6b828fbe49d5-original.png' OR old_paths.value = '41e2db9f786d4ba5bdcc6b828fbe49d5-original.png') Deleting 41e2db9f786d4ba5bdcc6b828fbe49d5-original.png Deleting: 41e2db9f786d4ba5bdcc6b828fbe49d5-original.png  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '41e2db9f786d4ba5bdcc6b828fbe49d5-small.png' OR old_paths.value = '41e2db9f786d4ba5bdcc6b828fbe49d5-small.png') Deleting 41e2db9f786d4ba5bdcc6b828fbe49d5-small.png Deleting: 41e2db9f786d4ba5bdcc6b828fbe49d5-small.png  (4.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '41e2db9f786d4ba5bdcc6b828fbe49d5-tiny.png' OR old_paths.value = '41e2db9f786d4ba5bdcc6b828fbe49d5-tiny.png') Deleting 41e2db9f786d4ba5bdcc6b828fbe49d5-tiny.png Deleting: 41e2db9f786d4ba5bdcc6b828fbe49d5-tiny.png  (0.8ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '66c88f07cf424107bdedda6d2e8e0d64-large.png' OR old_paths.value = '66c88f07cf424107bdedda6d2e8e0d64-large.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '66c88f07cf424107bdedda6d2e8e0d64-medium.png' OR old_paths.value = '66c88f07cf424107bdedda6d2e8e0d64-medium.png')  (0.2ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '66c88f07cf424107bdedda6d2e8e0d64-original.png' OR old_paths.value = '66c88f07cf424107bdedda6d2e8e0d64-original.png')  (0.2ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '66c88f07cf424107bdedda6d2e8e0d64-small.png' OR old_paths.value = '66c88f07cf424107bdedda6d2e8e0d64-small.png')  (0.2ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '66c88f07cf424107bdedda6d2e8e0d64-tiny.png' OR old_paths.value = '66c88f07cf424107bdedda6d2e8e0d64-tiny.png') [ActiveJob] [Attachs::Jobs::DeleteJob] [ed0c3151-20ed-49b4-99fa-276d37efdb41] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["66c88f07cf424107bdedda6d2e8e0d64-original.png", "66c88f07cf424107bdedda6d2e8e0d64-tiny.png", "66c88f07cf424107bdedda6d2e8e0d64-small.png", "66c88f07cf424107bdedda6d2e8e0d64-medium.png", "66c88f07cf424107bdedda6d2e8e0d64-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [ed0c3151-20ed-49b4-99fa-276d37efdb41] Deleting: 66c88f07cf424107bdedda6d2e8e0d64-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [ed0c3151-20ed-49b4-99fa-276d37efdb41] Deleting: 66c88f07cf424107bdedda6d2e8e0d64-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [ed0c3151-20ed-49b4-99fa-276d37efdb41] Deleting: 66c88f07cf424107bdedda6d2e8e0d64-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [ed0c3151-20ed-49b4-99fa-276d37efdb41] Deleting: 66c88f07cf424107bdedda6d2e8e0d64-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [ed0c3151-20ed-49b4-99fa-276d37efdb41] Deleting: 66c88f07cf424107bdedda6d2e8e0d64-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [ed0c3151-20ed-49b4-99fa-276d37efdb41] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2757.69ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: ed0c3151-20ed-49b4-99fa-276d37efdb41) to Inline(default) with arguments: ["66c88f07cf424107bdedda6d2e8e0d64-original.png", "66c88f07cf424107bdedda6d2e8e0d64-tiny.png", "66c88f07cf424107bdedda6d2e8e0d64-small.png", "66c88f07cf424107bdedda6d2e8e0d64-medium.png", "66c88f07cf424107bdedda6d2e8e0d64-large.png"]  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- TasksTest: test_fix_missings ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-1sgmcwo.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"474e26f581774b4f9f0cf37b4e349b20\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T13:46:15.050-03:00\",\"paths\":{\"original\":\"474e26f581774b4f9f0cf37b4e349b20-original.png\",\"tiny\":\"474e26f581774b4f9f0cf37b4e349b20-tiny.png\",\"small\":\"474e26f581774b4f9f0cf37b4e349b20-small.png\",\"medium\":\"474e26f581774b4f9f0cf37b4e349b20-medium.png\",\"large\":\"474e26f581774b4f9f0cf37b4e349b20-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-11-20 16:46:15.051414"], ["updated_at", "2016-11-20 16:46:15.051414"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-1sgmcwo.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-qvx9q9.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-qvx9q9.png => 474e26f581774b4f9f0cf37b4e349b20-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-1sgmcwo.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1pqhe89.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1pqhe89.png => 474e26f581774b4f9f0cf37b4e349b20-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-1sgmcwo.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-3xs4i7.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-3xs4i7.png => 474e26f581774b4f9f0cf37b4e349b20-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-1sgmcwo.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-a5bdtw.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-a5bdtw.png => 474e26f581774b4f9f0cf37b4e349b20-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-1sgmcwo.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-z5au3k.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-z5au3k.png => 474e26f581774b4f9f0cf37b4e349b20-large.png Deleting: 474e26f581774b4f9f0cf37b4e349b20-tiny.png Deleting: 474e26f581774b4f9f0cf37b4e349b20-small.png Shop Load (0.7ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Fix missings of Shop #162 => logo Generating: tiny => 474e26f581774b4f9f0cf37b4e349b20-tiny.png Generating: small => 474e26f581774b4f9f0cf37b4e349b20-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-lih4md.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1p9jfvn.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1p9jfvn.png => 474e26f581774b4f9f0cf37b4e349b20-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-lih4md.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-ndgi8g.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-ndgi8g.png => 474e26f581774b4f9f0cf37b4e349b20-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-lih4md.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1tda949.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1tda949.png => 474e26f581774b4f9f0cf37b4e349b20-small.png Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Fix missings of Shop #162 => logo [ActiveJob] [Attachs::Jobs::DeleteJob] [f7fc1446-35c3-4b7e-aaf9-2b5ff3207072] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["474e26f581774b4f9f0cf37b4e349b20-original.png", "474e26f581774b4f9f0cf37b4e349b20-tiny.png", "474e26f581774b4f9f0cf37b4e349b20-small.png", "474e26f581774b4f9f0cf37b4e349b20-medium.png", "474e26f581774b4f9f0cf37b4e349b20-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [f7fc1446-35c3-4b7e-aaf9-2b5ff3207072] Deleting: 474e26f581774b4f9f0cf37b4e349b20-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [f7fc1446-35c3-4b7e-aaf9-2b5ff3207072] Deleting: 474e26f581774b4f9f0cf37b4e349b20-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [f7fc1446-35c3-4b7e-aaf9-2b5ff3207072] Deleting: 474e26f581774b4f9f0cf37b4e349b20-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [f7fc1446-35c3-4b7e-aaf9-2b5ff3207072] Deleting: 474e26f581774b4f9f0cf37b4e349b20-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [f7fc1446-35c3-4b7e-aaf9-2b5ff3207072] Deleting: 474e26f581774b4f9f0cf37b4e349b20-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [f7fc1446-35c3-4b7e-aaf9-2b5ff3207072] Performed Attachs::Jobs::DeleteJob from Inline(default) in 4091.8ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: f7fc1446-35c3-4b7e-aaf9-2b5ff3207072) to Inline(default) with arguments: ["474e26f581774b4f9f0cf37b4e349b20-original.png", "474e26f581774b4f9f0cf37b4e349b20-tiny.png", "474e26f581774b4f9f0cf37b4e349b20-small.png", "474e26f581774b4f9f0cf37b4e349b20-medium.png", "474e26f581774b4f9f0cf37b4e349b20-large.png"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------- TasksTest: test_reprocess ------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-tsbw43.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"cede3d7a63d14a9683b9d795b7c52301\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T13:46:36.578-03:00\",\"paths\":{\"original\":\"cede3d7a63d14a9683b9d795b7c52301-original.png\",\"tiny\":\"cede3d7a63d14a9683b9d795b7c52301-tiny.png\",\"small\":\"cede3d7a63d14a9683b9d795b7c52301-small.png\",\"medium\":\"cede3d7a63d14a9683b9d795b7c52301-medium.png\",\"large\":\"cede3d7a63d14a9683b9d795b7c52301-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-11-20 16:46:36.578948"], ["updated_at", "2016-11-20 16:46:36.578948"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-tsbw43.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1e0eto9.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1e0eto9.png => cede3d7a63d14a9683b9d795b7c52301-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-tsbw43.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1gz7uv7.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1gz7uv7.png => cede3d7a63d14a9683b9d795b7c52301-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-tsbw43.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1jtf6ie.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1jtf6ie.png => cede3d7a63d14a9683b9d795b7c52301-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-tsbw43.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1595lyb.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1595lyb.png => cede3d7a63d14a9683b9d795b7c52301-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-tsbw43.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-bp8oq2.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-bp8oq2.png => cede3d7a63d14a9683b9d795b7c52301-large.png Deleting: cede3d7a63d14a9683b9d795b7c52301-tiny.png Deleting: cede3d7a63d14a9683b9d795b7c52301-small.png Deleting: cede3d7a63d14a9683b9d795b7c52301-medium.png Deleting: cede3d7a63d14a9683b9d795b7c52301-large.png Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Reprocessing Shop #163 => logo Regenerating: tiny => cede3d7a63d14a9683b9d795b7c52301-tiny.png Regenerating: large => cede3d7a63d14a9683b9d795b7c52301-large.png Regenerating: small => cede3d7a63d14a9683b9d795b7c52301-small.png Regenerating: medium => cede3d7a63d14a9683b9d795b7c52301-medium.png Deleting: cede3d7a63d14a9683b9d795b7c52301-original.png Regenerating: original => cede3d7a63d14a9683b9d795b7c52301-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-73dyu6.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-hqj56.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-hqj56.png => cede3d7a63d14a9683b9d795b7c52301-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-73dyu6.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-m2oct6.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-m2oct6.png => cede3d7a63d14a9683b9d795b7c52301-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-73dyu6.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-x365vr.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-x365vr.png => cede3d7a63d14a9683b9d795b7c52301-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-73dyu6.png' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1sx01ma.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1sx01ma.png => cede3d7a63d14a9683b9d795b7c52301-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-73dyu6.png' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-vfi8g7.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-vfi8g7.png => cede3d7a63d14a9683b9d795b7c52301-large.png SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"original":"cede3d7a63d14a9683b9d795b7c52301-original.png","tiny":"cede3d7a63d14a9683b9d795b7c52301-tiny.png","small":"cede3d7a63d14a9683b9d795b7c52301-small.png","medium":"cede3d7a63d14a9683b9d795b7c52301-medium.png","large":"cede3d7a63d14a9683b9d795b7c52301-large.png"},"old_paths":[],"id":"cede3d7a63d14a9683b9d795b7c52301","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-11-20T13:46:36.578-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 163]] Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Reprocessing Shop #163 => logo Deleting: cede3d7a63d14a9683b9d795b7c52301-tiny.png Regenerating: tiny => cede3d7a63d14a9683b9d795b7c52301-tiny.png Deleting: cede3d7a63d14a9683b9d795b7c52301-large.png Regenerating: large => cede3d7a63d14a9683b9d795b7c52301-large.png Deleting: cede3d7a63d14a9683b9d795b7c52301-small.png Regenerating: small => cede3d7a63d14a9683b9d795b7c52301-small.png Deleting: cede3d7a63d14a9683b9d795b7c52301-medium.png Regenerating: medium => cede3d7a63d14a9683b9d795b7c52301-medium.png Deleting: cede3d7a63d14a9683b9d795b7c52301-original.png Regenerating: original => cede3d7a63d14a9683b9d795b7c52301-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-e1xrpr.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1vm8wq0.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1vm8wq0.png => cede3d7a63d14a9683b9d795b7c52301-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-e1xrpr.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-19y3ydw.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-19y3ydw.png => cede3d7a63d14a9683b9d795b7c52301-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-e1xrpr.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1cp3cuk.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1cp3cuk.png => cede3d7a63d14a9683b9d795b7c52301-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-e1xrpr.png' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1p6w1qz.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1p6w1qz.png => cede3d7a63d14a9683b9d795b7c52301-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-e1xrpr.png' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-6lpvvr.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-6lpvvr.png => cede3d7a63d14a9683b9d795b7c52301-large.png SQL (0.4ms) UPDATE "shops" SET "logo" = '{"paths":{"original":"cede3d7a63d14a9683b9d795b7c52301-original.png","tiny":"cede3d7a63d14a9683b9d795b7c52301-tiny.png","small":"cede3d7a63d14a9683b9d795b7c52301-small.png","medium":"cede3d7a63d14a9683b9d795b7c52301-medium.png","large":"cede3d7a63d14a9683b9d795b7c52301-large.png"},"old_paths":[],"id":"cede3d7a63d14a9683b9d795b7c52301","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-11-20T13:46:36.578-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 163]] Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Reprocessing Shop #163 => logo Deleting: cede3d7a63d14a9683b9d795b7c52301-tiny.png Regenerating: tiny => cede3d7a63d14a9683b9d795b7c52301-tiny.png Deleting: cede3d7a63d14a9683b9d795b7c52301-large.png Regenerating: large => cede3d7a63d14a9683b9d795b7c52301-large.png Deleting: cede3d7a63d14a9683b9d795b7c52301-small.png Regenerating: small => cede3d7a63d14a9683b9d795b7c52301-small.png Deleting: cede3d7a63d14a9683b9d795b7c52301-medium.png Regenerating: medium => cede3d7a63d14a9683b9d795b7c52301-medium.png Deleting: cede3d7a63d14a9683b9d795b7c52301-original.png Regenerating: original => cede3d7a63d14a9683b9d795b7c52301-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-zsyctb.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-vnxyf1.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-vnxyf1.png => cede3d7a63d14a9683b9d795b7c52301-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-zsyctb.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1s6yja7.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1s6yja7.png => cede3d7a63d14a9683b9d795b7c52301-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-zsyctb.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-9lf9aq.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-9lf9aq.png => cede3d7a63d14a9683b9d795b7c52301-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-zsyctb.png' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-15gohvv.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-15gohvv.png => cede3d7a63d14a9683b9d795b7c52301-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-zsyctb.png' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-pnjuyk.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-pnjuyk.png => cede3d7a63d14a9683b9d795b7c52301-large.png SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"original":"cede3d7a63d14a9683b9d795b7c52301-original.png","tiny":"cede3d7a63d14a9683b9d795b7c52301-tiny.png","small":"cede3d7a63d14a9683b9d795b7c52301-small.png","medium":"cede3d7a63d14a9683b9d795b7c52301-medium.png","large":"cede3d7a63d14a9683b9d795b7c52301-large.png"},"old_paths":[],"id":"cede3d7a63d14a9683b9d795b7c52301","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-11-20T13:46:36.578-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 163]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 163]] [ActiveJob] [Attachs::Jobs::DeleteJob] [f2b91076-cf5f-4285-93e5-9c0e306bbe2f] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["cede3d7a63d14a9683b9d795b7c52301-tiny.png", "cede3d7a63d14a9683b9d795b7c52301-large.png", "cede3d7a63d14a9683b9d795b7c52301-small.png", "cede3d7a63d14a9683b9d795b7c52301-medium.png", "cede3d7a63d14a9683b9d795b7c52301-original.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [f2b91076-cf5f-4285-93e5-9c0e306bbe2f] Deleting: cede3d7a63d14a9683b9d795b7c52301-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [f2b91076-cf5f-4285-93e5-9c0e306bbe2f] Deleting: cede3d7a63d14a9683b9d795b7c52301-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [f2b91076-cf5f-4285-93e5-9c0e306bbe2f] Deleting: cede3d7a63d14a9683b9d795b7c52301-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [f2b91076-cf5f-4285-93e5-9c0e306bbe2f] Deleting: cede3d7a63d14a9683b9d795b7c52301-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [f2b91076-cf5f-4285-93e5-9c0e306bbe2f] Deleting: cede3d7a63d14a9683b9d795b7c52301-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [f2b91076-cf5f-4285-93e5-9c0e306bbe2f] Performed Attachs::Jobs::DeleteJob from Inline(default) in 3377.47ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: f2b91076-cf5f-4285-93e5-9c0e306bbe2f) to Inline(default) with arguments: ["cede3d7a63d14a9683b9d795b7c52301-tiny.png", "cede3d7a63d14a9683b9d795b7c52301-large.png", "cede3d7a63d14a9683b9d795b7c52301-small.png", "cede3d7a63d14a9683b9d795b7c52301-medium.png", "cede3d7a63d14a9683b9d795b7c52301-original.png"]  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------- MigrationTest: test_column -------------------------- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateUploads (20161031135453)  (0.2ms) SAVEPOINT active_record_1  (13.9ms) DROP TABLE "uploads" SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161031135453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to AddBriefToProducts (20161030160506)  (0.1ms) SAVEPOINT active_record_1  (0.4ms) ALTER TABLE "products" DROP "brief" SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161030160506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to CreateProducts (20161024234029)  (0.1ms) SAVEPOINT active_record_1  (0.6ms) DROP TABLE "products" SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161024234029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to CreateShops (20161024234003)  (0.1ms) SAVEPOINT active_record_1  (0.6ms) DROP TABLE "shops" SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161024234003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateShops (20161024234003)  (0.1ms) SAVEPOINT active_record_1  (21.0ms) CREATE TABLE "shops" ("id" serial primary key, "name" character varying, "logo" jsonb DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161024234003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to CreateProducts (20161024234029)  (0.1ms) SAVEPOINT active_record_1  (2.5ms) CREATE TABLE "products" ("id" serial primary key, "shop_id" integer, "name" character varying, "pictures" jsonb DEFAULT '[]', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161024234029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to AddBriefToProducts (20161030160506)  (0.1ms) SAVEPOINT active_record_1  (2.8ms) ALTER TABLE "products" ADD "brief" jsonb DEFAULT '{}' SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161030160506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to CreateUploads (20161031135453)  (0.1ms) SAVEPOINT active_record_1  (2.6ms) CREATE TABLE "uploads" ("id" serial primary key, "file" jsonb DEFAULT '{}', "record_type" character varying, "record_attribute" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161031135453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.3ms) ROLLBACK  (0.2ms) BEGIN --------------------------- HelperTest: test_fields_for --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-1j61cqb.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"5709af0be8244c4da3326dcd2b31d27f\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T13:47:20.278-03:00\",\"paths\":{\"original\":\"5709af0be8244c4da3326dcd2b31d27f-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-11-20 16:47:20.278647"], ["updated_at", "2016-11-20 16:47:20.278647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-1j61cqb.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-17747c9.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-17747c9.jpg => 5709af0be8244c4da3326dcd2b31d27f-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [9e48d614-65e8-4197-b7af-52d6cb6d422c] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["5709af0be8244c4da3326dcd2b31d27f-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [9e48d614-65e8-4197-b7af-52d6cb6d422c] Deleting: 5709af0be8244c4da3326dcd2b31d27f-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [9e48d614-65e8-4197-b7af-52d6cb6d422c] Performed Attachs::Jobs::DeleteJob from Inline(default) in 498.34ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 9e48d614-65e8-4197-b7af-52d6cb6d422c) to Inline(default) with arguments: ["5709af0be8244c4da3326dcd2b31d27f-original.jpg"]  (0.3ms) ROLLBACK  (0.1ms) BEGIN --------------------- QueryTest: test_exist --------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-ncukle.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("name", "logo", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "first"], ["logo", "{\"id\":\"9b13cd4fb4c944b8adb2bec37870e103\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T13:47:21.505-03:00\",\"paths\":{\"original\":\"first/9b13cd4fb4c944b8adb2bec37870e103-original.png\",\"tiny\":\"first/9b13cd4fb4c944b8adb2bec37870e103-tiny.png\",\"small\":\"first/9b13cd4fb4c944b8adb2bec37870e103-small.png\",\"medium\":\"first/9b13cd4fb4c944b8adb2bec37870e103-medium.png\",\"large\":\"first/9b13cd4fb4c944b8adb2bec37870e103-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-11-20 16:47:21.505645"], ["updated_at", "2016-11-20 16:47:21.505645"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-ncukle.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1toascb.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1toascb.png => first/9b13cd4fb4c944b8adb2bec37870e103-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-ncukle.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1ih16jv.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1ih16jv.png => first/9b13cd4fb4c944b8adb2bec37870e103-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-ncukle.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1s7wwm1.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1s7wwm1.png => first/9b13cd4fb4c944b8adb2bec37870e103-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-ncukle.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1em1ihf.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1em1ihf.png => first/9b13cd4fb4c944b8adb2bec37870e103-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-ncukle.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-mri1dl.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-mri1dl.png => first/9b13cd4fb4c944b8adb2bec37870e103-large.png  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "shops" SET "name" = $1, "updated_at" = $2 WHERE "shops"."id" = $3 [["name", "second"], ["updated_at", "2016-11-20 16:47:25.282654"], ["id", 164]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 164]] [ActiveJob] [Attachs::Jobs::UpdateJob] [cf1fa94e-feb6-46f6-806d-576511bc9d29] Performing Attachs::Jobs::UpdateJob from Inline(default) with arguments: gid://dummy/Shop/164, "logo" [ActiveJob] [Attachs::Jobs::UpdateJob] [cf1fa94e-feb6-46f6-806d-576511bc9d29] Copying: first/9b13cd4fb4c944b8adb2bec37870e103-original.png => second/9b13cd4fb4c944b8adb2bec37870e103-original.png [ActiveJob] [Attachs::Jobs::UpdateJob] [cf1fa94e-feb6-46f6-806d-576511bc9d29] Copying: first/9b13cd4fb4c944b8adb2bec37870e103-tiny.png => second/9b13cd4fb4c944b8adb2bec37870e103-tiny.png [ActiveJob] [Attachs::Jobs::UpdateJob] [cf1fa94e-feb6-46f6-806d-576511bc9d29] Copying: first/9b13cd4fb4c944b8adb2bec37870e103-small.png => second/9b13cd4fb4c944b8adb2bec37870e103-small.png [ActiveJob] [Attachs::Jobs::UpdateJob] [cf1fa94e-feb6-46f6-806d-576511bc9d29] Copying: first/9b13cd4fb4c944b8adb2bec37870e103-medium.png => second/9b13cd4fb4c944b8adb2bec37870e103-medium.png [ActiveJob] [Attachs::Jobs::UpdateJob] [cf1fa94e-feb6-46f6-806d-576511bc9d29] Copying: first/9b13cd4fb4c944b8adb2bec37870e103-large.png => second/9b13cd4fb4c944b8adb2bec37870e103-large.png [ActiveJob] [Attachs::Jobs::UpdateJob] [cf1fa94e-feb6-46f6-806d-576511bc9d29] SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"tiny":"second/9b13cd4fb4c944b8adb2bec37870e103-tiny.png","large":"second/9b13cd4fb4c944b8adb2bec37870e103-large.png","small":"second/9b13cd4fb4c944b8adb2bec37870e103-small.png","medium":"second/9b13cd4fb4c944b8adb2bec37870e103-medium.png","original":"second/9b13cd4fb4c944b8adb2bec37870e103-original.png"},"old_paths":["first/9b13cd4fb4c944b8adb2bec37870e103-original.png","first/9b13cd4fb4c944b8adb2bec37870e103-tiny.png","first/9b13cd4fb4c944b8adb2bec37870e103-small.png","first/9b13cd4fb4c944b8adb2bec37870e103-medium.png","first/9b13cd4fb4c944b8adb2bec37870e103-large.png"],"id":"9b13cd4fb4c944b8adb2bec37870e103","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-11-20T13:47:21.505-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 164]] [ActiveJob] [Attachs::Jobs::UpdateJob] [cf1fa94e-feb6-46f6-806d-576511bc9d29] Performed Attachs::Jobs::UpdateJob from Inline(default) in 3580.71ms [ActiveJob] Enqueued Attachs::Jobs::UpdateJob (Job ID: cf1fa94e-feb6-46f6-806d-576511bc9d29) to Inline(default) with arguments: gid://dummy/Shop/164, "logo" Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-ac6z8n.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-1ec9shl.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"0caccfc30a3f4d6c9a4fb83c4e7ac8c9\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T13:47:28.887-03:00\",\"paths\":{\"original\":\"0caccfc30a3f4d6c9a4fb83c4e7ac8c9-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725},{\"id\":\"cac55fcc8dc747c09b6ee07d410b8bb9\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T13:47:28.888-03:00\",\"paths\":{\"original\":\"cac55fcc8dc747c09b6ee07d410b8bb9-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-11-20 16:47:28.889412"], ["updated_at", "2016-11-20 16:47:28.889412"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-ac6z8n.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-11ws489.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-11ws489.jpg => 0caccfc30a3f4d6c9a4fb83c4e7ac8c9-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-1ec9shl.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-xg2fg4.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-xg2fg4.jpg => cac55fcc8dc747c09b6ee07d410b8bb9-original.jpg  (0.8ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/9b13cd4fb4c944b8adb2bec37870e103-original.png' OR old_paths.value = 'first/9b13cd4fb4c944b8adb2bec37870e103-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/9b13cd4fb4c944b8adb2bec37870e103-original.png' OR old_paths.value = 'first/9b13cd4fb4c944b8adb2bec37870e103-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/9b13cd4fb4c944b8adb2bec37870e103-original.png' OR old_paths.value = 'first/9b13cd4fb4c944b8adb2bec37870e103-original.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/9b13cd4fb4c944b8adb2bec37870e103-original.png' OR old_paths.value = 'first/9b13cd4fb4c944b8adb2bec37870e103-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/9b13cd4fb4c944b8adb2bec37870e103-original.png' OR old_paths.value = 'first/9b13cd4fb4c944b8adb2bec37870e103-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/9b13cd4fb4c944b8adb2bec37870e103-original.png' OR old_paths.value = 'first/9b13cd4fb4c944b8adb2bec37870e103-original.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '0caccfc30a3f4d6c9a4fb83c4e7ac8c9-original.jpg' OR old_paths.value = '0caccfc30a3f4d6c9a4fb83c4e7ac8c9-original.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '0caccfc30a3f4d6c9a4fb83c4e7ac8c9-original.jpg' OR old_paths.value = '0caccfc30a3f4d6c9a4fb83c4e7ac8c9-original.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '0caccfc30a3f4d6c9a4fb83c4e7ac8c9-original.jpg' OR old_paths.value = '0caccfc30a3f4d6c9a4fb83c4e7ac8c9-original.jpg') [ActiveJob] [Attachs::Jobs::DeleteJob] [510e2c24-66b7-492f-af92-5ddde2dab979] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["first/9b13cd4fb4c944b8adb2bec37870e103-original.png", "first/9b13cd4fb4c944b8adb2bec37870e103-tiny.png", "first/9b13cd4fb4c944b8adb2bec37870e103-small.png", "first/9b13cd4fb4c944b8adb2bec37870e103-medium.png", "first/9b13cd4fb4c944b8adb2bec37870e103-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [510e2c24-66b7-492f-af92-5ddde2dab979] Deleting: first/9b13cd4fb4c944b8adb2bec37870e103-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [510e2c24-66b7-492f-af92-5ddde2dab979] Deleting: first/9b13cd4fb4c944b8adb2bec37870e103-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [510e2c24-66b7-492f-af92-5ddde2dab979] Deleting: first/9b13cd4fb4c944b8adb2bec37870e103-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [510e2c24-66b7-492f-af92-5ddde2dab979] Deleting: first/9b13cd4fb4c944b8adb2bec37870e103-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [510e2c24-66b7-492f-af92-5ddde2dab979] Deleting: first/9b13cd4fb4c944b8adb2bec37870e103-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [510e2c24-66b7-492f-af92-5ddde2dab979] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2551.74ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 510e2c24-66b7-492f-af92-5ddde2dab979) to Inline(default) with arguments: ["first/9b13cd4fb4c944b8adb2bec37870e103-original.png", "first/9b13cd4fb4c944b8adb2bec37870e103-tiny.png", "first/9b13cd4fb4c944b8adb2bec37870e103-small.png", "first/9b13cd4fb4c944b8adb2bec37870e103-medium.png", "first/9b13cd4fb4c944b8adb2bec37870e103-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [b70f8939-b0a1-4908-b859-581511e731e6] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["0caccfc30a3f4d6c9a4fb83c4e7ac8c9-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [b70f8939-b0a1-4908-b859-581511e731e6] Deleting: 0caccfc30a3f4d6c9a4fb83c4e7ac8c9-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [b70f8939-b0a1-4908-b859-581511e731e6] Performed Attachs::Jobs::DeleteJob from Inline(default) in 407.52ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: b70f8939-b0a1-4908-b859-581511e731e6) to Inline(default) with arguments: ["0caccfc30a3f4d6c9a4fb83c4e7ac8c9-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [20c3af52-1b69-42d2-be8e-c5cc142f0725] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["cac55fcc8dc747c09b6ee07d410b8bb9-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [20c3af52-1b69-42d2-be8e-c5cc142f0725] Deleting: cac55fcc8dc747c09b6ee07d410b8bb9-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [20c3af52-1b69-42d2-be8e-c5cc142f0725] Performed Attachs::Jobs::DeleteJob from Inline(default) in 405.42ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 20c3af52-1b69-42d2-be8e-c5cc142f0725) to Inline(default) with arguments: ["cac55fcc8dc747c09b6ee07d410b8bb9-original.jpg"]  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- CollectionTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-x0xvqs.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-1rr1t2z.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"093d612858934e46aeb3f67219b61e32\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T13:47:33.699-03:00\",\"paths\":{\"original\":\"093d612858934e46aeb3f67219b61e32-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725},{\"id\":\"08d9e592ffa7496e89adf4257bbeaaff\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T13:47:33.701-03:00\",\"paths\":{\"original\":\"08d9e592ffa7496e89adf4257bbeaaff-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-11-20 16:47:33.702990"], ["updated_at", "2016-11-20 16:47:33.702990"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-x0xvqs.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-18orhju.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-18orhju.jpg => 093d612858934e46aeb3f67219b61e32-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-1rr1t2z.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-45x0ii.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-45x0ii.jpg => 08d9e592ffa7496e89adf4257bbeaaff-original.jpg Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 111]] [ActiveJob] [Attachs::Jobs::DeleteJob] [69c71a07-0d39-4ce5-8304-e0514e35e59d] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["093d612858934e46aeb3f67219b61e32-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [69c71a07-0d39-4ce5-8304-e0514e35e59d] Deleting: 093d612858934e46aeb3f67219b61e32-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [69c71a07-0d39-4ce5-8304-e0514e35e59d] Performed Attachs::Jobs::DeleteJob from Inline(default) in 405.03ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 69c71a07-0d39-4ce5-8304-e0514e35e59d) to Inline(default) with arguments: ["093d612858934e46aeb3f67219b61e32-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [599c01ae-ce7c-49d6-9f97-6a8489bc9944] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["08d9e592ffa7496e89adf4257bbeaaff-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [599c01ae-ce7c-49d6-9f97-6a8489bc9944] Deleting: 08d9e592ffa7496e89adf4257bbeaaff-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [599c01ae-ce7c-49d6-9f97-6a8489bc9944] Performed Attachs::Jobs::DeleteJob from Inline(default) in 404.9ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 599c01ae-ce7c-49d6-9f97-6a8489bc9944) to Inline(default) with arguments: ["08d9e592ffa7496e89adf4257bbeaaff-original.jpg"]  (0.3ms) ROLLBACK  (0.2ms) BEGIN -------------------------- CollectionTest: test_index -------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-1jiwzis.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-dvqtol.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"d15cc155ae144603889b0006d3c2cc7c\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T13:47:35.650-03:00\",\"paths\":{\"original\":\"d15cc155ae144603889b0006d3c2cc7c-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725,\"position\":0},{\"id\":\"1ce1c18880b94c06803f0411d009eef5\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T13:47:35.653-03:00\",\"paths\":{\"original\":\"1ce1c18880b94c06803f0411d009eef5-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-11-20 16:47:35.654724"], ["updated_at", "2016-11-20 16:47:35.654724"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 112]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- CollectionTest: test_nested_attributes -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-bkue77.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-dsabkj.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- GeneratorsTest: test_install ----------------------------  (0.2ms) ROLLBACK  (0.2ms) BEGIN --------------------------- GeneratorsTest: test_upload ---------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- AttachmentTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-ndb5si.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"16f96cc0bbc5409390b82d23d5eedfa1\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T13:47:35.702-03:00\",\"paths\":{\"original\":\"16f96cc0bbc5409390b82d23d5eedfa1-original.png\",\"tiny\":\"16f96cc0bbc5409390b82d23d5eedfa1-tiny.png\",\"small\":\"16f96cc0bbc5409390b82d23d5eedfa1-small.png\",\"medium\":\"16f96cc0bbc5409390b82d23d5eedfa1-medium.png\",\"large\":\"16f96cc0bbc5409390b82d23d5eedfa1-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-11-20 16:47:35.703676"], ["updated_at", "2016-11-20 16:47:35.703676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-ndb5si.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-icmpb3.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-icmpb3.png => 16f96cc0bbc5409390b82d23d5eedfa1-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-ndb5si.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1gx631v.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1gx631v.png => 16f96cc0bbc5409390b82d23d5eedfa1-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-ndb5si.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-jvdnoq.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-jvdnoq.png => 16f96cc0bbc5409390b82d23d5eedfa1-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-ndb5si.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-x4kg9j.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-x4kg9j.png => 16f96cc0bbc5409390b82d23d5eedfa1-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-ndb5si.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1p3afev.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1p3afev.png => 16f96cc0bbc5409390b82d23d5eedfa1-large.png Shop Load (0.6ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 165]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 165]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Attachs::Jobs::DeleteJob] [fe908c85-8ce5-4723-97fa-70329a3a7e01] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["16f96cc0bbc5409390b82d23d5eedfa1-tiny.png", "16f96cc0bbc5409390b82d23d5eedfa1-large.png", "16f96cc0bbc5409390b82d23d5eedfa1-small.png", "16f96cc0bbc5409390b82d23d5eedfa1-medium.png", "16f96cc0bbc5409390b82d23d5eedfa1-original.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [fe908c85-8ce5-4723-97fa-70329a3a7e01] Deleting: 16f96cc0bbc5409390b82d23d5eedfa1-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [fe908c85-8ce5-4723-97fa-70329a3a7e01] Deleting: 16f96cc0bbc5409390b82d23d5eedfa1-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [fe908c85-8ce5-4723-97fa-70329a3a7e01] Deleting: 16f96cc0bbc5409390b82d23d5eedfa1-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [fe908c85-8ce5-4723-97fa-70329a3a7e01] Deleting: 16f96cc0bbc5409390b82d23d5eedfa1-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [fe908c85-8ce5-4723-97fa-70329a3a7e01] Deleting: 16f96cc0bbc5409390b82d23d5eedfa1-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [fe908c85-8ce5-4723-97fa-70329a3a7e01] Performed Attachs::Jobs::DeleteJob from Inline(default) in 3674.97ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: fe908c85-8ce5-4723-97fa-70329a3a7e01) to Inline(default) with arguments: ["16f96cc0bbc5409390b82d23d5eedfa1-tiny.png", "16f96cc0bbc5409390b82d23d5eedfa1-large.png", "16f96cc0bbc5409390b82d23d5eedfa1-small.png", "16f96cc0bbc5409390b82d23d5eedfa1-medium.png", "16f96cc0bbc5409390b82d23d5eedfa1-original.png"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_renames ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-1nkd4qq.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["logo", "{\"id\":\"3526a526cf83427b94ce8fc2542b12a6\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T13:48:12.430-03:00\",\"paths\":{\"original\":\"anderstons/3526a526cf83427b94ce8fc2542b12a6-original.png\",\"tiny\":\"anderstons/3526a526cf83427b94ce8fc2542b12a6-tiny.png\",\"small\":\"anderstons/3526a526cf83427b94ce8fc2542b12a6-small.png\",\"medium\":\"anderstons/3526a526cf83427b94ce8fc2542b12a6-medium.png\",\"large\":\"anderstons/3526a526cf83427b94ce8fc2542b12a6-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["name", "Anderstons"], ["created_at", "2016-11-20 16:48:12.430718"], ["updated_at", "2016-11-20 16:48:12.430718"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-1nkd4qq.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-11u97dx.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-11u97dx.png => anderstons/3526a526cf83427b94ce8fc2542b12a6-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-1nkd4qq.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-li0ppn.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-li0ppn.png => anderstons/3526a526cf83427b94ce8fc2542b12a6-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-1nkd4qq.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-gw6qq0.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-gw6qq0.png => anderstons/3526a526cf83427b94ce8fc2542b12a6-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-1nkd4qq.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-5uhjpr.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-5uhjpr.png => anderstons/3526a526cf83427b94ce8fc2542b12a6-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-1nkd4qq.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1tk2obw.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1tk2obw.png => anderstons/3526a526cf83427b94ce8fc2542b12a6-large.png  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "shops" SET "name" = $1, "updated_at" = $2 WHERE "shops"."id" = $3 [["name", "Musicians Friend"], ["updated_at", "2016-11-20 16:48:25.494285"], ["id", 166]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 166]] [ActiveJob] [Attachs::Jobs::UpdateJob] [f2387708-2393-4e78-a985-8664c5474cb5] Performing Attachs::Jobs::UpdateJob from Inline(default) with arguments: gid://dummy/Shop/166, "logo" [ActiveJob] [Attachs::Jobs::UpdateJob] [f2387708-2393-4e78-a985-8664c5474cb5] Copying: anderstons/3526a526cf83427b94ce8fc2542b12a6-original.png => musicians-friend/3526a526cf83427b94ce8fc2542b12a6-original.png [ActiveJob] [Attachs::Jobs::UpdateJob] [f2387708-2393-4e78-a985-8664c5474cb5] Copying: anderstons/3526a526cf83427b94ce8fc2542b12a6-tiny.png => musicians-friend/3526a526cf83427b94ce8fc2542b12a6-tiny.png [ActiveJob] [Attachs::Jobs::UpdateJob] [f2387708-2393-4e78-a985-8664c5474cb5] Copying: anderstons/3526a526cf83427b94ce8fc2542b12a6-small.png => musicians-friend/3526a526cf83427b94ce8fc2542b12a6-small.png [ActiveJob] [Attachs::Jobs::UpdateJob] [f2387708-2393-4e78-a985-8664c5474cb5] Copying: anderstons/3526a526cf83427b94ce8fc2542b12a6-medium.png => musicians-friend/3526a526cf83427b94ce8fc2542b12a6-medium.png [ActiveJob] [Attachs::Jobs::UpdateJob] [f2387708-2393-4e78-a985-8664c5474cb5] Copying: anderstons/3526a526cf83427b94ce8fc2542b12a6-large.png => musicians-friend/3526a526cf83427b94ce8fc2542b12a6-large.png [ActiveJob] [Attachs::Jobs::UpdateJob] [f2387708-2393-4e78-a985-8664c5474cb5] SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"tiny":"musicians-friend/3526a526cf83427b94ce8fc2542b12a6-tiny.png","large":"musicians-friend/3526a526cf83427b94ce8fc2542b12a6-large.png","small":"musicians-friend/3526a526cf83427b94ce8fc2542b12a6-small.png","medium":"musicians-friend/3526a526cf83427b94ce8fc2542b12a6-medium.png","original":"musicians-friend/3526a526cf83427b94ce8fc2542b12a6-original.png"},"old_paths":["anderstons/3526a526cf83427b94ce8fc2542b12a6-original.png","anderstons/3526a526cf83427b94ce8fc2542b12a6-tiny.png","anderstons/3526a526cf83427b94ce8fc2542b12a6-small.png","anderstons/3526a526cf83427b94ce8fc2542b12a6-medium.png","anderstons/3526a526cf83427b94ce8fc2542b12a6-large.png"],"id":"3526a526cf83427b94ce8fc2542b12a6","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-11-20T13:48:12.430-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 166]] [ActiveJob] [Attachs::Jobs::UpdateJob] [f2387708-2393-4e78-a985-8664c5474cb5] Performed Attachs::Jobs::UpdateJob from Inline(default) in 4091.17ms [ActiveJob] Enqueued Attachs::Jobs::UpdateJob (Job ID: f2387708-2393-4e78-a985-8664c5474cb5) to Inline(default) with arguments: gid://dummy/Shop/166, "logo" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 166]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 166]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Attachs::Jobs::DeleteJob] [d7817d42-a214-4616-a1a5-273ac7e0bf7b] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["musicians-friend/3526a526cf83427b94ce8fc2542b12a6-tiny.png", "musicians-friend/3526a526cf83427b94ce8fc2542b12a6-large.png", "musicians-friend/3526a526cf83427b94ce8fc2542b12a6-small.png", "musicians-friend/3526a526cf83427b94ce8fc2542b12a6-medium.png", "musicians-friend/3526a526cf83427b94ce8fc2542b12a6-original.png", "anderstons/3526a526cf83427b94ce8fc2542b12a6-original.png", "anderstons/3526a526cf83427b94ce8fc2542b12a6-tiny.png", "anderstons/3526a526cf83427b94ce8fc2542b12a6-small.png", "anderstons/3526a526cf83427b94ce8fc2542b12a6-medium.png", "anderstons/3526a526cf83427b94ce8fc2542b12a6-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [d7817d42-a214-4616-a1a5-273ac7e0bf7b] Deleting: musicians-friend/3526a526cf83427b94ce8fc2542b12a6-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [d7817d42-a214-4616-a1a5-273ac7e0bf7b] Deleting: musicians-friend/3526a526cf83427b94ce8fc2542b12a6-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [d7817d42-a214-4616-a1a5-273ac7e0bf7b] Deleting: musicians-friend/3526a526cf83427b94ce8fc2542b12a6-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [d7817d42-a214-4616-a1a5-273ac7e0bf7b] Deleting: musicians-friend/3526a526cf83427b94ce8fc2542b12a6-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [d7817d42-a214-4616-a1a5-273ac7e0bf7b] Deleting: musicians-friend/3526a526cf83427b94ce8fc2542b12a6-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [d7817d42-a214-4616-a1a5-273ac7e0bf7b] Deleting: anderstons/3526a526cf83427b94ce8fc2542b12a6-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [d7817d42-a214-4616-a1a5-273ac7e0bf7b] Deleting: anderstons/3526a526cf83427b94ce8fc2542b12a6-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [d7817d42-a214-4616-a1a5-273ac7e0bf7b] Deleting: anderstons/3526a526cf83427b94ce8fc2542b12a6-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [d7817d42-a214-4616-a1a5-273ac7e0bf7b] Deleting: anderstons/3526a526cf83427b94ce8fc2542b12a6-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [d7817d42-a214-4616-a1a5-273ac7e0bf7b] Deleting: anderstons/3526a526cf83427b94ce8fc2542b12a6-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [d7817d42-a214-4616-a1a5-273ac7e0bf7b] Performed Attachs::Jobs::DeleteJob from Inline(default) in 6855.56ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: d7817d42-a214-4616-a1a5-273ac7e0bf7b) to Inline(default) with arguments: ["musicians-friend/3526a526cf83427b94ce8fc2542b12a6-tiny.png", "musicians-friend/3526a526cf83427b94ce8fc2542b12a6-large.png", "musicians-friend/3526a526cf83427b94ce8fc2542b12a6-small.png", "musicians-friend/3526a526cf83427b94ce8fc2542b12a6-medium.png", "musicians-friend/3526a526cf83427b94ce8fc2542b12a6-original.png", "anderstons/3526a526cf83427b94ce8fc2542b12a6-original.png", "anderstons/3526a526cf83427b94ce8fc2542b12a6-tiny.png", "anderstons/3526a526cf83427b94ce8fc2542b12a6-small.png", "anderstons/3526a526cf83427b94ce8fc2542b12a6-medium.png", "anderstons/3526a526cf83427b94ce8fc2542b12a6-large.png"]  (0.4ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- AttachmentTest: test_nested_attributes --------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------- UploadTest: test_upload ----------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-1ahrsdr.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "uploads" ("file", "record_type", "record_attribute", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "{\"id\":\"7f87e83ef8064ec2aa4491cb926efee1\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T13:49:12.842-03:00\",\"paths\":{\"original\":\"7f87e83ef8064ec2aa4491cb926efee1-original.jpg\",\"tiny\":\"7f87e83ef8064ec2aa4491cb926efee1-tiny.jpg\",\"small\":\"7f87e83ef8064ec2aa4491cb926efee1-small.jpg\",\"medium\":\"7f87e83ef8064ec2aa4491cb926efee1-medium.jpg\",\"large\":\"7f87e83ef8064ec2aa4491cb926efee1-large.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["record_type", "Shop"], ["record_attribute", "logo"], ["created_at", "2016-11-20 16:49:12.843528"], ["updated_at", "2016-11-20 16:49:12.843528"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-1ahrsdr.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1nh9b47.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1nh9b47.jpg => 7f87e83ef8064ec2aa4491cb926efee1-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-1ahrsdr.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1audpym.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1audpym.jpg => 7f87e83ef8064ec2aa4491cb926efee1-tiny.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-1ahrsdr.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1nmy6b8.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1nmy6b8.jpg => 7f87e83ef8064ec2aa4491cb926efee1-small.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-1ahrsdr.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1rn7wl4.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1rn7wl4.jpg => 7f87e83ef8064ec2aa4491cb926efee1-medium.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-1ahrsdr.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-178nffu.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-178nffu.jpg => 7f87e83ef8064ec2aa4491cb926efee1-large.jpg  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"5eafe294ccc747bcb8c22288a6bdbb9d\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T13:49:19.246-03:00\",\"paths\":{\"original\":\"5eafe294ccc747bcb8c22288a6bdbb9d-original.png\",\"tiny\":\"5eafe294ccc747bcb8c22288a6bdbb9d-tiny.png\",\"small\":\"5eafe294ccc747bcb8c22288a6bdbb9d-small.png\",\"medium\":\"5eafe294ccc747bcb8c22288a6bdbb9d-medium.png\",\"large\":\"5eafe294ccc747bcb8c22288a6bdbb9d-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-11-20 16:49:19.248047"], ["updated_at", "2016-11-20 16:49:19.248047"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1lojb0p.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1ubcxd8.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1ubcxd8.png => 5eafe294ccc747bcb8c22288a6bdbb9d-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1lojb0p.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-8ojj6y.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-8ojj6y.png => 5eafe294ccc747bcb8c22288a6bdbb9d-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1lojb0p.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1ccax3c.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1ccax3c.png => 5eafe294ccc747bcb8c22288a6bdbb9d-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1lojb0p.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1p28aht.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1p28aht.png => 5eafe294ccc747bcb8c22288a6bdbb9d-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1lojb0p.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1t1pbs4.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-2339-1t1pbs4.png => 5eafe294ccc747bcb8c22288a6bdbb9d-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [03404fb6-ffc0-4064-81f4-a4485824a048] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["5eafe294ccc747bcb8c22288a6bdbb9d-original.png", "5eafe294ccc747bcb8c22288a6bdbb9d-tiny.png", "5eafe294ccc747bcb8c22288a6bdbb9d-small.png", "5eafe294ccc747bcb8c22288a6bdbb9d-medium.png", "5eafe294ccc747bcb8c22288a6bdbb9d-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [03404fb6-ffc0-4064-81f4-a4485824a048] Deleting: 5eafe294ccc747bcb8c22288a6bdbb9d-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [03404fb6-ffc0-4064-81f4-a4485824a048] Deleting: 5eafe294ccc747bcb8c22288a6bdbb9d-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [03404fb6-ffc0-4064-81f4-a4485824a048] Deleting: 5eafe294ccc747bcb8c22288a6bdbb9d-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [03404fb6-ffc0-4064-81f4-a4485824a048] Deleting: 5eafe294ccc747bcb8c22288a6bdbb9d-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [03404fb6-ffc0-4064-81f4-a4485824a048] Deleting: 5eafe294ccc747bcb8c22288a6bdbb9d-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [03404fb6-ffc0-4064-81f4-a4485824a048] Performed Attachs::Jobs::DeleteJob from Inline(default) in 3447.58ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 03404fb6-ffc0-4064-81f4-a4485824a048) to Inline(default) with arguments: ["5eafe294ccc747bcb8c22288a6bdbb9d-original.png", "5eafe294ccc747bcb8c22288a6bdbb9d-tiny.png", "5eafe294ccc747bcb8c22288a6bdbb9d-small.png", "5eafe294ccc747bcb8c22288a6bdbb9d-medium.png", "5eafe294ccc747bcb8c22288a6bdbb9d-large.png"] Upload Load (0.3ms) SELECT "uploads".* FROM "uploads" WHERE "uploads"."id" = $1 LIMIT 1 [["id", 14]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"paths\":{\"original\":\"4fb12518ac574146b96a35cbcb1404ef-original.png\",\"tiny\":\"4fb12518ac574146b96a35cbcb1404ef-tiny.png\",\"small\":\"4fb12518ac574146b96a35cbcb1404ef-small.png\",\"medium\":\"4fb12518ac574146b96a35cbcb1404ef-medium.png\",\"large\":\"4fb12518ac574146b96a35cbcb1404ef-large.png\"},\"old_paths\":[],\"id\":\"4fb12518ac574146b96a35cbcb1404ef\",\"size\":74474,\"ratio\":0.6725,\"width\":400,\"height\":269,\"filename\":\"image.jpg\",\"uploaded_at\":\"2016-11-20T13:49:32.673-03:00\",\"content_type\":\"image/jpeg\"}"], ["created_at", "2016-11-20 16:49:32.673720"], ["updated_at", "2016-11-20 16:49:32.673720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Copying: 7f87e83ef8064ec2aa4491cb926efee1-tiny.jpg => 4fb12518ac574146b96a35cbcb1404ef-tiny.png Copying: 7f87e83ef8064ec2aa4491cb926efee1-large.jpg => 4fb12518ac574146b96a35cbcb1404ef-large.png Copying: 7f87e83ef8064ec2aa4491cb926efee1-small.jpg => 4fb12518ac574146b96a35cbcb1404ef-small.png Copying: 7f87e83ef8064ec2aa4491cb926efee1-medium.jpg => 4fb12518ac574146b96a35cbcb1404ef-medium.png Copying: 7f87e83ef8064ec2aa4491cb926efee1-original.jpg => 4fb12518ac574146b96a35cbcb1404ef-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [d18f0e68-e0ac-4462-a6df-34137e0bf7b0] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["4fb12518ac574146b96a35cbcb1404ef-original.png", "4fb12518ac574146b96a35cbcb1404ef-tiny.png", "4fb12518ac574146b96a35cbcb1404ef-small.png", "4fb12518ac574146b96a35cbcb1404ef-medium.png", "4fb12518ac574146b96a35cbcb1404ef-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [d18f0e68-e0ac-4462-a6df-34137e0bf7b0] Deleting: 4fb12518ac574146b96a35cbcb1404ef-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [d18f0e68-e0ac-4462-a6df-34137e0bf7b0] Deleting: 4fb12518ac574146b96a35cbcb1404ef-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [d18f0e68-e0ac-4462-a6df-34137e0bf7b0] Deleting: 4fb12518ac574146b96a35cbcb1404ef-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [d18f0e68-e0ac-4462-a6df-34137e0bf7b0] Deleting: 4fb12518ac574146b96a35cbcb1404ef-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [d18f0e68-e0ac-4462-a6df-34137e0bf7b0] Deleting: 4fb12518ac574146b96a35cbcb1404ef-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [d18f0e68-e0ac-4462-a6df-34137e0bf7b0] Performed Attachs::Jobs::DeleteJob from Inline(default) in 3683.6ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: d18f0e68-e0ac-4462-a6df-34137e0bf7b0) to Inline(default) with arguments: ["4fb12518ac574146b96a35cbcb1404ef-original.png", "4fb12518ac574146b96a35cbcb1404ef-tiny.png", "4fb12518ac574146b96a35cbcb1404ef-small.png", "4fb12518ac574146b96a35cbcb1404ef-medium.png", "4fb12518ac574146b96a35cbcb1404ef-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [73db8d08-ffe2-492e-952f-ac4f7eb2f982] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["7f87e83ef8064ec2aa4491cb926efee1-original.jpg", "7f87e83ef8064ec2aa4491cb926efee1-tiny.jpg", "7f87e83ef8064ec2aa4491cb926efee1-small.jpg", "7f87e83ef8064ec2aa4491cb926efee1-medium.jpg", "7f87e83ef8064ec2aa4491cb926efee1-large.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [73db8d08-ffe2-492e-952f-ac4f7eb2f982] Deleting: 7f87e83ef8064ec2aa4491cb926efee1-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [73db8d08-ffe2-492e-952f-ac4f7eb2f982] Deleting: 7f87e83ef8064ec2aa4491cb926efee1-tiny.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [73db8d08-ffe2-492e-952f-ac4f7eb2f982] Deleting: 7f87e83ef8064ec2aa4491cb926efee1-small.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [73db8d08-ffe2-492e-952f-ac4f7eb2f982] Deleting: 7f87e83ef8064ec2aa4491cb926efee1-medium.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [73db8d08-ffe2-492e-952f-ac4f7eb2f982] Deleting: 7f87e83ef8064ec2aa4491cb926efee1-large.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [73db8d08-ffe2-492e-952f-ac4f7eb2f982] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2045.51ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 73db8d08-ffe2-492e-952f-ac4f7eb2f982) to Inline(default) with arguments: ["7f87e83ef8064ec2aa4491cb926efee1-original.jpg", "7f87e83ef8064ec2aa4491cb926efee1-tiny.jpg", "7f87e83ef8064ec2aa4491cb926efee1-small.jpg", "7f87e83ef8064ec2aa4491cb926efee1-medium.jpg", "7f87e83ef8064ec2aa4491cb926efee1-large.jpg"]  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------- ConcernTest: test_inherit -------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidatorsTest: test_size_in ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161120-2339-1gy1q3p.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-1t2phl5.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161120-2339-184q8vw.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-oqncad.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-57kv5u.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- ValidatorsTest: test_size_less_than ----------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161120-2339-4ip90v.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-12qln3v.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-inbrtx.jpg'  (0.3ms) ROLLBACK  (0.2ms) BEGIN ---------------------------- ValidatorsTest: test_methods ----------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidatorsTest: test_content_type_with -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-16iflt6.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-occa7l.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-16w4ocl.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- ValidatorsTest: test_size_within -------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161120-2339-l4c31x.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-uatu8.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161120-2339-1y21url.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-1klsu25.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-19g4jjp.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidatorsTest: test_size_greater_than -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161120-2339-1193dlr.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-88xit4.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-1k3kvlj.jpg'  (0.3ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------ ValidatorsTest: test_content_type_in ------------------------------------ Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-1n3i7g3.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-cq5so7.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-3ivjww.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- ValidatorsTest: test_content_type_within ---------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-f63rd5.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-1m3mf2o.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-2339-1fa5vwd.jpg'  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN -------------------------- MigrationTest: test_column -------------------------- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateUploads (20161031135453)  (0.1ms) SAVEPOINT active_record_1  (1.1ms) DROP TABLE "uploads" SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161031135453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to AddAttachments (20161030160506)  (0.1ms) SAVEPOINT active_record_1  (6.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN -------------------------- MigrationTest: test_column -------------------------- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateUploads (20161031135453)  (0.1ms) SAVEPOINT active_record_1  (0.9ms) DROP TABLE "uploads" SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161031135453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to AddAttachments (20161030160506)  (0.1ms) SAVEPOINT active_record_1  (4.6ms) ALTER TABLE "shops" DROP "files"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (19.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (10.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateShops (20161024234003)  (0.2ms) BEGIN  (13.3ms) CREATE TABLE "shops" ("id" serial primary key, "name" character varying, "logo" jsonb DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161024234003"]]  (6.1ms) COMMIT Migrating to CreateProducts (20161024234029)  (11.8ms) BEGIN  (13.6ms) CREATE TABLE "products" ("id" serial primary key, "shop_id" integer, "name" character varying, "pictures" jsonb DEFAULT '[]', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161024234029"]]  (0.3ms) COMMIT Migrating to AddAttachments (20161030160506)  (0.2ms) BEGIN  (2.7ms) ALTER TABLE "products" ADD "brief" jsonb DEFAULT '{}'  (3.3ms) ALTER TABLE "shops" ADD "files" jsonb DEFAULT '[]' SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161030160506"]]  (2.1ms) COMMIT Migrating to CreateUploads (20161031135453)  (0.2ms) BEGIN  (2.0ms) CREATE TABLE "uploads" ("id" serial primary key, "file" jsonb DEFAULT '{}', "record_type" character varying, "record_attribute" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161031135453"]]  (0.3ms) COMMIT ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'products' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'shops' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (1.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'uploads' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  (184.3ms) DROP DATABASE IF EXISTS "attachs_test"  (415.9ms) CREATE DATABASE "attachs_test" ENCODING = 'utf8' SQL (5.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (3.6ms) CREATE TABLE "products" ("id" serial primary key, "shop_id" integer, "name" character varying, "pictures" jsonb DEFAULT '[]', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "brief" jsonb DEFAULT '{}')  (3.1ms) CREATE TABLE "shops" ("id" serial primary key, "name" character varying, "logo" jsonb DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "files" jsonb DEFAULT '[]')   (2.1ms) CREATE TABLE "uploads" ("id" serial primary key, "file" jsonb DEFAULT '{}', "record_type" character varying, "record_attribute" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20161031135453')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20161024234003')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20161024234029')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20161030160506') ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN -------------------------- MigrationTest: test_column -------------------------- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateUploads (20161031135453)  (0.1ms) SAVEPOINT active_record_1  (0.9ms) DROP TABLE "uploads" SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161031135453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to AddAttachments (20161030160506)  (0.1ms) SAVEPOINT active_record_1  (0.4ms) ALTER TABLE "shops" DROP "files"  (0.3ms) ALTER TABLE "products" DROP "brief" SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161030160506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to CreateProducts (20161024234029)  (0.1ms) SAVEPOINT active_record_1  (0.5ms) DROP TABLE "products" SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161024234029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to CreateShops (20161024234003)  (0.1ms) SAVEPOINT active_record_1  (0.5ms) DROP TABLE "shops" SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161024234003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateShops (20161024234003)  (0.1ms) SAVEPOINT active_record_1  (14.0ms) CREATE TABLE "shops" ("id" serial primary key, "name" character varying, "logo" jsonb DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161024234003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to CreateProducts (20161024234029)  (0.1ms) SAVEPOINT active_record_1  (20.4ms) CREATE TABLE "products" ("id" serial primary key, "shop_id" integer, "name" character varying, "pictures" jsonb DEFAULT '[]', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161024234029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to AddAttachments (20161030160506)  (0.1ms) SAVEPOINT active_record_1  (2.4ms) ALTER TABLE "products" ADD "brief" jsonb DEFAULT '{}'  (3.1ms) ALTER TABLE "shops" ADD "files" jsonb DEFAULT '[]' SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161030160506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to CreateUploads (20161031135453)  (0.1ms) SAVEPOINT active_record_1  (2.8ms) CREATE TABLE "uploads" ("id" serial primary key, "file" jsonb DEFAULT '{}', "record_type" character varying, "record_attribute" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161031135453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN --------------------- QueryTest: test_exist --------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15060-1k5qgiw.jpg'  (0.3ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- AttachmentTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15060-1agu6ym.jpg'  (0.3ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------- AttachmentTest: test_nested_attributes --------------------------------------  (0.3ms) ROLLBACK  (0.2ms) BEGIN ---------------------------- AttachmentTest: test_renames ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15060-qblyat.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------- UploadTest: test_upload ----------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15060-u5a0uy.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (12.5ms) INSERT INTO "uploads" ("file", "record_type", "record_attribute", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "{\"id\":\"2d753fa407e2448eabb4417309f32890\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T14:35:46.796-03:00\",\"paths\":{\"original\":\"2d753fa407e2448eabb4417309f32890-original.jpg\",\"tiny\":\"2d753fa407e2448eabb4417309f32890-tiny.jpg\",\"small\":\"2d753fa407e2448eabb4417309f32890-small.jpg\",\"medium\":\"2d753fa407e2448eabb4417309f32890-medium.jpg\",\"large\":\"2d753fa407e2448eabb4417309f32890-large.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["record_type", "Shop"], ["record_attribute", "logo"], ["created_at", "2016-11-20 17:35:46.797014"], ["updated_at", "2016-11-20 17:35:46.797014"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15060-u5a0uy.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15060-gkgx9c.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15060-gkgx9c.jpg => 2d753fa407e2448eabb4417309f32890-original.jpg  (0.4ms) ROLLBACK  (0.2ms) BEGIN --------------------- TasksTest: test_clear --------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15060-jwfd8g.jpg'  (0.3ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ---------------------------- TasksTest: test_fix_missings ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15060-oeae3t.jpg'  (0.3ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------- TasksTest: test_reprocess ------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15060-13mf29n.jpg'  (0.3ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- GeneratorsTest: test_install ----------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- GeneratorsTest: test_upload ---------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- CollectionTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15060-nf8jxw.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15060-1r8hk90.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"98f654e5bad3415f824f3410bbc35cc8\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T14:35:47.135-03:00\",\"paths\":{\"original\":\"98f654e5bad3415f824f3410bbc35cc8-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725},{\"id\":\"655c6b386ca140cb8f6f22cfdc1866ee\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T14:35:47.136-03:00\",\"paths\":{\"original\":\"655c6b386ca140cb8f6f22cfdc1866ee-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-11-20 17:35:47.137684"], ["updated_at", "2016-11-20 17:35:47.137684"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15060-nf8jxw.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15060-1esh0jc.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15060-1esh0jc.jpg => 98f654e5bad3415f824f3410bbc35cc8-original.jpg  (0.3ms) ROLLBACK  (0.2ms) BEGIN -------------------------- CollectionTest: test_index -------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15060-110lw3u.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15060-1prx2qr.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"3ecab4673c7a4ed58beeb3531f913d7c\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T14:35:47.179-03:00\",\"paths\":{\"original\":\"3ecab4673c7a4ed58beeb3531f913d7c-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725,\"position\":0},{\"id\":\"746635f114e04047a0dd611c1e06731d\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T14:35:47.180-03:00\",\"paths\":{\"original\":\"746635f114e04047a0dd611c1e06731d-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-11-20 17:35:47.181661"], ["updated_at", "2016-11-20 17:35:47.181661"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 2]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- CollectionTest: test_nested_attributes -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15060-h767o6.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15060-1owivuk.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- ValidatorsTest: test_size_within -------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161120-15060-uixfqk.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15060-1g9zcwm.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161120-15060-wwvhp.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15060-u79991.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15060-177zekf.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidatorsTest: test_size_in ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161120-15060-d1lp0x.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15060-wfa491.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161120-15060-r16tkg.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15060-15kunan.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15060-1vigz2y.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidatorsTest: test_size_greater_than -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161120-15060-1x6zsbl.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15060-1n7xnnh.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15060-4y6duk.jpg'  (0.3ms) ROLLBACK  (0.2ms) BEGIN ---------------------------- ValidatorsTest: test_methods ----------------------------  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------- ValidatorsTest: test_size_less_than ----------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161120-15060-6izuzr.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15060-tc0cki.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15060-pqpa7.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- ValidatorsTest: test_content_type_within ---------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15060-i9vjja.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15060-10hmh9x.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15060-1o0o4tv.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidatorsTest: test_content_type_with -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15060-1h3l0je.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15060-1yerf8a.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15060-1l1c9hr.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ ValidatorsTest: test_content_type_in ------------------------------------ Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15060-1pfsx41.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15060-1l02eq1.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15060-uxo3a8.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------- ConcernTest: test_inherit -------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------- MigrationTest: test_column -------------------------- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateUploads (20161031135453)  (0.1ms) SAVEPOINT active_record_1  (12.8ms) DROP TABLE "uploads" SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161031135453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to AddAttachments (20161030160506)  (0.1ms) SAVEPOINT active_record_1  (8.9ms) ALTER TABLE "shops" DROP "files"  (4.9ms) ALTER TABLE "products" DROP "brief" SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161030160506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to CreateProducts (20161024234029)  (0.1ms) SAVEPOINT active_record_1  (12.1ms) DROP TABLE "products" SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161024234029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to CreateShops (20161024234003)  (0.1ms) SAVEPOINT active_record_1  (0.6ms) DROP TABLE "shops" SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161024234003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateShops (20161024234003)  (0.1ms) SAVEPOINT active_record_1  (24.1ms) CREATE TABLE "shops" ("id" serial primary key, "name" character varying, "logo" jsonb DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161024234003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to CreateProducts (20161024234029)  (0.1ms) SAVEPOINT active_record_1  (2.4ms) CREATE TABLE "products" ("id" serial primary key, "shop_id" integer, "name" character varying, "pictures" jsonb DEFAULT '[]', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161024234029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to AddAttachments (20161030160506)  (0.1ms) SAVEPOINT active_record_1  (2.7ms) ALTER TABLE "products" ADD "brief" jsonb DEFAULT '{}'  (2.3ms) ALTER TABLE "shops" ADD "files" jsonb DEFAULT '[]' SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161030160506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to CreateUploads (20161031135453)  (0.1ms) SAVEPOINT active_record_1  (2.1ms) CREATE TABLE "uploads" ("id" serial primary key, "file" jsonb DEFAULT '{}', "record_type" character varying, "record_attribute" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161031135453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.4ms) ROLLBACK  (0.1ms) BEGIN --------------------------- HelperTest: test_fields_for --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15060-e5u9e4.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"86c7084acea14ce5bd886b9062e71c91\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T14:35:47.582-03:00\",\"paths\":{\"original\":\"86c7084acea14ce5bd886b9062e71c91-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-11-20 17:35:47.583537"], ["updated_at", "2016-11-20 17:35:47.583537"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15060-e5u9e4.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15060-1cvvv68.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15060-1cvvv68.jpg => 86c7084acea14ce5bd886b9062e71c91-original.jpg  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN --------------------- QueryTest: test_exist --------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15119-1julx4d.jpg'  (0.3ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN --------------------------- HelperTest: test_fields_for --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15119-qxswcf.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"cc554cbbf7e64fca8387f5130e853909\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T14:36:00.487-03:00\",\"paths\":{\"original\":\"cc554cbbf7e64fca8387f5130e853909-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-11-20 17:36:00.487931"], ["updated_at", "2016-11-20 17:36:00.487931"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15119-qxswcf.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15119-1g1dtjy.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15119-1g1dtjy.jpg => cc554cbbf7e64fca8387f5130e853909-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [d027a3e4-eb1b-4d59-bd1e-c3026d18c754] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["cc554cbbf7e64fca8387f5130e853909-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [d027a3e4-eb1b-4d59-bd1e-c3026d18c754] Deleting: cc554cbbf7e64fca8387f5130e853909-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [d027a3e4-eb1b-4d59-bd1e-c3026d18c754] Performed Attachs::Jobs::DeleteJob from Inline(default) in 386.58ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: d027a3e4-eb1b-4d59-bd1e-c3026d18c754) to Inline(default) with arguments: ["cc554cbbf7e64fca8387f5130e853909-original.jpg"]  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------- CollectionTest: test_index -------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15119-1878qp6.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15119-1ah0o5b.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"fda5b07630ad41bda6a60108a5db9dd3\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T14:36:03.728-03:00\",\"paths\":{\"original\":\"fda5b07630ad41bda6a60108a5db9dd3-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725,\"position\":0},{\"id\":\"9e0053bc0b4444b1a4a6975f22fb8125\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T14:36:03.729-03:00\",\"paths\":{\"original\":\"9e0053bc0b4444b1a4a6975f22fb8125-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-11-20 17:36:03.730619"], ["updated_at", "2016-11-20 17:36:03.730619"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 5]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- CollectionTest: test_nested_attributes -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15119-1memx18.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15119-1xwcj9v.jpg'  (0.3ms) ROLLBACK  (0.2ms) BEGIN ------------------------------- CollectionTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15119-1frssk7.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15119-z4cmka.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"edff568fbf63499baf71ee493d2c06de\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T14:36:03.774-03:00\",\"paths\":{\"original\":\"edff568fbf63499baf71ee493d2c06de-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725},{\"id\":\"c075e510c9fa43458c18735b95325daa\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T14:36:03.775-03:00\",\"paths\":{\"original\":\"c075e510c9fa43458c18735b95325daa-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-11-20 17:36:03.776498"], ["updated_at", "2016-11-20 17:36:03.776498"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15119-1frssk7.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15119-1pobn7z.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15119-1pobn7z.jpg => edff568fbf63499baf71ee493d2c06de-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15119-z4cmka.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15119-wje9hg.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15119-wje9hg.jpg => c075e510c9fa43458c18735b95325daa-original.jpg Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 6]] [ActiveJob] [Attachs::Jobs::DeleteJob] [bdef4e74-a233-41c9-836b-3f751e3bbe4b] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["edff568fbf63499baf71ee493d2c06de-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [bdef4e74-a233-41c9-836b-3f751e3bbe4b] Deleting: edff568fbf63499baf71ee493d2c06de-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [bdef4e74-a233-41c9-836b-3f751e3bbe4b] Performed Attachs::Jobs::DeleteJob from Inline(default) in 405.68ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: bdef4e74-a233-41c9-836b-3f751e3bbe4b) to Inline(default) with arguments: ["edff568fbf63499baf71ee493d2c06de-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [8f5937e9-e74b-4a52-91d2-8ae54be30c14] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["c075e510c9fa43458c18735b95325daa-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [8f5937e9-e74b-4a52-91d2-8ae54be30c14] Deleting: c075e510c9fa43458c18735b95325daa-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [8f5937e9-e74b-4a52-91d2-8ae54be30c14] Performed Attachs::Jobs::DeleteJob from Inline(default) in 407.56ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 8f5937e9-e74b-4a52-91d2-8ae54be30c14) to Inline(default) with arguments: ["c075e510c9fa43458c18735b95325daa-original.jpg"]  (0.3ms) ROLLBACK  (0.2ms) BEGIN ------------------------------- AttachmentTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15119-flbc7v.jpg'  (0.3ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_renames ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15119-1mh61px.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------- AttachmentTest: test_nested_attributes --------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- GeneratorsTest: test_install ----------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- GeneratorsTest: test_upload ---------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------- MigrationTest: test_column -------------------------- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateUploads (20161031135453)  (0.1ms) SAVEPOINT active_record_1  (0.8ms) DROP TABLE "uploads" SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161031135453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to AddAttachments (20161030160506)  (0.1ms) SAVEPOINT active_record_1  (0.4ms) ALTER TABLE "shops" DROP "files"  (0.3ms) ALTER TABLE "products" DROP "brief" SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161030160506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to CreateProducts (20161024234029)  (0.1ms) SAVEPOINT active_record_1  (0.7ms) DROP TABLE "products" SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161024234029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to CreateShops (20161024234003)  (0.1ms) SAVEPOINT active_record_1  (0.6ms) DROP TABLE "shops" SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161024234003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateShops (20161024234003)  (0.1ms) SAVEPOINT active_record_1  (6.8ms) CREATE TABLE "shops" ("id" serial primary key, "name" character varying, "logo" jsonb DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161024234003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to CreateProducts (20161024234029)  (0.1ms) SAVEPOINT active_record_1  (1.9ms) CREATE TABLE "products" ("id" serial primary key, "shop_id" integer, "name" character varying, "pictures" jsonb DEFAULT '[]', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161024234029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to AddAttachments (20161030160506)  (0.1ms) SAVEPOINT active_record_1  (4.6ms) ALTER TABLE "products" ADD "brief" jsonb DEFAULT '{}'  (1.8ms) ALTER TABLE "shops" ADD "files" jsonb DEFAULT '[]' SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161030160506"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Migrating to CreateUploads (20161031135453)  (0.1ms) SAVEPOINT active_record_1  (4.2ms) CREATE TABLE "uploads" ("id" serial primary key, "file" jsonb DEFAULT '{}', "record_type" character varying, "record_attribute" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161031135453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- ValidatorsTest: test_content_type_within ---------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15119-nmhqlo.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15119-1kz1ggg.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15119-18yw4rp.jpg'  (0.3ms) ROLLBACK  (0.2ms) BEGIN ---------------------------- ValidatorsTest: test_size_in ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161120-15119-19jz2ls.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15119-1bks3bq.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161120-15119-1dn69yr.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15119-14q5h1e.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15119-10y8ep5.jpg'  (0.3ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------- ValidatorsTest: test_size_less_than ----------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161120-15119-iz5nrn.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15119-zvfpq1.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15119-1bkwt6m.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidatorsTest: test_size_greater_than -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161120-15119-mmybkb.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15119-192alcp.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15119-mr3jvw.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidatorsTest: test_methods ----------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- ValidatorsTest: test_size_within -------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161120-15119-1gsdaf2.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15119-e45tyc.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161120-15119-1gjv5sy.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15119-6xas73.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15119-10w3q0r.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidatorsTest: test_content_type_with -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15119-1tae4fb.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15119-15b9cdj.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15119-8ncog0.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ ValidatorsTest: test_content_type_in ------------------------------------ Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15119-m0g9xi.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15119-1ofyo1n.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15119-1gq0ard.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------- UploadTest: test_upload ----------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15119-41s2yc.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "uploads" ("file", "record_type", "record_attribute", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "{\"id\":\"7b6784048c5546e39bcb8930c4065ee7\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T14:36:06.635-03:00\",\"paths\":{\"original\":\"7b6784048c5546e39bcb8930c4065ee7-original.jpg\",\"tiny\":\"7b6784048c5546e39bcb8930c4065ee7-tiny.jpg\",\"small\":\"7b6784048c5546e39bcb8930c4065ee7-small.jpg\",\"medium\":\"7b6784048c5546e39bcb8930c4065ee7-medium.jpg\",\"large\":\"7b6784048c5546e39bcb8930c4065ee7-large.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["record_type", "Shop"], ["record_attribute", "logo"], ["created_at", "2016-11-20 17:36:06.636171"], ["updated_at", "2016-11-20 17:36:06.636171"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15119-41s2yc.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15119-18qyexn.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15119-18qyexn.jpg => 7b6784048c5546e39bcb8930c4065ee7-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15119-41s2yc.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15119-15bffex.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15119-15bffex.jpg => 7b6784048c5546e39bcb8930c4065ee7-tiny.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15119-41s2yc.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15119-15dek5r.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15119-15dek5r.jpg => 7b6784048c5546e39bcb8930c4065ee7-small.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15119-41s2yc.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15119-gec0bh.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15119-gec0bh.jpg => 7b6784048c5546e39bcb8930c4065ee7-medium.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15119-41s2yc.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15119-yk7wrg.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15119-yk7wrg.jpg => 7b6784048c5546e39bcb8930c4065ee7-large.jpg  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN ------------------------- ConcernTest: test_inherit -------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------- TasksTest: test_clear --------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15119-1bfyoo7.jpg'  (0.3ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- TasksTest: test_fix_missings ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15119-blyev7.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------- TasksTest: test_reprocess ------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15119-6lt177.jpg'  (0.3ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN ----------------------- UploadTest: test_upload ----------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15190-1x0k228.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "uploads" ("file", "record_type", "record_attribute", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "{\"id\":\"bf1e58a4025e4ffe87ca85a4eff4beed\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T14:36:27.254-03:00\",\"paths\":{\"original\":\"bf1e58a4025e4ffe87ca85a4eff4beed-original.jpg\",\"tiny\":\"bf1e58a4025e4ffe87ca85a4eff4beed-tiny.jpg\",\"small\":\"bf1e58a4025e4ffe87ca85a4eff4beed-small.jpg\",\"medium\":\"bf1e58a4025e4ffe87ca85a4eff4beed-medium.jpg\",\"large\":\"bf1e58a4025e4ffe87ca85a4eff4beed-large.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["record_type", "Shop"], ["record_attribute", "logo"], ["created_at", "2016-11-20 17:36:27.255223"], ["updated_at", "2016-11-20 17:36:27.255223"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15190-1x0k228.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15190-5eo9kb.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15190-5eo9kb.jpg => bf1e58a4025e4ffe87ca85a4eff4beed-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15190-1x0k228.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15190-1ez51a7.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15190-1ez51a7.jpg => bf1e58a4025e4ffe87ca85a4eff4beed-tiny.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15190-1x0k228.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15190-1kn8yho.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15190-1kn8yho.jpg => bf1e58a4025e4ffe87ca85a4eff4beed-small.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15190-1x0k228.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15190-g30prs.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15190-g30prs.jpg => bf1e58a4025e4ffe87ca85a4eff4beed-medium.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15190-1x0k228.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15190-e5niv0.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15190-e5niv0.jpg => bf1e58a4025e4ffe87ca85a4eff4beed-large.jpg  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- AttachmentTest: test_nested_attributes --------------------------------------  (0.3ms) ROLLBACK  (0.2ms) BEGIN ------------------------------- AttachmentTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15190-5cagw3.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_renames ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15190-dtkdgn.jpg'  (0.3ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------- MigrationTest: test_column -------------------------- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateUploads (20161031135453)  (0.1ms) SAVEPOINT active_record_1  (0.9ms) DROP TABLE "uploads" SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161031135453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to AddAttachments (20161030160506)  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ALTER TABLE "shops" DROP "files"  (0.3ms) ALTER TABLE "products" DROP "brief" SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161030160506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to CreateProducts (20161024234029)  (0.1ms) SAVEPOINT active_record_1  (0.5ms) DROP TABLE "products" SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161024234029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to CreateShops (20161024234003)  (0.1ms) SAVEPOINT active_record_1  (0.5ms) DROP TABLE "shops" SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161024234003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateShops (20161024234003)  (0.1ms) SAVEPOINT active_record_1  (2.7ms) CREATE TABLE "shops" ("id" serial primary key, "name" character varying, "logo" jsonb DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161024234003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to CreateProducts (20161024234029)  (0.1ms) SAVEPOINT active_record_1  (1.9ms) CREATE TABLE "products" ("id" serial primary key, "shop_id" integer, "name" character varying, "pictures" jsonb DEFAULT '[]', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161024234029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to AddAttachments (20161030160506)  (0.1ms) SAVEPOINT active_record_1  (2.3ms) ALTER TABLE "products" ADD "brief" jsonb DEFAULT '{}'  (1.7ms) ALTER TABLE "shops" ADD "files" jsonb DEFAULT '[]' SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161030160506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to CreateUploads (20161031135453)  (0.1ms) SAVEPOINT active_record_1  (1.9ms) CREATE TABLE "uploads" ("id" serial primary key, "file" jsonb DEFAULT '{}', "record_type" character varying, "record_attribute" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161031135453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.5ms) ROLLBACK  (0.2ms) BEGIN --------------------- QueryTest: test_exist --------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15190-oza4lb.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------- ConcernTest: test_inherit -------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidatorsTest: test_content_type_with -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15190-e9rhms.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15190-8l5j4f.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15190-bc3lt2.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- ValidatorsTest: test_content_type_within ---------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15190-xfum3s.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15190-1msjxou.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15190-h8cqx7.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidatorsTest: test_methods ----------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidatorsTest: test_size_in ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161120-15190-1chfguk.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15190-xhyqmg.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161120-15190-bcx8sq.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15190-77y9ox.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15190-1r5vd52.jpg'  (0.3ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------- ValidatorsTest: test_size_less_than ----------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161120-15190-6waj47.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15190-7xrrda.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15190-1qwnxjt.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- ValidatorsTest: test_size_within -------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161120-15190-a2ypah.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15190-1uvqnpm.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161120-15190-89gnw8.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15190-g111rd.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15190-1sxu5vn.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidatorsTest: test_size_greater_than -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161120-15190-4mx3y.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15190-8nlfga.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15190-1rb0xmu.jpg'  (0.3ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------ ValidatorsTest: test_content_type_in ------------------------------------ Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15190-17ns31z.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15190-1yyc89m.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15190-1pwkenb.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- HelperTest: test_fields_for --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15190-sbzkcx.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"97cf70b511054ad9a7cf61ca23e1fdca\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T14:36:33.369-03:00\",\"paths\":{\"original\":\"97cf70b511054ad9a7cf61ca23e1fdca-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-11-20 17:36:33.369588"], ["updated_at", "2016-11-20 17:36:33.369588"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15190-sbzkcx.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15190-16aqhlk.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15190-16aqhlk.jpg => 97cf70b511054ad9a7cf61ca23e1fdca-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [bf7cb91b-1660-4f2d-95f5-8aaa4f0ed996] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["97cf70b511054ad9a7cf61ca23e1fdca-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [bf7cb91b-1660-4f2d-95f5-8aaa4f0ed996] Deleting: 97cf70b511054ad9a7cf61ca23e1fdca-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [bf7cb91b-1660-4f2d-95f5-8aaa4f0ed996] Performed Attachs::Jobs::DeleteJob from Inline(default) in 394.14ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: bf7cb91b-1660-4f2d-95f5-8aaa4f0ed996) to Inline(default) with arguments: ["97cf70b511054ad9a7cf61ca23e1fdca-original.jpg"]  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- TasksTest: test_fix_missings ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15190-uwkmcp.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------- TasksTest: test_reprocess ------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15190-mrgwns.jpg'  (0.3ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN --------------------- TasksTest: test_clear --------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15190-13whjsn.jpg'  (0.3ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------- CollectionTest: test_index -------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15190-zdcwsc.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15190-1er0s9h.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"2e72368ef31044a8baf315979c016f87\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T14:36:36.668-03:00\",\"paths\":{\"original\":\"2e72368ef31044a8baf315979c016f87-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725,\"position\":0},{\"id\":\"ed6a7278b6f84862895f14683c9c87b7\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T14:36:36.669-03:00\",\"paths\":{\"original\":\"ed6a7278b6f84862895f14683c9c87b7-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-11-20 17:36:36.670031"], ["updated_at", "2016-11-20 17:36:36.670031"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 8]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- CollectionTest: test_nested_attributes -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15190-1b785hy.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15190-ag2vvy.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- CollectionTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15190-pd0h13.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15190-1wcreyo.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"96e6905ce21e4212a8889f5364f0a6a9\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T14:36:36.710-03:00\",\"paths\":{\"original\":\"96e6905ce21e4212a8889f5364f0a6a9-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725},{\"id\":\"68866293133046b987b0513988e544fb\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T14:36:36.711-03:00\",\"paths\":{\"original\":\"68866293133046b987b0513988e544fb-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-11-20 17:36:36.712375"], ["updated_at", "2016-11-20 17:36:36.712375"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15190-pd0h13.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15190-1tufuoa.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15190-1tufuoa.jpg => 96e6905ce21e4212a8889f5364f0a6a9-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15190-1wcreyo.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15190-1h2lhpu.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15190-1h2lhpu.jpg => 68866293133046b987b0513988e544fb-original.jpg Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 9]] [ActiveJob] [Attachs::Jobs::DeleteJob] [0dd5332b-0d9d-4009-8849-48ca4460c63c] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["96e6905ce21e4212a8889f5364f0a6a9-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [0dd5332b-0d9d-4009-8849-48ca4460c63c] Deleting: 96e6905ce21e4212a8889f5364f0a6a9-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [0dd5332b-0d9d-4009-8849-48ca4460c63c] Performed Attachs::Jobs::DeleteJob from Inline(default) in 810.58ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 0dd5332b-0d9d-4009-8849-48ca4460c63c) to Inline(default) with arguments: ["96e6905ce21e4212a8889f5364f0a6a9-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [c13d33fa-ecde-4623-b3b3-2b2c1470f441] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["68866293133046b987b0513988e544fb-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [c13d33fa-ecde-4623-b3b3-2b2c1470f441] Deleting: 68866293133046b987b0513988e544fb-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [c13d33fa-ecde-4623-b3b3-2b2c1470f441] Performed Attachs::Jobs::DeleteJob from Inline(default) in 819.52ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: c13d33fa-ecde-4623-b3b3-2b2c1470f441) to Inline(default) with arguments: ["68866293133046b987b0513988e544fb-original.jpg"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- GeneratorsTest: test_install ----------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- GeneratorsTest: test_upload ---------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------------- TasksTest: test_fix_missings ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-19x052t.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (4.6ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"5afa267592404d82b6b9733bd6d7c4db\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T14:37:38.902-03:00\",\"paths\":{\"original\":\"5afa267592404d82b6b9733bd6d7c4db-original.png\",\"tiny\":\"5afa267592404d82b6b9733bd6d7c4db-tiny.png\",\"small\":\"5afa267592404d82b6b9733bd6d7c4db-small.png\",\"medium\":\"5afa267592404d82b6b9733bd6d7c4db-medium.png\",\"large\":\"5afa267592404d82b6b9733bd6d7c4db-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-11-20 17:37:38.903031"], ["updated_at", "2016-11-20 17:37:38.903031"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-19x052t.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1cbjzty.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1cbjzty.png => 5afa267592404d82b6b9733bd6d7c4db-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-19x052t.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1ldezbi.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1ldezbi.png => 5afa267592404d82b6b9733bd6d7c4db-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-19x052t.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1fesa5.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1fesa5.png => 5afa267592404d82b6b9733bd6d7c4db-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-19x052t.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-ssiqrr.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-ssiqrr.png => 5afa267592404d82b6b9733bd6d7c4db-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-19x052t.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-h05oe6.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-h05oe6.png => 5afa267592404d82b6b9733bd6d7c4db-large.png Deleting: 5afa267592404d82b6b9733bd6d7c4db-tiny.png Deleting: 5afa267592404d82b6b9733bd6d7c4db-small.png Shop Load (0.5ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Fix missings of Shop #1 => logo Generating: tiny => 5afa267592404d82b6b9733bd6d7c4db-tiny.png Generating: small => 5afa267592404d82b6b9733bd6d7c4db-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-11wu7bb.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-hxfir7.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-hxfir7.png => 5afa267592404d82b6b9733bd6d7c4db-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-11wu7bb.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1kqwcw3.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1kqwcw3.png => 5afa267592404d82b6b9733bd6d7c4db-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-11wu7bb.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-16nsdv5.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-16nsdv5.png => 5afa267592404d82b6b9733bd6d7c4db-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [17611c79-4da7-48bd-9b32-b47d4e4cb45c] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["5afa267592404d82b6b9733bd6d7c4db-original.png", "5afa267592404d82b6b9733bd6d7c4db-tiny.png", "5afa267592404d82b6b9733bd6d7c4db-small.png", "5afa267592404d82b6b9733bd6d7c4db-medium.png", "5afa267592404d82b6b9733bd6d7c4db-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [17611c79-4da7-48bd-9b32-b47d4e4cb45c] Deleting: 5afa267592404d82b6b9733bd6d7c4db-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [17611c79-4da7-48bd-9b32-b47d4e4cb45c] Deleting: 5afa267592404d82b6b9733bd6d7c4db-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [17611c79-4da7-48bd-9b32-b47d4e4cb45c] Deleting: 5afa267592404d82b6b9733bd6d7c4db-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [17611c79-4da7-48bd-9b32-b47d4e4cb45c] Deleting: 5afa267592404d82b6b9733bd6d7c4db-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [17611c79-4da7-48bd-9b32-b47d4e4cb45c] Deleting: 5afa267592404d82b6b9733bd6d7c4db-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [17611c79-4da7-48bd-9b32-b47d4e4cb45c] Performed Attachs::Jobs::DeleteJob from Inline(default) in 4103.45ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 17611c79-4da7-48bd-9b32-b47d4e4cb45c) to Inline(default) with arguments: ["5afa267592404d82b6b9733bd6d7c4db-original.png", "5afa267592404d82b6b9733bd6d7c4db-tiny.png", "5afa267592404d82b6b9733bd6d7c4db-small.png", "5afa267592404d82b6b9733bd6d7c4db-medium.png", "5afa267592404d82b6b9733bd6d7c4db-large.png"]  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------- TasksTest: test_reprocess ------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-b3gks.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"23b559f36fc04d24989a0d3dc3dc6644\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T14:38:03.433-03:00\",\"paths\":{\"original\":\"23b559f36fc04d24989a0d3dc3dc6644-original.png\",\"tiny\":\"23b559f36fc04d24989a0d3dc3dc6644-tiny.png\",\"small\":\"23b559f36fc04d24989a0d3dc3dc6644-small.png\",\"medium\":\"23b559f36fc04d24989a0d3dc3dc6644-medium.png\",\"large\":\"23b559f36fc04d24989a0d3dc3dc6644-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-11-20 17:38:03.434083"], ["updated_at", "2016-11-20 17:38:03.434083"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-b3gks.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1r7cf6l.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1r7cf6l.png => 23b559f36fc04d24989a0d3dc3dc6644-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-b3gks.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1vkuf83.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1vkuf83.png => 23b559f36fc04d24989a0d3dc3dc6644-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-b3gks.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-13k7k5z.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-13k7k5z.png => 23b559f36fc04d24989a0d3dc3dc6644-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-b3gks.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-mw8n8t.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-mw8n8t.png => 23b559f36fc04d24989a0d3dc3dc6644-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-b3gks.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-jedzkx.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-jedzkx.png => 23b559f36fc04d24989a0d3dc3dc6644-large.png Deleting: 23b559f36fc04d24989a0d3dc3dc6644-tiny.png Deleting: 23b559f36fc04d24989a0d3dc3dc6644-small.png Deleting: 23b559f36fc04d24989a0d3dc3dc6644-medium.png Deleting: 23b559f36fc04d24989a0d3dc3dc6644-large.png Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Reprocessing Shop #2 => logo Regenerating: tiny => 23b559f36fc04d24989a0d3dc3dc6644-tiny.png Regenerating: large => 23b559f36fc04d24989a0d3dc3dc6644-large.png Regenerating: small => 23b559f36fc04d24989a0d3dc3dc6644-small.png Regenerating: medium => 23b559f36fc04d24989a0d3dc3dc6644-medium.png Deleting: 23b559f36fc04d24989a0d3dc3dc6644-original.png Regenerating: original => 23b559f36fc04d24989a0d3dc3dc6644-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-jh5w3j.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-qxvwlo.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-qxvwlo.png => 23b559f36fc04d24989a0d3dc3dc6644-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-jh5w3j.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-119q865.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-119q865.png => 23b559f36fc04d24989a0d3dc3dc6644-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-jh5w3j.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-138kj26.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-138kj26.png => 23b559f36fc04d24989a0d3dc3dc6644-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-jh5w3j.png' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-ca90pd.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-ca90pd.png => 23b559f36fc04d24989a0d3dc3dc6644-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-jh5w3j.png' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1ta99uw.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1ta99uw.png => 23b559f36fc04d24989a0d3dc3dc6644-large.png SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"original":"23b559f36fc04d24989a0d3dc3dc6644-original.png","tiny":"23b559f36fc04d24989a0d3dc3dc6644-tiny.png","small":"23b559f36fc04d24989a0d3dc3dc6644-small.png","medium":"23b559f36fc04d24989a0d3dc3dc6644-medium.png","large":"23b559f36fc04d24989a0d3dc3dc6644-large.png"},"old_paths":[],"id":"23b559f36fc04d24989a0d3dc3dc6644","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-11-20T14:38:03.433-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 2]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Reprocessing Shop #2 => logo Deleting: 23b559f36fc04d24989a0d3dc3dc6644-tiny.png Regenerating: tiny => 23b559f36fc04d24989a0d3dc3dc6644-tiny.png Deleting: 23b559f36fc04d24989a0d3dc3dc6644-large.png Regenerating: large => 23b559f36fc04d24989a0d3dc3dc6644-large.png Deleting: 23b559f36fc04d24989a0d3dc3dc6644-small.png Regenerating: small => 23b559f36fc04d24989a0d3dc3dc6644-small.png Deleting: 23b559f36fc04d24989a0d3dc3dc6644-medium.png Regenerating: medium => 23b559f36fc04d24989a0d3dc3dc6644-medium.png Deleting: 23b559f36fc04d24989a0d3dc3dc6644-original.png Regenerating: original => 23b559f36fc04d24989a0d3dc3dc6644-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-jbtfic.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-15rjuur.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-15rjuur.png => 23b559f36fc04d24989a0d3dc3dc6644-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-jbtfic.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1jgnvdh.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1jgnvdh.png => 23b559f36fc04d24989a0d3dc3dc6644-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-jbtfic.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-b8o0u6.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-b8o0u6.png => 23b559f36fc04d24989a0d3dc3dc6644-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-jbtfic.png' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-8cotvz.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-8cotvz.png => 23b559f36fc04d24989a0d3dc3dc6644-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-jbtfic.png' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-viibb6.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-viibb6.png => 23b559f36fc04d24989a0d3dc3dc6644-large.png SQL (0.4ms) UPDATE "shops" SET "logo" = '{"paths":{"original":"23b559f36fc04d24989a0d3dc3dc6644-original.png","tiny":"23b559f36fc04d24989a0d3dc3dc6644-tiny.png","small":"23b559f36fc04d24989a0d3dc3dc6644-small.png","medium":"23b559f36fc04d24989a0d3dc3dc6644-medium.png","large":"23b559f36fc04d24989a0d3dc3dc6644-large.png"},"old_paths":[],"id":"23b559f36fc04d24989a0d3dc3dc6644","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-11-20T14:38:03.433-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 2]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 2]] [ActiveJob] [Attachs::Jobs::DeleteJob] [35f258c7-1d6d-4845-9298-7f2c26576bbc] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["23b559f36fc04d24989a0d3dc3dc6644-tiny.png", "23b559f36fc04d24989a0d3dc3dc6644-large.png", "23b559f36fc04d24989a0d3dc3dc6644-small.png", "23b559f36fc04d24989a0d3dc3dc6644-medium.png", "23b559f36fc04d24989a0d3dc3dc6644-original.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [35f258c7-1d6d-4845-9298-7f2c26576bbc] Deleting: 23b559f36fc04d24989a0d3dc3dc6644-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [35f258c7-1d6d-4845-9298-7f2c26576bbc] Deleting: 23b559f36fc04d24989a0d3dc3dc6644-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [35f258c7-1d6d-4845-9298-7f2c26576bbc] Deleting: 23b559f36fc04d24989a0d3dc3dc6644-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [35f258c7-1d6d-4845-9298-7f2c26576bbc] Deleting: 23b559f36fc04d24989a0d3dc3dc6644-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [35f258c7-1d6d-4845-9298-7f2c26576bbc] Deleting: 23b559f36fc04d24989a0d3dc3dc6644-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [35f258c7-1d6d-4845-9298-7f2c26576bbc] Performed Attachs::Jobs::DeleteJob from Inline(default) in 4499.9ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 35f258c7-1d6d-4845-9298-7f2c26576bbc) to Inline(default) with arguments: ["23b559f36fc04d24989a0d3dc3dc6644-tiny.png", "23b559f36fc04d24989a0d3dc3dc6644-large.png", "23b559f36fc04d24989a0d3dc3dc6644-small.png", "23b559f36fc04d24989a0d3dc3dc6644-medium.png", "23b559f36fc04d24989a0d3dc3dc6644-original.png"]  (0.3ms) ROLLBACK  (0.1ms) BEGIN --------------------- TasksTest: test_clear --------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-ywgs0n.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"a705d6ad97eb42b7afe3d324833bad12\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T14:38:43.496-03:00\",\"paths\":{\"original\":\"a705d6ad97eb42b7afe3d324833bad12-original.png\",\"tiny\":\"a705d6ad97eb42b7afe3d324833bad12-tiny.png\",\"small\":\"a705d6ad97eb42b7afe3d324833bad12-small.png\",\"medium\":\"a705d6ad97eb42b7afe3d324833bad12-medium.png\",\"large\":\"a705d6ad97eb42b7afe3d324833bad12-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-11-20 17:38:43.497009"], ["updated_at", "2016-11-20 17:38:43.497009"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-ywgs0n.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1qc7co4.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1qc7co4.png => a705d6ad97eb42b7afe3d324833bad12-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-ywgs0n.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-zi8nqv.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-zi8nqv.png => a705d6ad97eb42b7afe3d324833bad12-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-ywgs0n.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-c19evy.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-c19evy.png => a705d6ad97eb42b7afe3d324833bad12-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-ywgs0n.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-i84lsz.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-i84lsz.png => a705d6ad97eb42b7afe3d324833bad12-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-ywgs0n.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1m34r3o.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1m34r3o.png => a705d6ad97eb42b7afe3d324833bad12-large.png Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-1xowzdf.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"2f8cf41cc36a44e68fa6505a8bcc3776\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T14:38:49.199-03:00\",\"paths\":{\"original\":\"2f8cf41cc36a44e68fa6505a8bcc3776-original.png\",\"tiny\":\"2f8cf41cc36a44e68fa6505a8bcc3776-tiny.png\",\"small\":\"2f8cf41cc36a44e68fa6505a8bcc3776-small.png\",\"medium\":\"2f8cf41cc36a44e68fa6505a8bcc3776-medium.png\",\"large\":\"2f8cf41cc36a44e68fa6505a8bcc3776-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-11-20 17:38:49.199617"], ["updated_at", "2016-11-20 17:38:49.199617"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-1xowzdf.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1b92y20.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1b92y20.png => 2f8cf41cc36a44e68fa6505a8bcc3776-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-1xowzdf.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1jap2ft.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1jap2ft.png => 2f8cf41cc36a44e68fa6505a8bcc3776-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-1xowzdf.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-sg802v.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-sg802v.png => 2f8cf41cc36a44e68fa6505a8bcc3776-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-1xowzdf.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1i40icn.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1i40icn.png => 2f8cf41cc36a44e68fa6505a8bcc3776-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-1xowzdf.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-f42pw5.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-f42pw5.png => 2f8cf41cc36a44e68fa6505a8bcc3776-large.png SQL (0.2ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 4]]  (7.9ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '2f8cf41cc36a44e68fa6505a8bcc3776-large.png' OR old_paths.value = '2f8cf41cc36a44e68fa6505a8bcc3776-large.png') Deleting 2f8cf41cc36a44e68fa6505a8bcc3776-large.png Deleting: 2f8cf41cc36a44e68fa6505a8bcc3776-large.png  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '2f8cf41cc36a44e68fa6505a8bcc3776-medium.png' OR old_paths.value = '2f8cf41cc36a44e68fa6505a8bcc3776-medium.png') Deleting 2f8cf41cc36a44e68fa6505a8bcc3776-medium.png Deleting: 2f8cf41cc36a44e68fa6505a8bcc3776-medium.png  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '2f8cf41cc36a44e68fa6505a8bcc3776-original.png' OR old_paths.value = '2f8cf41cc36a44e68fa6505a8bcc3776-original.png') Deleting 2f8cf41cc36a44e68fa6505a8bcc3776-original.png Deleting: 2f8cf41cc36a44e68fa6505a8bcc3776-original.png  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '2f8cf41cc36a44e68fa6505a8bcc3776-small.png' OR old_paths.value = '2f8cf41cc36a44e68fa6505a8bcc3776-small.png') Deleting 2f8cf41cc36a44e68fa6505a8bcc3776-small.png Deleting: 2f8cf41cc36a44e68fa6505a8bcc3776-small.png  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '2f8cf41cc36a44e68fa6505a8bcc3776-tiny.png' OR old_paths.value = '2f8cf41cc36a44e68fa6505a8bcc3776-tiny.png') Deleting 2f8cf41cc36a44e68fa6505a8bcc3776-tiny.png Deleting: 2f8cf41cc36a44e68fa6505a8bcc3776-tiny.png  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '7b6784048c5546e39bcb8930c4065ee7-large.jpg' OR old_paths.value = '7b6784048c5546e39bcb8930c4065ee7-large.jpg') Deleting 7b6784048c5546e39bcb8930c4065ee7-large.jpg Deleting: 7b6784048c5546e39bcb8930c4065ee7-large.jpg  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '7b6784048c5546e39bcb8930c4065ee7-medium.jpg' OR old_paths.value = '7b6784048c5546e39bcb8930c4065ee7-medium.jpg') Deleting 7b6784048c5546e39bcb8930c4065ee7-medium.jpg Deleting: 7b6784048c5546e39bcb8930c4065ee7-medium.jpg  (0.9ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '7b6784048c5546e39bcb8930c4065ee7-original.jpg' OR old_paths.value = '7b6784048c5546e39bcb8930c4065ee7-original.jpg') Deleting 7b6784048c5546e39bcb8930c4065ee7-original.jpg Deleting: 7b6784048c5546e39bcb8930c4065ee7-original.jpg  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '7b6784048c5546e39bcb8930c4065ee7-small.jpg' OR old_paths.value = '7b6784048c5546e39bcb8930c4065ee7-small.jpg') Deleting 7b6784048c5546e39bcb8930c4065ee7-small.jpg Deleting: 7b6784048c5546e39bcb8930c4065ee7-small.jpg  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '7b6784048c5546e39bcb8930c4065ee7-tiny.jpg' OR old_paths.value = '7b6784048c5546e39bcb8930c4065ee7-tiny.jpg') Deleting 7b6784048c5546e39bcb8930c4065ee7-tiny.jpg Deleting: 7b6784048c5546e39bcb8930c4065ee7-tiny.jpg  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'a705d6ad97eb42b7afe3d324833bad12-large.png' OR old_paths.value = 'a705d6ad97eb42b7afe3d324833bad12-large.png')  (0.3ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'a705d6ad97eb42b7afe3d324833bad12-medium.png' OR old_paths.value = 'a705d6ad97eb42b7afe3d324833bad12-medium.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'a705d6ad97eb42b7afe3d324833bad12-original.png' OR old_paths.value = 'a705d6ad97eb42b7afe3d324833bad12-original.png')  (0.3ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'a705d6ad97eb42b7afe3d324833bad12-small.png' OR old_paths.value = 'a705d6ad97eb42b7afe3d324833bad12-small.png')  (0.3ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'a705d6ad97eb42b7afe3d324833bad12-tiny.png' OR old_paths.value = 'a705d6ad97eb42b7afe3d324833bad12-tiny.png')  (0.3ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'bf1e58a4025e4ffe87ca85a4eff4beed-large.jpg' OR old_paths.value = 'bf1e58a4025e4ffe87ca85a4eff4beed-large.jpg') Deleting bf1e58a4025e4ffe87ca85a4eff4beed-large.jpg Deleting: bf1e58a4025e4ffe87ca85a4eff4beed-large.jpg  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'bf1e58a4025e4ffe87ca85a4eff4beed-medium.jpg' OR old_paths.value = 'bf1e58a4025e4ffe87ca85a4eff4beed-medium.jpg') Deleting bf1e58a4025e4ffe87ca85a4eff4beed-medium.jpg Deleting: bf1e58a4025e4ffe87ca85a4eff4beed-medium.jpg  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'bf1e58a4025e4ffe87ca85a4eff4beed-original.jpg' OR old_paths.value = 'bf1e58a4025e4ffe87ca85a4eff4beed-original.jpg') Deleting bf1e58a4025e4ffe87ca85a4eff4beed-original.jpg Deleting: bf1e58a4025e4ffe87ca85a4eff4beed-original.jpg  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'bf1e58a4025e4ffe87ca85a4eff4beed-small.jpg' OR old_paths.value = 'bf1e58a4025e4ffe87ca85a4eff4beed-small.jpg') Deleting bf1e58a4025e4ffe87ca85a4eff4beed-small.jpg Deleting: bf1e58a4025e4ffe87ca85a4eff4beed-small.jpg  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'bf1e58a4025e4ffe87ca85a4eff4beed-tiny.jpg' OR old_paths.value = 'bf1e58a4025e4ffe87ca85a4eff4beed-tiny.jpg') Deleting bf1e58a4025e4ffe87ca85a4eff4beed-tiny.jpg Deleting: bf1e58a4025e4ffe87ca85a4eff4beed-tiny.jpg  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/9b13cd4fb4c944b8adb2bec37870e103-large.png' OR old_paths.value = 'second/9b13cd4fb4c944b8adb2bec37870e103-large.png') Deleting second/9b13cd4fb4c944b8adb2bec37870e103-large.png Deleting: second/9b13cd4fb4c944b8adb2bec37870e103-large.png  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/9b13cd4fb4c944b8adb2bec37870e103-medium.png' OR old_paths.value = 'second/9b13cd4fb4c944b8adb2bec37870e103-medium.png') Deleting second/9b13cd4fb4c944b8adb2bec37870e103-medium.png Deleting: second/9b13cd4fb4c944b8adb2bec37870e103-medium.png  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/9b13cd4fb4c944b8adb2bec37870e103-original.png' OR old_paths.value = 'second/9b13cd4fb4c944b8adb2bec37870e103-original.png') Deleting second/9b13cd4fb4c944b8adb2bec37870e103-original.png Deleting: second/9b13cd4fb4c944b8adb2bec37870e103-original.png  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/9b13cd4fb4c944b8adb2bec37870e103-small.png' OR old_paths.value = 'second/9b13cd4fb4c944b8adb2bec37870e103-small.png') Deleting second/9b13cd4fb4c944b8adb2bec37870e103-small.png Deleting: second/9b13cd4fb4c944b8adb2bec37870e103-small.png  (0.8ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/9b13cd4fb4c944b8adb2bec37870e103-tiny.png' OR old_paths.value = 'second/9b13cd4fb4c944b8adb2bec37870e103-tiny.png') Deleting second/9b13cd4fb4c944b8adb2bec37870e103-tiny.png Deleting: second/9b13cd4fb4c944b8adb2bec37870e103-tiny.png  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'a705d6ad97eb42b7afe3d324833bad12-large.png' OR old_paths.value = 'a705d6ad97eb42b7afe3d324833bad12-large.png')  (0.3ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'a705d6ad97eb42b7afe3d324833bad12-medium.png' OR old_paths.value = 'a705d6ad97eb42b7afe3d324833bad12-medium.png')  (0.3ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'a705d6ad97eb42b7afe3d324833bad12-original.png' OR old_paths.value = 'a705d6ad97eb42b7afe3d324833bad12-original.png')  (0.2ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'a705d6ad97eb42b7afe3d324833bad12-small.png' OR old_paths.value = 'a705d6ad97eb42b7afe3d324833bad12-small.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'a705d6ad97eb42b7afe3d324833bad12-tiny.png' OR old_paths.value = 'a705d6ad97eb42b7afe3d324833bad12-tiny.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'a705d6ad97eb42b7afe3d324833bad12-large.png' OR old_paths.value = 'a705d6ad97eb42b7afe3d324833bad12-large.png')  (0.3ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'a705d6ad97eb42b7afe3d324833bad12-medium.png' OR old_paths.value = 'a705d6ad97eb42b7afe3d324833bad12-medium.png')  (0.3ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'a705d6ad97eb42b7afe3d324833bad12-original.png' OR old_paths.value = 'a705d6ad97eb42b7afe3d324833bad12-original.png')  (0.3ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'a705d6ad97eb42b7afe3d324833bad12-small.png' OR old_paths.value = 'a705d6ad97eb42b7afe3d324833bad12-small.png')  (0.2ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'a705d6ad97eb42b7afe3d324833bad12-tiny.png' OR old_paths.value = 'a705d6ad97eb42b7afe3d324833bad12-tiny.png') [ActiveJob] [Attachs::Jobs::DeleteJob] [eb7c2159-c987-4cfe-96e3-7a93dc0981b6] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["a705d6ad97eb42b7afe3d324833bad12-original.png", "a705d6ad97eb42b7afe3d324833bad12-tiny.png", "a705d6ad97eb42b7afe3d324833bad12-small.png", "a705d6ad97eb42b7afe3d324833bad12-medium.png", "a705d6ad97eb42b7afe3d324833bad12-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [eb7c2159-c987-4cfe-96e3-7a93dc0981b6] Deleting: a705d6ad97eb42b7afe3d324833bad12-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [eb7c2159-c987-4cfe-96e3-7a93dc0981b6] Deleting: a705d6ad97eb42b7afe3d324833bad12-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [eb7c2159-c987-4cfe-96e3-7a93dc0981b6] Deleting: a705d6ad97eb42b7afe3d324833bad12-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [eb7c2159-c987-4cfe-96e3-7a93dc0981b6] Deleting: a705d6ad97eb42b7afe3d324833bad12-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [eb7c2159-c987-4cfe-96e3-7a93dc0981b6] Deleting: a705d6ad97eb42b7afe3d324833bad12-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [eb7c2159-c987-4cfe-96e3-7a93dc0981b6] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2656.44ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: eb7c2159-c987-4cfe-96e3-7a93dc0981b6) to Inline(default) with arguments: ["a705d6ad97eb42b7afe3d324833bad12-original.png", "a705d6ad97eb42b7afe3d324833bad12-tiny.png", "a705d6ad97eb42b7afe3d324833bad12-small.png", "a705d6ad97eb42b7afe3d324833bad12-medium.png", "a705d6ad97eb42b7afe3d324833bad12-large.png"]  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- AttachmentTest: test_nested_attributes --------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- AttachmentTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-zwxvxa.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"665907064ed04012bc85d5ea79a87a3e\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T14:39:18.215-03:00\",\"paths\":{\"original\":\"665907064ed04012bc85d5ea79a87a3e-original.png\",\"tiny\":\"665907064ed04012bc85d5ea79a87a3e-tiny.png\",\"small\":\"665907064ed04012bc85d5ea79a87a3e-small.png\",\"medium\":\"665907064ed04012bc85d5ea79a87a3e-medium.png\",\"large\":\"665907064ed04012bc85d5ea79a87a3e-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-11-20 17:39:18.215997"], ["updated_at", "2016-11-20 17:39:18.215997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-zwxvxa.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-oiu52.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-oiu52.png => 665907064ed04012bc85d5ea79a87a3e-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-zwxvxa.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1qj54rc.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1qj54rc.png => 665907064ed04012bc85d5ea79a87a3e-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-zwxvxa.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1pb7sow.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1pb7sow.png => 665907064ed04012bc85d5ea79a87a3e-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-zwxvxa.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-9wwln3.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-9wwln3.png => 665907064ed04012bc85d5ea79a87a3e-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-zwxvxa.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-ghjw6d.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-ghjw6d.png => 665907064ed04012bc85d5ea79a87a3e-large.png Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 5]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Attachs::Jobs::DeleteJob] [a242d1c5-2cc3-4e25-9b61-57e47c2e77cd] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["665907064ed04012bc85d5ea79a87a3e-tiny.png", "665907064ed04012bc85d5ea79a87a3e-large.png", "665907064ed04012bc85d5ea79a87a3e-small.png", "665907064ed04012bc85d5ea79a87a3e-medium.png", "665907064ed04012bc85d5ea79a87a3e-original.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [a242d1c5-2cc3-4e25-9b61-57e47c2e77cd] Deleting: 665907064ed04012bc85d5ea79a87a3e-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [a242d1c5-2cc3-4e25-9b61-57e47c2e77cd] Deleting: 665907064ed04012bc85d5ea79a87a3e-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [a242d1c5-2cc3-4e25-9b61-57e47c2e77cd] Deleting: 665907064ed04012bc85d5ea79a87a3e-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [a242d1c5-2cc3-4e25-9b61-57e47c2e77cd] Deleting: 665907064ed04012bc85d5ea79a87a3e-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [a242d1c5-2cc3-4e25-9b61-57e47c2e77cd] Deleting: 665907064ed04012bc85d5ea79a87a3e-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [a242d1c5-2cc3-4e25-9b61-57e47c2e77cd] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2850.62ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: a242d1c5-2cc3-4e25-9b61-57e47c2e77cd) to Inline(default) with arguments: ["665907064ed04012bc85d5ea79a87a3e-tiny.png", "665907064ed04012bc85d5ea79a87a3e-large.png", "665907064ed04012bc85d5ea79a87a3e-small.png", "665907064ed04012bc85d5ea79a87a3e-medium.png", "665907064ed04012bc85d5ea79a87a3e-original.png"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_renames ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-11zppkm.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("logo", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["logo", "{\"id\":\"3271000b168f4518be99074d19de7dca\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T14:39:56.811-03:00\",\"paths\":{\"original\":\"anderstons/3271000b168f4518be99074d19de7dca-original.png\",\"tiny\":\"anderstons/3271000b168f4518be99074d19de7dca-tiny.png\",\"small\":\"anderstons/3271000b168f4518be99074d19de7dca-small.png\",\"medium\":\"anderstons/3271000b168f4518be99074d19de7dca-medium.png\",\"large\":\"anderstons/3271000b168f4518be99074d19de7dca-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["name", "Anderstons"], ["created_at", "2016-11-20 17:39:56.812094"], ["updated_at", "2016-11-20 17:39:56.812094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-11zppkm.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-em5zwx.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-em5zwx.png => anderstons/3271000b168f4518be99074d19de7dca-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-11zppkm.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1mc0pp2.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1mc0pp2.png => anderstons/3271000b168f4518be99074d19de7dca-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-11zppkm.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1bkobw0.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1bkobw0.png => anderstons/3271000b168f4518be99074d19de7dca-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-11zppkm.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-ddlj1m.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-ddlj1m.png => anderstons/3271000b168f4518be99074d19de7dca-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-11zppkm.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-11ip1g3.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-11ip1g3.png => anderstons/3271000b168f4518be99074d19de7dca-large.png  (1.6ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "shops" SET "name" = $1, "updated_at" = $2 WHERE "shops"."id" = $3 [["name", "Musicians Friend"], ["updated_at", "2016-11-20 17:40:13.165239"], ["id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 6]] [ActiveJob] [Attachs::Jobs::UpdateJob] [faf6bcd6-4c8c-4f2c-bf22-052de61ce6cb] Performing Attachs::Jobs::UpdateJob from Inline(default) with arguments: gid://dummy/Shop/6, "logo" [ActiveJob] [Attachs::Jobs::UpdateJob] [faf6bcd6-4c8c-4f2c-bf22-052de61ce6cb] Copying: anderstons/3271000b168f4518be99074d19de7dca-original.png => musicians-friend/3271000b168f4518be99074d19de7dca-original.png [ActiveJob] [Attachs::Jobs::UpdateJob] [faf6bcd6-4c8c-4f2c-bf22-052de61ce6cb] Copying: anderstons/3271000b168f4518be99074d19de7dca-tiny.png => musicians-friend/3271000b168f4518be99074d19de7dca-tiny.png [ActiveJob] [Attachs::Jobs::UpdateJob] [faf6bcd6-4c8c-4f2c-bf22-052de61ce6cb] Copying: anderstons/3271000b168f4518be99074d19de7dca-small.png => musicians-friend/3271000b168f4518be99074d19de7dca-small.png [ActiveJob] [Attachs::Jobs::UpdateJob] [faf6bcd6-4c8c-4f2c-bf22-052de61ce6cb] Copying: anderstons/3271000b168f4518be99074d19de7dca-medium.png => musicians-friend/3271000b168f4518be99074d19de7dca-medium.png [ActiveJob] [Attachs::Jobs::UpdateJob] [faf6bcd6-4c8c-4f2c-bf22-052de61ce6cb] Copying: anderstons/3271000b168f4518be99074d19de7dca-large.png => musicians-friend/3271000b168f4518be99074d19de7dca-large.png [ActiveJob] [Attachs::Jobs::UpdateJob] [faf6bcd6-4c8c-4f2c-bf22-052de61ce6cb] SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"tiny":"musicians-friend/3271000b168f4518be99074d19de7dca-tiny.png","large":"musicians-friend/3271000b168f4518be99074d19de7dca-large.png","small":"musicians-friend/3271000b168f4518be99074d19de7dca-small.png","medium":"musicians-friend/3271000b168f4518be99074d19de7dca-medium.png","original":"musicians-friend/3271000b168f4518be99074d19de7dca-original.png"},"old_paths":["anderstons/3271000b168f4518be99074d19de7dca-original.png","anderstons/3271000b168f4518be99074d19de7dca-tiny.png","anderstons/3271000b168f4518be99074d19de7dca-small.png","anderstons/3271000b168f4518be99074d19de7dca-medium.png","anderstons/3271000b168f4518be99074d19de7dca-large.png"],"id":"3271000b168f4518be99074d19de7dca","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-11-20T14:39:56.811-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 6]] [ActiveJob] [Attachs::Jobs::UpdateJob] [faf6bcd6-4c8c-4f2c-bf22-052de61ce6cb] Performed Attachs::Jobs::UpdateJob from Inline(default) in 4286.03ms [ActiveJob] Enqueued Attachs::Jobs::UpdateJob (Job ID: faf6bcd6-4c8c-4f2c-bf22-052de61ce6cb) to Inline(default) with arguments: gid://dummy/Shop/6, "logo" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 6]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 6]]  (0.6ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Attachs::Jobs::DeleteJob] [ff163d16-da5d-4241-8cae-239de757877c] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["musicians-friend/3271000b168f4518be99074d19de7dca-tiny.png", "musicians-friend/3271000b168f4518be99074d19de7dca-large.png", "musicians-friend/3271000b168f4518be99074d19de7dca-small.png", "musicians-friend/3271000b168f4518be99074d19de7dca-medium.png", "musicians-friend/3271000b168f4518be99074d19de7dca-original.png", "anderstons/3271000b168f4518be99074d19de7dca-original.png", "anderstons/3271000b168f4518be99074d19de7dca-tiny.png", "anderstons/3271000b168f4518be99074d19de7dca-small.png", "anderstons/3271000b168f4518be99074d19de7dca-medium.png", "anderstons/3271000b168f4518be99074d19de7dca-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [ff163d16-da5d-4241-8cae-239de757877c] Deleting: musicians-friend/3271000b168f4518be99074d19de7dca-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [ff163d16-da5d-4241-8cae-239de757877c] Deleting: musicians-friend/3271000b168f4518be99074d19de7dca-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [ff163d16-da5d-4241-8cae-239de757877c] Deleting: musicians-friend/3271000b168f4518be99074d19de7dca-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [ff163d16-da5d-4241-8cae-239de757877c] Deleting: musicians-friend/3271000b168f4518be99074d19de7dca-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [ff163d16-da5d-4241-8cae-239de757877c] Deleting: musicians-friend/3271000b168f4518be99074d19de7dca-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [ff163d16-da5d-4241-8cae-239de757877c] Deleting: anderstons/3271000b168f4518be99074d19de7dca-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [ff163d16-da5d-4241-8cae-239de757877c] Deleting: anderstons/3271000b168f4518be99074d19de7dca-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [ff163d16-da5d-4241-8cae-239de757877c] Deleting: anderstons/3271000b168f4518be99074d19de7dca-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [ff163d16-da5d-4241-8cae-239de757877c] Deleting: anderstons/3271000b168f4518be99074d19de7dca-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [ff163d16-da5d-4241-8cae-239de757877c] Deleting: anderstons/3271000b168f4518be99074d19de7dca-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [ff163d16-da5d-4241-8cae-239de757877c] Performed Attachs::Jobs::DeleteJob from Inline(default) in 5321.07ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: ff163d16-da5d-4241-8cae-239de757877c) to Inline(default) with arguments: ["musicians-friend/3271000b168f4518be99074d19de7dca-tiny.png", "musicians-friend/3271000b168f4518be99074d19de7dca-large.png", "musicians-friend/3271000b168f4518be99074d19de7dca-small.png", "musicians-friend/3271000b168f4518be99074d19de7dca-medium.png", "musicians-friend/3271000b168f4518be99074d19de7dca-original.png", "anderstons/3271000b168f4518be99074d19de7dca-original.png", "anderstons/3271000b168f4518be99074d19de7dca-tiny.png", "anderstons/3271000b168f4518be99074d19de7dca-small.png", "anderstons/3271000b168f4518be99074d19de7dca-medium.png", "anderstons/3271000b168f4518be99074d19de7dca-large.png"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- CollectionTest: test_nested_attributes -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-4ffb2e.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-1e92ky0.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------- CollectionTest: test_index -------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-1xjdkrr.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-i5go5.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"f5c6d81994d9423f83cf86f87fa51947\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T14:40:55.498-03:00\",\"paths\":{\"original\":\"f5c6d81994d9423f83cf86f87fa51947-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725,\"position\":0},{\"id\":\"9d3246892b1f458e98eca92a1b5363ef\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T14:40:55.499-03:00\",\"paths\":{\"original\":\"9d3246892b1f458e98eca92a1b5363ef-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-11-20 17:40:55.501408"], ["updated_at", "2016-11-20 17:40:55.501408"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 10]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- CollectionTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-18fzxhu.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-jpkl7o.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"00ad59c7c66c4fca927b7eb1a6263ade\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T14:40:55.535-03:00\",\"paths\":{\"original\":\"00ad59c7c66c4fca927b7eb1a6263ade-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725},{\"id\":\"ae3706eaa8c3481f8636084f17332fe7\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T14:40:55.537-03:00\",\"paths\":{\"original\":\"ae3706eaa8c3481f8636084f17332fe7-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-11-20 17:40:55.539126"], ["updated_at", "2016-11-20 17:40:55.539126"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-18fzxhu.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1gg8zbr.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1gg8zbr.jpg => 00ad59c7c66c4fca927b7eb1a6263ade-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-jpkl7o.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-67ifzz.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-67ifzz.jpg => ae3706eaa8c3481f8636084f17332fe7-original.jpg Product Load (0.5ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 11]] [ActiveJob] [Attachs::Jobs::DeleteJob] [b04489a9-d096-48e4-be93-d7105de8184f] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["00ad59c7c66c4fca927b7eb1a6263ade-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [b04489a9-d096-48e4-be93-d7105de8184f] Deleting: 00ad59c7c66c4fca927b7eb1a6263ade-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [b04489a9-d096-48e4-be93-d7105de8184f] Performed Attachs::Jobs::DeleteJob from Inline(default) in 402.43ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: b04489a9-d096-48e4-be93-d7105de8184f) to Inline(default) with arguments: ["00ad59c7c66c4fca927b7eb1a6263ade-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [ad7415fb-7fb1-4728-b7aa-db9c773b4ee4] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["ae3706eaa8c3481f8636084f17332fe7-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [ad7415fb-7fb1-4728-b7aa-db9c773b4ee4] Deleting: ae3706eaa8c3481f8636084f17332fe7-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [ad7415fb-7fb1-4728-b7aa-db9c773b4ee4] Performed Attachs::Jobs::DeleteJob from Inline(default) in 407.34ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: ad7415fb-7fb1-4728-b7aa-db9c773b4ee4) to Inline(default) with arguments: ["ae3706eaa8c3481f8636084f17332fe7-original.jpg"]  (0.3ms) ROLLBACK  (0.2ms) BEGIN --------------------------- HelperTest: test_fields_for --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-1w3svs6.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"6bf4ff7766f14f07b9c9d808f9f4091e\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T14:40:58.330-03:00\",\"paths\":{\"original\":\"6bf4ff7766f14f07b9c9d808f9f4091e-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-11-20 17:40:58.331721"], ["updated_at", "2016-11-20 17:40:58.331721"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-1w3svs6.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1t5ldah.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1t5ldah.jpg => 6bf4ff7766f14f07b9c9d808f9f4091e-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [87757028-39f9-4a54-a646-9bb89e03f873] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["6bf4ff7766f14f07b9c9d808f9f4091e-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [87757028-39f9-4a54-a646-9bb89e03f873] Deleting: 6bf4ff7766f14f07b9c9d808f9f4091e-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [87757028-39f9-4a54-a646-9bb89e03f873] Performed Attachs::Jobs::DeleteJob from Inline(default) in 389.01ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 87757028-39f9-4a54-a646-9bb89e03f873) to Inline(default) with arguments: ["6bf4ff7766f14f07b9c9d808f9f4091e-original.jpg"]  (0.3ms) ROLLBACK  (0.1ms) BEGIN --------------------- QueryTest: test_exist --------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-c6n49n.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("name", "logo", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "first"], ["logo", "{\"id\":\"318a1106da1b4117b1a1ad7e0c886584\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T14:40:59.253-03:00\",\"paths\":{\"original\":\"first/318a1106da1b4117b1a1ad7e0c886584-original.png\",\"tiny\":\"first/318a1106da1b4117b1a1ad7e0c886584-tiny.png\",\"small\":\"first/318a1106da1b4117b1a1ad7e0c886584-small.png\",\"medium\":\"first/318a1106da1b4117b1a1ad7e0c886584-medium.png\",\"large\":\"first/318a1106da1b4117b1a1ad7e0c886584-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-11-20 17:40:59.254458"], ["updated_at", "2016-11-20 17:40:59.254458"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-c6n49n.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-18o26et.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-18o26et.png => first/318a1106da1b4117b1a1ad7e0c886584-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-c6n49n.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1jxocen.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1jxocen.png => first/318a1106da1b4117b1a1ad7e0c886584-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-c6n49n.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-pi2y4j.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-pi2y4j.png => first/318a1106da1b4117b1a1ad7e0c886584-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-c6n49n.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1i3hpah.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1i3hpah.png => first/318a1106da1b4117b1a1ad7e0c886584-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-c6n49n.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-5san6i.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-5san6i.png => first/318a1106da1b4117b1a1ad7e0c886584-large.png  (0.5ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "shops" SET "name" = $1, "updated_at" = $2 WHERE "shops"."id" = $3 [["name", "second"], ["updated_at", "2016-11-20 17:41:02.619244"], ["id", 7]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 7]] [ActiveJob] [Attachs::Jobs::UpdateJob] [a3c2dcf8-b5c9-4f90-853b-d7883549d6ab] Performing Attachs::Jobs::UpdateJob from Inline(default) with arguments: gid://dummy/Shop/7, "logo" [ActiveJob] [Attachs::Jobs::UpdateJob] [a3c2dcf8-b5c9-4f90-853b-d7883549d6ab] Copying: first/318a1106da1b4117b1a1ad7e0c886584-original.png => second/318a1106da1b4117b1a1ad7e0c886584-original.png [ActiveJob] [Attachs::Jobs::UpdateJob] [a3c2dcf8-b5c9-4f90-853b-d7883549d6ab] Copying: first/318a1106da1b4117b1a1ad7e0c886584-tiny.png => second/318a1106da1b4117b1a1ad7e0c886584-tiny.png [ActiveJob] [Attachs::Jobs::UpdateJob] [a3c2dcf8-b5c9-4f90-853b-d7883549d6ab] Copying: first/318a1106da1b4117b1a1ad7e0c886584-small.png => second/318a1106da1b4117b1a1ad7e0c886584-small.png [ActiveJob] [Attachs::Jobs::UpdateJob] [a3c2dcf8-b5c9-4f90-853b-d7883549d6ab] Copying: first/318a1106da1b4117b1a1ad7e0c886584-medium.png => second/318a1106da1b4117b1a1ad7e0c886584-medium.png [ActiveJob] [Attachs::Jobs::UpdateJob] [a3c2dcf8-b5c9-4f90-853b-d7883549d6ab] Copying: first/318a1106da1b4117b1a1ad7e0c886584-large.png => second/318a1106da1b4117b1a1ad7e0c886584-large.png [ActiveJob] [Attachs::Jobs::UpdateJob] [a3c2dcf8-b5c9-4f90-853b-d7883549d6ab] SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"tiny":"second/318a1106da1b4117b1a1ad7e0c886584-tiny.png","large":"second/318a1106da1b4117b1a1ad7e0c886584-large.png","small":"second/318a1106da1b4117b1a1ad7e0c886584-small.png","medium":"second/318a1106da1b4117b1a1ad7e0c886584-medium.png","original":"second/318a1106da1b4117b1a1ad7e0c886584-original.png"},"old_paths":["first/318a1106da1b4117b1a1ad7e0c886584-original.png","first/318a1106da1b4117b1a1ad7e0c886584-tiny.png","first/318a1106da1b4117b1a1ad7e0c886584-small.png","first/318a1106da1b4117b1a1ad7e0c886584-medium.png","first/318a1106da1b4117b1a1ad7e0c886584-large.png"],"id":"318a1106da1b4117b1a1ad7e0c886584","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-11-20T14:40:59.253-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 7]] [ActiveJob] [Attachs::Jobs::UpdateJob] [a3c2dcf8-b5c9-4f90-853b-d7883549d6ab] Performed Attachs::Jobs::UpdateJob from Inline(default) in 2860.01ms [ActiveJob] Enqueued Attachs::Jobs::UpdateJob (Job ID: a3c2dcf8-b5c9-4f90-853b-d7883549d6ab) to Inline(default) with arguments: gid://dummy/Shop/7, "logo" Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-2umouw.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-1pubczv.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (4.8ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"2ca46bed5074426aaac7372abda51a93\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T14:41:05.505-03:00\",\"paths\":{\"original\":\"2ca46bed5074426aaac7372abda51a93-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725},{\"id\":\"f63c1f9a7f59405eb52a0c3493cc46c8\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T14:41:05.506-03:00\",\"paths\":{\"original\":\"f63c1f9a7f59405eb52a0c3493cc46c8-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-11-20 17:41:05.507197"], ["updated_at", "2016-11-20 17:41:05.507197"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-2umouw.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-4gx54f.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-4gx54f.jpg => 2ca46bed5074426aaac7372abda51a93-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-1pubczv.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-g75zf2.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-g75zf2.jpg => f63c1f9a7f59405eb52a0c3493cc46c8-original.jpg  (0.8ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/318a1106da1b4117b1a1ad7e0c886584-original.png' OR old_paths.value = 'first/318a1106da1b4117b1a1ad7e0c886584-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/318a1106da1b4117b1a1ad7e0c886584-original.png' OR old_paths.value = 'first/318a1106da1b4117b1a1ad7e0c886584-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/318a1106da1b4117b1a1ad7e0c886584-original.png' OR old_paths.value = 'first/318a1106da1b4117b1a1ad7e0c886584-original.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/318a1106da1b4117b1a1ad7e0c886584-original.png' OR old_paths.value = 'first/318a1106da1b4117b1a1ad7e0c886584-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/318a1106da1b4117b1a1ad7e0c886584-original.png' OR old_paths.value = 'first/318a1106da1b4117b1a1ad7e0c886584-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/318a1106da1b4117b1a1ad7e0c886584-original.png' OR old_paths.value = 'first/318a1106da1b4117b1a1ad7e0c886584-original.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '2ca46bed5074426aaac7372abda51a93-original.jpg' OR old_paths.value = '2ca46bed5074426aaac7372abda51a93-original.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '2ca46bed5074426aaac7372abda51a93-original.jpg' OR old_paths.value = '2ca46bed5074426aaac7372abda51a93-original.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '2ca46bed5074426aaac7372abda51a93-original.jpg' OR old_paths.value = '2ca46bed5074426aaac7372abda51a93-original.jpg') [ActiveJob] [Attachs::Jobs::DeleteJob] [5c74adfd-f758-49ab-b1da-d35680ae2f77] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["first/318a1106da1b4117b1a1ad7e0c886584-original.png", "first/318a1106da1b4117b1a1ad7e0c886584-tiny.png", "first/318a1106da1b4117b1a1ad7e0c886584-small.png", "first/318a1106da1b4117b1a1ad7e0c886584-medium.png", "first/318a1106da1b4117b1a1ad7e0c886584-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [5c74adfd-f758-49ab-b1da-d35680ae2f77] Deleting: first/318a1106da1b4117b1a1ad7e0c886584-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [5c74adfd-f758-49ab-b1da-d35680ae2f77] Deleting: first/318a1106da1b4117b1a1ad7e0c886584-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [5c74adfd-f758-49ab-b1da-d35680ae2f77] Deleting: first/318a1106da1b4117b1a1ad7e0c886584-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [5c74adfd-f758-49ab-b1da-d35680ae2f77] Deleting: first/318a1106da1b4117b1a1ad7e0c886584-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [5c74adfd-f758-49ab-b1da-d35680ae2f77] Deleting: first/318a1106da1b4117b1a1ad7e0c886584-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [5c74adfd-f758-49ab-b1da-d35680ae2f77] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2041.9ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 5c74adfd-f758-49ab-b1da-d35680ae2f77) to Inline(default) with arguments: ["first/318a1106da1b4117b1a1ad7e0c886584-original.png", "first/318a1106da1b4117b1a1ad7e0c886584-tiny.png", "first/318a1106da1b4117b1a1ad7e0c886584-small.png", "first/318a1106da1b4117b1a1ad7e0c886584-medium.png", "first/318a1106da1b4117b1a1ad7e0c886584-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [80b3aabb-d07b-4fdc-8108-c87efb59577e] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["2ca46bed5074426aaac7372abda51a93-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [80b3aabb-d07b-4fdc-8108-c87efb59577e] Deleting: 2ca46bed5074426aaac7372abda51a93-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [80b3aabb-d07b-4fdc-8108-c87efb59577e] Performed Attachs::Jobs::DeleteJob from Inline(default) in 405.32ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 80b3aabb-d07b-4fdc-8108-c87efb59577e) to Inline(default) with arguments: ["2ca46bed5074426aaac7372abda51a93-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [50fd96a2-2a4a-4bce-9e02-b1697cdbb257] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["f63c1f9a7f59405eb52a0c3493cc46c8-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [50fd96a2-2a4a-4bce-9e02-b1697cdbb257] Deleting: f63c1f9a7f59405eb52a0c3493cc46c8-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [50fd96a2-2a4a-4bce-9e02-b1697cdbb257] Performed Attachs::Jobs::DeleteJob from Inline(default) in 405.41ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 50fd96a2-2a4a-4bce-9e02-b1697cdbb257) to Inline(default) with arguments: ["f63c1f9a7f59405eb52a0c3493cc46c8-original.jpg"]  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------- ConcernTest: test_inherit -------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- ValidatorsTest: test_content_type_within ---------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-6v3ok4.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-o1wqq2.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-gwzrx.jpg'  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------- ValidatorsTest: test_size_greater_than -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161120-15272-c2v5fr.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-oo0n0n.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-t6zmhf.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- ValidatorsTest: test_size_within -------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161120-15272-fbiajt.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-1bdhwx2.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161120-15272-1o5javq.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-485b9f.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-15ut0au.jpg'  (0.3ms) ROLLBACK  (0.2ms) BEGIN ---------------------------- ValidatorsTest: test_methods ----------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidatorsTest: test_content_type_with -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-wmc9iu.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-o0ulnx.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-lnvbyv.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ ValidatorsTest: test_content_type_in ------------------------------------ Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-1fxyks.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-y2khzk.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-21vpc4.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- ValidatorsTest: test_size_less_than ----------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161120-15272-132qz65.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-h807lk.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-1ccr241.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidatorsTest: test_size_in ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161120-15272-1jlf4nw.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-1bsvdu3.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161120-15272-13c8vgv.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-14toui7.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-7fo86m.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN --------------------------- GeneratorsTest: test_upload ---------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- GeneratorsTest: test_install ----------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------- MigrationTest: test_column -------------------------- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateUploads (20161031135453)  (0.1ms) SAVEPOINT active_record_1  (1.4ms) DROP TABLE "uploads" SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161031135453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to AddAttachments (20161030160506)  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ALTER TABLE "shops" DROP "files"  (0.3ms) ALTER TABLE "products" DROP "brief" SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161030160506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to CreateProducts (20161024234029)  (0.1ms) SAVEPOINT active_record_1  (0.6ms) DROP TABLE "products" SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161024234029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to CreateShops (20161024234003)  (0.1ms) SAVEPOINT active_record_1  (0.6ms) DROP TABLE "shops" SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161024234003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateShops (20161024234003)  (0.1ms) SAVEPOINT active_record_1  (23.5ms) CREATE TABLE "shops" ("id" serial primary key, "name" character varying, "logo" jsonb DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161024234003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to CreateProducts (20161024234029)  (0.1ms) SAVEPOINT active_record_1  (2.0ms) CREATE TABLE "products" ("id" serial primary key, "shop_id" integer, "name" character varying, "pictures" jsonb DEFAULT '[]', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161024234029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to AddAttachments (20161030160506)  (0.1ms) SAVEPOINT active_record_1  (2.4ms) ALTER TABLE "products" ADD "brief" jsonb DEFAULT '{}'  (1.8ms) ALTER TABLE "shops" ADD "files" jsonb DEFAULT '[]' SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161030160506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to CreateUploads (20161031135453)  (0.1ms) SAVEPOINT active_record_1  (2.1ms) CREATE TABLE "uploads" ("id" serial primary key, "file" jsonb DEFAULT '{}', "record_type" character varying, "record_attribute" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161031135453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------- UploadTest: test_upload ----------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-1d1rsb2.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "uploads" ("file", "record_type", "record_attribute", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "{\"id\":\"c34ca0863e7c47ce91997e62a23ef130\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T14:41:10.256-03:00\",\"paths\":{\"original\":\"c34ca0863e7c47ce91997e62a23ef130-original.jpg\",\"tiny\":\"c34ca0863e7c47ce91997e62a23ef130-tiny.jpg\",\"small\":\"c34ca0863e7c47ce91997e62a23ef130-small.jpg\",\"medium\":\"c34ca0863e7c47ce91997e62a23ef130-medium.jpg\",\"large\":\"c34ca0863e7c47ce91997e62a23ef130-large.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["record_type", "Shop"], ["record_attribute", "logo"], ["created_at", "2016-11-20 17:41:10.257407"], ["updated_at", "2016-11-20 17:41:10.257407"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-1d1rsb2.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-6w2yxd.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-6w2yxd.jpg => c34ca0863e7c47ce91997e62a23ef130-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-1d1rsb2.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-142re0b.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-142re0b.jpg => c34ca0863e7c47ce91997e62a23ef130-tiny.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-1d1rsb2.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1q55a4b.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1q55a4b.jpg => c34ca0863e7c47ce91997e62a23ef130-small.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-1d1rsb2.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-im1irf.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-im1irf.jpg => c34ca0863e7c47ce91997e62a23ef130-medium.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15272-1d1rsb2.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-th679f.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-th679f.jpg => c34ca0863e7c47ce91997e62a23ef130-large.jpg  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"cafb6bf6c58f404d925b487aeb7b00bf\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T14:41:12.552-03:00\",\"paths\":{\"original\":\"cafb6bf6c58f404d925b487aeb7b00bf-original.png\",\"tiny\":\"cafb6bf6c58f404d925b487aeb7b00bf-tiny.png\",\"small\":\"cafb6bf6c58f404d925b487aeb7b00bf-small.png\",\"medium\":\"cafb6bf6c58f404d925b487aeb7b00bf-medium.png\",\"large\":\"cafb6bf6c58f404d925b487aeb7b00bf-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-11-20 17:41:12.553252"], ["updated_at", "2016-11-20 17:41:12.553252"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1fdaq6c.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-18j2get.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-18j2get.png => cafb6bf6c58f404d925b487aeb7b00bf-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1fdaq6c.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-jp7zpc.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-jp7zpc.png => cafb6bf6c58f404d925b487aeb7b00bf-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1fdaq6c.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-173oatz.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-173oatz.png => cafb6bf6c58f404d925b487aeb7b00bf-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1fdaq6c.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1adrzn.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1adrzn.png => cafb6bf6c58f404d925b487aeb7b00bf-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-1fdaq6c.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-r9d3zk.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15272-r9d3zk.png => cafb6bf6c58f404d925b487aeb7b00bf-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [aac7d9be-1af9-4cfb-9718-f332e1685292] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["cafb6bf6c58f404d925b487aeb7b00bf-original.png", "cafb6bf6c58f404d925b487aeb7b00bf-tiny.png", "cafb6bf6c58f404d925b487aeb7b00bf-small.png", "cafb6bf6c58f404d925b487aeb7b00bf-medium.png", "cafb6bf6c58f404d925b487aeb7b00bf-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [aac7d9be-1af9-4cfb-9718-f332e1685292] Deleting: cafb6bf6c58f404d925b487aeb7b00bf-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [aac7d9be-1af9-4cfb-9718-f332e1685292] Deleting: cafb6bf6c58f404d925b487aeb7b00bf-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [aac7d9be-1af9-4cfb-9718-f332e1685292] Deleting: cafb6bf6c58f404d925b487aeb7b00bf-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [aac7d9be-1af9-4cfb-9718-f332e1685292] Deleting: cafb6bf6c58f404d925b487aeb7b00bf-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [aac7d9be-1af9-4cfb-9718-f332e1685292] Deleting: cafb6bf6c58f404d925b487aeb7b00bf-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [aac7d9be-1af9-4cfb-9718-f332e1685292] Performed Attachs::Jobs::DeleteJob from Inline(default) in 3375.94ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: aac7d9be-1af9-4cfb-9718-f332e1685292) to Inline(default) with arguments: ["cafb6bf6c58f404d925b487aeb7b00bf-original.png", "cafb6bf6c58f404d925b487aeb7b00bf-tiny.png", "cafb6bf6c58f404d925b487aeb7b00bf-small.png", "cafb6bf6c58f404d925b487aeb7b00bf-medium.png", "cafb6bf6c58f404d925b487aeb7b00bf-large.png"] Upload Load (0.4ms) SELECT "uploads".* FROM "uploads" WHERE "uploads"."id" = $1 LIMIT 1 [["id", 4]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"paths\":{\"original\":\"4b122f27e46f4c6aac65b6128d999170-original.png\",\"tiny\":\"4b122f27e46f4c6aac65b6128d999170-tiny.png\",\"small\":\"4b122f27e46f4c6aac65b6128d999170-small.png\",\"medium\":\"4b122f27e46f4c6aac65b6128d999170-medium.png\",\"large\":\"4b122f27e46f4c6aac65b6128d999170-large.png\"},\"old_paths\":[],\"id\":\"4b122f27e46f4c6aac65b6128d999170\",\"size\":74474,\"ratio\":0.6725,\"width\":400,\"height\":269,\"filename\":\"image.jpg\",\"uploaded_at\":\"2016-11-20T14:41:28.534-03:00\",\"content_type\":\"image/jpeg\"}"], ["created_at", "2016-11-20 17:41:28.535475"], ["updated_at", "2016-11-20 17:41:28.535475"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Copying: c34ca0863e7c47ce91997e62a23ef130-tiny.jpg => 4b122f27e46f4c6aac65b6128d999170-tiny.png Copying: c34ca0863e7c47ce91997e62a23ef130-large.jpg => 4b122f27e46f4c6aac65b6128d999170-large.png Copying: c34ca0863e7c47ce91997e62a23ef130-small.jpg => 4b122f27e46f4c6aac65b6128d999170-small.png Copying: c34ca0863e7c47ce91997e62a23ef130-medium.jpg => 4b122f27e46f4c6aac65b6128d999170-medium.png Copying: c34ca0863e7c47ce91997e62a23ef130-original.jpg => 4b122f27e46f4c6aac65b6128d999170-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [1375c15c-79a5-4213-9c6f-e054ecd25aa3] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["4b122f27e46f4c6aac65b6128d999170-original.png", "4b122f27e46f4c6aac65b6128d999170-tiny.png", "4b122f27e46f4c6aac65b6128d999170-small.png", "4b122f27e46f4c6aac65b6128d999170-medium.png", "4b122f27e46f4c6aac65b6128d999170-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [1375c15c-79a5-4213-9c6f-e054ecd25aa3] Deleting: 4b122f27e46f4c6aac65b6128d999170-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [1375c15c-79a5-4213-9c6f-e054ecd25aa3] Deleting: 4b122f27e46f4c6aac65b6128d999170-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [1375c15c-79a5-4213-9c6f-e054ecd25aa3] Deleting: 4b122f27e46f4c6aac65b6128d999170-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [1375c15c-79a5-4213-9c6f-e054ecd25aa3] Deleting: 4b122f27e46f4c6aac65b6128d999170-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [1375c15c-79a5-4213-9c6f-e054ecd25aa3] Deleting: 4b122f27e46f4c6aac65b6128d999170-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [1375c15c-79a5-4213-9c6f-e054ecd25aa3] Performed Attachs::Jobs::DeleteJob from Inline(default) in 3270.61ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 1375c15c-79a5-4213-9c6f-e054ecd25aa3) to Inline(default) with arguments: ["4b122f27e46f4c6aac65b6128d999170-original.png", "4b122f27e46f4c6aac65b6128d999170-tiny.png", "4b122f27e46f4c6aac65b6128d999170-small.png", "4b122f27e46f4c6aac65b6128d999170-medium.png", "4b122f27e46f4c6aac65b6128d999170-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [eb97f5cf-432c-41c4-8dff-6b4c679744ed] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["c34ca0863e7c47ce91997e62a23ef130-original.jpg", "c34ca0863e7c47ce91997e62a23ef130-tiny.jpg", "c34ca0863e7c47ce91997e62a23ef130-small.jpg", "c34ca0863e7c47ce91997e62a23ef130-medium.jpg", "c34ca0863e7c47ce91997e62a23ef130-large.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [eb97f5cf-432c-41c4-8dff-6b4c679744ed] Deleting: c34ca0863e7c47ce91997e62a23ef130-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [eb97f5cf-432c-41c4-8dff-6b4c679744ed] Deleting: c34ca0863e7c47ce91997e62a23ef130-tiny.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [eb97f5cf-432c-41c4-8dff-6b4c679744ed] Deleting: c34ca0863e7c47ce91997e62a23ef130-small.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [eb97f5cf-432c-41c4-8dff-6b4c679744ed] Deleting: c34ca0863e7c47ce91997e62a23ef130-medium.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [eb97f5cf-432c-41c4-8dff-6b4c679744ed] Deleting: c34ca0863e7c47ce91997e62a23ef130-large.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [eb97f5cf-432c-41c4-8dff-6b4c679744ed] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2353.26ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: eb97f5cf-432c-41c4-8dff-6b4c679744ed) to Inline(default) with arguments: ["c34ca0863e7c47ce91997e62a23ef130-original.jpg", "c34ca0863e7c47ce91997e62a23ef130-tiny.jpg", "c34ca0863e7c47ce91997e62a23ef130-small.jpg", "c34ca0863e7c47ce91997e62a23ef130-medium.jpg", "c34ca0863e7c47ce91997e62a23ef130-large.jpg"]  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN ---------------------------- AttachmentTest: test_default ----------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_renames ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15691-1wl0am1.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "shops" ("logo", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["logo", "{\"id\":\"4581c83616c64bcb98be036fe65e3671\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T14:57:39.043-03:00\",\"paths\":{\"original\":\"anderstons/4581c83616c64bcb98be036fe65e3671-original.png\",\"tiny\":\"anderstons/4581c83616c64bcb98be036fe65e3671-tiny.png\",\"small\":\"anderstons/4581c83616c64bcb98be036fe65e3671-small.png\",\"medium\":\"anderstons/4581c83616c64bcb98be036fe65e3671-medium.png\",\"large\":\"anderstons/4581c83616c64bcb98be036fe65e3671-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["name", "Anderstons"], ["created_at", "2016-11-20 17:57:39.044239"], ["updated_at", "2016-11-20 17:57:39.044239"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15691-1wl0am1.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15691-ax5cwx.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15691-ax5cwx.png => anderstons/4581c83616c64bcb98be036fe65e3671-original.png ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN ---------------------------- AttachmentTest: test_default ----------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_renames ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15716-jh6uot.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "shops" ("logo", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["logo", "{\"id\":\"f5615522aa6e42409753a3b3cb7f2ce3\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T14:58:23.413-03:00\",\"paths\":{\"original\":\"anderstons/f5615522aa6e42409753a3b3cb7f2ce3-original.png\",\"tiny\":\"anderstons/f5615522aa6e42409753a3b3cb7f2ce3-tiny.png\",\"small\":\"anderstons/f5615522aa6e42409753a3b3cb7f2ce3-small.png\",\"medium\":\"anderstons/f5615522aa6e42409753a3b3cb7f2ce3-medium.png\",\"large\":\"anderstons/f5615522aa6e42409753a3b3cb7f2ce3-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["name", "Anderstons"], ["created_at", "2016-11-20 17:58:23.414028"], ["updated_at", "2016-11-20 17:58:23.414028"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15716-jh6uot.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15716-dj1a6p.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15716-dj1a6p.png => anderstons/f5615522aa6e42409753a3b3cb7f2ce3-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15716-jh6uot.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15716-383r80.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15716-383r80.png => anderstons/f5615522aa6e42409753a3b3cb7f2ce3-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15716-jh6uot.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15716-1gjp8x.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15716-1gjp8x.png => anderstons/f5615522aa6e42409753a3b3cb7f2ce3-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15716-jh6uot.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15716-1wbwsqf.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15716-1wbwsqf.png => anderstons/f5615522aa6e42409753a3b3cb7f2ce3-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15716-jh6uot.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15716-xa28iq.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15716-xa28iq.png => anderstons/f5615522aa6e42409753a3b3cb7f2ce3-large.png ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN ---------------------------- AttachmentTest: test_default ---------------------------- ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN --------------------- TasksTest: test_clear --------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15838-6dtzeo.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"d42fbd11f36a4781ad0e7cb35106ab17\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T15:05:07.934-03:00\",\"paths\":{\"original\":\"d42fbd11f36a4781ad0e7cb35106ab17-original.png\",\"tiny\":\"d42fbd11f36a4781ad0e7cb35106ab17-tiny.png\",\"small\":\"d42fbd11f36a4781ad0e7cb35106ab17-small.png\",\"medium\":\"d42fbd11f36a4781ad0e7cb35106ab17-medium.png\",\"large\":\"d42fbd11f36a4781ad0e7cb35106ab17-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-11-20 18:05:07.935108"], ["updated_at", "2016-11-20 18:05:07.935108"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15838-6dtzeo.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15838-11mg43.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15838-11mg43.png => d42fbd11f36a4781ad0e7cb35106ab17-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15838-6dtzeo.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15838-1m70m84.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15838-1m70m84.png => d42fbd11f36a4781ad0e7cb35106ab17-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15838-6dtzeo.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15838-sa1jl1.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15838-sa1jl1.png => d42fbd11f36a4781ad0e7cb35106ab17-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15838-6dtzeo.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15838-j7jm1g.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15838-j7jm1g.png => d42fbd11f36a4781ad0e7cb35106ab17-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15838-6dtzeo.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15838-14zggv7.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15838-14zggv7.png => d42fbd11f36a4781ad0e7cb35106ab17-large.png ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN -------------------------------------- AttachmentTest: test_nested_attributes --------------------------------------  (0.2ms) ROLLBACK  (0.2ms) BEGIN ---------------------------- AttachmentTest: test_default ---------------------------- ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN ------------------------------- AttachmentTest: test_attributes -------------------------------  (0.3ms) ROLLBACK  (0.2ms) BEGIN ---------------------------- AttachmentTest: test_default ----------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_renames ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15889-sjrhk4.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("logo", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["logo", "{\"id\":\"54df69ef760d46e98b59d18d004c8a6a\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T15:05:58.822-03:00\",\"paths\":{\"original\":\"anderstons/54df69ef760d46e98b59d18d004c8a6a-original.png\",\"tiny\":\"anderstons/54df69ef760d46e98b59d18d004c8a6a-tiny.png\",\"small\":\"anderstons/54df69ef760d46e98b59d18d004c8a6a-small.png\",\"medium\":\"anderstons/54df69ef760d46e98b59d18d004c8a6a-medium.png\",\"large\":\"anderstons/54df69ef760d46e98b59d18d004c8a6a-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["name", "Anderstons"], ["created_at", "2016-11-20 18:05:58.823453"], ["updated_at", "2016-11-20 18:05:58.823453"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15889-sjrhk4.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15889-mjvfjt.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15889-mjvfjt.png => anderstons/54df69ef760d46e98b59d18d004c8a6a-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15889-sjrhk4.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15889-gbxn7m.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15889-gbxn7m.png => anderstons/54df69ef760d46e98b59d18d004c8a6a-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15889-sjrhk4.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15889-1csvnfe.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15889-1csvnfe.png => anderstons/54df69ef760d46e98b59d18d004c8a6a-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15889-sjrhk4.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15889-1vuy385.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15889-1vuy385.png => anderstons/54df69ef760d46e98b59d18d004c8a6a-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15889-sjrhk4.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15889-a6l3eb.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15889-a6l3eb.png => anderstons/54df69ef760d46e98b59d18d004c8a6a-large.png ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN ---------------------------- AttachmentTest: test_default ----------------------------  (0.3ms) ROLLBACK  (0.2ms) BEGIN ------------------------------- AttachmentTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15923-1ibi1ag.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"f260f62247394b4f9eff442a54fc7106\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T15:06:54.608-03:00\",\"paths\":{\"original\":\"f260f62247394b4f9eff442a54fc7106-original.png\",\"tiny\":\"f260f62247394b4f9eff442a54fc7106-tiny.png\",\"small\":\"f260f62247394b4f9eff442a54fc7106-small.png\",\"medium\":\"f260f62247394b4f9eff442a54fc7106-medium.png\",\"large\":\"f260f62247394b4f9eff442a54fc7106-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-11-20 18:06:54.609566"], ["updated_at", "2016-11-20 18:06:54.609566"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15923-1ibi1ag.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15923-1s4azyk.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15923-1s4azyk.png => f260f62247394b4f9eff442a54fc7106-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15923-1ibi1ag.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15923-z9df0c.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15923-z9df0c.png => f260f62247394b4f9eff442a54fc7106-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15923-1ibi1ag.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15923-2dj78p.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15923-2dj78p.png => f260f62247394b4f9eff442a54fc7106-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15923-1ibi1ag.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15923-3j58vc.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15923-3j58vc.png => f260f62247394b4f9eff442a54fc7106-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15923-1ibi1ag.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15923-1drze5t.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15923-1drze5t.png => f260f62247394b4f9eff442a54fc7106-large.png Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 14]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 14]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Attachs::Jobs::DeleteJob] [898e4a39-d0ff-4a9f-8cdb-e136f20966d8] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["f260f62247394b4f9eff442a54fc7106-tiny.png", "f260f62247394b4f9eff442a54fc7106-large.png", "f260f62247394b4f9eff442a54fc7106-small.png", "f260f62247394b4f9eff442a54fc7106-medium.png", "f260f62247394b4f9eff442a54fc7106-original.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [898e4a39-d0ff-4a9f-8cdb-e136f20966d8] Deleting: f260f62247394b4f9eff442a54fc7106-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [898e4a39-d0ff-4a9f-8cdb-e136f20966d8] Deleting: f260f62247394b4f9eff442a54fc7106-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [898e4a39-d0ff-4a9f-8cdb-e136f20966d8] Deleting: f260f62247394b4f9eff442a54fc7106-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [898e4a39-d0ff-4a9f-8cdb-e136f20966d8] Deleting: f260f62247394b4f9eff442a54fc7106-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [898e4a39-d0ff-4a9f-8cdb-e136f20966d8] Deleting: f260f62247394b4f9eff442a54fc7106-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [898e4a39-d0ff-4a9f-8cdb-e136f20966d8] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2851.55ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 898e4a39-d0ff-4a9f-8cdb-e136f20966d8) to Inline(default) with arguments: ["f260f62247394b4f9eff442a54fc7106-tiny.png", "f260f62247394b4f9eff442a54fc7106-large.png", "f260f62247394b4f9eff442a54fc7106-small.png", "f260f62247394b4f9eff442a54fc7106-medium.png", "f260f62247394b4f9eff442a54fc7106-original.png"]  (0.3ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------- AttachmentTest: test_nested_attributes --------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_renames ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15923-hv6bzo.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["logo", "{\"id\":\"84ed66744c9f448ca587cb363a330bcd\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T15:07:25.239-03:00\",\"paths\":{\"original\":\"anderstons/84ed66744c9f448ca587cb363a330bcd-original.png\",\"tiny\":\"anderstons/84ed66744c9f448ca587cb363a330bcd-tiny.png\",\"small\":\"anderstons/84ed66744c9f448ca587cb363a330bcd-small.png\",\"medium\":\"anderstons/84ed66744c9f448ca587cb363a330bcd-medium.png\",\"large\":\"anderstons/84ed66744c9f448ca587cb363a330bcd-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["name", "Anderstons"], ["created_at", "2016-11-20 18:07:25.240478"], ["updated_at", "2016-11-20 18:07:25.240478"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15923-hv6bzo.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15923-1c0aorf.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15923-1c0aorf.png => anderstons/84ed66744c9f448ca587cb363a330bcd-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15923-hv6bzo.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15923-1gjr7pm.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15923-1gjr7pm.png => anderstons/84ed66744c9f448ca587cb363a330bcd-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15923-hv6bzo.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15923-1pjl8e0.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15923-1pjl8e0.png => anderstons/84ed66744c9f448ca587cb363a330bcd-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15923-hv6bzo.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15923-pf2a1x.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15923-pf2a1x.png => anderstons/84ed66744c9f448ca587cb363a330bcd-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15923-hv6bzo.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15923-13uk5u6.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15923-13uk5u6.png => anderstons/84ed66744c9f448ca587cb363a330bcd-large.png  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "shops" SET "name" = $1, "updated_at" = $2 WHERE "shops"."id" = $3 [["name", "Musicians Friend"], ["updated_at", "2016-11-20 18:07:37.209447"], ["id", 15]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 15]] [ActiveJob] [Attachs::Jobs::UpdateJob] [0a74be50-5c15-4969-8236-a315d7d2900c] Performing Attachs::Jobs::UpdateJob from Inline(default) with arguments: gid://dummy/Shop/15, "logo" [ActiveJob] [Attachs::Jobs::UpdateJob] [0a74be50-5c15-4969-8236-a315d7d2900c] Copying: anderstons/84ed66744c9f448ca587cb363a330bcd-original.png => musicians-friend/84ed66744c9f448ca587cb363a330bcd-original.png [ActiveJob] [Attachs::Jobs::UpdateJob] [0a74be50-5c15-4969-8236-a315d7d2900c] Copying: anderstons/84ed66744c9f448ca587cb363a330bcd-tiny.png => musicians-friend/84ed66744c9f448ca587cb363a330bcd-tiny.png [ActiveJob] [Attachs::Jobs::UpdateJob] [0a74be50-5c15-4969-8236-a315d7d2900c] Copying: anderstons/84ed66744c9f448ca587cb363a330bcd-small.png => musicians-friend/84ed66744c9f448ca587cb363a330bcd-small.png [ActiveJob] [Attachs::Jobs::UpdateJob] [0a74be50-5c15-4969-8236-a315d7d2900c] Copying: anderstons/84ed66744c9f448ca587cb363a330bcd-medium.png => musicians-friend/84ed66744c9f448ca587cb363a330bcd-medium.png [ActiveJob] [Attachs::Jobs::UpdateJob] [0a74be50-5c15-4969-8236-a315d7d2900c] Copying: anderstons/84ed66744c9f448ca587cb363a330bcd-large.png => musicians-friend/84ed66744c9f448ca587cb363a330bcd-large.png [ActiveJob] [Attachs::Jobs::UpdateJob] [0a74be50-5c15-4969-8236-a315d7d2900c] SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"tiny":"musicians-friend/84ed66744c9f448ca587cb363a330bcd-tiny.png","large":"musicians-friend/84ed66744c9f448ca587cb363a330bcd-large.png","small":"musicians-friend/84ed66744c9f448ca587cb363a330bcd-small.png","medium":"musicians-friend/84ed66744c9f448ca587cb363a330bcd-medium.png","original":"musicians-friend/84ed66744c9f448ca587cb363a330bcd-original.png"},"old_paths":["anderstons/84ed66744c9f448ca587cb363a330bcd-original.png","anderstons/84ed66744c9f448ca587cb363a330bcd-tiny.png","anderstons/84ed66744c9f448ca587cb363a330bcd-small.png","anderstons/84ed66744c9f448ca587cb363a330bcd-medium.png","anderstons/84ed66744c9f448ca587cb363a330bcd-large.png"],"id":"84ed66744c9f448ca587cb363a330bcd","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-11-20T15:07:25.239-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 15]] [ActiveJob] [Attachs::Jobs::UpdateJob] [0a74be50-5c15-4969-8236-a315d7d2900c] Performed Attachs::Jobs::UpdateJob from Inline(default) in 3676.35ms [ActiveJob] Enqueued Attachs::Jobs::UpdateJob (Job ID: 0a74be50-5c15-4969-8236-a315d7d2900c) to Inline(default) with arguments: gid://dummy/Shop/15, "logo" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 15]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 15]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Attachs::Jobs::DeleteJob] [5e9013b6-bf53-424a-84ab-b657e3595dbd] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["musicians-friend/84ed66744c9f448ca587cb363a330bcd-tiny.png", "musicians-friend/84ed66744c9f448ca587cb363a330bcd-large.png", "musicians-friend/84ed66744c9f448ca587cb363a330bcd-small.png", "musicians-friend/84ed66744c9f448ca587cb363a330bcd-medium.png", "musicians-friend/84ed66744c9f448ca587cb363a330bcd-original.png", "anderstons/84ed66744c9f448ca587cb363a330bcd-original.png", "anderstons/84ed66744c9f448ca587cb363a330bcd-tiny.png", "anderstons/84ed66744c9f448ca587cb363a330bcd-small.png", "anderstons/84ed66744c9f448ca587cb363a330bcd-medium.png", "anderstons/84ed66744c9f448ca587cb363a330bcd-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [5e9013b6-bf53-424a-84ab-b657e3595dbd] Deleting: musicians-friend/84ed66744c9f448ca587cb363a330bcd-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [5e9013b6-bf53-424a-84ab-b657e3595dbd] Deleting: musicians-friend/84ed66744c9f448ca587cb363a330bcd-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [5e9013b6-bf53-424a-84ab-b657e3595dbd] Deleting: musicians-friend/84ed66744c9f448ca587cb363a330bcd-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [5e9013b6-bf53-424a-84ab-b657e3595dbd] Deleting: musicians-friend/84ed66744c9f448ca587cb363a330bcd-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [5e9013b6-bf53-424a-84ab-b657e3595dbd] Deleting: musicians-friend/84ed66744c9f448ca587cb363a330bcd-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [5e9013b6-bf53-424a-84ab-b657e3595dbd] Deleting: anderstons/84ed66744c9f448ca587cb363a330bcd-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [5e9013b6-bf53-424a-84ab-b657e3595dbd] Deleting: anderstons/84ed66744c9f448ca587cb363a330bcd-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [5e9013b6-bf53-424a-84ab-b657e3595dbd] Deleting: anderstons/84ed66744c9f448ca587cb363a330bcd-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [5e9013b6-bf53-424a-84ab-b657e3595dbd] Deleting: anderstons/84ed66744c9f448ca587cb363a330bcd-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [5e9013b6-bf53-424a-84ab-b657e3595dbd] Deleting: anderstons/84ed66744c9f448ca587cb363a330bcd-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [5e9013b6-bf53-424a-84ab-b657e3595dbd] Performed Attachs::Jobs::DeleteJob from Inline(default) in 5734.03ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 5e9013b6-bf53-424a-84ab-b657e3595dbd) to Inline(default) with arguments: ["musicians-friend/84ed66744c9f448ca587cb363a330bcd-tiny.png", "musicians-friend/84ed66744c9f448ca587cb363a330bcd-large.png", "musicians-friend/84ed66744c9f448ca587cb363a330bcd-small.png", "musicians-friend/84ed66744c9f448ca587cb363a330bcd-medium.png", "musicians-friend/84ed66744c9f448ca587cb363a330bcd-original.png", "anderstons/84ed66744c9f448ca587cb363a330bcd-original.png", "anderstons/84ed66744c9f448ca587cb363a330bcd-tiny.png", "anderstons/84ed66744c9f448ca587cb363a330bcd-small.png", "anderstons/84ed66744c9f448ca587cb363a330bcd-medium.png", "anderstons/84ed66744c9f448ca587cb363a330bcd-large.png"]  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN -------------------------- MigrationTest: test_column -------------------------- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateUploads (20161031135453)  (0.1ms) SAVEPOINT active_record_1  (8.1ms) DROP TABLE "uploads" SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161031135453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to AddAttachments (20161030160506)  (0.1ms) SAVEPOINT active_record_1  (0.4ms) ALTER TABLE "shops" DROP "files"  (0.3ms) ALTER TABLE "products" DROP "brief" SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161030160506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to CreateProducts (20161024234029)  (0.1ms) SAVEPOINT active_record_1  (0.7ms) DROP TABLE "products" SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161024234029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to CreateShops (20161024234003)  (0.1ms) SAVEPOINT active_record_1  (0.7ms) DROP TABLE "shops" SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161024234003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateShops (20161024234003)  (0.1ms) SAVEPOINT active_record_1  (15.0ms) CREATE TABLE "shops" ("id" serial primary key, "name" character varying, "logo" jsonb DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161024234003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to CreateProducts (20161024234029)  (0.1ms) SAVEPOINT active_record_1  (2.0ms) CREATE TABLE "products" ("id" serial primary key, "shop_id" integer, "name" character varying, "pictures" jsonb DEFAULT '[]', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161024234029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to AddAttachments (20161030160506)  (0.1ms) SAVEPOINT active_record_1  (2.6ms) ALTER TABLE "products" ADD "brief" jsonb DEFAULT '{}'  (3.6ms) ALTER TABLE "shops" ADD "files" jsonb DEFAULT '[]' SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161030160506"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Migrating to CreateUploads (20161031135453)  (0.1ms) SAVEPOINT active_record_1  (3.3ms) CREATE TABLE "uploads" ("id" serial primary key, "file" jsonb DEFAULT '{}', "record_type" character varying, "record_attribute" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161031135453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------- UploadTest: test_upload ----------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-nh3kv5.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "uploads" ("file", "record_type", "record_attribute", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "{\"id\":\"545c5bb0558a45a7b471ef4bfe6bd623\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T15:08:48.841-03:00\",\"paths\":{\"original\":\"545c5bb0558a45a7b471ef4bfe6bd623-original.jpg\",\"tiny\":\"545c5bb0558a45a7b471ef4bfe6bd623-tiny.jpg\",\"small\":\"545c5bb0558a45a7b471ef4bfe6bd623-small.jpg\",\"medium\":\"545c5bb0558a45a7b471ef4bfe6bd623-medium.jpg\",\"large\":\"545c5bb0558a45a7b471ef4bfe6bd623-large.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["record_type", "Shop"], ["record_attribute", "logo"], ["created_at", "2016-11-20 18:08:48.842232"], ["updated_at", "2016-11-20 18:08:48.842232"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-nh3kv5.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-ivnj97.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-ivnj97.jpg => 545c5bb0558a45a7b471ef4bfe6bd623-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-nh3kv5.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-qvsa4d.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-qvsa4d.jpg => 545c5bb0558a45a7b471ef4bfe6bd623-tiny.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-nh3kv5.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-14qa154.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-14qa154.jpg => 545c5bb0558a45a7b471ef4bfe6bd623-small.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-nh3kv5.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-a9pnl9.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-a9pnl9.jpg => 545c5bb0558a45a7b471ef4bfe6bd623-medium.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-nh3kv5.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-1qrjebg.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-1qrjebg.jpg => 545c5bb0558a45a7b471ef4bfe6bd623-large.jpg  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"cd14226c8a4f419ab9b251b6c198ee32\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T15:08:57.289-03:00\",\"paths\":{\"original\":\"cd14226c8a4f419ab9b251b6c198ee32-original.png\",\"tiny\":\"cd14226c8a4f419ab9b251b6c198ee32-tiny.png\",\"small\":\"cd14226c8a4f419ab9b251b6c198ee32-small.png\",\"medium\":\"cd14226c8a4f419ab9b251b6c198ee32-medium.png\",\"large\":\"cd14226c8a4f419ab9b251b6c198ee32-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-11-20 18:08:57.290500"], ["updated_at", "2016-11-20 18:08:57.290500"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-1d7nvyw.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-14245uh.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-14245uh.png => cd14226c8a4f419ab9b251b6c198ee32-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-1d7nvyw.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-d9fljm.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-d9fljm.png => cd14226c8a4f419ab9b251b6c198ee32-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-1d7nvyw.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-are42c.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-are42c.png => cd14226c8a4f419ab9b251b6c198ee32-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-1d7nvyw.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-jhlzt7.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-jhlzt7.png => cd14226c8a4f419ab9b251b6c198ee32-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-1d7nvyw.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-j20enk.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-j20enk.png => cd14226c8a4f419ab9b251b6c198ee32-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [243572fe-9375-46df-88f0-9f18e5a40925] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["cd14226c8a4f419ab9b251b6c198ee32-original.png", "cd14226c8a4f419ab9b251b6c198ee32-tiny.png", "cd14226c8a4f419ab9b251b6c198ee32-small.png", "cd14226c8a4f419ab9b251b6c198ee32-medium.png", "cd14226c8a4f419ab9b251b6c198ee32-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [243572fe-9375-46df-88f0-9f18e5a40925] Deleting: cd14226c8a4f419ab9b251b6c198ee32-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [243572fe-9375-46df-88f0-9f18e5a40925] Deleting: cd14226c8a4f419ab9b251b6c198ee32-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [243572fe-9375-46df-88f0-9f18e5a40925] Deleting: cd14226c8a4f419ab9b251b6c198ee32-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [243572fe-9375-46df-88f0-9f18e5a40925] Deleting: cd14226c8a4f419ab9b251b6c198ee32-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [243572fe-9375-46df-88f0-9f18e5a40925] Deleting: cd14226c8a4f419ab9b251b6c198ee32-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [243572fe-9375-46df-88f0-9f18e5a40925] Performed Attachs::Jobs::DeleteJob from Inline(default) in 3571.96ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 243572fe-9375-46df-88f0-9f18e5a40925) to Inline(default) with arguments: ["cd14226c8a4f419ab9b251b6c198ee32-original.png", "cd14226c8a4f419ab9b251b6c198ee32-tiny.png", "cd14226c8a4f419ab9b251b6c198ee32-small.png", "cd14226c8a4f419ab9b251b6c198ee32-medium.png", "cd14226c8a4f419ab9b251b6c198ee32-large.png"] Upload Load (0.3ms) SELECT "uploads".* FROM "uploads" WHERE "uploads"."id" = $1 LIMIT 1 [["id", 5]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"paths\":{\"original\":\"72106f2afa594881a6428435f72222ee-original.png\",\"tiny\":\"72106f2afa594881a6428435f72222ee-tiny.png\",\"small\":\"72106f2afa594881a6428435f72222ee-small.png\",\"medium\":\"72106f2afa594881a6428435f72222ee-medium.png\",\"large\":\"72106f2afa594881a6428435f72222ee-large.png\"},\"old_paths\":[],\"id\":\"72106f2afa594881a6428435f72222ee\",\"size\":74474,\"ratio\":0.6725,\"width\":400,\"height\":269,\"filename\":\"image.jpg\",\"uploaded_at\":\"2016-11-20T15:09:14.495-03:00\",\"content_type\":\"image/jpeg\"}"], ["created_at", "2016-11-20 18:09:14.495943"], ["updated_at", "2016-11-20 18:09:14.495943"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Copying: 545c5bb0558a45a7b471ef4bfe6bd623-tiny.jpg => 72106f2afa594881a6428435f72222ee-tiny.png Copying: 545c5bb0558a45a7b471ef4bfe6bd623-large.jpg => 72106f2afa594881a6428435f72222ee-large.png Copying: 545c5bb0558a45a7b471ef4bfe6bd623-small.jpg => 72106f2afa594881a6428435f72222ee-small.png Copying: 545c5bb0558a45a7b471ef4bfe6bd623-medium.jpg => 72106f2afa594881a6428435f72222ee-medium.png Copying: 545c5bb0558a45a7b471ef4bfe6bd623-original.jpg => 72106f2afa594881a6428435f72222ee-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [915b58c7-a7ea-4591-b6c1-bc1e8ceac344] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["72106f2afa594881a6428435f72222ee-original.png", "72106f2afa594881a6428435f72222ee-tiny.png", "72106f2afa594881a6428435f72222ee-small.png", "72106f2afa594881a6428435f72222ee-medium.png", "72106f2afa594881a6428435f72222ee-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [915b58c7-a7ea-4591-b6c1-bc1e8ceac344] Deleting: 72106f2afa594881a6428435f72222ee-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [915b58c7-a7ea-4591-b6c1-bc1e8ceac344] Deleting: 72106f2afa594881a6428435f72222ee-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [915b58c7-a7ea-4591-b6c1-bc1e8ceac344] Deleting: 72106f2afa594881a6428435f72222ee-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [915b58c7-a7ea-4591-b6c1-bc1e8ceac344] Deleting: 72106f2afa594881a6428435f72222ee-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [915b58c7-a7ea-4591-b6c1-bc1e8ceac344] Deleting: 72106f2afa594881a6428435f72222ee-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [915b58c7-a7ea-4591-b6c1-bc1e8ceac344] Performed Attachs::Jobs::DeleteJob from Inline(default) in 4707.78ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 915b58c7-a7ea-4591-b6c1-bc1e8ceac344) to Inline(default) with arguments: ["72106f2afa594881a6428435f72222ee-original.png", "72106f2afa594881a6428435f72222ee-tiny.png", "72106f2afa594881a6428435f72222ee-small.png", "72106f2afa594881a6428435f72222ee-medium.png", "72106f2afa594881a6428435f72222ee-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [f0d28b13-53d2-4cb2-87c5-fe0a55351bc4] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["545c5bb0558a45a7b471ef4bfe6bd623-original.jpg", "545c5bb0558a45a7b471ef4bfe6bd623-tiny.jpg", "545c5bb0558a45a7b471ef4bfe6bd623-small.jpg", "545c5bb0558a45a7b471ef4bfe6bd623-medium.jpg", "545c5bb0558a45a7b471ef4bfe6bd623-large.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [f0d28b13-53d2-4cb2-87c5-fe0a55351bc4] Deleting: 545c5bb0558a45a7b471ef4bfe6bd623-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [f0d28b13-53d2-4cb2-87c5-fe0a55351bc4] Deleting: 545c5bb0558a45a7b471ef4bfe6bd623-tiny.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [f0d28b13-53d2-4cb2-87c5-fe0a55351bc4] Deleting: 545c5bb0558a45a7b471ef4bfe6bd623-small.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [f0d28b13-53d2-4cb2-87c5-fe0a55351bc4] Deleting: 545c5bb0558a45a7b471ef4bfe6bd623-medium.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [f0d28b13-53d2-4cb2-87c5-fe0a55351bc4] Deleting: 545c5bb0558a45a7b471ef4bfe6bd623-large.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [f0d28b13-53d2-4cb2-87c5-fe0a55351bc4] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2251.59ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: f0d28b13-53d2-4cb2-87c5-fe0a55351bc4) to Inline(default) with arguments: ["545c5bb0558a45a7b471ef4bfe6bd623-original.jpg", "545c5bb0558a45a7b471ef4bfe6bd623-tiny.jpg", "545c5bb0558a45a7b471ef4bfe6bd623-small.jpg", "545c5bb0558a45a7b471ef4bfe6bd623-medium.jpg", "545c5bb0558a45a7b471ef4bfe6bd623-large.jpg"]  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ ValidatorsTest: test_content_type_in ------------------------------------ Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-2cmro3.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-eabk4r.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-1p5k5df.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidatorsTest: test_size_in ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161120-15985-15l9xyo.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-my8et8.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161120-15985-18umne9.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-119xuud.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-2fp2qk.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidatorsTest: test_size_greater_than -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161120-15985-ww7z76.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-1cxqc39.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-182z1qh.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- ValidatorsTest: test_content_type_within ---------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-eh10ju.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-7vyy56.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-12hmjd5.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- ValidatorsTest: test_size_less_than ----------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161120-15985-7a8ttv.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-f8y302.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-395nwh.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidatorsTest: test_methods ----------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidatorsTest: test_content_type_with -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-3d43ul.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-1x5xjed.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-1qjcapb.jpg'  (0.3ms) ROLLBACK  (0.2ms) BEGIN -------------------------------- ValidatorsTest: test_size_within -------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161120-15985-1qx5tum.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-azvf6a.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161120-15985-1qzs7i3.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-1ypixgf.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-g9jg0c.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------- ConcernTest: test_inherit -------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------- TasksTest: test_reprocess ------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-19bfhw8.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"285c54aefb2c426b88ebbe5da60e60dc\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T15:09:27.191-03:00\",\"paths\":{\"original\":\"285c54aefb2c426b88ebbe5da60e60dc-original.png\",\"tiny\":\"285c54aefb2c426b88ebbe5da60e60dc-tiny.png\",\"small\":\"285c54aefb2c426b88ebbe5da60e60dc-small.png\",\"medium\":\"285c54aefb2c426b88ebbe5da60e60dc-medium.png\",\"large\":\"285c54aefb2c426b88ebbe5da60e60dc-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-11-20 18:09:27.192144"], ["updated_at", "2016-11-20 18:09:27.192144"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-19bfhw8.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-8t5g9l.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-8t5g9l.png => 285c54aefb2c426b88ebbe5da60e60dc-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-19bfhw8.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-1fiq99o.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-1fiq99o.png => 285c54aefb2c426b88ebbe5da60e60dc-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-19bfhw8.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-1kd744v.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-1kd744v.png => 285c54aefb2c426b88ebbe5da60e60dc-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-19bfhw8.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-1mzjdzy.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-1mzjdzy.png => 285c54aefb2c426b88ebbe5da60e60dc-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-19bfhw8.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-p1okxe.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-p1okxe.png => 285c54aefb2c426b88ebbe5da60e60dc-large.png Deleting: 285c54aefb2c426b88ebbe5da60e60dc-tiny.png Deleting: 285c54aefb2c426b88ebbe5da60e60dc-small.png Deleting: 285c54aefb2c426b88ebbe5da60e60dc-medium.png Deleting: 285c54aefb2c426b88ebbe5da60e60dc-large.png Upload Load (0.4ms) SELECT "uploads".* FROM "uploads" ORDER BY "uploads"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Reprocessing Shop #18 => logo Regenerating: tiny => 285c54aefb2c426b88ebbe5da60e60dc-tiny.png Regenerating: large => 285c54aefb2c426b88ebbe5da60e60dc-large.png Regenerating: small => 285c54aefb2c426b88ebbe5da60e60dc-small.png Regenerating: medium => 285c54aefb2c426b88ebbe5da60e60dc-medium.png Deleting: 285c54aefb2c426b88ebbe5da60e60dc-original.png Regenerating: original => 285c54aefb2c426b88ebbe5da60e60dc-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-thhrjg.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-1bb20cc.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-1bb20cc.png => 285c54aefb2c426b88ebbe5da60e60dc-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-thhrjg.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-1uq4kie.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-1uq4kie.png => 285c54aefb2c426b88ebbe5da60e60dc-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-thhrjg.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-172zvd1.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-172zvd1.png => 285c54aefb2c426b88ebbe5da60e60dc-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-thhrjg.png' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-kcouyp.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-kcouyp.png => 285c54aefb2c426b88ebbe5da60e60dc-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-thhrjg.png' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-119zvk4.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-119zvk4.png => 285c54aefb2c426b88ebbe5da60e60dc-large.png SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"original":"285c54aefb2c426b88ebbe5da60e60dc-original.png","tiny":"285c54aefb2c426b88ebbe5da60e60dc-tiny.png","small":"285c54aefb2c426b88ebbe5da60e60dc-small.png","medium":"285c54aefb2c426b88ebbe5da60e60dc-medium.png","large":"285c54aefb2c426b88ebbe5da60e60dc-large.png"},"old_paths":[],"id":"285c54aefb2c426b88ebbe5da60e60dc","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-11-20T15:09:27.191-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 18]] ConcernTest::Subclass Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 18]] [ActiveJob] [Attachs::Jobs::DeleteJob] [eae0e8f8-f039-4824-9ad0-9f279808b78b] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["285c54aefb2c426b88ebbe5da60e60dc-tiny.png", "285c54aefb2c426b88ebbe5da60e60dc-large.png", "285c54aefb2c426b88ebbe5da60e60dc-small.png", "285c54aefb2c426b88ebbe5da60e60dc-medium.png", "285c54aefb2c426b88ebbe5da60e60dc-original.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [eae0e8f8-f039-4824-9ad0-9f279808b78b] Deleting: 285c54aefb2c426b88ebbe5da60e60dc-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [eae0e8f8-f039-4824-9ad0-9f279808b78b] Deleting: 285c54aefb2c426b88ebbe5da60e60dc-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [eae0e8f8-f039-4824-9ad0-9f279808b78b] Deleting: 285c54aefb2c426b88ebbe5da60e60dc-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [eae0e8f8-f039-4824-9ad0-9f279808b78b] Deleting: 285c54aefb2c426b88ebbe5da60e60dc-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [eae0e8f8-f039-4824-9ad0-9f279808b78b] Deleting: 285c54aefb2c426b88ebbe5da60e60dc-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [eae0e8f8-f039-4824-9ad0-9f279808b78b] Performed Attachs::Jobs::DeleteJob from Inline(default) in 3066.39ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: eae0e8f8-f039-4824-9ad0-9f279808b78b) to Inline(default) with arguments: ["285c54aefb2c426b88ebbe5da60e60dc-tiny.png", "285c54aefb2c426b88ebbe5da60e60dc-large.png", "285c54aefb2c426b88ebbe5da60e60dc-small.png", "285c54aefb2c426b88ebbe5da60e60dc-medium.png", "285c54aefb2c426b88ebbe5da60e60dc-original.png"]  (0.4ms) ROLLBACK  (0.1ms) BEGIN --------------------- TasksTest: test_clear --------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-1m8vbou.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"f0de43da7cbe4c50bbfb0817e0bd0c4f\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T15:09:52.286-03:00\",\"paths\":{\"original\":\"f0de43da7cbe4c50bbfb0817e0bd0c4f-original.png\",\"tiny\":\"f0de43da7cbe4c50bbfb0817e0bd0c4f-tiny.png\",\"small\":\"f0de43da7cbe4c50bbfb0817e0bd0c4f-small.png\",\"medium\":\"f0de43da7cbe4c50bbfb0817e0bd0c4f-medium.png\",\"large\":\"f0de43da7cbe4c50bbfb0817e0bd0c4f-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-11-20 18:09:52.287077"], ["updated_at", "2016-11-20 18:09:52.287077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-1m8vbou.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-h83htw.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-h83htw.png => f0de43da7cbe4c50bbfb0817e0bd0c4f-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-1m8vbou.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-1wnbafw.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-1wnbafw.png => f0de43da7cbe4c50bbfb0817e0bd0c4f-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-1m8vbou.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-122h0lv.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-122h0lv.png => f0de43da7cbe4c50bbfb0817e0bd0c4f-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-1m8vbou.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-jq7gdp.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-jq7gdp.png => f0de43da7cbe4c50bbfb0817e0bd0c4f-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-1m8vbou.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-17xsr06.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-17xsr06.png => f0de43da7cbe4c50bbfb0817e0bd0c4f-large.png Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-4lissu.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"b39a9ff58a0041ffbbdfb0563fb76d19\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T15:09:58.530-03:00\",\"paths\":{\"original\":\"b39a9ff58a0041ffbbdfb0563fb76d19-original.png\",\"tiny\":\"b39a9ff58a0041ffbbdfb0563fb76d19-tiny.png\",\"small\":\"b39a9ff58a0041ffbbdfb0563fb76d19-small.png\",\"medium\":\"b39a9ff58a0041ffbbdfb0563fb76d19-medium.png\",\"large\":\"b39a9ff58a0041ffbbdfb0563fb76d19-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-11-20 18:09:58.530900"], ["updated_at", "2016-11-20 18:09:58.530900"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-4lissu.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-xg1oq9.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-xg1oq9.png => b39a9ff58a0041ffbbdfb0563fb76d19-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-4lissu.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-7ennoo.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-7ennoo.png => b39a9ff58a0041ffbbdfb0563fb76d19-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-4lissu.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-1wmfsly.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-1wmfsly.png => b39a9ff58a0041ffbbdfb0563fb76d19-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-4lissu.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-1ogex6y.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-1ogex6y.png => b39a9ff58a0041ffbbdfb0563fb76d19-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-4lissu.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-1iadfuy.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-1iadfuy.png => b39a9ff58a0041ffbbdfb0563fb76d19-large.png SQL (0.2ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 20]]  (0.9ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'anderstons/4581c83616c64bcb98be036fe65e3671-original.png' OR old_paths.value = 'anderstons/4581c83616c64bcb98be036fe65e3671-original.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'anderstons/4581c83616c64bcb98be036fe65e3671-original.png' OR old_paths.value = 'anderstons/4581c83616c64bcb98be036fe65e3671-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'anderstons/4581c83616c64bcb98be036fe65e3671-original.png' OR old_paths.value = 'anderstons/4581c83616c64bcb98be036fe65e3671-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'anderstons/4581c83616c64bcb98be036fe65e3671-original.png' OR old_paths.value = 'anderstons/4581c83616c64bcb98be036fe65e3671-original.png') Deleting anderstons/4581c83616c64bcb98be036fe65e3671-original.png Deleting: anderstons/4581c83616c64bcb98be036fe65e3671-original.png  (0.8ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'anderstons/54df69ef760d46e98b59d18d004c8a6a-large.png' OR old_paths.value = 'anderstons/54df69ef760d46e98b59d18d004c8a6a-large.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'anderstons/54df69ef760d46e98b59d18d004c8a6a-large.png' OR old_paths.value = 'anderstons/54df69ef760d46e98b59d18d004c8a6a-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'anderstons/54df69ef760d46e98b59d18d004c8a6a-large.png' OR old_paths.value = 'anderstons/54df69ef760d46e98b59d18d004c8a6a-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'anderstons/54df69ef760d46e98b59d18d004c8a6a-large.png' OR old_paths.value = 'anderstons/54df69ef760d46e98b59d18d004c8a6a-large.png') Deleting anderstons/54df69ef760d46e98b59d18d004c8a6a-large.png Deleting: anderstons/54df69ef760d46e98b59d18d004c8a6a-large.png  (0.7ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'anderstons/54df69ef760d46e98b59d18d004c8a6a-medium.png' OR old_paths.value = 'anderstons/54df69ef760d46e98b59d18d004c8a6a-medium.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'anderstons/54df69ef760d46e98b59d18d004c8a6a-medium.png' OR old_paths.value = 'anderstons/54df69ef760d46e98b59d18d004c8a6a-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'anderstons/54df69ef760d46e98b59d18d004c8a6a-medium.png' OR old_paths.value = 'anderstons/54df69ef760d46e98b59d18d004c8a6a-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'anderstons/54df69ef760d46e98b59d18d004c8a6a-medium.png' OR old_paths.value = 'anderstons/54df69ef760d46e98b59d18d004c8a6a-medium.png') Deleting anderstons/54df69ef760d46e98b59d18d004c8a6a-medium.png Deleting: anderstons/54df69ef760d46e98b59d18d004c8a6a-medium.png  (0.7ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'anderstons/54df69ef760d46e98b59d18d004c8a6a-original.png' OR old_paths.value = 'anderstons/54df69ef760d46e98b59d18d004c8a6a-original.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'anderstons/54df69ef760d46e98b59d18d004c8a6a-original.png' OR old_paths.value = 'anderstons/54df69ef760d46e98b59d18d004c8a6a-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'anderstons/54df69ef760d46e98b59d18d004c8a6a-original.png' OR old_paths.value = 'anderstons/54df69ef760d46e98b59d18d004c8a6a-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'anderstons/54df69ef760d46e98b59d18d004c8a6a-original.png' OR old_paths.value = 'anderstons/54df69ef760d46e98b59d18d004c8a6a-original.png') Deleting anderstons/54df69ef760d46e98b59d18d004c8a6a-original.png Deleting: anderstons/54df69ef760d46e98b59d18d004c8a6a-original.png  (0.6ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'anderstons/54df69ef760d46e98b59d18d004c8a6a-small.png' OR old_paths.value = 'anderstons/54df69ef760d46e98b59d18d004c8a6a-small.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'anderstons/54df69ef760d46e98b59d18d004c8a6a-small.png' OR old_paths.value = 'anderstons/54df69ef760d46e98b59d18d004c8a6a-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'anderstons/54df69ef760d46e98b59d18d004c8a6a-small.png' OR old_paths.value = 'anderstons/54df69ef760d46e98b59d18d004c8a6a-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'anderstons/54df69ef760d46e98b59d18d004c8a6a-small.png' OR old_paths.value = 'anderstons/54df69ef760d46e98b59d18d004c8a6a-small.png') Deleting anderstons/54df69ef760d46e98b59d18d004c8a6a-small.png Deleting: anderstons/54df69ef760d46e98b59d18d004c8a6a-small.png  (0.8ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'anderstons/54df69ef760d46e98b59d18d004c8a6a-tiny.png' OR old_paths.value = 'anderstons/54df69ef760d46e98b59d18d004c8a6a-tiny.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'anderstons/54df69ef760d46e98b59d18d004c8a6a-tiny.png' OR old_paths.value = 'anderstons/54df69ef760d46e98b59d18d004c8a6a-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'anderstons/54df69ef760d46e98b59d18d004c8a6a-tiny.png' OR old_paths.value = 'anderstons/54df69ef760d46e98b59d18d004c8a6a-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'anderstons/54df69ef760d46e98b59d18d004c8a6a-tiny.png' OR old_paths.value = 'anderstons/54df69ef760d46e98b59d18d004c8a6a-tiny.png') Deleting anderstons/54df69ef760d46e98b59d18d004c8a6a-tiny.png Deleting: anderstons/54df69ef760d46e98b59d18d004c8a6a-tiny.png  (0.7ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'anderstons/f5615522aa6e42409753a3b3cb7f2ce3-large.png' OR old_paths.value = 'anderstons/f5615522aa6e42409753a3b3cb7f2ce3-large.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'anderstons/f5615522aa6e42409753a3b3cb7f2ce3-large.png' OR old_paths.value = 'anderstons/f5615522aa6e42409753a3b3cb7f2ce3-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'anderstons/f5615522aa6e42409753a3b3cb7f2ce3-large.png' OR old_paths.value = 'anderstons/f5615522aa6e42409753a3b3cb7f2ce3-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'anderstons/f5615522aa6e42409753a3b3cb7f2ce3-large.png' OR old_paths.value = 'anderstons/f5615522aa6e42409753a3b3cb7f2ce3-large.png') Deleting anderstons/f5615522aa6e42409753a3b3cb7f2ce3-large.png Deleting: anderstons/f5615522aa6e42409753a3b3cb7f2ce3-large.png  (0.7ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'anderstons/f5615522aa6e42409753a3b3cb7f2ce3-medium.png' OR old_paths.value = 'anderstons/f5615522aa6e42409753a3b3cb7f2ce3-medium.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'anderstons/f5615522aa6e42409753a3b3cb7f2ce3-medium.png' OR old_paths.value = 'anderstons/f5615522aa6e42409753a3b3cb7f2ce3-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'anderstons/f5615522aa6e42409753a3b3cb7f2ce3-medium.png' OR old_paths.value = 'anderstons/f5615522aa6e42409753a3b3cb7f2ce3-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'anderstons/f5615522aa6e42409753a3b3cb7f2ce3-medium.png' OR old_paths.value = 'anderstons/f5615522aa6e42409753a3b3cb7f2ce3-medium.png') Deleting anderstons/f5615522aa6e42409753a3b3cb7f2ce3-medium.png Deleting: anderstons/f5615522aa6e42409753a3b3cb7f2ce3-medium.png  (0.7ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'anderstons/f5615522aa6e42409753a3b3cb7f2ce3-original.png' OR old_paths.value = 'anderstons/f5615522aa6e42409753a3b3cb7f2ce3-original.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'anderstons/f5615522aa6e42409753a3b3cb7f2ce3-original.png' OR old_paths.value = 'anderstons/f5615522aa6e42409753a3b3cb7f2ce3-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'anderstons/f5615522aa6e42409753a3b3cb7f2ce3-original.png' OR old_paths.value = 'anderstons/f5615522aa6e42409753a3b3cb7f2ce3-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'anderstons/f5615522aa6e42409753a3b3cb7f2ce3-original.png' OR old_paths.value = 'anderstons/f5615522aa6e42409753a3b3cb7f2ce3-original.png') Deleting anderstons/f5615522aa6e42409753a3b3cb7f2ce3-original.png Deleting: anderstons/f5615522aa6e42409753a3b3cb7f2ce3-original.png  (0.7ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'anderstons/f5615522aa6e42409753a3b3cb7f2ce3-small.png' OR old_paths.value = 'anderstons/f5615522aa6e42409753a3b3cb7f2ce3-small.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'anderstons/f5615522aa6e42409753a3b3cb7f2ce3-small.png' OR old_paths.value = 'anderstons/f5615522aa6e42409753a3b3cb7f2ce3-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'anderstons/f5615522aa6e42409753a3b3cb7f2ce3-small.png' OR old_paths.value = 'anderstons/f5615522aa6e42409753a3b3cb7f2ce3-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'anderstons/f5615522aa6e42409753a3b3cb7f2ce3-small.png' OR old_paths.value = 'anderstons/f5615522aa6e42409753a3b3cb7f2ce3-small.png') Deleting anderstons/f5615522aa6e42409753a3b3cb7f2ce3-small.png Deleting: anderstons/f5615522aa6e42409753a3b3cb7f2ce3-small.png  (1.5ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'anderstons/f5615522aa6e42409753a3b3cb7f2ce3-tiny.png' OR old_paths.value = 'anderstons/f5615522aa6e42409753a3b3cb7f2ce3-tiny.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'anderstons/f5615522aa6e42409753a3b3cb7f2ce3-tiny.png' OR old_paths.value = 'anderstons/f5615522aa6e42409753a3b3cb7f2ce3-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'anderstons/f5615522aa6e42409753a3b3cb7f2ce3-tiny.png' OR old_paths.value = 'anderstons/f5615522aa6e42409753a3b3cb7f2ce3-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'anderstons/f5615522aa6e42409753a3b3cb7f2ce3-tiny.png' OR old_paths.value = 'anderstons/f5615522aa6e42409753a3b3cb7f2ce3-tiny.png') Deleting anderstons/f5615522aa6e42409753a3b3cb7f2ce3-tiny.png Deleting: anderstons/f5615522aa6e42409753a3b3cb7f2ce3-tiny.png  (0.7ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b39a9ff58a0041ffbbdfb0563fb76d19-large.png' OR old_paths.value = 'b39a9ff58a0041ffbbdfb0563fb76d19-large.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b39a9ff58a0041ffbbdfb0563fb76d19-large.png' OR old_paths.value = 'b39a9ff58a0041ffbbdfb0563fb76d19-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b39a9ff58a0041ffbbdfb0563fb76d19-large.png' OR old_paths.value = 'b39a9ff58a0041ffbbdfb0563fb76d19-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b39a9ff58a0041ffbbdfb0563fb76d19-large.png' OR old_paths.value = 'b39a9ff58a0041ffbbdfb0563fb76d19-large.png') Deleting b39a9ff58a0041ffbbdfb0563fb76d19-large.png Deleting: b39a9ff58a0041ffbbdfb0563fb76d19-large.png  (0.6ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b39a9ff58a0041ffbbdfb0563fb76d19-medium.png' OR old_paths.value = 'b39a9ff58a0041ffbbdfb0563fb76d19-medium.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b39a9ff58a0041ffbbdfb0563fb76d19-medium.png' OR old_paths.value = 'b39a9ff58a0041ffbbdfb0563fb76d19-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b39a9ff58a0041ffbbdfb0563fb76d19-medium.png' OR old_paths.value = 'b39a9ff58a0041ffbbdfb0563fb76d19-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b39a9ff58a0041ffbbdfb0563fb76d19-medium.png' OR old_paths.value = 'b39a9ff58a0041ffbbdfb0563fb76d19-medium.png') Deleting b39a9ff58a0041ffbbdfb0563fb76d19-medium.png Deleting: b39a9ff58a0041ffbbdfb0563fb76d19-medium.png  (0.6ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b39a9ff58a0041ffbbdfb0563fb76d19-original.png' OR old_paths.value = 'b39a9ff58a0041ffbbdfb0563fb76d19-original.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b39a9ff58a0041ffbbdfb0563fb76d19-original.png' OR old_paths.value = 'b39a9ff58a0041ffbbdfb0563fb76d19-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b39a9ff58a0041ffbbdfb0563fb76d19-original.png' OR old_paths.value = 'b39a9ff58a0041ffbbdfb0563fb76d19-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b39a9ff58a0041ffbbdfb0563fb76d19-original.png' OR old_paths.value = 'b39a9ff58a0041ffbbdfb0563fb76d19-original.png') Deleting b39a9ff58a0041ffbbdfb0563fb76d19-original.png Deleting: b39a9ff58a0041ffbbdfb0563fb76d19-original.png  (0.6ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b39a9ff58a0041ffbbdfb0563fb76d19-small.png' OR old_paths.value = 'b39a9ff58a0041ffbbdfb0563fb76d19-small.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b39a9ff58a0041ffbbdfb0563fb76d19-small.png' OR old_paths.value = 'b39a9ff58a0041ffbbdfb0563fb76d19-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b39a9ff58a0041ffbbdfb0563fb76d19-small.png' OR old_paths.value = 'b39a9ff58a0041ffbbdfb0563fb76d19-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b39a9ff58a0041ffbbdfb0563fb76d19-small.png' OR old_paths.value = 'b39a9ff58a0041ffbbdfb0563fb76d19-small.png') Deleting b39a9ff58a0041ffbbdfb0563fb76d19-small.png Deleting: b39a9ff58a0041ffbbdfb0563fb76d19-small.png  (0.6ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b39a9ff58a0041ffbbdfb0563fb76d19-tiny.png' OR old_paths.value = 'b39a9ff58a0041ffbbdfb0563fb76d19-tiny.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b39a9ff58a0041ffbbdfb0563fb76d19-tiny.png' OR old_paths.value = 'b39a9ff58a0041ffbbdfb0563fb76d19-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b39a9ff58a0041ffbbdfb0563fb76d19-tiny.png' OR old_paths.value = 'b39a9ff58a0041ffbbdfb0563fb76d19-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b39a9ff58a0041ffbbdfb0563fb76d19-tiny.png' OR old_paths.value = 'b39a9ff58a0041ffbbdfb0563fb76d19-tiny.png') Deleting b39a9ff58a0041ffbbdfb0563fb76d19-tiny.png Deleting: b39a9ff58a0041ffbbdfb0563fb76d19-tiny.png  (0.6ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd42fbd11f36a4781ad0e7cb35106ab17-large.png' OR old_paths.value = 'd42fbd11f36a4781ad0e7cb35106ab17-large.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd42fbd11f36a4781ad0e7cb35106ab17-large.png' OR old_paths.value = 'd42fbd11f36a4781ad0e7cb35106ab17-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd42fbd11f36a4781ad0e7cb35106ab17-large.png' OR old_paths.value = 'd42fbd11f36a4781ad0e7cb35106ab17-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd42fbd11f36a4781ad0e7cb35106ab17-large.png' OR old_paths.value = 'd42fbd11f36a4781ad0e7cb35106ab17-large.png') Deleting d42fbd11f36a4781ad0e7cb35106ab17-large.png Deleting: d42fbd11f36a4781ad0e7cb35106ab17-large.png  (0.7ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd42fbd11f36a4781ad0e7cb35106ab17-medium.png' OR old_paths.value = 'd42fbd11f36a4781ad0e7cb35106ab17-medium.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd42fbd11f36a4781ad0e7cb35106ab17-medium.png' OR old_paths.value = 'd42fbd11f36a4781ad0e7cb35106ab17-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd42fbd11f36a4781ad0e7cb35106ab17-medium.png' OR old_paths.value = 'd42fbd11f36a4781ad0e7cb35106ab17-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd42fbd11f36a4781ad0e7cb35106ab17-medium.png' OR old_paths.value = 'd42fbd11f36a4781ad0e7cb35106ab17-medium.png') Deleting d42fbd11f36a4781ad0e7cb35106ab17-medium.png Deleting: d42fbd11f36a4781ad0e7cb35106ab17-medium.png  (0.6ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd42fbd11f36a4781ad0e7cb35106ab17-original.png' OR old_paths.value = 'd42fbd11f36a4781ad0e7cb35106ab17-original.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd42fbd11f36a4781ad0e7cb35106ab17-original.png' OR old_paths.value = 'd42fbd11f36a4781ad0e7cb35106ab17-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd42fbd11f36a4781ad0e7cb35106ab17-original.png' OR old_paths.value = 'd42fbd11f36a4781ad0e7cb35106ab17-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd42fbd11f36a4781ad0e7cb35106ab17-original.png' OR old_paths.value = 'd42fbd11f36a4781ad0e7cb35106ab17-original.png') Deleting d42fbd11f36a4781ad0e7cb35106ab17-original.png Deleting: d42fbd11f36a4781ad0e7cb35106ab17-original.png  (0.6ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd42fbd11f36a4781ad0e7cb35106ab17-small.png' OR old_paths.value = 'd42fbd11f36a4781ad0e7cb35106ab17-small.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd42fbd11f36a4781ad0e7cb35106ab17-small.png' OR old_paths.value = 'd42fbd11f36a4781ad0e7cb35106ab17-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd42fbd11f36a4781ad0e7cb35106ab17-small.png' OR old_paths.value = 'd42fbd11f36a4781ad0e7cb35106ab17-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd42fbd11f36a4781ad0e7cb35106ab17-small.png' OR old_paths.value = 'd42fbd11f36a4781ad0e7cb35106ab17-small.png') Deleting d42fbd11f36a4781ad0e7cb35106ab17-small.png Deleting: d42fbd11f36a4781ad0e7cb35106ab17-small.png  (0.7ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd42fbd11f36a4781ad0e7cb35106ab17-tiny.png' OR old_paths.value = 'd42fbd11f36a4781ad0e7cb35106ab17-tiny.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd42fbd11f36a4781ad0e7cb35106ab17-tiny.png' OR old_paths.value = 'd42fbd11f36a4781ad0e7cb35106ab17-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd42fbd11f36a4781ad0e7cb35106ab17-tiny.png' OR old_paths.value = 'd42fbd11f36a4781ad0e7cb35106ab17-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd42fbd11f36a4781ad0e7cb35106ab17-tiny.png' OR old_paths.value = 'd42fbd11f36a4781ad0e7cb35106ab17-tiny.png') Deleting d42fbd11f36a4781ad0e7cb35106ab17-tiny.png Deleting: d42fbd11f36a4781ad0e7cb35106ab17-tiny.png  (1.0ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-large.png' OR old_paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-large.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-large.png' OR old_paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-large.png' OR old_paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-large.png' OR old_paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-large.png')  (1.2ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-medium.png' OR old_paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-medium.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-medium.png' OR old_paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-medium.png' OR old_paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-medium.png' OR old_paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-medium.png')  (0.8ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-original.png' OR old_paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-original.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-original.png' OR old_paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-original.png' OR old_paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-original.png' OR old_paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-original.png')  (0.5ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-small.png' OR old_paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-small.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-small.png' OR old_paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-small.png' OR old_paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-small.png' OR old_paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-small.png')  (0.5ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-tiny.png' OR old_paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-tiny.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-tiny.png' OR old_paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-tiny.png' OR old_paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-tiny.png' OR old_paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-tiny.png')  (0.6ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/318a1106da1b4117b1a1ad7e0c886584-large.png' OR old_paths.value = 'second/318a1106da1b4117b1a1ad7e0c886584-large.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/318a1106da1b4117b1a1ad7e0c886584-large.png' OR old_paths.value = 'second/318a1106da1b4117b1a1ad7e0c886584-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/318a1106da1b4117b1a1ad7e0c886584-large.png' OR old_paths.value = 'second/318a1106da1b4117b1a1ad7e0c886584-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/318a1106da1b4117b1a1ad7e0c886584-large.png' OR old_paths.value = 'second/318a1106da1b4117b1a1ad7e0c886584-large.png') Deleting second/318a1106da1b4117b1a1ad7e0c886584-large.png Deleting: second/318a1106da1b4117b1a1ad7e0c886584-large.png  (0.9ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/318a1106da1b4117b1a1ad7e0c886584-medium.png' OR old_paths.value = 'second/318a1106da1b4117b1a1ad7e0c886584-medium.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/318a1106da1b4117b1a1ad7e0c886584-medium.png' OR old_paths.value = 'second/318a1106da1b4117b1a1ad7e0c886584-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/318a1106da1b4117b1a1ad7e0c886584-medium.png' OR old_paths.value = 'second/318a1106da1b4117b1a1ad7e0c886584-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/318a1106da1b4117b1a1ad7e0c886584-medium.png' OR old_paths.value = 'second/318a1106da1b4117b1a1ad7e0c886584-medium.png') Deleting second/318a1106da1b4117b1a1ad7e0c886584-medium.png Deleting: second/318a1106da1b4117b1a1ad7e0c886584-medium.png  (0.8ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/318a1106da1b4117b1a1ad7e0c886584-original.png' OR old_paths.value = 'second/318a1106da1b4117b1a1ad7e0c886584-original.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/318a1106da1b4117b1a1ad7e0c886584-original.png' OR old_paths.value = 'second/318a1106da1b4117b1a1ad7e0c886584-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/318a1106da1b4117b1a1ad7e0c886584-original.png' OR old_paths.value = 'second/318a1106da1b4117b1a1ad7e0c886584-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/318a1106da1b4117b1a1ad7e0c886584-original.png' OR old_paths.value = 'second/318a1106da1b4117b1a1ad7e0c886584-original.png') Deleting second/318a1106da1b4117b1a1ad7e0c886584-original.png Deleting: second/318a1106da1b4117b1a1ad7e0c886584-original.png  (0.7ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/318a1106da1b4117b1a1ad7e0c886584-small.png' OR old_paths.value = 'second/318a1106da1b4117b1a1ad7e0c886584-small.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/318a1106da1b4117b1a1ad7e0c886584-small.png' OR old_paths.value = 'second/318a1106da1b4117b1a1ad7e0c886584-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/318a1106da1b4117b1a1ad7e0c886584-small.png' OR old_paths.value = 'second/318a1106da1b4117b1a1ad7e0c886584-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/318a1106da1b4117b1a1ad7e0c886584-small.png' OR old_paths.value = 'second/318a1106da1b4117b1a1ad7e0c886584-small.png') Deleting second/318a1106da1b4117b1a1ad7e0c886584-small.png Deleting: second/318a1106da1b4117b1a1ad7e0c886584-small.png  (0.8ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/318a1106da1b4117b1a1ad7e0c886584-tiny.png' OR old_paths.value = 'second/318a1106da1b4117b1a1ad7e0c886584-tiny.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/318a1106da1b4117b1a1ad7e0c886584-tiny.png' OR old_paths.value = 'second/318a1106da1b4117b1a1ad7e0c886584-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/318a1106da1b4117b1a1ad7e0c886584-tiny.png' OR old_paths.value = 'second/318a1106da1b4117b1a1ad7e0c886584-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/318a1106da1b4117b1a1ad7e0c886584-tiny.png' OR old_paths.value = 'second/318a1106da1b4117b1a1ad7e0c886584-tiny.png') Deleting second/318a1106da1b4117b1a1ad7e0c886584-tiny.png Deleting: second/318a1106da1b4117b1a1ad7e0c886584-tiny.png  (0.6ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-large.png' OR old_paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-large.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-large.png' OR old_paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-large.png' OR old_paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-large.png' OR old_paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-large.png')  (0.5ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-medium.png' OR old_paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-medium.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-medium.png' OR old_paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-medium.png' OR old_paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-medium.png' OR old_paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-medium.png')  (0.5ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-original.png' OR old_paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-original.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-original.png' OR old_paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-original.png' OR old_paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-original.png' OR old_paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-original.png')  (0.5ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-small.png' OR old_paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-small.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-small.png' OR old_paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-small.png' OR old_paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-small.png' OR old_paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-small.png')  (0.5ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-tiny.png' OR old_paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-tiny.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-tiny.png' OR old_paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-tiny.png' OR old_paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-tiny.png' OR old_paths.value = 'f0de43da7cbe4c50bbfb0817e0bd0c4f-tiny.png') [ActiveJob] [Attachs::Jobs::DeleteJob] [b4b0b2b6-f74b-4a2a-933a-8e634053b732] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["f0de43da7cbe4c50bbfb0817e0bd0c4f-original.png", "f0de43da7cbe4c50bbfb0817e0bd0c4f-tiny.png", "f0de43da7cbe4c50bbfb0817e0bd0c4f-small.png", "f0de43da7cbe4c50bbfb0817e0bd0c4f-medium.png", "f0de43da7cbe4c50bbfb0817e0bd0c4f-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [b4b0b2b6-f74b-4a2a-933a-8e634053b732] Deleting: f0de43da7cbe4c50bbfb0817e0bd0c4f-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [b4b0b2b6-f74b-4a2a-933a-8e634053b732] Deleting: f0de43da7cbe4c50bbfb0817e0bd0c4f-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [b4b0b2b6-f74b-4a2a-933a-8e634053b732] Deleting: f0de43da7cbe4c50bbfb0817e0bd0c4f-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [b4b0b2b6-f74b-4a2a-933a-8e634053b732] Deleting: f0de43da7cbe4c50bbfb0817e0bd0c4f-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [b4b0b2b6-f74b-4a2a-933a-8e634053b732] Deleting: f0de43da7cbe4c50bbfb0817e0bd0c4f-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [b4b0b2b6-f74b-4a2a-933a-8e634053b732] Performed Attachs::Jobs::DeleteJob from Inline(default) in 4298.5ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: b4b0b2b6-f74b-4a2a-933a-8e634053b732) to Inline(default) with arguments: ["f0de43da7cbe4c50bbfb0817e0bd0c4f-original.png", "f0de43da7cbe4c50bbfb0817e0bd0c4f-tiny.png", "f0de43da7cbe4c50bbfb0817e0bd0c4f-small.png", "f0de43da7cbe4c50bbfb0817e0bd0c4f-medium.png", "f0de43da7cbe4c50bbfb0817e0bd0c4f-large.png"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- TasksTest: test_fix_missings ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-cimmdm.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"3af3fb771bab4411a85e5ff0f3a5b04d\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T15:10:32.840-03:00\",\"paths\":{\"original\":\"3af3fb771bab4411a85e5ff0f3a5b04d-original.png\",\"tiny\":\"3af3fb771bab4411a85e5ff0f3a5b04d-tiny.png\",\"small\":\"3af3fb771bab4411a85e5ff0f3a5b04d-small.png\",\"medium\":\"3af3fb771bab4411a85e5ff0f3a5b04d-medium.png\",\"large\":\"3af3fb771bab4411a85e5ff0f3a5b04d-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-11-20 18:10:32.842246"], ["updated_at", "2016-11-20 18:10:32.842246"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-cimmdm.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-7nwmd9.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-7nwmd9.png => 3af3fb771bab4411a85e5ff0f3a5b04d-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-cimmdm.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-ic4krt.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-ic4krt.png => 3af3fb771bab4411a85e5ff0f3a5b04d-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-cimmdm.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-xw3bap.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-xw3bap.png => 3af3fb771bab4411a85e5ff0f3a5b04d-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-cimmdm.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-h76f3q.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-h76f3q.png => 3af3fb771bab4411a85e5ff0f3a5b04d-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-cimmdm.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-1j2717g.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-1j2717g.png => 3af3fb771bab4411a85e5ff0f3a5b04d-large.png Deleting: 3af3fb771bab4411a85e5ff0f3a5b04d-tiny.png Deleting: 3af3fb771bab4411a85e5ff0f3a5b04d-small.png Upload Load (0.4ms) SELECT "uploads".* FROM "uploads" ORDER BY "uploads"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Fix missings of Shop #21 => logo Generating: tiny => 3af3fb771bab4411a85e5ff0f3a5b04d-tiny.png Generating: small => 3af3fb771bab4411a85e5ff0f3a5b04d-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-186f7i2.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-1ycsvyz.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-1ycsvyz.png => 3af3fb771bab4411a85e5ff0f3a5b04d-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-186f7i2.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-maz68v.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-maz68v.png => 3af3fb771bab4411a85e5ff0f3a5b04d-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-186f7i2.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-itx705.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-itx705.png => 3af3fb771bab4411a85e5ff0f3a5b04d-small.png ConcernTest::Subclass Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Upload Load (0.2ms) SELECT "uploads".* FROM "uploads" ORDER BY "uploads"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Fix missings of Shop #21 => logo ConcernTest::Subclass Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Upload Load (0.2ms) SELECT "uploads".* FROM "uploads" ORDER BY "uploads"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Fix missings of Shop #21 => logo ConcernTest::Subclass Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 [ActiveJob] [Attachs::Jobs::DeleteJob] [7b9bbb75-d29f-41ad-b8d2-c4b83ff5493e] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["3af3fb771bab4411a85e5ff0f3a5b04d-original.png", "3af3fb771bab4411a85e5ff0f3a5b04d-tiny.png", "3af3fb771bab4411a85e5ff0f3a5b04d-small.png", "3af3fb771bab4411a85e5ff0f3a5b04d-medium.png", "3af3fb771bab4411a85e5ff0f3a5b04d-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [7b9bbb75-d29f-41ad-b8d2-c4b83ff5493e] Deleting: 3af3fb771bab4411a85e5ff0f3a5b04d-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [7b9bbb75-d29f-41ad-b8d2-c4b83ff5493e] Deleting: 3af3fb771bab4411a85e5ff0f3a5b04d-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [7b9bbb75-d29f-41ad-b8d2-c4b83ff5493e] Deleting: 3af3fb771bab4411a85e5ff0f3a5b04d-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [7b9bbb75-d29f-41ad-b8d2-c4b83ff5493e] Deleting: 3af3fb771bab4411a85e5ff0f3a5b04d-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [7b9bbb75-d29f-41ad-b8d2-c4b83ff5493e] Deleting: 3af3fb771bab4411a85e5ff0f3a5b04d-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [7b9bbb75-d29f-41ad-b8d2-c4b83ff5493e] Performed Attachs::Jobs::DeleteJob from Inline(default) in 3172.18ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 7b9bbb75-d29f-41ad-b8d2-c4b83ff5493e) to Inline(default) with arguments: ["3af3fb771bab4411a85e5ff0f3a5b04d-original.png", "3af3fb771bab4411a85e5ff0f3a5b04d-tiny.png", "3af3fb771bab4411a85e5ff0f3a5b04d-small.png", "3af3fb771bab4411a85e5ff0f3a5b04d-medium.png", "3af3fb771bab4411a85e5ff0f3a5b04d-large.png"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------- QueryTest: test_exist --------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-1goosdx.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("name", "logo", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "first"], ["logo", "{\"id\":\"3471be0fbd634c11a61e44bd9bf4322e\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T15:11:00.175-03:00\",\"paths\":{\"original\":\"first/3471be0fbd634c11a61e44bd9bf4322e-original.png\",\"tiny\":\"first/3471be0fbd634c11a61e44bd9bf4322e-tiny.png\",\"small\":\"first/3471be0fbd634c11a61e44bd9bf4322e-small.png\",\"medium\":\"first/3471be0fbd634c11a61e44bd9bf4322e-medium.png\",\"large\":\"first/3471be0fbd634c11a61e44bd9bf4322e-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-11-20 18:11:00.176183"], ["updated_at", "2016-11-20 18:11:00.176183"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-1goosdx.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-14hrmqw.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-14hrmqw.png => first/3471be0fbd634c11a61e44bd9bf4322e-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-1goosdx.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-1qp9xwa.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-1qp9xwa.png => first/3471be0fbd634c11a61e44bd9bf4322e-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-1goosdx.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-1m7zun2.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-1m7zun2.png => first/3471be0fbd634c11a61e44bd9bf4322e-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-1goosdx.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-frnx88.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-frnx88.png => first/3471be0fbd634c11a61e44bd9bf4322e-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-1goosdx.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-189rlym.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-189rlym.png => first/3471be0fbd634c11a61e44bd9bf4322e-large.png  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "shops" SET "name" = $1, "updated_at" = $2 WHERE "shops"."id" = $3 [["name", "second"], ["updated_at", "2016-11-20 18:11:04.671018"], ["id", 22]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 22]] [ActiveJob] [Attachs::Jobs::UpdateJob] [41cd280f-1f0e-4d8a-b98a-244122968feb] Performing Attachs::Jobs::UpdateJob from Inline(default) with arguments: gid://dummy/Shop/22, "logo" [ActiveJob] [Attachs::Jobs::UpdateJob] [41cd280f-1f0e-4d8a-b98a-244122968feb] Copying: first/3471be0fbd634c11a61e44bd9bf4322e-original.png => second/3471be0fbd634c11a61e44bd9bf4322e-original.png [ActiveJob] [Attachs::Jobs::UpdateJob] [41cd280f-1f0e-4d8a-b98a-244122968feb] Copying: first/3471be0fbd634c11a61e44bd9bf4322e-tiny.png => second/3471be0fbd634c11a61e44bd9bf4322e-tiny.png [ActiveJob] [Attachs::Jobs::UpdateJob] [41cd280f-1f0e-4d8a-b98a-244122968feb] Copying: first/3471be0fbd634c11a61e44bd9bf4322e-small.png => second/3471be0fbd634c11a61e44bd9bf4322e-small.png [ActiveJob] [Attachs::Jobs::UpdateJob] [41cd280f-1f0e-4d8a-b98a-244122968feb] Copying: first/3471be0fbd634c11a61e44bd9bf4322e-medium.png => second/3471be0fbd634c11a61e44bd9bf4322e-medium.png [ActiveJob] [Attachs::Jobs::UpdateJob] [41cd280f-1f0e-4d8a-b98a-244122968feb] Copying: first/3471be0fbd634c11a61e44bd9bf4322e-large.png => second/3471be0fbd634c11a61e44bd9bf4322e-large.png [ActiveJob] [Attachs::Jobs::UpdateJob] [41cd280f-1f0e-4d8a-b98a-244122968feb] SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"tiny":"second/3471be0fbd634c11a61e44bd9bf4322e-tiny.png","large":"second/3471be0fbd634c11a61e44bd9bf4322e-large.png","small":"second/3471be0fbd634c11a61e44bd9bf4322e-small.png","medium":"second/3471be0fbd634c11a61e44bd9bf4322e-medium.png","original":"second/3471be0fbd634c11a61e44bd9bf4322e-original.png"},"old_paths":["first/3471be0fbd634c11a61e44bd9bf4322e-original.png","first/3471be0fbd634c11a61e44bd9bf4322e-tiny.png","first/3471be0fbd634c11a61e44bd9bf4322e-small.png","first/3471be0fbd634c11a61e44bd9bf4322e-medium.png","first/3471be0fbd634c11a61e44bd9bf4322e-large.png"],"id":"3471be0fbd634c11a61e44bd9bf4322e","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-11-20T15:11:00.175-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 22]] [ActiveJob] [Attachs::Jobs::UpdateJob] [41cd280f-1f0e-4d8a-b98a-244122968feb] Performed Attachs::Jobs::UpdateJob from Inline(default) in 3271.81ms [ActiveJob] Enqueued Attachs::Jobs::UpdateJob (Job ID: 41cd280f-1f0e-4d8a-b98a-244122968feb) to Inline(default) with arguments: gid://dummy/Shop/22, "logo" Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-cu9a63.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-1r5imhf.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"6fda5f0328ad400d91e4872b19aebf61\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T15:11:07.967-03:00\",\"paths\":{\"original\":\"6fda5f0328ad400d91e4872b19aebf61-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725},{\"id\":\"81d8be2eacc34eb6a14e6e96b8c30aac\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T15:11:07.968-03:00\",\"paths\":{\"original\":\"81d8be2eacc34eb6a14e6e96b8c30aac-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-11-20 18:11:07.969794"], ["updated_at", "2016-11-20 18:11:07.969794"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-cu9a63.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-1q6inp2.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-1q6inp2.jpg => 6fda5f0328ad400d91e4872b19aebf61-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-1r5imhf.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-1bli2m6.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-1bli2m6.jpg => 81d8be2eacc34eb6a14e6e96b8c30aac-original.jpg  (0.7ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/3471be0fbd634c11a61e44bd9bf4322e-original.png' OR old_paths.value = 'first/3471be0fbd634c11a61e44bd9bf4322e-original.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/3471be0fbd634c11a61e44bd9bf4322e-original.png' OR old_paths.value = 'first/3471be0fbd634c11a61e44bd9bf4322e-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/3471be0fbd634c11a61e44bd9bf4322e-original.png' OR old_paths.value = 'first/3471be0fbd634c11a61e44bd9bf4322e-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/3471be0fbd634c11a61e44bd9bf4322e-original.png' OR old_paths.value = 'first/3471be0fbd634c11a61e44bd9bf4322e-original.png')  (0.5ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/3471be0fbd634c11a61e44bd9bf4322e-original.png' OR old_paths.value = 'first/3471be0fbd634c11a61e44bd9bf4322e-original.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/3471be0fbd634c11a61e44bd9bf4322e-original.png' OR old_paths.value = 'first/3471be0fbd634c11a61e44bd9bf4322e-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/3471be0fbd634c11a61e44bd9bf4322e-original.png' OR old_paths.value = 'first/3471be0fbd634c11a61e44bd9bf4322e-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/3471be0fbd634c11a61e44bd9bf4322e-original.png' OR old_paths.value = 'first/3471be0fbd634c11a61e44bd9bf4322e-original.png')  (0.5ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = '6fda5f0328ad400d91e4872b19aebf61-original.jpg' OR old_paths.value = '6fda5f0328ad400d91e4872b19aebf61-original.jpg') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '6fda5f0328ad400d91e4872b19aebf61-original.jpg' OR old_paths.value = '6fda5f0328ad400d91e4872b19aebf61-original.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '6fda5f0328ad400d91e4872b19aebf61-original.jpg' OR old_paths.value = '6fda5f0328ad400d91e4872b19aebf61-original.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '6fda5f0328ad400d91e4872b19aebf61-original.jpg' OR old_paths.value = '6fda5f0328ad400d91e4872b19aebf61-original.jpg') [ActiveJob] [Attachs::Jobs::DeleteJob] [12e8bc4c-d567-42bb-a5b4-043c9d3ea3d1] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["first/3471be0fbd634c11a61e44bd9bf4322e-original.png", "first/3471be0fbd634c11a61e44bd9bf4322e-tiny.png", "first/3471be0fbd634c11a61e44bd9bf4322e-small.png", "first/3471be0fbd634c11a61e44bd9bf4322e-medium.png", "first/3471be0fbd634c11a61e44bd9bf4322e-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [12e8bc4c-d567-42bb-a5b4-043c9d3ea3d1] Deleting: first/3471be0fbd634c11a61e44bd9bf4322e-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [12e8bc4c-d567-42bb-a5b4-043c9d3ea3d1] Deleting: first/3471be0fbd634c11a61e44bd9bf4322e-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [12e8bc4c-d567-42bb-a5b4-043c9d3ea3d1] Deleting: first/3471be0fbd634c11a61e44bd9bf4322e-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [12e8bc4c-d567-42bb-a5b4-043c9d3ea3d1] Deleting: first/3471be0fbd634c11a61e44bd9bf4322e-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [12e8bc4c-d567-42bb-a5b4-043c9d3ea3d1] Deleting: first/3471be0fbd634c11a61e44bd9bf4322e-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [12e8bc4c-d567-42bb-a5b4-043c9d3ea3d1] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2026.37ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 12e8bc4c-d567-42bb-a5b4-043c9d3ea3d1) to Inline(default) with arguments: ["first/3471be0fbd634c11a61e44bd9bf4322e-original.png", "first/3471be0fbd634c11a61e44bd9bf4322e-tiny.png", "first/3471be0fbd634c11a61e44bd9bf4322e-small.png", "first/3471be0fbd634c11a61e44bd9bf4322e-medium.png", "first/3471be0fbd634c11a61e44bd9bf4322e-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [a3d96a51-6316-43ef-9b33-3af5333177d9] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["6fda5f0328ad400d91e4872b19aebf61-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [a3d96a51-6316-43ef-9b33-3af5333177d9] Deleting: 6fda5f0328ad400d91e4872b19aebf61-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [a3d96a51-6316-43ef-9b33-3af5333177d9] Performed Attachs::Jobs::DeleteJob from Inline(default) in 611.1ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: a3d96a51-6316-43ef-9b33-3af5333177d9) to Inline(default) with arguments: ["6fda5f0328ad400d91e4872b19aebf61-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [afc455e9-703d-4067-b34c-8dd801fd1067] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["81d8be2eacc34eb6a14e6e96b8c30aac-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [afc455e9-703d-4067-b34c-8dd801fd1067] Deleting: 81d8be2eacc34eb6a14e6e96b8c30aac-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [afc455e9-703d-4067-b34c-8dd801fd1067] Performed Attachs::Jobs::DeleteJob from Inline(default) in 618.21ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: afc455e9-703d-4067-b34c-8dd801fd1067) to Inline(default) with arguments: ["81d8be2eacc34eb6a14e6e96b8c30aac-original.jpg"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- CollectionTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-a6hkbq.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-rmkyi3.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"9c3cc8f8deca4860b5f5d17a75a554eb\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T15:11:12.375-03:00\",\"paths\":{\"original\":\"9c3cc8f8deca4860b5f5d17a75a554eb-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725},{\"id\":\"44421067fd0a4cf4a6d0eab407789612\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T15:11:12.376-03:00\",\"paths\":{\"original\":\"44421067fd0a4cf4a6d0eab407789612-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-11-20 18:11:12.377778"], ["updated_at", "2016-11-20 18:11:12.377778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-a6hkbq.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-9dt7pb.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-9dt7pb.jpg => 9c3cc8f8deca4860b5f5d17a75a554eb-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-rmkyi3.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-1ueyd00.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-1ueyd00.jpg => 44421067fd0a4cf4a6d0eab407789612-original.jpg Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 15]] [ActiveJob] [Attachs::Jobs::DeleteJob] [6680b46e-7f7f-4342-ada8-f6820a1e7345] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["9c3cc8f8deca4860b5f5d17a75a554eb-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [6680b46e-7f7f-4342-ada8-f6820a1e7345] Deleting: 9c3cc8f8deca4860b5f5d17a75a554eb-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [6680b46e-7f7f-4342-ada8-f6820a1e7345] Performed Attachs::Jobs::DeleteJob from Inline(default) in 810.24ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 6680b46e-7f7f-4342-ada8-f6820a1e7345) to Inline(default) with arguments: ["9c3cc8f8deca4860b5f5d17a75a554eb-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [d46f7a87-869a-4c5b-a0b6-8a56939f981e] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["44421067fd0a4cf4a6d0eab407789612-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [d46f7a87-869a-4c5b-a0b6-8a56939f981e] Deleting: 44421067fd0a4cf4a6d0eab407789612-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [d46f7a87-869a-4c5b-a0b6-8a56939f981e] Performed Attachs::Jobs::DeleteJob from Inline(default) in 405.4ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: d46f7a87-869a-4c5b-a0b6-8a56939f981e) to Inline(default) with arguments: ["44421067fd0a4cf4a6d0eab407789612-original.jpg"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- CollectionTest: test_nested_attributes -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-10fvr4r.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-1ol0mi9.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------- CollectionTest: test_index -------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-1yyz6jq.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-1ixxveg.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"1da2b9eed25c40b1b642a60f94b75f9e\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T15:11:15.252-03:00\",\"paths\":{\"original\":\"1da2b9eed25c40b1b642a60f94b75f9e-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725,\"position\":0},{\"id\":\"a6e193fd73b34fafa7f57d374cb41b0c\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T15:11:15.253-03:00\",\"paths\":{\"original\":\"a6e193fd73b34fafa7f57d374cb41b0c-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-11-20 18:11:15.253926"], ["updated_at", "2016-11-20 18:11:15.253926"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 16]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- GeneratorsTest: test_install ----------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- GeneratorsTest: test_upload ---------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- HelperTest: test_fields_for --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-1ycw4.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"e622a799490b4590a2bacccf936551d5\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T15:11:15.281-03:00\",\"paths\":{\"original\":\"e622a799490b4590a2bacccf936551d5-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-11-20 18:11:15.281695"], ["updated_at", "2016-11-20 18:11:15.281695"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-1ycw4.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-q8khub.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-q8khub.jpg => e622a799490b4590a2bacccf936551d5-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [32240513-bb4c-4aac-970c-a8f8e49562f0] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["e622a799490b4590a2bacccf936551d5-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [32240513-bb4c-4aac-970c-a8f8e49562f0] Deleting: e622a799490b4590a2bacccf936551d5-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [32240513-bb4c-4aac-970c-a8f8e49562f0] Performed Attachs::Jobs::DeleteJob from Inline(default) in 480.11ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 32240513-bb4c-4aac-970c-a8f8e49562f0) to Inline(default) with arguments: ["e622a799490b4590a2bacccf936551d5-original.jpg"]  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- AttachmentTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-1p7353b.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"3bb2c7e815084d5ba912fac0c1097d10\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T15:11:16.252-03:00\",\"paths\":{\"original\":\"3bb2c7e815084d5ba912fac0c1097d10-original.png\",\"tiny\":\"3bb2c7e815084d5ba912fac0c1097d10-tiny.png\",\"small\":\"3bb2c7e815084d5ba912fac0c1097d10-small.png\",\"medium\":\"3bb2c7e815084d5ba912fac0c1097d10-medium.png\",\"large\":\"3bb2c7e815084d5ba912fac0c1097d10-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-11-20 18:11:16.252983"], ["updated_at", "2016-11-20 18:11:16.252983"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-1p7353b.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-1nj30ka.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-1nj30ka.png => 3bb2c7e815084d5ba912fac0c1097d10-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-1p7353b.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-1mp0i8v.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-1mp0i8v.png => 3bb2c7e815084d5ba912fac0c1097d10-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-1p7353b.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-z257ys.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-z257ys.png => 3bb2c7e815084d5ba912fac0c1097d10-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-1p7353b.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-cydxyh.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-cydxyh.png => 3bb2c7e815084d5ba912fac0c1097d10-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-1p7353b.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-13u1tw5.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-13u1tw5.png => 3bb2c7e815084d5ba912fac0c1097d10-large.png Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 23]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 23]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Attachs::Jobs::DeleteJob] [1f808554-6fd4-47f1-8ce8-a424f382019c] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["3bb2c7e815084d5ba912fac0c1097d10-tiny.png", "3bb2c7e815084d5ba912fac0c1097d10-large.png", "3bb2c7e815084d5ba912fac0c1097d10-small.png", "3bb2c7e815084d5ba912fac0c1097d10-medium.png", "3bb2c7e815084d5ba912fac0c1097d10-original.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [1f808554-6fd4-47f1-8ce8-a424f382019c] Deleting: 3bb2c7e815084d5ba912fac0c1097d10-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [1f808554-6fd4-47f1-8ce8-a424f382019c] Deleting: 3bb2c7e815084d5ba912fac0c1097d10-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [1f808554-6fd4-47f1-8ce8-a424f382019c] Deleting: 3bb2c7e815084d5ba912fac0c1097d10-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [1f808554-6fd4-47f1-8ce8-a424f382019c] Deleting: 3bb2c7e815084d5ba912fac0c1097d10-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [1f808554-6fd4-47f1-8ce8-a424f382019c] Deleting: 3bb2c7e815084d5ba912fac0c1097d10-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [1f808554-6fd4-47f1-8ce8-a424f382019c] Performed Attachs::Jobs::DeleteJob from Inline(default) in 3676.01ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 1f808554-6fd4-47f1-8ce8-a424f382019c) to Inline(default) with arguments: ["3bb2c7e815084d5ba912fac0c1097d10-tiny.png", "3bb2c7e815084d5ba912fac0c1097d10-large.png", "3bb2c7e815084d5ba912fac0c1097d10-small.png", "3bb2c7e815084d5ba912fac0c1097d10-medium.png", "3bb2c7e815084d5ba912fac0c1097d10-original.png"]  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- AttachmentTest: test_nested_attributes --------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_renames ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-12tw40c.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["logo", "{\"id\":\"243ded8950444e0e9dde0489904330ac\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T15:11:57.421-03:00\",\"paths\":{\"original\":\"anderstons/243ded8950444e0e9dde0489904330ac-original.png\",\"tiny\":\"anderstons/243ded8950444e0e9dde0489904330ac-tiny.png\",\"small\":\"anderstons/243ded8950444e0e9dde0489904330ac-small.png\",\"medium\":\"anderstons/243ded8950444e0e9dde0489904330ac-medium.png\",\"large\":\"anderstons/243ded8950444e0e9dde0489904330ac-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["name", "Anderstons"], ["created_at", "2016-11-20 18:11:57.422323"], ["updated_at", "2016-11-20 18:11:57.422323"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-12tw40c.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-h78l4z.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-h78l4z.png => anderstons/243ded8950444e0e9dde0489904330ac-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-12tw40c.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-1ltusl4.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-1ltusl4.png => anderstons/243ded8950444e0e9dde0489904330ac-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-12tw40c.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-15hbwp3.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-15hbwp3.png => anderstons/243ded8950444e0e9dde0489904330ac-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-12tw40c.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-1ix7w4.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-1ix7w4.png => anderstons/243ded8950444e0e9dde0489904330ac-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-15985-12tw40c.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-19pc2sh.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-15985-19pc2sh.png => anderstons/243ded8950444e0e9dde0489904330ac-large.png  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "shops" SET "name" = $1, "updated_at" = $2 WHERE "shops"."id" = $3 [["name", "Musicians Friend"], ["updated_at", "2016-11-20 18:12:15.329600"], ["id", 24]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 24]] [ActiveJob] [Attachs::Jobs::UpdateJob] [8d65c7ab-3f72-46b7-a98f-68a2acfd1eed] Performing Attachs::Jobs::UpdateJob from Inline(default) with arguments: gid://dummy/Shop/24, "logo" [ActiveJob] [Attachs::Jobs::UpdateJob] [8d65c7ab-3f72-46b7-a98f-68a2acfd1eed] Copying: anderstons/243ded8950444e0e9dde0489904330ac-original.png => musicians-friend/243ded8950444e0e9dde0489904330ac-original.png [ActiveJob] [Attachs::Jobs::UpdateJob] [8d65c7ab-3f72-46b7-a98f-68a2acfd1eed] Copying: anderstons/243ded8950444e0e9dde0489904330ac-tiny.png => musicians-friend/243ded8950444e0e9dde0489904330ac-tiny.png [ActiveJob] [Attachs::Jobs::UpdateJob] [8d65c7ab-3f72-46b7-a98f-68a2acfd1eed] Copying: anderstons/243ded8950444e0e9dde0489904330ac-small.png => musicians-friend/243ded8950444e0e9dde0489904330ac-small.png [ActiveJob] [Attachs::Jobs::UpdateJob] [8d65c7ab-3f72-46b7-a98f-68a2acfd1eed] Copying: anderstons/243ded8950444e0e9dde0489904330ac-medium.png => musicians-friend/243ded8950444e0e9dde0489904330ac-medium.png [ActiveJob] [Attachs::Jobs::UpdateJob] [8d65c7ab-3f72-46b7-a98f-68a2acfd1eed] Copying: anderstons/243ded8950444e0e9dde0489904330ac-large.png => musicians-friend/243ded8950444e0e9dde0489904330ac-large.png [ActiveJob] [Attachs::Jobs::UpdateJob] [8d65c7ab-3f72-46b7-a98f-68a2acfd1eed] SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"tiny":"musicians-friend/243ded8950444e0e9dde0489904330ac-tiny.png","large":"musicians-friend/243ded8950444e0e9dde0489904330ac-large.png","small":"musicians-friend/243ded8950444e0e9dde0489904330ac-small.png","medium":"musicians-friend/243ded8950444e0e9dde0489904330ac-medium.png","original":"musicians-friend/243ded8950444e0e9dde0489904330ac-original.png"},"old_paths":["anderstons/243ded8950444e0e9dde0489904330ac-original.png","anderstons/243ded8950444e0e9dde0489904330ac-tiny.png","anderstons/243ded8950444e0e9dde0489904330ac-small.png","anderstons/243ded8950444e0e9dde0489904330ac-medium.png","anderstons/243ded8950444e0e9dde0489904330ac-large.png"],"id":"243ded8950444e0e9dde0489904330ac","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-11-20T15:11:57.421-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 24]] [ActiveJob] [Attachs::Jobs::UpdateJob] [8d65c7ab-3f72-46b7-a98f-68a2acfd1eed] Performed Attachs::Jobs::UpdateJob from Inline(default) in 4396.98ms [ActiveJob] Enqueued Attachs::Jobs::UpdateJob (Job ID: 8d65c7ab-3f72-46b7-a98f-68a2acfd1eed) to Inline(default) with arguments: gid://dummy/Shop/24, "logo" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 24]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 24]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Attachs::Jobs::DeleteJob] [fdd91b00-11fd-4df6-99e5-9579ba4c5487] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["musicians-friend/243ded8950444e0e9dde0489904330ac-tiny.png", "musicians-friend/243ded8950444e0e9dde0489904330ac-large.png", "musicians-friend/243ded8950444e0e9dde0489904330ac-small.png", "musicians-friend/243ded8950444e0e9dde0489904330ac-medium.png", "musicians-friend/243ded8950444e0e9dde0489904330ac-original.png", "anderstons/243ded8950444e0e9dde0489904330ac-original.png", "anderstons/243ded8950444e0e9dde0489904330ac-tiny.png", "anderstons/243ded8950444e0e9dde0489904330ac-small.png", "anderstons/243ded8950444e0e9dde0489904330ac-medium.png", "anderstons/243ded8950444e0e9dde0489904330ac-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [fdd91b00-11fd-4df6-99e5-9579ba4c5487] Deleting: musicians-friend/243ded8950444e0e9dde0489904330ac-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [fdd91b00-11fd-4df6-99e5-9579ba4c5487] Deleting: musicians-friend/243ded8950444e0e9dde0489904330ac-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [fdd91b00-11fd-4df6-99e5-9579ba4c5487] Deleting: musicians-friend/243ded8950444e0e9dde0489904330ac-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [fdd91b00-11fd-4df6-99e5-9579ba4c5487] Deleting: musicians-friend/243ded8950444e0e9dde0489904330ac-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [fdd91b00-11fd-4df6-99e5-9579ba4c5487] Deleting: musicians-friend/243ded8950444e0e9dde0489904330ac-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [fdd91b00-11fd-4df6-99e5-9579ba4c5487] Deleting: anderstons/243ded8950444e0e9dde0489904330ac-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [fdd91b00-11fd-4df6-99e5-9579ba4c5487] Deleting: anderstons/243ded8950444e0e9dde0489904330ac-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [fdd91b00-11fd-4df6-99e5-9579ba4c5487] Deleting: anderstons/243ded8950444e0e9dde0489904330ac-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [fdd91b00-11fd-4df6-99e5-9579ba4c5487] Deleting: anderstons/243ded8950444e0e9dde0489904330ac-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [fdd91b00-11fd-4df6-99e5-9579ba4c5487] Deleting: anderstons/243ded8950444e0e9dde0489904330ac-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [fdd91b00-11fd-4df6-99e5-9579ba4c5487] Performed Attachs::Jobs::DeleteJob from Inline(default) in 5219.17ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: fdd91b00-11fd-4df6-99e5-9579ba4c5487) to Inline(default) with arguments: ["musicians-friend/243ded8950444e0e9dde0489904330ac-tiny.png", "musicians-friend/243ded8950444e0e9dde0489904330ac-large.png", "musicians-friend/243ded8950444e0e9dde0489904330ac-small.png", "musicians-friend/243ded8950444e0e9dde0489904330ac-medium.png", "musicians-friend/243ded8950444e0e9dde0489904330ac-original.png", "anderstons/243ded8950444e0e9dde0489904330ac-original.png", "anderstons/243ded8950444e0e9dde0489904330ac-tiny.png", "anderstons/243ded8950444e0e9dde0489904330ac-small.png", "anderstons/243ded8950444e0e9dde0489904330ac-medium.png", "anderstons/243ded8950444e0e9dde0489904330ac-large.png"]  (0.4ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_default ----------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN ---------------------------- ValidatorsTest: test_size_in ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161120-16172-1myr10y.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-1oniyce.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161120-16172-1dpu3l9.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-f3llzu.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-4ztuk4.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidatorsTest: test_size_greater_than -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161120-16172-1vn3sx9.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-u1b3c7.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-th4e1l.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- ValidatorsTest: test_size_within -------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161120-16172-15nk983.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-11i9971.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161120-16172-u27nmr.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-15jwq80.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-ab8nrf.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidatorsTest: test_content_type_with -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-buewxl.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-11mm32w.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-xgxaff.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidatorsTest: test_methods ----------------------------  (0.1ms) ROLLBACK  (0.2ms) BEGIN ---------------------------------------- ValidatorsTest: test_content_type_within ---------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-16rjqn6.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-10pvhev.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-1imbdbr.jpg'  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------- ValidatorsTest: test_size_less_than ----------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161120-16172-govg1k.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-pt40wy.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-fspnip.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ ValidatorsTest: test_content_type_in ------------------------------------ Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-j84tpd.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-1hjeypt.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-17cl6l3.jpg'  (0.3ms) ROLLBACK  (0.2ms) BEGIN ---------------------------- GeneratorsTest: test_install ----------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- GeneratorsTest: test_upload ---------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_default ----------------------------  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- AttachmentTest: test_nested_attributes --------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_renames ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-ty6fct.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("logo", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["logo", "{\"id\":\"dda23ebced224863acbff51f4eefe028\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T15:13:10.241-03:00\",\"paths\":{\"original\":\"anderstons/dda23ebced224863acbff51f4eefe028-original.png\",\"tiny\":\"anderstons/dda23ebced224863acbff51f4eefe028-tiny.png\",\"small\":\"anderstons/dda23ebced224863acbff51f4eefe028-small.png\",\"medium\":\"anderstons/dda23ebced224863acbff51f4eefe028-medium.png\",\"large\":\"anderstons/dda23ebced224863acbff51f4eefe028-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["name", "Anderstons"], ["created_at", "2016-11-20 18:13:10.242791"], ["updated_at", "2016-11-20 18:13:10.242791"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-ty6fct.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-zztu3x.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-zztu3x.png => anderstons/dda23ebced224863acbff51f4eefe028-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-ty6fct.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-15fnsbq.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-15fnsbq.png => anderstons/dda23ebced224863acbff51f4eefe028-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-ty6fct.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-m5nw33.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-m5nw33.png => anderstons/dda23ebced224863acbff51f4eefe028-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-ty6fct.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-m81wey.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-m81wey.png => anderstons/dda23ebced224863acbff51f4eefe028-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-ty6fct.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-1ee6tpa.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-1ee6tpa.png => anderstons/dda23ebced224863acbff51f4eefe028-large.png  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "shops" SET "name" = $1, "updated_at" = $2 WHERE "shops"."id" = $3 [["name", "Musicians Friend"], ["updated_at", "2016-11-20 18:13:24.141225"], ["id", 25]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 25]] [ActiveJob] [Attachs::Jobs::UpdateJob] [00fa8f2b-183a-47d4-a759-0b1d5b0f00a9] Performing Attachs::Jobs::UpdateJob from Inline(default) with arguments: gid://dummy/Shop/25, "logo" [ActiveJob] [Attachs::Jobs::UpdateJob] [00fa8f2b-183a-47d4-a759-0b1d5b0f00a9] Copying: anderstons/dda23ebced224863acbff51f4eefe028-original.png => musicians-friend/dda23ebced224863acbff51f4eefe028-original.png [ActiveJob] [Attachs::Jobs::UpdateJob] [00fa8f2b-183a-47d4-a759-0b1d5b0f00a9] Copying: anderstons/dda23ebced224863acbff51f4eefe028-tiny.png => musicians-friend/dda23ebced224863acbff51f4eefe028-tiny.png [ActiveJob] [Attachs::Jobs::UpdateJob] [00fa8f2b-183a-47d4-a759-0b1d5b0f00a9] Copying: anderstons/dda23ebced224863acbff51f4eefe028-small.png => musicians-friend/dda23ebced224863acbff51f4eefe028-small.png [ActiveJob] [Attachs::Jobs::UpdateJob] [00fa8f2b-183a-47d4-a759-0b1d5b0f00a9] Copying: anderstons/dda23ebced224863acbff51f4eefe028-medium.png => musicians-friend/dda23ebced224863acbff51f4eefe028-medium.png [ActiveJob] [Attachs::Jobs::UpdateJob] [00fa8f2b-183a-47d4-a759-0b1d5b0f00a9] Copying: anderstons/dda23ebced224863acbff51f4eefe028-large.png => musicians-friend/dda23ebced224863acbff51f4eefe028-large.png [ActiveJob] [Attachs::Jobs::UpdateJob] [00fa8f2b-183a-47d4-a759-0b1d5b0f00a9] SQL (0.2ms) UPDATE "shops" SET "logo" = '{"paths":{"tiny":"musicians-friend/dda23ebced224863acbff51f4eefe028-tiny.png","large":"musicians-friend/dda23ebced224863acbff51f4eefe028-large.png","small":"musicians-friend/dda23ebced224863acbff51f4eefe028-small.png","medium":"musicians-friend/dda23ebced224863acbff51f4eefe028-medium.png","original":"musicians-friend/dda23ebced224863acbff51f4eefe028-original.png"},"old_paths":["anderstons/dda23ebced224863acbff51f4eefe028-original.png","anderstons/dda23ebced224863acbff51f4eefe028-tiny.png","anderstons/dda23ebced224863acbff51f4eefe028-small.png","anderstons/dda23ebced224863acbff51f4eefe028-medium.png","anderstons/dda23ebced224863acbff51f4eefe028-large.png"],"id":"dda23ebced224863acbff51f4eefe028","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-11-20T15:13:10.241-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 25]] [ActiveJob] [Attachs::Jobs::UpdateJob] [00fa8f2b-183a-47d4-a759-0b1d5b0f00a9] Performed Attachs::Jobs::UpdateJob from Inline(default) in 3684.85ms [ActiveJob] Enqueued Attachs::Jobs::UpdateJob (Job ID: 00fa8f2b-183a-47d4-a759-0b1d5b0f00a9) to Inline(default) with arguments: gid://dummy/Shop/25, "logo" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 25]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 25]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Attachs::Jobs::DeleteJob] [13a579ae-1cee-4ac2-b415-ac105aeb8e0c] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["musicians-friend/dda23ebced224863acbff51f4eefe028-tiny.png", "musicians-friend/dda23ebced224863acbff51f4eefe028-large.png", "musicians-friend/dda23ebced224863acbff51f4eefe028-small.png", "musicians-friend/dda23ebced224863acbff51f4eefe028-medium.png", "musicians-friend/dda23ebced224863acbff51f4eefe028-original.png", "anderstons/dda23ebced224863acbff51f4eefe028-original.png", "anderstons/dda23ebced224863acbff51f4eefe028-tiny.png", "anderstons/dda23ebced224863acbff51f4eefe028-small.png", "anderstons/dda23ebced224863acbff51f4eefe028-medium.png", "anderstons/dda23ebced224863acbff51f4eefe028-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [13a579ae-1cee-4ac2-b415-ac105aeb8e0c] Deleting: musicians-friend/dda23ebced224863acbff51f4eefe028-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [13a579ae-1cee-4ac2-b415-ac105aeb8e0c] Deleting: musicians-friend/dda23ebced224863acbff51f4eefe028-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [13a579ae-1cee-4ac2-b415-ac105aeb8e0c] Deleting: musicians-friend/dda23ebced224863acbff51f4eefe028-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [13a579ae-1cee-4ac2-b415-ac105aeb8e0c] Deleting: musicians-friend/dda23ebced224863acbff51f4eefe028-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [13a579ae-1cee-4ac2-b415-ac105aeb8e0c] Deleting: musicians-friend/dda23ebced224863acbff51f4eefe028-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [13a579ae-1cee-4ac2-b415-ac105aeb8e0c] Deleting: anderstons/dda23ebced224863acbff51f4eefe028-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [13a579ae-1cee-4ac2-b415-ac105aeb8e0c] Deleting: anderstons/dda23ebced224863acbff51f4eefe028-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [13a579ae-1cee-4ac2-b415-ac105aeb8e0c] Deleting: anderstons/dda23ebced224863acbff51f4eefe028-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [13a579ae-1cee-4ac2-b415-ac105aeb8e0c] Deleting: anderstons/dda23ebced224863acbff51f4eefe028-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [13a579ae-1cee-4ac2-b415-ac105aeb8e0c] Deleting: anderstons/dda23ebced224863acbff51f4eefe028-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [13a579ae-1cee-4ac2-b415-ac105aeb8e0c] Performed Attachs::Jobs::DeleteJob from Inline(default) in 6034.59ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 13a579ae-1cee-4ac2-b415-ac105aeb8e0c) to Inline(default) with arguments: ["musicians-friend/dda23ebced224863acbff51f4eefe028-tiny.png", "musicians-friend/dda23ebced224863acbff51f4eefe028-large.png", "musicians-friend/dda23ebced224863acbff51f4eefe028-small.png", "musicians-friend/dda23ebced224863acbff51f4eefe028-medium.png", "musicians-friend/dda23ebced224863acbff51f4eefe028-original.png", "anderstons/dda23ebced224863acbff51f4eefe028-original.png", "anderstons/dda23ebced224863acbff51f4eefe028-tiny.png", "anderstons/dda23ebced224863acbff51f4eefe028-small.png", "anderstons/dda23ebced224863acbff51f4eefe028-medium.png", "anderstons/dda23ebced224863acbff51f4eefe028-large.png"]  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- AttachmentTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-8wok83.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"fcfa5b3483d2416dbea6348f0fe91b82\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T15:14:15.965-03:00\",\"paths\":{\"original\":\"fcfa5b3483d2416dbea6348f0fe91b82-original.png\",\"tiny\":\"fcfa5b3483d2416dbea6348f0fe91b82-tiny.png\",\"small\":\"fcfa5b3483d2416dbea6348f0fe91b82-small.png\",\"medium\":\"fcfa5b3483d2416dbea6348f0fe91b82-medium.png\",\"large\":\"fcfa5b3483d2416dbea6348f0fe91b82-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-11-20 18:14:15.966373"], ["updated_at", "2016-11-20 18:14:15.966373"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-8wok83.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-244ex4.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-244ex4.png => fcfa5b3483d2416dbea6348f0fe91b82-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-8wok83.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-153sre6.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-153sre6.png => fcfa5b3483d2416dbea6348f0fe91b82-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-8wok83.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-16eeixg.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-16eeixg.png => fcfa5b3483d2416dbea6348f0fe91b82-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-8wok83.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-n9sapx.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-n9sapx.png => fcfa5b3483d2416dbea6348f0fe91b82-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-8wok83.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-1w978kg.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-1w978kg.png => fcfa5b3483d2416dbea6348f0fe91b82-large.png Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 26]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 26]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Attachs::Jobs::DeleteJob] [2a347bdb-aa9b-4d65-8765-4509f886d7d6] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["fcfa5b3483d2416dbea6348f0fe91b82-tiny.png", "fcfa5b3483d2416dbea6348f0fe91b82-large.png", "fcfa5b3483d2416dbea6348f0fe91b82-small.png", "fcfa5b3483d2416dbea6348f0fe91b82-medium.png", "fcfa5b3483d2416dbea6348f0fe91b82-original.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [2a347bdb-aa9b-4d65-8765-4509f886d7d6] Deleting: fcfa5b3483d2416dbea6348f0fe91b82-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [2a347bdb-aa9b-4d65-8765-4509f886d7d6] Deleting: fcfa5b3483d2416dbea6348f0fe91b82-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [2a347bdb-aa9b-4d65-8765-4509f886d7d6] Deleting: fcfa5b3483d2416dbea6348f0fe91b82-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [2a347bdb-aa9b-4d65-8765-4509f886d7d6] Deleting: fcfa5b3483d2416dbea6348f0fe91b82-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [2a347bdb-aa9b-4d65-8765-4509f886d7d6] Deleting: fcfa5b3483d2416dbea6348f0fe91b82-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [2a347bdb-aa9b-4d65-8765-4509f886d7d6] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2755.01ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 2a347bdb-aa9b-4d65-8765-4509f886d7d6) to Inline(default) with arguments: ["fcfa5b3483d2416dbea6348f0fe91b82-tiny.png", "fcfa5b3483d2416dbea6348f0fe91b82-large.png", "fcfa5b3483d2416dbea6348f0fe91b82-small.png", "fcfa5b3483d2416dbea6348f0fe91b82-medium.png", "fcfa5b3483d2416dbea6348f0fe91b82-original.png"]  (0.3ms) ROLLBACK  (0.1ms) BEGIN --------------------------- HelperTest: test_fields_for --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-i3llq0.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"f8b154baafa34a2a9300b9e6f8191807\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T15:14:51.398-03:00\",\"paths\":{\"original\":\"f8b154baafa34a2a9300b9e6f8191807-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-11-20 18:14:51.398659"], ["updated_at", "2016-11-20 18:14:51.398659"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-i3llq0.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-l1ozsm.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-l1ozsm.jpg => f8b154baafa34a2a9300b9e6f8191807-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [33bc395b-5eb6-40db-98c7-3ae8c0d9314c] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["f8b154baafa34a2a9300b9e6f8191807-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [33bc395b-5eb6-40db-98c7-3ae8c0d9314c] Deleting: f8b154baafa34a2a9300b9e6f8191807-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [33bc395b-5eb6-40db-98c7-3ae8c0d9314c] Performed Attachs::Jobs::DeleteJob from Inline(default) in 399.15ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 33bc395b-5eb6-40db-98c7-3ae8c0d9314c) to Inline(default) with arguments: ["f8b154baafa34a2a9300b9e6f8191807-original.jpg"]  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------- ConcernTest: test_inherit -------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------- MigrationTest: test_column -------------------------- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateUploads (20161031135453)  (0.1ms) SAVEPOINT active_record_1  (1.2ms) DROP TABLE "uploads" SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161031135453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to AddAttachments (20161030160506)  (0.1ms) SAVEPOINT active_record_1  (0.4ms) ALTER TABLE "shops" DROP "files"  (0.3ms) ALTER TABLE "products" DROP "brief" SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161030160506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to CreateProducts (20161024234029)  (0.1ms) SAVEPOINT active_record_1  (0.6ms) DROP TABLE "products" SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161024234029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to CreateShops (20161024234003)  (0.1ms) SAVEPOINT active_record_1  (0.6ms) DROP TABLE "shops" SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161024234003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateShops (20161024234003)  (0.1ms) SAVEPOINT active_record_1  (8.5ms) CREATE TABLE "shops" ("id" serial primary key, "name" character varying, "logo" jsonb DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161024234003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to CreateProducts (20161024234029)  (0.1ms) SAVEPOINT active_record_1  (3.1ms) CREATE TABLE "products" ("id" serial primary key, "shop_id" integer, "name" character varying, "pictures" jsonb DEFAULT '[]', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161024234029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Migrating to AddAttachments (20161030160506)  (0.1ms) SAVEPOINT active_record_1  (3.6ms) ALTER TABLE "products" ADD "brief" jsonb DEFAULT '{}'  (1.9ms) ALTER TABLE "shops" ADD "files" jsonb DEFAULT '[]' SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161030160506"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Migrating to CreateUploads (20161031135453)  (0.1ms) SAVEPOINT active_record_1  (2.4ms) CREATE TABLE "uploads" ("id" serial primary key, "file" jsonb DEFAULT '{}', "record_type" character varying, "record_attribute" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161031135453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.4ms) ROLLBACK  (0.1ms) BEGIN -------------------------- CollectionTest: test_index -------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-1g8qbrl.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-11m5e92.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"fbe2623bc9d64c8abac527f2fb674077\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T15:14:53.507-03:00\",\"paths\":{\"original\":\"fbe2623bc9d64c8abac527f2fb674077-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725,\"position\":0},{\"id\":\"8d6acecb202440dcaa4155af55c6ba63\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T15:14:53.508-03:00\",\"paths\":{\"original\":\"8d6acecb202440dcaa4155af55c6ba63-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-11-20 18:14:53.509465"], ["updated_at", "2016-11-20 18:14:53.509465"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 19]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- CollectionTest: test_nested_attributes -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-1x6c5r9.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-1msif17.jpg'  (0.3ms) ROLLBACK  (0.2ms) BEGIN ------------------------------- CollectionTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-1sraku5.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-2nc6rn.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"488d93d3667040189af85130fb1e729e\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T15:14:53.551-03:00\",\"paths\":{\"original\":\"488d93d3667040189af85130fb1e729e-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725},{\"id\":\"fbf1834e41fe42e4b198f495808b961d\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T15:14:53.552-03:00\",\"paths\":{\"original\":\"fbf1834e41fe42e4b198f495808b961d-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-11-20 18:14:53.553080"], ["updated_at", "2016-11-20 18:14:53.553080"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-1sraku5.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-seehx9.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-seehx9.jpg => 488d93d3667040189af85130fb1e729e-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-2nc6rn.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-1y5rrlf.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-1y5rrlf.jpg => fbf1834e41fe42e4b198f495808b961d-original.jpg Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 20]] [ActiveJob] [Attachs::Jobs::DeleteJob] [3f802e1f-5ca9-46ba-b21d-b2d7a07c00d2] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["488d93d3667040189af85130fb1e729e-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [3f802e1f-5ca9-46ba-b21d-b2d7a07c00d2] Deleting: 488d93d3667040189af85130fb1e729e-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [3f802e1f-5ca9-46ba-b21d-b2d7a07c00d2] Performed Attachs::Jobs::DeleteJob from Inline(default) in 404.64ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 3f802e1f-5ca9-46ba-b21d-b2d7a07c00d2) to Inline(default) with arguments: ["488d93d3667040189af85130fb1e729e-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [20618d3a-d29b-4c76-b037-d5038fddee7c] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["fbf1834e41fe42e4b198f495808b961d-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [20618d3a-d29b-4c76-b037-d5038fddee7c] Deleting: fbf1834e41fe42e4b198f495808b961d-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [20618d3a-d29b-4c76-b037-d5038fddee7c] Performed Attachs::Jobs::DeleteJob from Inline(default) in 411.39ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 20618d3a-d29b-4c76-b037-d5038fddee7c) to Inline(default) with arguments: ["fbf1834e41fe42e4b198f495808b961d-original.jpg"]  (0.3ms) ROLLBACK  (0.1ms) BEGIN --------------------- TasksTest: test_clear --------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-sgokcw.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"b1d6aecc38884e4abb6524b917c02eae\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T15:14:55.518-03:00\",\"paths\":{\"original\":\"b1d6aecc38884e4abb6524b917c02eae-original.png\",\"tiny\":\"b1d6aecc38884e4abb6524b917c02eae-tiny.png\",\"small\":\"b1d6aecc38884e4abb6524b917c02eae-small.png\",\"medium\":\"b1d6aecc38884e4abb6524b917c02eae-medium.png\",\"large\":\"b1d6aecc38884e4abb6524b917c02eae-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-11-20 18:14:55.519251"], ["updated_at", "2016-11-20 18:14:55.519251"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-sgokcw.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-1j7bm8j.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-1j7bm8j.png => b1d6aecc38884e4abb6524b917c02eae-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-sgokcw.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-yofcpq.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-yofcpq.png => b1d6aecc38884e4abb6524b917c02eae-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-sgokcw.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-1yy326o.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-1yy326o.png => b1d6aecc38884e4abb6524b917c02eae-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-sgokcw.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-1diun93.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-1diun93.png => b1d6aecc38884e4abb6524b917c02eae-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-sgokcw.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-17d2ylk.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-17d2ylk.png => b1d6aecc38884e4abb6524b917c02eae-large.png Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-i9i3bi.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"4251d697f60d465ea0d042a96caa8149\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T15:14:59.077-03:00\",\"paths\":{\"original\":\"4251d697f60d465ea0d042a96caa8149-original.png\",\"tiny\":\"4251d697f60d465ea0d042a96caa8149-tiny.png\",\"small\":\"4251d697f60d465ea0d042a96caa8149-small.png\",\"medium\":\"4251d697f60d465ea0d042a96caa8149-medium.png\",\"large\":\"4251d697f60d465ea0d042a96caa8149-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-11-20 18:14:59.077750"], ["updated_at", "2016-11-20 18:14:59.077750"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-i9i3bi.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-9g54f7.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-9g54f7.png => 4251d697f60d465ea0d042a96caa8149-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-i9i3bi.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-1dv4goi.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-1dv4goi.png => 4251d697f60d465ea0d042a96caa8149-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-i9i3bi.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-jz250d.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-jz250d.png => 4251d697f60d465ea0d042a96caa8149-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-i9i3bi.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-1c92u9g.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-1c92u9g.png => 4251d697f60d465ea0d042a96caa8149-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-i9i3bi.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-rv0iux.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-rv0iux.png => 4251d697f60d465ea0d042a96caa8149-large.png SQL (0.3ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 28]]  (0.9ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '4251d697f60d465ea0d042a96caa8149-large.png' OR old_paths.value = '4251d697f60d465ea0d042a96caa8149-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '4251d697f60d465ea0d042a96caa8149-large.png' OR old_paths.value = '4251d697f60d465ea0d042a96caa8149-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '4251d697f60d465ea0d042a96caa8149-large.png' OR old_paths.value = '4251d697f60d465ea0d042a96caa8149-large.png') Deleting 4251d697f60d465ea0d042a96caa8149-large.png Deleting: 4251d697f60d465ea0d042a96caa8149-large.png  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '4251d697f60d465ea0d042a96caa8149-medium.png' OR old_paths.value = '4251d697f60d465ea0d042a96caa8149-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '4251d697f60d465ea0d042a96caa8149-medium.png' OR old_paths.value = '4251d697f60d465ea0d042a96caa8149-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '4251d697f60d465ea0d042a96caa8149-medium.png' OR old_paths.value = '4251d697f60d465ea0d042a96caa8149-medium.png') Deleting 4251d697f60d465ea0d042a96caa8149-medium.png Deleting: 4251d697f60d465ea0d042a96caa8149-medium.png  (0.7ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '4251d697f60d465ea0d042a96caa8149-original.png' OR old_paths.value = '4251d697f60d465ea0d042a96caa8149-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '4251d697f60d465ea0d042a96caa8149-original.png' OR old_paths.value = '4251d697f60d465ea0d042a96caa8149-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '4251d697f60d465ea0d042a96caa8149-original.png' OR old_paths.value = '4251d697f60d465ea0d042a96caa8149-original.png') Deleting 4251d697f60d465ea0d042a96caa8149-original.png Deleting: 4251d697f60d465ea0d042a96caa8149-original.png  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '4251d697f60d465ea0d042a96caa8149-small.png' OR old_paths.value = '4251d697f60d465ea0d042a96caa8149-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '4251d697f60d465ea0d042a96caa8149-small.png' OR old_paths.value = '4251d697f60d465ea0d042a96caa8149-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '4251d697f60d465ea0d042a96caa8149-small.png' OR old_paths.value = '4251d697f60d465ea0d042a96caa8149-small.png') Deleting 4251d697f60d465ea0d042a96caa8149-small.png Deleting: 4251d697f60d465ea0d042a96caa8149-small.png  (0.9ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '4251d697f60d465ea0d042a96caa8149-tiny.png' OR old_paths.value = '4251d697f60d465ea0d042a96caa8149-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '4251d697f60d465ea0d042a96caa8149-tiny.png' OR old_paths.value = '4251d697f60d465ea0d042a96caa8149-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '4251d697f60d465ea0d042a96caa8149-tiny.png' OR old_paths.value = '4251d697f60d465ea0d042a96caa8149-tiny.png') Deleting 4251d697f60d465ea0d042a96caa8149-tiny.png Deleting: 4251d697f60d465ea0d042a96caa8149-tiny.png  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b1d6aecc38884e4abb6524b917c02eae-large.png' OR old_paths.value = 'b1d6aecc38884e4abb6524b917c02eae-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b1d6aecc38884e4abb6524b917c02eae-large.png' OR old_paths.value = 'b1d6aecc38884e4abb6524b917c02eae-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b1d6aecc38884e4abb6524b917c02eae-large.png' OR old_paths.value = 'b1d6aecc38884e4abb6524b917c02eae-large.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b1d6aecc38884e4abb6524b917c02eae-medium.png' OR old_paths.value = 'b1d6aecc38884e4abb6524b917c02eae-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b1d6aecc38884e4abb6524b917c02eae-medium.png' OR old_paths.value = 'b1d6aecc38884e4abb6524b917c02eae-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b1d6aecc38884e4abb6524b917c02eae-medium.png' OR old_paths.value = 'b1d6aecc38884e4abb6524b917c02eae-medium.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b1d6aecc38884e4abb6524b917c02eae-original.png' OR old_paths.value = 'b1d6aecc38884e4abb6524b917c02eae-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b1d6aecc38884e4abb6524b917c02eae-original.png' OR old_paths.value = 'b1d6aecc38884e4abb6524b917c02eae-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b1d6aecc38884e4abb6524b917c02eae-original.png' OR old_paths.value = 'b1d6aecc38884e4abb6524b917c02eae-original.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b1d6aecc38884e4abb6524b917c02eae-small.png' OR old_paths.value = 'b1d6aecc38884e4abb6524b917c02eae-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b1d6aecc38884e4abb6524b917c02eae-small.png' OR old_paths.value = 'b1d6aecc38884e4abb6524b917c02eae-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b1d6aecc38884e4abb6524b917c02eae-small.png' OR old_paths.value = 'b1d6aecc38884e4abb6524b917c02eae-small.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b1d6aecc38884e4abb6524b917c02eae-tiny.png' OR old_paths.value = 'b1d6aecc38884e4abb6524b917c02eae-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b1d6aecc38884e4abb6524b917c02eae-tiny.png' OR old_paths.value = 'b1d6aecc38884e4abb6524b917c02eae-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b1d6aecc38884e4abb6524b917c02eae-tiny.png' OR old_paths.value = 'b1d6aecc38884e4abb6524b917c02eae-tiny.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/3471be0fbd634c11a61e44bd9bf4322e-large.png' OR old_paths.value = 'second/3471be0fbd634c11a61e44bd9bf4322e-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/3471be0fbd634c11a61e44bd9bf4322e-large.png' OR old_paths.value = 'second/3471be0fbd634c11a61e44bd9bf4322e-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/3471be0fbd634c11a61e44bd9bf4322e-large.png' OR old_paths.value = 'second/3471be0fbd634c11a61e44bd9bf4322e-large.png') Deleting second/3471be0fbd634c11a61e44bd9bf4322e-large.png Deleting: second/3471be0fbd634c11a61e44bd9bf4322e-large.png  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/3471be0fbd634c11a61e44bd9bf4322e-medium.png' OR old_paths.value = 'second/3471be0fbd634c11a61e44bd9bf4322e-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/3471be0fbd634c11a61e44bd9bf4322e-medium.png' OR old_paths.value = 'second/3471be0fbd634c11a61e44bd9bf4322e-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/3471be0fbd634c11a61e44bd9bf4322e-medium.png' OR old_paths.value = 'second/3471be0fbd634c11a61e44bd9bf4322e-medium.png') Deleting second/3471be0fbd634c11a61e44bd9bf4322e-medium.png Deleting: second/3471be0fbd634c11a61e44bd9bf4322e-medium.png  (0.7ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/3471be0fbd634c11a61e44bd9bf4322e-original.png' OR old_paths.value = 'second/3471be0fbd634c11a61e44bd9bf4322e-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/3471be0fbd634c11a61e44bd9bf4322e-original.png' OR old_paths.value = 'second/3471be0fbd634c11a61e44bd9bf4322e-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/3471be0fbd634c11a61e44bd9bf4322e-original.png' OR old_paths.value = 'second/3471be0fbd634c11a61e44bd9bf4322e-original.png') Deleting second/3471be0fbd634c11a61e44bd9bf4322e-original.png Deleting: second/3471be0fbd634c11a61e44bd9bf4322e-original.png  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/3471be0fbd634c11a61e44bd9bf4322e-small.png' OR old_paths.value = 'second/3471be0fbd634c11a61e44bd9bf4322e-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/3471be0fbd634c11a61e44bd9bf4322e-small.png' OR old_paths.value = 'second/3471be0fbd634c11a61e44bd9bf4322e-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/3471be0fbd634c11a61e44bd9bf4322e-small.png' OR old_paths.value = 'second/3471be0fbd634c11a61e44bd9bf4322e-small.png') Deleting second/3471be0fbd634c11a61e44bd9bf4322e-small.png Deleting: second/3471be0fbd634c11a61e44bd9bf4322e-small.png  (0.7ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/3471be0fbd634c11a61e44bd9bf4322e-tiny.png' OR old_paths.value = 'second/3471be0fbd634c11a61e44bd9bf4322e-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/3471be0fbd634c11a61e44bd9bf4322e-tiny.png' OR old_paths.value = 'second/3471be0fbd634c11a61e44bd9bf4322e-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/3471be0fbd634c11a61e44bd9bf4322e-tiny.png' OR old_paths.value = 'second/3471be0fbd634c11a61e44bd9bf4322e-tiny.png') Deleting second/3471be0fbd634c11a61e44bd9bf4322e-tiny.png Deleting: second/3471be0fbd634c11a61e44bd9bf4322e-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [8fe15aa5-8e57-4035-a7e9-672c0ca572ee] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["b1d6aecc38884e4abb6524b917c02eae-original.png", "b1d6aecc38884e4abb6524b917c02eae-tiny.png", "b1d6aecc38884e4abb6524b917c02eae-small.png", "b1d6aecc38884e4abb6524b917c02eae-medium.png", "b1d6aecc38884e4abb6524b917c02eae-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [8fe15aa5-8e57-4035-a7e9-672c0ca572ee] Deleting: b1d6aecc38884e4abb6524b917c02eae-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [8fe15aa5-8e57-4035-a7e9-672c0ca572ee] Deleting: b1d6aecc38884e4abb6524b917c02eae-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [8fe15aa5-8e57-4035-a7e9-672c0ca572ee] Deleting: b1d6aecc38884e4abb6524b917c02eae-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [8fe15aa5-8e57-4035-a7e9-672c0ca572ee] Deleting: b1d6aecc38884e4abb6524b917c02eae-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [8fe15aa5-8e57-4035-a7e9-672c0ca572ee] Deleting: b1d6aecc38884e4abb6524b917c02eae-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [8fe15aa5-8e57-4035-a7e9-672c0ca572ee] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2919.87ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 8fe15aa5-8e57-4035-a7e9-672c0ca572ee) to Inline(default) with arguments: ["b1d6aecc38884e4abb6524b917c02eae-original.png", "b1d6aecc38884e4abb6524b917c02eae-tiny.png", "b1d6aecc38884e4abb6524b917c02eae-small.png", "b1d6aecc38884e4abb6524b917c02eae-medium.png", "b1d6aecc38884e4abb6524b917c02eae-large.png"]  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------- TasksTest: test_reprocess ------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-nzly4g.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"ba1ddbc3860748f592d28082e050e468\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T15:15:22.735-03:00\",\"paths\":{\"original\":\"ba1ddbc3860748f592d28082e050e468-original.png\",\"tiny\":\"ba1ddbc3860748f592d28082e050e468-tiny.png\",\"small\":\"ba1ddbc3860748f592d28082e050e468-small.png\",\"medium\":\"ba1ddbc3860748f592d28082e050e468-medium.png\",\"large\":\"ba1ddbc3860748f592d28082e050e468-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-11-20 18:15:22.735902"], ["updated_at", "2016-11-20 18:15:22.735902"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-nzly4g.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-183t2gd.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-183t2gd.png => ba1ddbc3860748f592d28082e050e468-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-nzly4g.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-1kzknqy.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-1kzknqy.png => ba1ddbc3860748f592d28082e050e468-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-nzly4g.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-1h4ok7y.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-1h4ok7y.png => ba1ddbc3860748f592d28082e050e468-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-nzly4g.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-rr6cxn.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-rr6cxn.png => ba1ddbc3860748f592d28082e050e468-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-nzly4g.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-172hcc8.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-172hcc8.png => ba1ddbc3860748f592d28082e050e468-large.png Deleting: ba1ddbc3860748f592d28082e050e468-tiny.png Deleting: ba1ddbc3860748f592d28082e050e468-small.png Deleting: ba1ddbc3860748f592d28082e050e468-medium.png Deleting: ba1ddbc3860748f592d28082e050e468-large.png Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Reprocessing Shop #29 => logo Regenerating: tiny => ba1ddbc3860748f592d28082e050e468-tiny.png Regenerating: large => ba1ddbc3860748f592d28082e050e468-large.png Regenerating: small => ba1ddbc3860748f592d28082e050e468-small.png Regenerating: medium => ba1ddbc3860748f592d28082e050e468-medium.png Deleting: ba1ddbc3860748f592d28082e050e468-original.png Regenerating: original => ba1ddbc3860748f592d28082e050e468-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-gdu0x9.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-1h148cn.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-1h148cn.png => ba1ddbc3860748f592d28082e050e468-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-gdu0x9.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-dpjqr4.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-dpjqr4.png => ba1ddbc3860748f592d28082e050e468-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-gdu0x9.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-zjobmp.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-zjobmp.png => ba1ddbc3860748f592d28082e050e468-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-gdu0x9.png' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-146xcw.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-146xcw.png => ba1ddbc3860748f592d28082e050e468-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-gdu0x9.png' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-13ebaq7.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-13ebaq7.png => ba1ddbc3860748f592d28082e050e468-large.png SQL (0.4ms) UPDATE "shops" SET "logo" = '{"paths":{"original":"ba1ddbc3860748f592d28082e050e468-original.png","tiny":"ba1ddbc3860748f592d28082e050e468-tiny.png","small":"ba1ddbc3860748f592d28082e050e468-small.png","medium":"ba1ddbc3860748f592d28082e050e468-medium.png","large":"ba1ddbc3860748f592d28082e050e468-large.png"},"old_paths":[],"id":"ba1ddbc3860748f592d28082e050e468","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-11-20T15:15:22.735-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 29]] ConcernTest::Subclass Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Reprocessing Shop #29 => logo Deleting: ba1ddbc3860748f592d28082e050e468-tiny.png Regenerating: tiny => ba1ddbc3860748f592d28082e050e468-tiny.png Deleting: ba1ddbc3860748f592d28082e050e468-large.png Regenerating: large => ba1ddbc3860748f592d28082e050e468-large.png Deleting: ba1ddbc3860748f592d28082e050e468-small.png Regenerating: small => ba1ddbc3860748f592d28082e050e468-small.png Deleting: ba1ddbc3860748f592d28082e050e468-medium.png Regenerating: medium => ba1ddbc3860748f592d28082e050e468-medium.png Deleting: ba1ddbc3860748f592d28082e050e468-original.png Regenerating: original => ba1ddbc3860748f592d28082e050e468-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-15ios2y.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-1b94926.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-1b94926.png => ba1ddbc3860748f592d28082e050e468-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-15ios2y.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-ym24z.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-ym24z.png => ba1ddbc3860748f592d28082e050e468-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-15ios2y.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-5axixo.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-5axixo.png => ba1ddbc3860748f592d28082e050e468-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-15ios2y.png' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-rs54ms.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-rs54ms.png => ba1ddbc3860748f592d28082e050e468-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-15ios2y.png' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-1kpyk2s.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-1kpyk2s.png => ba1ddbc3860748f592d28082e050e468-large.png SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"original":"ba1ddbc3860748f592d28082e050e468-original.png","tiny":"ba1ddbc3860748f592d28082e050e468-tiny.png","small":"ba1ddbc3860748f592d28082e050e468-small.png","medium":"ba1ddbc3860748f592d28082e050e468-medium.png","large":"ba1ddbc3860748f592d28082e050e468-large.png"},"old_paths":[],"id":"ba1ddbc3860748f592d28082e050e468","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-11-20T15:15:22.735-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 29]] ConcernTest::Subclass Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 29]] [ActiveJob] [Attachs::Jobs::DeleteJob] [b7f1e72f-f9fe-4472-a562-dee6a3ab25cd] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["ba1ddbc3860748f592d28082e050e468-tiny.png", "ba1ddbc3860748f592d28082e050e468-large.png", "ba1ddbc3860748f592d28082e050e468-small.png", "ba1ddbc3860748f592d28082e050e468-medium.png", "ba1ddbc3860748f592d28082e050e468-original.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [b7f1e72f-f9fe-4472-a562-dee6a3ab25cd] Deleting: ba1ddbc3860748f592d28082e050e468-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [b7f1e72f-f9fe-4472-a562-dee6a3ab25cd] Deleting: ba1ddbc3860748f592d28082e050e468-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [b7f1e72f-f9fe-4472-a562-dee6a3ab25cd] Deleting: ba1ddbc3860748f592d28082e050e468-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [b7f1e72f-f9fe-4472-a562-dee6a3ab25cd] Deleting: ba1ddbc3860748f592d28082e050e468-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [b7f1e72f-f9fe-4472-a562-dee6a3ab25cd] Deleting: ba1ddbc3860748f592d28082e050e468-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [b7f1e72f-f9fe-4472-a562-dee6a3ab25cd] Performed Attachs::Jobs::DeleteJob from Inline(default) in 3046.21ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: b7f1e72f-f9fe-4472-a562-dee6a3ab25cd) to Inline(default) with arguments: ["ba1ddbc3860748f592d28082e050e468-tiny.png", "ba1ddbc3860748f592d28082e050e468-large.png", "ba1ddbc3860748f592d28082e050e468-small.png", "ba1ddbc3860748f592d28082e050e468-medium.png", "ba1ddbc3860748f592d28082e050e468-original.png"]  (0.3ms) ROLLBACK  (0.2ms) BEGIN ---------------------------- TasksTest: test_fix_missings ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-171n91l.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"11fe5d32e7f0489a9c539f23ba92cd78\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T15:15:58.764-03:00\",\"paths\":{\"original\":\"11fe5d32e7f0489a9c539f23ba92cd78-original.png\",\"tiny\":\"11fe5d32e7f0489a9c539f23ba92cd78-tiny.png\",\"small\":\"11fe5d32e7f0489a9c539f23ba92cd78-small.png\",\"medium\":\"11fe5d32e7f0489a9c539f23ba92cd78-medium.png\",\"large\":\"11fe5d32e7f0489a9c539f23ba92cd78-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-11-20 18:15:58.765534"], ["updated_at", "2016-11-20 18:15:58.765534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-171n91l.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-uilydq.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-uilydq.png => 11fe5d32e7f0489a9c539f23ba92cd78-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-171n91l.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-16c5h70.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-16c5h70.png => 11fe5d32e7f0489a9c539f23ba92cd78-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-171n91l.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-15kg4ph.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-15kg4ph.png => 11fe5d32e7f0489a9c539f23ba92cd78-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-171n91l.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-15sts8t.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-15sts8t.png => 11fe5d32e7f0489a9c539f23ba92cd78-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-171n91l.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-cs8qhe.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-cs8qhe.png => 11fe5d32e7f0489a9c539f23ba92cd78-large.png Deleting: 11fe5d32e7f0489a9c539f23ba92cd78-tiny.png Deleting: 11fe5d32e7f0489a9c539f23ba92cd78-small.png Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Fix missings of Shop #30 => logo Generating: tiny => 11fe5d32e7f0489a9c539f23ba92cd78-tiny.png Generating: small => 11fe5d32e7f0489a9c539f23ba92cd78-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-tttyly.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-11rhmkt.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-11rhmkt.png => 11fe5d32e7f0489a9c539f23ba92cd78-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-tttyly.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-1b3mc1.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-1b3mc1.png => 11fe5d32e7f0489a9c539f23ba92cd78-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-tttyly.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-1igxgds.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-1igxgds.png => 11fe5d32e7f0489a9c539f23ba92cd78-small.png ConcernTest::Subclass Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Fix missings of Shop #30 => logo ConcernTest::Subclass Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Fix missings of Shop #30 => logo ConcernTest::Subclass Load (1.0ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 [ActiveJob] [Attachs::Jobs::DeleteJob] [484a00ff-d221-4258-aec2-9dc6e3329c07] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["11fe5d32e7f0489a9c539f23ba92cd78-original.png", "11fe5d32e7f0489a9c539f23ba92cd78-tiny.png", "11fe5d32e7f0489a9c539f23ba92cd78-small.png", "11fe5d32e7f0489a9c539f23ba92cd78-medium.png", "11fe5d32e7f0489a9c539f23ba92cd78-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [484a00ff-d221-4258-aec2-9dc6e3329c07] Deleting: 11fe5d32e7f0489a9c539f23ba92cd78-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [484a00ff-d221-4258-aec2-9dc6e3329c07] Deleting: 11fe5d32e7f0489a9c539f23ba92cd78-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [484a00ff-d221-4258-aec2-9dc6e3329c07] Deleting: 11fe5d32e7f0489a9c539f23ba92cd78-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [484a00ff-d221-4258-aec2-9dc6e3329c07] Deleting: 11fe5d32e7f0489a9c539f23ba92cd78-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [484a00ff-d221-4258-aec2-9dc6e3329c07] Deleting: 11fe5d32e7f0489a9c539f23ba92cd78-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [484a00ff-d221-4258-aec2-9dc6e3329c07] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2762.71ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 484a00ff-d221-4258-aec2-9dc6e3329c07) to Inline(default) with arguments: ["11fe5d32e7f0489a9c539f23ba92cd78-original.png", "11fe5d32e7f0489a9c539f23ba92cd78-tiny.png", "11fe5d32e7f0489a9c539f23ba92cd78-small.png", "11fe5d32e7f0489a9c539f23ba92cd78-medium.png", "11fe5d32e7f0489a9c539f23ba92cd78-large.png"]  (0.3ms) ROLLBACK  (0.1ms) BEGIN --------------------- QueryTest: test_exist --------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-do59j8.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("name", "logo", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "first"], ["logo", "{\"id\":\"0a88248132cc49fa9fec4e92d5909cea\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T15:16:21.305-03:00\",\"paths\":{\"original\":\"first/0a88248132cc49fa9fec4e92d5909cea-original.png\",\"tiny\":\"first/0a88248132cc49fa9fec4e92d5909cea-tiny.png\",\"small\":\"first/0a88248132cc49fa9fec4e92d5909cea-small.png\",\"medium\":\"first/0a88248132cc49fa9fec4e92d5909cea-medium.png\",\"large\":\"first/0a88248132cc49fa9fec4e92d5909cea-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-11-20 18:16:21.306928"], ["updated_at", "2016-11-20 18:16:21.306928"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-do59j8.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-1v0b8l1.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-1v0b8l1.png => first/0a88248132cc49fa9fec4e92d5909cea-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-do59j8.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-1iypxq6.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-1iypxq6.png => first/0a88248132cc49fa9fec4e92d5909cea-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-do59j8.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-la1t8p.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-la1t8p.png => first/0a88248132cc49fa9fec4e92d5909cea-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-do59j8.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-joaggv.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-joaggv.png => first/0a88248132cc49fa9fec4e92d5909cea-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-do59j8.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-1qa7ke0.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-1qa7ke0.png => first/0a88248132cc49fa9fec4e92d5909cea-large.png  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "shops" SET "name" = $1, "updated_at" = $2 WHERE "shops"."id" = $3 [["name", "second"], ["updated_at", "2016-11-20 18:16:25.697458"], ["id", 31]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 31]] [ActiveJob] [Attachs::Jobs::UpdateJob] [370f8296-2d03-459f-ab80-6b72d1705d4c] Performing Attachs::Jobs::UpdateJob from Inline(default) with arguments: gid://dummy/Shop/31, "logo" [ActiveJob] [Attachs::Jobs::UpdateJob] [370f8296-2d03-459f-ab80-6b72d1705d4c] Copying: first/0a88248132cc49fa9fec4e92d5909cea-original.png => second/0a88248132cc49fa9fec4e92d5909cea-original.png [ActiveJob] [Attachs::Jobs::UpdateJob] [370f8296-2d03-459f-ab80-6b72d1705d4c] Copying: first/0a88248132cc49fa9fec4e92d5909cea-tiny.png => second/0a88248132cc49fa9fec4e92d5909cea-tiny.png [ActiveJob] [Attachs::Jobs::UpdateJob] [370f8296-2d03-459f-ab80-6b72d1705d4c] Copying: first/0a88248132cc49fa9fec4e92d5909cea-small.png => second/0a88248132cc49fa9fec4e92d5909cea-small.png [ActiveJob] [Attachs::Jobs::UpdateJob] [370f8296-2d03-459f-ab80-6b72d1705d4c] Copying: first/0a88248132cc49fa9fec4e92d5909cea-medium.png => second/0a88248132cc49fa9fec4e92d5909cea-medium.png [ActiveJob] [Attachs::Jobs::UpdateJob] [370f8296-2d03-459f-ab80-6b72d1705d4c] Copying: first/0a88248132cc49fa9fec4e92d5909cea-large.png => second/0a88248132cc49fa9fec4e92d5909cea-large.png [ActiveJob] [Attachs::Jobs::UpdateJob] [370f8296-2d03-459f-ab80-6b72d1705d4c] SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"tiny":"second/0a88248132cc49fa9fec4e92d5909cea-tiny.png","large":"second/0a88248132cc49fa9fec4e92d5909cea-large.png","small":"second/0a88248132cc49fa9fec4e92d5909cea-small.png","medium":"second/0a88248132cc49fa9fec4e92d5909cea-medium.png","original":"second/0a88248132cc49fa9fec4e92d5909cea-original.png"},"old_paths":["first/0a88248132cc49fa9fec4e92d5909cea-original.png","first/0a88248132cc49fa9fec4e92d5909cea-tiny.png","first/0a88248132cc49fa9fec4e92d5909cea-small.png","first/0a88248132cc49fa9fec4e92d5909cea-medium.png","first/0a88248132cc49fa9fec4e92d5909cea-large.png"],"id":"0a88248132cc49fa9fec4e92d5909cea","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-11-20T15:16:21.305-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 31]] [ActiveJob] [Attachs::Jobs::UpdateJob] [370f8296-2d03-459f-ab80-6b72d1705d4c] Performed Attachs::Jobs::UpdateJob from Inline(default) in 3168.91ms [ActiveJob] Enqueued Attachs::Jobs::UpdateJob (Job ID: 370f8296-2d03-459f-ab80-6b72d1705d4c) to Inline(default) with arguments: gid://dummy/Shop/31, "logo" Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-18fw44n.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-1lkl55c.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"062f25fc2da6495688568535fc214353\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T15:16:28.889-03:00\",\"paths\":{\"original\":\"062f25fc2da6495688568535fc214353-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725},{\"id\":\"38b7cdc7595944649d17f3b14de08ce3\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T15:16:28.892-03:00\",\"paths\":{\"original\":\"38b7cdc7595944649d17f3b14de08ce3-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-11-20 18:16:28.893647"], ["updated_at", "2016-11-20 18:16:28.893647"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-18fw44n.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-1wqwljs.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-1wqwljs.jpg => 062f25fc2da6495688568535fc214353-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-1lkl55c.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-1gezwpt.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-1gezwpt.jpg => 38b7cdc7595944649d17f3b14de08ce3-original.jpg  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/0a88248132cc49fa9fec4e92d5909cea-original.png' OR old_paths.value = 'first/0a88248132cc49fa9fec4e92d5909cea-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/0a88248132cc49fa9fec4e92d5909cea-original.png' OR old_paths.value = 'first/0a88248132cc49fa9fec4e92d5909cea-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/0a88248132cc49fa9fec4e92d5909cea-original.png' OR old_paths.value = 'first/0a88248132cc49fa9fec4e92d5909cea-original.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/0a88248132cc49fa9fec4e92d5909cea-original.png' OR old_paths.value = 'first/0a88248132cc49fa9fec4e92d5909cea-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/0a88248132cc49fa9fec4e92d5909cea-original.png' OR old_paths.value = 'first/0a88248132cc49fa9fec4e92d5909cea-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/0a88248132cc49fa9fec4e92d5909cea-original.png' OR old_paths.value = 'first/0a88248132cc49fa9fec4e92d5909cea-original.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '062f25fc2da6495688568535fc214353-original.jpg' OR old_paths.value = '062f25fc2da6495688568535fc214353-original.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '062f25fc2da6495688568535fc214353-original.jpg' OR old_paths.value = '062f25fc2da6495688568535fc214353-original.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '062f25fc2da6495688568535fc214353-original.jpg' OR old_paths.value = '062f25fc2da6495688568535fc214353-original.jpg') [ActiveJob] [Attachs::Jobs::DeleteJob] [98feb146-960f-4b69-a1aa-1bdaa8fc4b1f] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["first/0a88248132cc49fa9fec4e92d5909cea-original.png", "first/0a88248132cc49fa9fec4e92d5909cea-tiny.png", "first/0a88248132cc49fa9fec4e92d5909cea-small.png", "first/0a88248132cc49fa9fec4e92d5909cea-medium.png", "first/0a88248132cc49fa9fec4e92d5909cea-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [98feb146-960f-4b69-a1aa-1bdaa8fc4b1f] Deleting: first/0a88248132cc49fa9fec4e92d5909cea-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [98feb146-960f-4b69-a1aa-1bdaa8fc4b1f] Deleting: first/0a88248132cc49fa9fec4e92d5909cea-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [98feb146-960f-4b69-a1aa-1bdaa8fc4b1f] Deleting: first/0a88248132cc49fa9fec4e92d5909cea-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [98feb146-960f-4b69-a1aa-1bdaa8fc4b1f] Deleting: first/0a88248132cc49fa9fec4e92d5909cea-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [98feb146-960f-4b69-a1aa-1bdaa8fc4b1f] Deleting: first/0a88248132cc49fa9fec4e92d5909cea-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [98feb146-960f-4b69-a1aa-1bdaa8fc4b1f] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2653.72ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 98feb146-960f-4b69-a1aa-1bdaa8fc4b1f) to Inline(default) with arguments: ["first/0a88248132cc49fa9fec4e92d5909cea-original.png", "first/0a88248132cc49fa9fec4e92d5909cea-tiny.png", "first/0a88248132cc49fa9fec4e92d5909cea-small.png", "first/0a88248132cc49fa9fec4e92d5909cea-medium.png", "first/0a88248132cc49fa9fec4e92d5909cea-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [0f46477a-97d6-4929-929c-a28955a754a5] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["062f25fc2da6495688568535fc214353-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [0f46477a-97d6-4929-929c-a28955a754a5] Deleting: 062f25fc2da6495688568535fc214353-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [0f46477a-97d6-4929-929c-a28955a754a5] Performed Attachs::Jobs::DeleteJob from Inline(default) in 613.9ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 0f46477a-97d6-4929-929c-a28955a754a5) to Inline(default) with arguments: ["062f25fc2da6495688568535fc214353-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [a273ed9e-6d66-4b0f-96f0-4be3b69c6261] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["38b7cdc7595944649d17f3b14de08ce3-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [a273ed9e-6d66-4b0f-96f0-4be3b69c6261] Deleting: 38b7cdc7595944649d17f3b14de08ce3-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [a273ed9e-6d66-4b0f-96f0-4be3b69c6261] Performed Attachs::Jobs::DeleteJob from Inline(default) in 919.08ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: a273ed9e-6d66-4b0f-96f0-4be3b69c6261) to Inline(default) with arguments: ["38b7cdc7595944649d17f3b14de08ce3-original.jpg"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------- UploadTest: test_upload ----------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-1wv6jel.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "uploads" ("file", "record_type", "record_attribute", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "{\"id\":\"82da306406de4ec388709d3f98159a97\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T15:16:34.625-03:00\",\"paths\":{\"original\":\"82da306406de4ec388709d3f98159a97-original.jpg\",\"tiny\":\"82da306406de4ec388709d3f98159a97-tiny.jpg\",\"small\":\"82da306406de4ec388709d3f98159a97-small.jpg\",\"medium\":\"82da306406de4ec388709d3f98159a97-medium.jpg\",\"large\":\"82da306406de4ec388709d3f98159a97-large.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["record_type", "Shop"], ["record_attribute", "logo"], ["created_at", "2016-11-20 18:16:34.625759"], ["updated_at", "2016-11-20 18:16:34.625759"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-1wv6jel.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-e3x7sk.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-e3x7sk.jpg => 82da306406de4ec388709d3f98159a97-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-1wv6jel.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-i3nolu.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-i3nolu.jpg => 82da306406de4ec388709d3f98159a97-tiny.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-1wv6jel.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-12u9au6.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-12u9au6.jpg => 82da306406de4ec388709d3f98159a97-small.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-1wv6jel.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-odvm74.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-odvm74.jpg => 82da306406de4ec388709d3f98159a97-medium.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161120-16172-1wv6jel.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-1133zq.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-1133zq.jpg => 82da306406de4ec388709d3f98159a97-large.jpg  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"2433ac6b3c8d4d8b8542a41ae1e47eb4\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-11-20T15:16:39.523-03:00\",\"paths\":{\"original\":\"2433ac6b3c8d4d8b8542a41ae1e47eb4-original.png\",\"tiny\":\"2433ac6b3c8d4d8b8542a41ae1e47eb4-tiny.png\",\"small\":\"2433ac6b3c8d4d8b8542a41ae1e47eb4-small.png\",\"medium\":\"2433ac6b3c8d4d8b8542a41ae1e47eb4-medium.png\",\"large\":\"2433ac6b3c8d4d8b8542a41ae1e47eb4-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-11-20 18:16:39.524104"], ["updated_at", "2016-11-20 18:16:39.524104"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-h64lim.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-mv79o5.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-mv79o5.png => 2433ac6b3c8d4d8b8542a41ae1e47eb4-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-h64lim.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-bwcuju.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-bwcuju.png => 2433ac6b3c8d4d8b8542a41ae1e47eb4-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-h64lim.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-hcqwbd.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-hcqwbd.png => 2433ac6b3c8d4d8b8542a41ae1e47eb4-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-h64lim.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-1qdgsr1.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-1qdgsr1.png => 2433ac6b3c8d4d8b8542a41ae1e47eb4-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-h64lim.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-1d0pygs.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161120-16172-1d0pygs.png => 2433ac6b3c8d4d8b8542a41ae1e47eb4-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [dff99057-6a54-43c0-8f84-43440776440b] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["2433ac6b3c8d4d8b8542a41ae1e47eb4-original.png", "2433ac6b3c8d4d8b8542a41ae1e47eb4-tiny.png", "2433ac6b3c8d4d8b8542a41ae1e47eb4-small.png", "2433ac6b3c8d4d8b8542a41ae1e47eb4-medium.png", "2433ac6b3c8d4d8b8542a41ae1e47eb4-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [dff99057-6a54-43c0-8f84-43440776440b] Deleting: 2433ac6b3c8d4d8b8542a41ae1e47eb4-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [dff99057-6a54-43c0-8f84-43440776440b] Deleting: 2433ac6b3c8d4d8b8542a41ae1e47eb4-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [dff99057-6a54-43c0-8f84-43440776440b] Deleting: 2433ac6b3c8d4d8b8542a41ae1e47eb4-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [dff99057-6a54-43c0-8f84-43440776440b] Deleting: 2433ac6b3c8d4d8b8542a41ae1e47eb4-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [dff99057-6a54-43c0-8f84-43440776440b] Deleting: 2433ac6b3c8d4d8b8542a41ae1e47eb4-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [dff99057-6a54-43c0-8f84-43440776440b] Performed Attachs::Jobs::DeleteJob from Inline(default) in 6251.35ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: dff99057-6a54-43c0-8f84-43440776440b) to Inline(default) with arguments: ["2433ac6b3c8d4d8b8542a41ae1e47eb4-original.png", "2433ac6b3c8d4d8b8542a41ae1e47eb4-tiny.png", "2433ac6b3c8d4d8b8542a41ae1e47eb4-small.png", "2433ac6b3c8d4d8b8542a41ae1e47eb4-medium.png", "2433ac6b3c8d4d8b8542a41ae1e47eb4-large.png"] Upload Load (0.3ms) SELECT "uploads".* FROM "uploads" WHERE "uploads"."id" = $1 LIMIT 1 [["id", 6]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"paths\":{\"original\":\"5d6eabe5ab6c4326a8c41213a517f89b-original.png\",\"tiny\":\"5d6eabe5ab6c4326a8c41213a517f89b-tiny.png\",\"small\":\"5d6eabe5ab6c4326a8c41213a517f89b-small.png\",\"medium\":\"5d6eabe5ab6c4326a8c41213a517f89b-medium.png\",\"large\":\"5d6eabe5ab6c4326a8c41213a517f89b-large.png\"},\"old_paths\":[],\"id\":\"5d6eabe5ab6c4326a8c41213a517f89b\",\"size\":74474,\"ratio\":0.6725,\"width\":400,\"height\":269,\"filename\":\"image.jpg\",\"uploaded_at\":\"2016-11-20T15:17:00.217-03:00\",\"content_type\":\"image/jpeg\"}"], ["created_at", "2016-11-20 18:17:00.217920"], ["updated_at", "2016-11-20 18:17:00.217920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Copying: 82da306406de4ec388709d3f98159a97-tiny.jpg => 5d6eabe5ab6c4326a8c41213a517f89b-tiny.png Copying: 82da306406de4ec388709d3f98159a97-large.jpg => 5d6eabe5ab6c4326a8c41213a517f89b-large.png Copying: 82da306406de4ec388709d3f98159a97-small.jpg => 5d6eabe5ab6c4326a8c41213a517f89b-small.png Copying: 82da306406de4ec388709d3f98159a97-medium.jpg => 5d6eabe5ab6c4326a8c41213a517f89b-medium.png Copying: 82da306406de4ec388709d3f98159a97-original.jpg => 5d6eabe5ab6c4326a8c41213a517f89b-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [acc4c177-fa0f-4832-80f9-4810155df888] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["5d6eabe5ab6c4326a8c41213a517f89b-original.png", "5d6eabe5ab6c4326a8c41213a517f89b-tiny.png", "5d6eabe5ab6c4326a8c41213a517f89b-small.png", "5d6eabe5ab6c4326a8c41213a517f89b-medium.png", "5d6eabe5ab6c4326a8c41213a517f89b-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [acc4c177-fa0f-4832-80f9-4810155df888] Deleting: 5d6eabe5ab6c4326a8c41213a517f89b-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [acc4c177-fa0f-4832-80f9-4810155df888] Deleting: 5d6eabe5ab6c4326a8c41213a517f89b-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [acc4c177-fa0f-4832-80f9-4810155df888] Deleting: 5d6eabe5ab6c4326a8c41213a517f89b-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [acc4c177-fa0f-4832-80f9-4810155df888] Deleting: 5d6eabe5ab6c4326a8c41213a517f89b-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [acc4c177-fa0f-4832-80f9-4810155df888] Deleting: 5d6eabe5ab6c4326a8c41213a517f89b-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [acc4c177-fa0f-4832-80f9-4810155df888] Performed Attachs::Jobs::DeleteJob from Inline(default) in 5141.11ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: acc4c177-fa0f-4832-80f9-4810155df888) to Inline(default) with arguments: ["5d6eabe5ab6c4326a8c41213a517f89b-original.png", "5d6eabe5ab6c4326a8c41213a517f89b-tiny.png", "5d6eabe5ab6c4326a8c41213a517f89b-small.png", "5d6eabe5ab6c4326a8c41213a517f89b-medium.png", "5d6eabe5ab6c4326a8c41213a517f89b-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [9a3c17d8-b5a8-4718-a820-2c37cbd2924e] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["82da306406de4ec388709d3f98159a97-original.jpg", "82da306406de4ec388709d3f98159a97-tiny.jpg", "82da306406de4ec388709d3f98159a97-small.jpg", "82da306406de4ec388709d3f98159a97-medium.jpg", "82da306406de4ec388709d3f98159a97-large.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [9a3c17d8-b5a8-4718-a820-2c37cbd2924e] Deleting: 82da306406de4ec388709d3f98159a97-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [9a3c17d8-b5a8-4718-a820-2c37cbd2924e] Deleting: 82da306406de4ec388709d3f98159a97-tiny.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [9a3c17d8-b5a8-4718-a820-2c37cbd2924e] Deleting: 82da306406de4ec388709d3f98159a97-small.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [9a3c17d8-b5a8-4718-a820-2c37cbd2924e] Deleting: 82da306406de4ec388709d3f98159a97-medium.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [9a3c17d8-b5a8-4718-a820-2c37cbd2924e] Deleting: 82da306406de4ec388709d3f98159a97-large.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [9a3c17d8-b5a8-4718-a820-2c37cbd2924e] Performed Attachs::Jobs::DeleteJob from Inline(default) in 3264.98ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 9a3c17d8-b5a8-4718-a820-2c37cbd2924e) to Inline(default) with arguments: ["82da306406de4ec388709d3f98159a97-original.jpg", "82da306406de4ec388709d3f98159a97-tiny.jpg", "82da306406de4ec388709d3f98159a97-small.jpg", "82da306406de4ec388709d3f98159a97-medium.jpg", "82da306406de4ec388709d3f98159a97-large.jpg"]  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (27.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------- CollectionTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40065-1smrcid.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40065-1a17t6e.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (25.1ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"c6b467a028894edfa8fd9d9392874631\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-06T09:33:54.471-03:00\",\"paths\":{\"original\":\"c6b467a028894edfa8fd9d9392874631-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725},{\"id\":\"22db2370b639421993bcd183df5b83a6\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-06T09:33:54.472-03:00\",\"paths\":{\"original\":\"22db2370b639421993bcd183df5b83a6-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-12-06 12:33:54.473583"], ["updated_at", "2016-12-06 12:33:54.473583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40065-1smrcid.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40065-1r78fwx.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40065-1r78fwx.jpg => c6b467a028894edfa8fd9d9392874631-original.jpg  (0.3ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------- CollectionTest: test_nested_attributes -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40065-1hjgar8.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40065-1vrerxk.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------- CollectionTest: test_index -------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40065-tzqsi8.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40065-1ibs728.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"e319f31b7423418b8c5fe8d5b05fa96a\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-06T09:33:54.798-03:00\",\"paths\":{\"original\":\"e319f31b7423418b8c5fe8d5b05fa96a-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725,\"position\":0},{\"id\":\"c2e7a2eacdee4c86bd6a190253cefeca\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-06T09:33:54.799-03:00\",\"paths\":{\"original\":\"c2e7a2eacdee4c86bd6a190253cefeca-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-12-06 12:33:54.800340"], ["updated_at", "2016-12-06 12:33:54.800340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 23]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------- HelperTest: test_fields_for --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40065-1m1so27.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (6.7ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"9ddffe598ff5472a83242e91d966b512\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-06T09:33:54.819-03:00\",\"paths\":{\"original\":\"9ddffe598ff5472a83242e91d966b512-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-12-06 12:33:54.819982"], ["updated_at", "2016-12-06 12:33:54.819982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40065-1m1so27.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40065-1rog6t4.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40065-1rog6t4.jpg => 9ddffe598ff5472a83242e91d966b512-original.jpg  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- TaskTest: test_fix_missings --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40065-101ergh.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (8.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"1dfecd85fc6844caba3dc355607ce467\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-06T09:33:54.888-03:00\",\"paths\":{\"original\":\"1dfecd85fc6844caba3dc355607ce467-original.png\",\"tiny\":\"1dfecd85fc6844caba3dc355607ce467-tiny.png\",\"small\":\"1dfecd85fc6844caba3dc355607ce467-small.png\",\"medium\":\"1dfecd85fc6844caba3dc355607ce467-medium.png\",\"large\":\"1dfecd85fc6844caba3dc355607ce467-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-06 12:33:54.888945"], ["updated_at", "2016-12-06 12:33:54.888945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40065-101ergh.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40065-1ou9d9c.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40065-1ou9d9c.png => 1dfecd85fc6844caba3dc355607ce467-original.png  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------- TaskTest: test_clear -------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40065-zpugaz.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"9a63a777061a432ab00850bc21c882ab\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-06T09:33:54.946-03:00\",\"paths\":{\"original\":\"9a63a777061a432ab00850bc21c882ab-original.png\",\"tiny\":\"9a63a777061a432ab00850bc21c882ab-tiny.png\",\"small\":\"9a63a777061a432ab00850bc21c882ab-small.png\",\"medium\":\"9a63a777061a432ab00850bc21c882ab-medium.png\",\"large\":\"9a63a777061a432ab00850bc21c882ab-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-06 12:33:54.947044"], ["updated_at", "2016-12-06 12:33:54.947044"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40065-zpugaz.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40065-1bg3ehb.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40065-1bg3ehb.png => 9a63a777061a432ab00850bc21c882ab-original.png  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------ TaskTest: test_reprocess ------------------------ Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40065-ebgx0w.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"7b65573d606649d491212f21a90c762b\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-06T09:33:54.989-03:00\",\"paths\":{\"original\":\"7b65573d606649d491212f21a90c762b-original.png\",\"tiny\":\"7b65573d606649d491212f21a90c762b-tiny.png\",\"small\":\"7b65573d606649d491212f21a90c762b-small.png\",\"medium\":\"7b65573d606649d491212f21a90c762b-medium.png\",\"large\":\"7b65573d606649d491212f21a90c762b-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-06 12:33:54.990517"], ["updated_at", "2016-12-06 12:33:54.990517"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40065-ebgx0w.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40065-1cstic5.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40065-1cstic5.png => 7b65573d606649d491212f21a90c762b-original.png  (0.2ms) ROLLBACK  (0.2ms) BEGIN --------------------------- ValidatorTest: test_size_in --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161206-40065-1ib3gk9.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40065-17dda6f.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161206-40065-14z6cz6.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40065-vciiq.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40065-u0spwf.jpg'  (0.2ms) ROLLBACK  (0.2ms) BEGIN --------------------------- ValidatorTest: test_methods ---------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- ValidatorTest: test_content_type_within --------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40065-19v353o.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40065-jzdt96.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40065-9uxr3g.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- ValidatorTest: test_content_type_in ----------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40065-16j3up8.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40065-hsozqy.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40065-1qxxyt1.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- ValidatorTest: test_content_type_with ------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40065-1fhw0gc.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40065-163av40.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40065-1d1yuoq.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- ValidatorTest: test_size_within ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161206-40065-1xj6v22.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40065-s9aw78.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161206-40065-1pcu31w.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40065-yqnkue.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40065-9isub.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- ValidatorTest: test_size_greater_than ------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161206-40065-zden0x.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40065-dvvhau.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40065-1hp9nwv.jpg'  (0.2ms) ROLLBACK  (0.2ms) BEGIN ---------------------------------- ValidatorTest: test_size_less_than ---------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161206-40065-1o0z7x7.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40065-16m3ieb.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40065-1xlsv2e.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------- UploadTest: test_upload ----------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40065-cdf8gd.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "uploads" ("file", "record_type", "record_attribute", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "{\"id\":\"df92ddb30c464eb488b57b03a60e53d1\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-06T09:33:55.284-03:00\",\"paths\":{\"original\":\"df92ddb30c464eb488b57b03a60e53d1-original.jpg\",\"tiny\":\"df92ddb30c464eb488b57b03a60e53d1-tiny.jpg\",\"small\":\"df92ddb30c464eb488b57b03a60e53d1-small.jpg\",\"medium\":\"df92ddb30c464eb488b57b03a60e53d1-medium.jpg\",\"large\":\"df92ddb30c464eb488b57b03a60e53d1-large.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["record_type", "Shop"], ["record_attribute", "logo"], ["created_at", "2016-12-06 12:33:55.284964"], ["updated_at", "2016-12-06 12:33:55.284964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40065-cdf8gd.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40065-l58c1b.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40065-l58c1b.jpg => df92ddb30c464eb488b57b03a60e53d1-original.jpg  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------- QueryTest: test_exist --------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40065-1k2vymd.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("name", "logo", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "first"], ["logo", "{\"id\":\"426c8df4ecd64b4eb32078ba520a7b78\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-06T09:33:55.315-03:00\",\"paths\":{\"original\":\"first/426c8df4ecd64b4eb32078ba520a7b78-original.png\",\"tiny\":\"first/426c8df4ecd64b4eb32078ba520a7b78-tiny.png\",\"small\":\"first/426c8df4ecd64b4eb32078ba520a7b78-small.png\",\"medium\":\"first/426c8df4ecd64b4eb32078ba520a7b78-medium.png\",\"large\":\"first/426c8df4ecd64b4eb32078ba520a7b78-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-06 12:33:55.316476"], ["updated_at", "2016-12-06 12:33:55.316476"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40065-1k2vymd.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40065-1xwqxym.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40065-1xwqxym.png => first/426c8df4ecd64b4eb32078ba520a7b78-original.png  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- GeneratorTest: test_install ---------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------- GeneratorTest: test_upload --------------------------  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- AttachmentTest: test_nested_attributes --------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- AttachmentTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40065-2oo09k.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"34888cbf595f4c3dbfc35ebdae935307\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-06T09:33:55.365-03:00\",\"paths\":{\"original\":\"34888cbf595f4c3dbfc35ebdae935307-original.png\",\"tiny\":\"34888cbf595f4c3dbfc35ebdae935307-tiny.png\",\"small\":\"34888cbf595f4c3dbfc35ebdae935307-small.png\",\"medium\":\"34888cbf595f4c3dbfc35ebdae935307-medium.png\",\"large\":\"34888cbf595f4c3dbfc35ebdae935307-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-06 12:33:55.366334"], ["updated_at", "2016-12-06 12:33:55.366334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40065-2oo09k.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40065-1li8pcl.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40065-1li8pcl.png => 34888cbf595f4c3dbfc35ebdae935307-original.png  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_default ----------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_renames ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40065-13vvh4h.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("logo", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["logo", "{\"id\":\"422b9367ba1042c09be248c9f3c64a2e\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-06T09:33:55.404-03:00\",\"paths\":{\"original\":\"anderstons/422b9367ba1042c09be248c9f3c64a2e-original.png\",\"tiny\":\"anderstons/422b9367ba1042c09be248c9f3c64a2e-tiny.png\",\"small\":\"anderstons/422b9367ba1042c09be248c9f3c64a2e-small.png\",\"medium\":\"anderstons/422b9367ba1042c09be248c9f3c64a2e-medium.png\",\"large\":\"anderstons/422b9367ba1042c09be248c9f3c64a2e-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["name", "Anderstons"], ["created_at", "2016-12-06 12:33:55.405107"], ["updated_at", "2016-12-06 12:33:55.405107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40065-13vvh4h.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40065-1gv22b5.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40065-1gv22b5.png => anderstons/422b9367ba1042c09be248c9f3c64a2e-original.png  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------- ConcernTest: test_inherit -------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN --------------------------- TaskTest: test_fix_missings --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-c7e74g.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"18f2682e7ad14d118584a0b85fe5bc1a\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-06T09:34:08.177-03:00\",\"paths\":{\"original\":\"18f2682e7ad14d118584a0b85fe5bc1a-original.png\",\"tiny\":\"18f2682e7ad14d118584a0b85fe5bc1a-tiny.png\",\"small\":\"18f2682e7ad14d118584a0b85fe5bc1a-small.png\",\"medium\":\"18f2682e7ad14d118584a0b85fe5bc1a-medium.png\",\"large\":\"18f2682e7ad14d118584a0b85fe5bc1a-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-06 12:34:08.177935"], ["updated_at", "2016-12-06 12:34:08.177935"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-c7e74g.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-ivfv00.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-ivfv00.png => 18f2682e7ad14d118584a0b85fe5bc1a-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-c7e74g.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-wyfxtp.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-wyfxtp.png => 18f2682e7ad14d118584a0b85fe5bc1a-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-c7e74g.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1fjo3f8.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1fjo3f8.png => 18f2682e7ad14d118584a0b85fe5bc1a-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-c7e74g.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1812mdt.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1812mdt.png => 18f2682e7ad14d118584a0b85fe5bc1a-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-c7e74g.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-lu4obh.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-lu4obh.png => 18f2682e7ad14d118584a0b85fe5bc1a-large.png Deleting: 18f2682e7ad14d118584a0b85fe5bc1a-tiny.png Deleting: 18f2682e7ad14d118584a0b85fe5bc1a-small.png Shop Load (5.0ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Fix missings of Shop #40 => logo Generating: tiny => 18f2682e7ad14d118584a0b85fe5bc1a-tiny.png Generating: small => 18f2682e7ad14d118584a0b85fe5bc1a-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-13clrrb.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-babedk.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-babedk.png => 18f2682e7ad14d118584a0b85fe5bc1a-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-13clrrb.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1suiqk7.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1suiqk7.png => 18f2682e7ad14d118584a0b85fe5bc1a-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-13clrrb.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1mupvf8.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1mupvf8.png => 18f2682e7ad14d118584a0b85fe5bc1a-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [21fe6e16-099a-4a9b-91b3-53704e029ce0] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["18f2682e7ad14d118584a0b85fe5bc1a-original.png", "18f2682e7ad14d118584a0b85fe5bc1a-tiny.png", "18f2682e7ad14d118584a0b85fe5bc1a-small.png", "18f2682e7ad14d118584a0b85fe5bc1a-medium.png", "18f2682e7ad14d118584a0b85fe5bc1a-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [21fe6e16-099a-4a9b-91b3-53704e029ce0] Deleting: 18f2682e7ad14d118584a0b85fe5bc1a-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [21fe6e16-099a-4a9b-91b3-53704e029ce0] Deleting: 18f2682e7ad14d118584a0b85fe5bc1a-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [21fe6e16-099a-4a9b-91b3-53704e029ce0] Deleting: 18f2682e7ad14d118584a0b85fe5bc1a-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [21fe6e16-099a-4a9b-91b3-53704e029ce0] Deleting: 18f2682e7ad14d118584a0b85fe5bc1a-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [21fe6e16-099a-4a9b-91b3-53704e029ce0] Deleting: 18f2682e7ad14d118584a0b85fe5bc1a-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [21fe6e16-099a-4a9b-91b3-53704e029ce0] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2508.68ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 21fe6e16-099a-4a9b-91b3-53704e029ce0) to Inline(default) with arguments: ["18f2682e7ad14d118584a0b85fe5bc1a-original.png", "18f2682e7ad14d118584a0b85fe5bc1a-tiny.png", "18f2682e7ad14d118584a0b85fe5bc1a-small.png", "18f2682e7ad14d118584a0b85fe5bc1a-medium.png", "18f2682e7ad14d118584a0b85fe5bc1a-large.png"]  (0.3ms) ROLLBACK  (0.2ms) BEGIN -------------------- TaskTest: test_clear -------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-1dzpwd4.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"9d22ee28369347cb9e40ee7465c06c5d\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-06T09:34:24.660-03:00\",\"paths\":{\"original\":\"9d22ee28369347cb9e40ee7465c06c5d-original.png\",\"tiny\":\"9d22ee28369347cb9e40ee7465c06c5d-tiny.png\",\"small\":\"9d22ee28369347cb9e40ee7465c06c5d-small.png\",\"medium\":\"9d22ee28369347cb9e40ee7465c06c5d-medium.png\",\"large\":\"9d22ee28369347cb9e40ee7465c06c5d-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-06 12:34:24.661364"], ["updated_at", "2016-12-06 12:34:24.661364"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-1dzpwd4.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1joimuv.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1joimuv.png => 9d22ee28369347cb9e40ee7465c06c5d-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-1dzpwd4.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-z7qhy5.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-z7qhy5.png => 9d22ee28369347cb9e40ee7465c06c5d-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-1dzpwd4.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1ge1m4v.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1ge1m4v.png => 9d22ee28369347cb9e40ee7465c06c5d-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-1dzpwd4.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1oaper8.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1oaper8.png => 9d22ee28369347cb9e40ee7465c06c5d-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-1dzpwd4.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1x5b0as.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1x5b0as.png => 9d22ee28369347cb9e40ee7465c06c5d-large.png Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-896qk2.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"c7f50020c1b4470484abad32a034bffc\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-06T09:34:28.090-03:00\",\"paths\":{\"original\":\"c7f50020c1b4470484abad32a034bffc-original.png\",\"tiny\":\"c7f50020c1b4470484abad32a034bffc-tiny.png\",\"small\":\"c7f50020c1b4470484abad32a034bffc-small.png\",\"medium\":\"c7f50020c1b4470484abad32a034bffc-medium.png\",\"large\":\"c7f50020c1b4470484abad32a034bffc-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-06 12:34:28.090857"], ["updated_at", "2016-12-06 12:34:28.090857"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-896qk2.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-nble95.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-nble95.png => c7f50020c1b4470484abad32a034bffc-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-896qk2.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-12bpsk.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-12bpsk.png => c7f50020c1b4470484abad32a034bffc-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-896qk2.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-os4jy3.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-os4jy3.png => c7f50020c1b4470484abad32a034bffc-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-896qk2.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1gjj5f7.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1gjj5f7.png => c7f50020c1b4470484abad32a034bffc-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-896qk2.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1ulh5xt.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1ulh5xt.png => c7f50020c1b4470484abad32a034bffc-large.png SQL (0.3ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 42]]  (25.2ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '9d22ee28369347cb9e40ee7465c06c5d-large.png' OR old_paths.value = '9d22ee28369347cb9e40ee7465c06c5d-large.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '9d22ee28369347cb9e40ee7465c06c5d-medium.png' OR old_paths.value = '9d22ee28369347cb9e40ee7465c06c5d-medium.png')  (0.3ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '9d22ee28369347cb9e40ee7465c06c5d-original.png' OR old_paths.value = '9d22ee28369347cb9e40ee7465c06c5d-original.png')  (0.3ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '9d22ee28369347cb9e40ee7465c06c5d-small.png' OR old_paths.value = '9d22ee28369347cb9e40ee7465c06c5d-small.png')  (0.3ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '9d22ee28369347cb9e40ee7465c06c5d-tiny.png' OR old_paths.value = '9d22ee28369347cb9e40ee7465c06c5d-tiny.png')  (0.3ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c7f50020c1b4470484abad32a034bffc-large.png' OR old_paths.value = 'c7f50020c1b4470484abad32a034bffc-large.png') Deleting c7f50020c1b4470484abad32a034bffc-large.png Deleting: c7f50020c1b4470484abad32a034bffc-large.png  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c7f50020c1b4470484abad32a034bffc-medium.png' OR old_paths.value = 'c7f50020c1b4470484abad32a034bffc-medium.png') Deleting c7f50020c1b4470484abad32a034bffc-medium.png Deleting: c7f50020c1b4470484abad32a034bffc-medium.png  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c7f50020c1b4470484abad32a034bffc-original.png' OR old_paths.value = 'c7f50020c1b4470484abad32a034bffc-original.png') Deleting c7f50020c1b4470484abad32a034bffc-original.png Deleting: c7f50020c1b4470484abad32a034bffc-original.png  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c7f50020c1b4470484abad32a034bffc-small.png' OR old_paths.value = 'c7f50020c1b4470484abad32a034bffc-small.png') Deleting c7f50020c1b4470484abad32a034bffc-small.png Deleting: c7f50020c1b4470484abad32a034bffc-small.png  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c7f50020c1b4470484abad32a034bffc-tiny.png' OR old_paths.value = 'c7f50020c1b4470484abad32a034bffc-tiny.png') Deleting c7f50020c1b4470484abad32a034bffc-tiny.png Deleting: c7f50020c1b4470484abad32a034bffc-tiny.png  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/0a88248132cc49fa9fec4e92d5909cea-large.png' OR old_paths.value = 'second/0a88248132cc49fa9fec4e92d5909cea-large.png') Deleting second/0a88248132cc49fa9fec4e92d5909cea-large.png Deleting: second/0a88248132cc49fa9fec4e92d5909cea-large.png  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/0a88248132cc49fa9fec4e92d5909cea-medium.png' OR old_paths.value = 'second/0a88248132cc49fa9fec4e92d5909cea-medium.png') Deleting second/0a88248132cc49fa9fec4e92d5909cea-medium.png Deleting: second/0a88248132cc49fa9fec4e92d5909cea-medium.png  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/0a88248132cc49fa9fec4e92d5909cea-original.png' OR old_paths.value = 'second/0a88248132cc49fa9fec4e92d5909cea-original.png') Deleting second/0a88248132cc49fa9fec4e92d5909cea-original.png Deleting: second/0a88248132cc49fa9fec4e92d5909cea-original.png  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/0a88248132cc49fa9fec4e92d5909cea-small.png' OR old_paths.value = 'second/0a88248132cc49fa9fec4e92d5909cea-small.png') Deleting second/0a88248132cc49fa9fec4e92d5909cea-small.png Deleting: second/0a88248132cc49fa9fec4e92d5909cea-small.png  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/0a88248132cc49fa9fec4e92d5909cea-tiny.png' OR old_paths.value = 'second/0a88248132cc49fa9fec4e92d5909cea-tiny.png') Deleting second/0a88248132cc49fa9fec4e92d5909cea-tiny.png Deleting: second/0a88248132cc49fa9fec4e92d5909cea-tiny.png  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '9d22ee28369347cb9e40ee7465c06c5d-large.png' OR old_paths.value = '9d22ee28369347cb9e40ee7465c06c5d-large.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '9d22ee28369347cb9e40ee7465c06c5d-medium.png' OR old_paths.value = '9d22ee28369347cb9e40ee7465c06c5d-medium.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '9d22ee28369347cb9e40ee7465c06c5d-original.png' OR old_paths.value = '9d22ee28369347cb9e40ee7465c06c5d-original.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '9d22ee28369347cb9e40ee7465c06c5d-small.png' OR old_paths.value = '9d22ee28369347cb9e40ee7465c06c5d-small.png')  (0.3ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '9d22ee28369347cb9e40ee7465c06c5d-tiny.png' OR old_paths.value = '9d22ee28369347cb9e40ee7465c06c5d-tiny.png') [ActiveJob] [Attachs::Jobs::DeleteJob] [62cf63ed-f75e-4b0e-ac43-0890bec5b629] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["9d22ee28369347cb9e40ee7465c06c5d-original.png", "9d22ee28369347cb9e40ee7465c06c5d-tiny.png", "9d22ee28369347cb9e40ee7465c06c5d-small.png", "9d22ee28369347cb9e40ee7465c06c5d-medium.png", "9d22ee28369347cb9e40ee7465c06c5d-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [62cf63ed-f75e-4b0e-ac43-0890bec5b629] Deleting: 9d22ee28369347cb9e40ee7465c06c5d-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [62cf63ed-f75e-4b0e-ac43-0890bec5b629] Deleting: 9d22ee28369347cb9e40ee7465c06c5d-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [62cf63ed-f75e-4b0e-ac43-0890bec5b629] Deleting: 9d22ee28369347cb9e40ee7465c06c5d-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [62cf63ed-f75e-4b0e-ac43-0890bec5b629] Deleting: 9d22ee28369347cb9e40ee7465c06c5d-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [62cf63ed-f75e-4b0e-ac43-0890bec5b629] Deleting: 9d22ee28369347cb9e40ee7465c06c5d-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [62cf63ed-f75e-4b0e-ac43-0890bec5b629] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2992.19ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 62cf63ed-f75e-4b0e-ac43-0890bec5b629) to Inline(default) with arguments: ["9d22ee28369347cb9e40ee7465c06c5d-original.png", "9d22ee28369347cb9e40ee7465c06c5d-tiny.png", "9d22ee28369347cb9e40ee7465c06c5d-small.png", "9d22ee28369347cb9e40ee7465c06c5d-medium.png", "9d22ee28369347cb9e40ee7465c06c5d-large.png"]  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------ TaskTest: test_reprocess ------------------------ Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-18ybee8.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"78172a3c963b4b5ea149070b4db27774\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-06T09:34:46.089-03:00\",\"paths\":{\"original\":\"78172a3c963b4b5ea149070b4db27774-original.png\",\"tiny\":\"78172a3c963b4b5ea149070b4db27774-tiny.png\",\"small\":\"78172a3c963b4b5ea149070b4db27774-small.png\",\"medium\":\"78172a3c963b4b5ea149070b4db27774-medium.png\",\"large\":\"78172a3c963b4b5ea149070b4db27774-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-06 12:34:46.090994"], ["updated_at", "2016-12-06 12:34:46.090994"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-18ybee8.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-131ko4e.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-131ko4e.png => 78172a3c963b4b5ea149070b4db27774-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-18ybee8.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-pk9d1p.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-pk9d1p.png => 78172a3c963b4b5ea149070b4db27774-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-18ybee8.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1vlp4jh.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1vlp4jh.png => 78172a3c963b4b5ea149070b4db27774-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-18ybee8.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1rsphqw.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1rsphqw.png => 78172a3c963b4b5ea149070b4db27774-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-18ybee8.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-ysnd0k.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-ysnd0k.png => 78172a3c963b4b5ea149070b4db27774-large.png Deleting: 78172a3c963b4b5ea149070b4db27774-tiny.png Deleting: 78172a3c963b4b5ea149070b4db27774-small.png Deleting: 78172a3c963b4b5ea149070b4db27774-medium.png Deleting: 78172a3c963b4b5ea149070b4db27774-large.png Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Reprocessing Shop #43 => logo Regenerating: tiny => 78172a3c963b4b5ea149070b4db27774-tiny.png Regenerating: large => 78172a3c963b4b5ea149070b4db27774-large.png Regenerating: small => 78172a3c963b4b5ea149070b4db27774-small.png Regenerating: medium => 78172a3c963b4b5ea149070b4db27774-medium.png Deleting: 78172a3c963b4b5ea149070b4db27774-original.png Regenerating: original => 78172a3c963b4b5ea149070b4db27774-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1k4uu7i.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-m7xk7q.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-m7xk7q.png => 78172a3c963b4b5ea149070b4db27774-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1k4uu7i.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1131psc.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1131psc.png => 78172a3c963b4b5ea149070b4db27774-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1k4uu7i.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1ot1jyx.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1ot1jyx.png => 78172a3c963b4b5ea149070b4db27774-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1k4uu7i.png' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-r8soom.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-r8soom.png => 78172a3c963b4b5ea149070b4db27774-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1k4uu7i.png' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1kh9ig8.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1kh9ig8.png => 78172a3c963b4b5ea149070b4db27774-large.png SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"original":"78172a3c963b4b5ea149070b4db27774-original.png","tiny":"78172a3c963b4b5ea149070b4db27774-tiny.png","small":"78172a3c963b4b5ea149070b4db27774-small.png","medium":"78172a3c963b4b5ea149070b4db27774-medium.png","large":"78172a3c963b4b5ea149070b4db27774-large.png"},"old_paths":[],"id":"78172a3c963b4b5ea149070b4db27774","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-06T09:34:46.089-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 43]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Reprocessing Shop #43 => logo Deleting: 78172a3c963b4b5ea149070b4db27774-tiny.png Regenerating: tiny => 78172a3c963b4b5ea149070b4db27774-tiny.png Deleting: 78172a3c963b4b5ea149070b4db27774-large.png Regenerating: large => 78172a3c963b4b5ea149070b4db27774-large.png Deleting: 78172a3c963b4b5ea149070b4db27774-small.png Regenerating: small => 78172a3c963b4b5ea149070b4db27774-small.png Deleting: 78172a3c963b4b5ea149070b4db27774-medium.png Regenerating: medium => 78172a3c963b4b5ea149070b4db27774-medium.png Deleting: 78172a3c963b4b5ea149070b4db27774-original.png Regenerating: original => 78172a3c963b4b5ea149070b4db27774-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-16wa1g5.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-ml2b8r.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-ml2b8r.png => 78172a3c963b4b5ea149070b4db27774-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-16wa1g5.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-k96jj0.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-k96jj0.png => 78172a3c963b4b5ea149070b4db27774-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-16wa1g5.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1pkc0l3.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1pkc0l3.png => 78172a3c963b4b5ea149070b4db27774-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-16wa1g5.png' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-186gldp.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-186gldp.png => 78172a3c963b4b5ea149070b4db27774-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-16wa1g5.png' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-53lxyz.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-53lxyz.png => 78172a3c963b4b5ea149070b4db27774-large.png SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"original":"78172a3c963b4b5ea149070b4db27774-original.png","tiny":"78172a3c963b4b5ea149070b4db27774-tiny.png","small":"78172a3c963b4b5ea149070b4db27774-small.png","medium":"78172a3c963b4b5ea149070b4db27774-medium.png","large":"78172a3c963b4b5ea149070b4db27774-large.png"},"old_paths":[],"id":"78172a3c963b4b5ea149070b4db27774","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-06T09:34:46.089-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 43]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Reprocessing Shop #43 => logo Deleting: 78172a3c963b4b5ea149070b4db27774-tiny.png Regenerating: tiny => 78172a3c963b4b5ea149070b4db27774-tiny.png Deleting: 78172a3c963b4b5ea149070b4db27774-large.png Regenerating: large => 78172a3c963b4b5ea149070b4db27774-large.png Deleting: 78172a3c963b4b5ea149070b4db27774-small.png Regenerating: small => 78172a3c963b4b5ea149070b4db27774-small.png Deleting: 78172a3c963b4b5ea149070b4db27774-medium.png Regenerating: medium => 78172a3c963b4b5ea149070b4db27774-medium.png Deleting: 78172a3c963b4b5ea149070b4db27774-original.png Regenerating: original => 78172a3c963b4b5ea149070b4db27774-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-v81yxk.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-gkk2pn.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-gkk2pn.png => 78172a3c963b4b5ea149070b4db27774-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-v81yxk.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1cl5p15.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1cl5p15.png => 78172a3c963b4b5ea149070b4db27774-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-v81yxk.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-j005v5.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-j005v5.png => 78172a3c963b4b5ea149070b4db27774-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-v81yxk.png' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-nfluf4.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-nfluf4.png => 78172a3c963b4b5ea149070b4db27774-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-v81yxk.png' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-jww10k.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-jww10k.png => 78172a3c963b4b5ea149070b4db27774-large.png SQL (0.4ms) UPDATE "shops" SET "logo" = '{"paths":{"original":"78172a3c963b4b5ea149070b4db27774-original.png","tiny":"78172a3c963b4b5ea149070b4db27774-tiny.png","small":"78172a3c963b4b5ea149070b4db27774-small.png","medium":"78172a3c963b4b5ea149070b4db27774-medium.png","large":"78172a3c963b4b5ea149070b4db27774-large.png"},"old_paths":[],"id":"78172a3c963b4b5ea149070b4db27774","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-06T09:34:46.089-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 43]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 43]] [ActiveJob] [Attachs::Jobs::DeleteJob] [9aee778b-99b7-4fa6-830d-151914459fbe] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["78172a3c963b4b5ea149070b4db27774-tiny.png", "78172a3c963b4b5ea149070b4db27774-large.png", "78172a3c963b4b5ea149070b4db27774-small.png", "78172a3c963b4b5ea149070b4db27774-medium.png", "78172a3c963b4b5ea149070b4db27774-original.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [9aee778b-99b7-4fa6-830d-151914459fbe] Deleting: 78172a3c963b4b5ea149070b4db27774-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [9aee778b-99b7-4fa6-830d-151914459fbe] Deleting: 78172a3c963b4b5ea149070b4db27774-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [9aee778b-99b7-4fa6-830d-151914459fbe] Deleting: 78172a3c963b4b5ea149070b4db27774-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [9aee778b-99b7-4fa6-830d-151914459fbe] Deleting: 78172a3c963b4b5ea149070b4db27774-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [9aee778b-99b7-4fa6-830d-151914459fbe] Deleting: 78172a3c963b4b5ea149070b4db27774-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [9aee778b-99b7-4fa6-830d-151914459fbe] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2405.77ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 9aee778b-99b7-4fa6-830d-151914459fbe) to Inline(default) with arguments: ["78172a3c963b4b5ea149070b4db27774-tiny.png", "78172a3c963b4b5ea149070b4db27774-large.png", "78172a3c963b4b5ea149070b4db27774-small.png", "78172a3c963b4b5ea149070b4db27774-medium.png", "78172a3c963b4b5ea149070b4db27774-original.png"]  (0.3ms) ROLLBACK  (0.1ms) BEGIN --------------------------- HelperTest: test_fields_for --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-ltwv74.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"7e6828dda8794961882c25a0f675c5a2\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-06T09:35:19.261-03:00\",\"paths\":{\"original\":\"7e6828dda8794961882c25a0f675c5a2-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-12-06 12:35:19.261730"], ["updated_at", "2016-12-06 12:35:19.261730"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-ltwv74.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-209mjd.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-209mjd.jpg => 7e6828dda8794961882c25a0f675c5a2-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [7606b9ad-1ff4-433b-a9c7-5366f667751c] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["7e6828dda8794961882c25a0f675c5a2-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [7606b9ad-1ff4-433b-a9c7-5366f667751c] Deleting: 7e6828dda8794961882c25a0f675c5a2-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [7606b9ad-1ff4-433b-a9c7-5366f667751c] Performed Attachs::Jobs::DeleteJob from Inline(default) in 366.22ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 7606b9ad-1ff4-433b-a9c7-5366f667751c) to Inline(default) with arguments: ["7e6828dda8794961882c25a0f675c5a2-original.jpg"]  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------- ValidatorTest: test_size_greater_than ------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161206-40130-adxito.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-13a7cdg.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-4gq8bh.jpg'  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------- ValidatorTest: test_content_type_with ------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-zqqawg.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-q9kgfg.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-xfp2fi.jpg'  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------- ValidatorTest: test_size_within ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161206-40130-18dmhxu.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-32utmr.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161206-40130-1fduqtf.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-15yttbt.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-1r7y1po.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- ValidatorTest: test_size_in --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161206-40130-6vzn0j.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-126xp4c.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161206-40130-1z0yfca.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-1tvpu27.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-1pykxpg.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- ValidatorTest: test_size_less_than ---------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161206-40130-1ot03oh.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-10ytfg6.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-4inhrj.jpg'  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------- ValidatorTest: test_content_type_in ----------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-1jez66z.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-1ib7v3r.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-1xwju84.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- ValidatorTest: test_content_type_within --------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-11vsrp4.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-16z50qe.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-1y7ugcl.jpg'  (0.2ms) ROLLBACK  (0.2ms) BEGIN --------------------------- ValidatorTest: test_methods ---------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------- UploadTest: test_upload ----------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-bz1pw.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "uploads" ("file", "record_type", "record_attribute", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "{\"id\":\"961767f55e26480aa62f4060b429fb11\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-06T09:35:20.640-03:00\",\"paths\":{\"original\":\"961767f55e26480aa62f4060b429fb11-original.jpg\",\"tiny\":\"961767f55e26480aa62f4060b429fb11-tiny.jpg\",\"small\":\"961767f55e26480aa62f4060b429fb11-small.jpg\",\"medium\":\"961767f55e26480aa62f4060b429fb11-medium.jpg\",\"large\":\"961767f55e26480aa62f4060b429fb11-large.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["record_type", "Shop"], ["record_attribute", "logo"], ["created_at", "2016-12-06 12:35:20.640953"], ["updated_at", "2016-12-06 12:35:20.640953"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-bz1pw.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1u7e2aq.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1u7e2aq.jpg => 961767f55e26480aa62f4060b429fb11-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-bz1pw.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-a8f72d.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-a8f72d.jpg => 961767f55e26480aa62f4060b429fb11-tiny.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-bz1pw.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-19xs4bz.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-19xs4bz.jpg => 961767f55e26480aa62f4060b429fb11-small.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-bz1pw.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-obooyn.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-obooyn.jpg => 961767f55e26480aa62f4060b429fb11-medium.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-bz1pw.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1buzjsk.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1buzjsk.jpg => 961767f55e26480aa62f4060b429fb11-large.jpg  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"6d875f4814e94881aa05736f1809d73f\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-06T09:35:22.929-03:00\",\"paths\":{\"original\":\"6d875f4814e94881aa05736f1809d73f-original.png\",\"tiny\":\"6d875f4814e94881aa05736f1809d73f-tiny.png\",\"small\":\"6d875f4814e94881aa05736f1809d73f-small.png\",\"medium\":\"6d875f4814e94881aa05736f1809d73f-medium.png\",\"large\":\"6d875f4814e94881aa05736f1809d73f-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-06 12:35:22.929975"], ["updated_at", "2016-12-06 12:35:22.929975"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1ust6fc.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1hrcdww.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1hrcdww.png => 6d875f4814e94881aa05736f1809d73f-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1ust6fc.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-9uj2qd.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-9uj2qd.png => 6d875f4814e94881aa05736f1809d73f-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1ust6fc.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1s5cmkx.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1s5cmkx.png => 6d875f4814e94881aa05736f1809d73f-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1ust6fc.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1k47sfc.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1k47sfc.png => 6d875f4814e94881aa05736f1809d73f-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1ust6fc.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-12pb1ml.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-12pb1ml.png => 6d875f4814e94881aa05736f1809d73f-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [ece83192-469f-4988-9002-829b0ef9b274] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["6d875f4814e94881aa05736f1809d73f-original.png", "6d875f4814e94881aa05736f1809d73f-tiny.png", "6d875f4814e94881aa05736f1809d73f-small.png", "6d875f4814e94881aa05736f1809d73f-medium.png", "6d875f4814e94881aa05736f1809d73f-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [ece83192-469f-4988-9002-829b0ef9b274] Deleting: 6d875f4814e94881aa05736f1809d73f-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [ece83192-469f-4988-9002-829b0ef9b274] Deleting: 6d875f4814e94881aa05736f1809d73f-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [ece83192-469f-4988-9002-829b0ef9b274] Deleting: 6d875f4814e94881aa05736f1809d73f-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [ece83192-469f-4988-9002-829b0ef9b274] Deleting: 6d875f4814e94881aa05736f1809d73f-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [ece83192-469f-4988-9002-829b0ef9b274] Deleting: 6d875f4814e94881aa05736f1809d73f-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [ece83192-469f-4988-9002-829b0ef9b274] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2961.5ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: ece83192-469f-4988-9002-829b0ef9b274) to Inline(default) with arguments: ["6d875f4814e94881aa05736f1809d73f-original.png", "6d875f4814e94881aa05736f1809d73f-tiny.png", "6d875f4814e94881aa05736f1809d73f-small.png", "6d875f4814e94881aa05736f1809d73f-medium.png", "6d875f4814e94881aa05736f1809d73f-large.png"] Upload Load (0.4ms) SELECT "uploads".* FROM "uploads" WHERE "uploads"."id" = $1 LIMIT 1 [["id", 8]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"paths\":{\"original\":\"2052c0bd587640d5b389168ea6b31b90-original.png\",\"tiny\":\"2052c0bd587640d5b389168ea6b31b90-tiny.png\",\"small\":\"2052c0bd587640d5b389168ea6b31b90-small.png\",\"medium\":\"2052c0bd587640d5b389168ea6b31b90-medium.png\",\"large\":\"2052c0bd587640d5b389168ea6b31b90-large.png\"},\"old_paths\":[],\"id\":\"2052c0bd587640d5b389168ea6b31b90\",\"size\":74474,\"ratio\":0.6725,\"width\":400,\"height\":269,\"filename\":\"image.jpg\",\"uploaded_at\":\"2016-12-06T09:35:34.648-03:00\",\"content_type\":\"image/jpeg\"}"], ["created_at", "2016-12-06 12:35:34.649045"], ["updated_at", "2016-12-06 12:35:34.649045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Copying: 961767f55e26480aa62f4060b429fb11-tiny.jpg => 2052c0bd587640d5b389168ea6b31b90-tiny.png Copying: 961767f55e26480aa62f4060b429fb11-large.jpg => 2052c0bd587640d5b389168ea6b31b90-large.png Copying: 961767f55e26480aa62f4060b429fb11-small.jpg => 2052c0bd587640d5b389168ea6b31b90-small.png Copying: 961767f55e26480aa62f4060b429fb11-medium.jpg => 2052c0bd587640d5b389168ea6b31b90-medium.png Copying: 961767f55e26480aa62f4060b429fb11-original.jpg => 2052c0bd587640d5b389168ea6b31b90-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [0144f354-3445-495d-8859-e74e98b847b9] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["2052c0bd587640d5b389168ea6b31b90-original.png", "2052c0bd587640d5b389168ea6b31b90-tiny.png", "2052c0bd587640d5b389168ea6b31b90-small.png", "2052c0bd587640d5b389168ea6b31b90-medium.png", "2052c0bd587640d5b389168ea6b31b90-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [0144f354-3445-495d-8859-e74e98b847b9] Deleting: 2052c0bd587640d5b389168ea6b31b90-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [0144f354-3445-495d-8859-e74e98b847b9] Deleting: 2052c0bd587640d5b389168ea6b31b90-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [0144f354-3445-495d-8859-e74e98b847b9] Deleting: 2052c0bd587640d5b389168ea6b31b90-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [0144f354-3445-495d-8859-e74e98b847b9] Deleting: 2052c0bd587640d5b389168ea6b31b90-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [0144f354-3445-495d-8859-e74e98b847b9] Deleting: 2052c0bd587640d5b389168ea6b31b90-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [0144f354-3445-495d-8859-e74e98b847b9] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2556.96ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 0144f354-3445-495d-8859-e74e98b847b9) to Inline(default) with arguments: ["2052c0bd587640d5b389168ea6b31b90-original.png", "2052c0bd587640d5b389168ea6b31b90-tiny.png", "2052c0bd587640d5b389168ea6b31b90-small.png", "2052c0bd587640d5b389168ea6b31b90-medium.png", "2052c0bd587640d5b389168ea6b31b90-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [8a1e77c0-c7a4-42e8-8f06-8fad4d54bd25] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["961767f55e26480aa62f4060b429fb11-original.jpg", "961767f55e26480aa62f4060b429fb11-tiny.jpg", "961767f55e26480aa62f4060b429fb11-small.jpg", "961767f55e26480aa62f4060b429fb11-medium.jpg", "961767f55e26480aa62f4060b429fb11-large.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [8a1e77c0-c7a4-42e8-8f06-8fad4d54bd25] Deleting: 961767f55e26480aa62f4060b429fb11-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [8a1e77c0-c7a4-42e8-8f06-8fad4d54bd25] Deleting: 961767f55e26480aa62f4060b429fb11-tiny.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [8a1e77c0-c7a4-42e8-8f06-8fad4d54bd25] Deleting: 961767f55e26480aa62f4060b429fb11-small.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [8a1e77c0-c7a4-42e8-8f06-8fad4d54bd25] Deleting: 961767f55e26480aa62f4060b429fb11-medium.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [8a1e77c0-c7a4-42e8-8f06-8fad4d54bd25] Deleting: 961767f55e26480aa62f4060b429fb11-large.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [8a1e77c0-c7a4-42e8-8f06-8fad4d54bd25] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2057.08ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 8a1e77c0-c7a4-42e8-8f06-8fad4d54bd25) to Inline(default) with arguments: ["961767f55e26480aa62f4060b429fb11-original.jpg", "961767f55e26480aa62f4060b429fb11-tiny.jpg", "961767f55e26480aa62f4060b429fb11-small.jpg", "961767f55e26480aa62f4060b429fb11-medium.jpg", "961767f55e26480aa62f4060b429fb11-large.jpg"]  (0.3ms) ROLLBACK  (0.2ms) BEGIN ------------------------- ConcernTest: test_inherit -------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- AttachmentTest: test_nested_attributes --------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_renames ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-by9p3i.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("logo", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["logo", "{\"id\":\"f9971aef229743989def502c81a07871\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-06T09:35:44.030-03:00\",\"paths\":{\"original\":\"anderstons/f9971aef229743989def502c81a07871-original.png\",\"tiny\":\"anderstons/f9971aef229743989def502c81a07871-tiny.png\",\"small\":\"anderstons/f9971aef229743989def502c81a07871-small.png\",\"medium\":\"anderstons/f9971aef229743989def502c81a07871-medium.png\",\"large\":\"anderstons/f9971aef229743989def502c81a07871-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["name", "Anderstons"], ["created_at", "2016-12-06 12:35:44.031382"], ["updated_at", "2016-12-06 12:35:44.031382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-by9p3i.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-x4216w.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-x4216w.png => anderstons/f9971aef229743989def502c81a07871-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-by9p3i.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-g5ny2i.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-g5ny2i.png => anderstons/f9971aef229743989def502c81a07871-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-by9p3i.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-l8fb5t.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-l8fb5t.png => anderstons/f9971aef229743989def502c81a07871-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-by9p3i.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1mf6opf.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1mf6opf.png => anderstons/f9971aef229743989def502c81a07871-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-by9p3i.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1l5h754.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1l5h754.png => anderstons/f9971aef229743989def502c81a07871-large.png  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "shops" SET "name" = $1, "updated_at" = $2 WHERE "shops"."id" = $3 [["name", "Musicians Friend"], ["updated_at", "2016-12-06 12:35:52.865909"], ["id", 46]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 46]] [ActiveJob] [Attachs::Jobs::UpdateJob] [2ce9a574-1010-46c8-a00b-3faae06702a0] Performing Attachs::Jobs::UpdateJob from Inline(default) with arguments: gid://dummy/Shop/46, "logo" [ActiveJob] [Attachs::Jobs::UpdateJob] [2ce9a574-1010-46c8-a00b-3faae06702a0] Copying: anderstons/f9971aef229743989def502c81a07871-original.png => musicians-friend/f9971aef229743989def502c81a07871-original.png [ActiveJob] [Attachs::Jobs::UpdateJob] [2ce9a574-1010-46c8-a00b-3faae06702a0] Copying: anderstons/f9971aef229743989def502c81a07871-tiny.png => musicians-friend/f9971aef229743989def502c81a07871-tiny.png [ActiveJob] [Attachs::Jobs::UpdateJob] [2ce9a574-1010-46c8-a00b-3faae06702a0] Copying: anderstons/f9971aef229743989def502c81a07871-small.png => musicians-friend/f9971aef229743989def502c81a07871-small.png [ActiveJob] [Attachs::Jobs::UpdateJob] [2ce9a574-1010-46c8-a00b-3faae06702a0] Copying: anderstons/f9971aef229743989def502c81a07871-medium.png => musicians-friend/f9971aef229743989def502c81a07871-medium.png [ActiveJob] [Attachs::Jobs::UpdateJob] [2ce9a574-1010-46c8-a00b-3faae06702a0] Copying: anderstons/f9971aef229743989def502c81a07871-large.png => musicians-friend/f9971aef229743989def502c81a07871-large.png [ActiveJob] [Attachs::Jobs::UpdateJob] [2ce9a574-1010-46c8-a00b-3faae06702a0] SQL (0.5ms) UPDATE "shops" SET "logo" = '{"paths":{"tiny":"musicians-friend/f9971aef229743989def502c81a07871-tiny.png","large":"musicians-friend/f9971aef229743989def502c81a07871-large.png","small":"musicians-friend/f9971aef229743989def502c81a07871-small.png","medium":"musicians-friend/f9971aef229743989def502c81a07871-medium.png","original":"musicians-friend/f9971aef229743989def502c81a07871-original.png"},"old_paths":["anderstons/f9971aef229743989def502c81a07871-original.png","anderstons/f9971aef229743989def502c81a07871-tiny.png","anderstons/f9971aef229743989def502c81a07871-small.png","anderstons/f9971aef229743989def502c81a07871-medium.png","anderstons/f9971aef229743989def502c81a07871-large.png"],"id":"f9971aef229743989def502c81a07871","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-06T09:35:44.030-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 46]] [ActiveJob] [Attachs::Jobs::UpdateJob] [2ce9a574-1010-46c8-a00b-3faae06702a0] Performed Attachs::Jobs::UpdateJob from Inline(default) in 3993.04ms [ActiveJob] Enqueued Attachs::Jobs::UpdateJob (Job ID: 2ce9a574-1010-46c8-a00b-3faae06702a0) to Inline(default) with arguments: gid://dummy/Shop/46, "logo" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 46]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 46]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Attachs::Jobs::DeleteJob] [80da64e0-4e4c-4038-80d7-8357554068e5] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["musicians-friend/f9971aef229743989def502c81a07871-tiny.png", "musicians-friend/f9971aef229743989def502c81a07871-large.png", "musicians-friend/f9971aef229743989def502c81a07871-small.png", "musicians-friend/f9971aef229743989def502c81a07871-medium.png", "musicians-friend/f9971aef229743989def502c81a07871-original.png", "anderstons/f9971aef229743989def502c81a07871-original.png", "anderstons/f9971aef229743989def502c81a07871-tiny.png", "anderstons/f9971aef229743989def502c81a07871-small.png", "anderstons/f9971aef229743989def502c81a07871-medium.png", "anderstons/f9971aef229743989def502c81a07871-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [80da64e0-4e4c-4038-80d7-8357554068e5] Deleting: musicians-friend/f9971aef229743989def502c81a07871-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [80da64e0-4e4c-4038-80d7-8357554068e5] Deleting: musicians-friend/f9971aef229743989def502c81a07871-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [80da64e0-4e4c-4038-80d7-8357554068e5] Deleting: musicians-friend/f9971aef229743989def502c81a07871-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [80da64e0-4e4c-4038-80d7-8357554068e5] Deleting: musicians-friend/f9971aef229743989def502c81a07871-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [80da64e0-4e4c-4038-80d7-8357554068e5] Deleting: musicians-friend/f9971aef229743989def502c81a07871-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [80da64e0-4e4c-4038-80d7-8357554068e5] Deleting: anderstons/f9971aef229743989def502c81a07871-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [80da64e0-4e4c-4038-80d7-8357554068e5] Deleting: anderstons/f9971aef229743989def502c81a07871-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [80da64e0-4e4c-4038-80d7-8357554068e5] Deleting: anderstons/f9971aef229743989def502c81a07871-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [80da64e0-4e4c-4038-80d7-8357554068e5] Deleting: anderstons/f9971aef229743989def502c81a07871-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [80da64e0-4e4c-4038-80d7-8357554068e5] Deleting: anderstons/f9971aef229743989def502c81a07871-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [80da64e0-4e4c-4038-80d7-8357554068e5] Performed Attachs::Jobs::DeleteJob from Inline(default) in 4609.7ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 80da64e0-4e4c-4038-80d7-8357554068e5) to Inline(default) with arguments: ["musicians-friend/f9971aef229743989def502c81a07871-tiny.png", "musicians-friend/f9971aef229743989def502c81a07871-large.png", "musicians-friend/f9971aef229743989def502c81a07871-small.png", "musicians-friend/f9971aef229743989def502c81a07871-medium.png", "musicians-friend/f9971aef229743989def502c81a07871-original.png", "anderstons/f9971aef229743989def502c81a07871-original.png", "anderstons/f9971aef229743989def502c81a07871-tiny.png", "anderstons/f9971aef229743989def502c81a07871-small.png", "anderstons/f9971aef229743989def502c81a07871-medium.png", "anderstons/f9971aef229743989def502c81a07871-large.png"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- AttachmentTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-ymt1hr.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"a5f95d5e809a4fd7980b57853ce1cc60\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-06T09:36:30.161-03:00\",\"paths\":{\"original\":\"a5f95d5e809a4fd7980b57853ce1cc60-original.png\",\"tiny\":\"a5f95d5e809a4fd7980b57853ce1cc60-tiny.png\",\"small\":\"a5f95d5e809a4fd7980b57853ce1cc60-small.png\",\"medium\":\"a5f95d5e809a4fd7980b57853ce1cc60-medium.png\",\"large\":\"a5f95d5e809a4fd7980b57853ce1cc60-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-06 12:36:30.162000"], ["updated_at", "2016-12-06 12:36:30.162000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-ymt1hr.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-lr1epo.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-lr1epo.png => a5f95d5e809a4fd7980b57853ce1cc60-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-ymt1hr.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-10pydiw.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-10pydiw.png => a5f95d5e809a4fd7980b57853ce1cc60-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-ymt1hr.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-165rqiu.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-165rqiu.png => a5f95d5e809a4fd7980b57853ce1cc60-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-ymt1hr.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-a6wg6j.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-a6wg6j.png => a5f95d5e809a4fd7980b57853ce1cc60-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-ymt1hr.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-7cp501.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-7cp501.png => a5f95d5e809a4fd7980b57853ce1cc60-large.png Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 47]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 47]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Attachs::Jobs::DeleteJob] [ae4c2c7a-2859-4789-b139-edb16a51ca9d] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["a5f95d5e809a4fd7980b57853ce1cc60-tiny.png", "a5f95d5e809a4fd7980b57853ce1cc60-large.png", "a5f95d5e809a4fd7980b57853ce1cc60-small.png", "a5f95d5e809a4fd7980b57853ce1cc60-medium.png", "a5f95d5e809a4fd7980b57853ce1cc60-original.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [ae4c2c7a-2859-4789-b139-edb16a51ca9d] Deleting: a5f95d5e809a4fd7980b57853ce1cc60-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [ae4c2c7a-2859-4789-b139-edb16a51ca9d] Deleting: a5f95d5e809a4fd7980b57853ce1cc60-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [ae4c2c7a-2859-4789-b139-edb16a51ca9d] Deleting: a5f95d5e809a4fd7980b57853ce1cc60-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [ae4c2c7a-2859-4789-b139-edb16a51ca9d] Deleting: a5f95d5e809a4fd7980b57853ce1cc60-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [ae4c2c7a-2859-4789-b139-edb16a51ca9d] Deleting: a5f95d5e809a4fd7980b57853ce1cc60-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [ae4c2c7a-2859-4789-b139-edb16a51ca9d] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2403.54ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: ae4c2c7a-2859-4789-b139-edb16a51ca9d) to Inline(default) with arguments: ["a5f95d5e809a4fd7980b57853ce1cc60-tiny.png", "a5f95d5e809a4fd7980b57853ce1cc60-large.png", "a5f95d5e809a4fd7980b57853ce1cc60-small.png", "a5f95d5e809a4fd7980b57853ce1cc60-medium.png", "a5f95d5e809a4fd7980b57853ce1cc60-original.png"]  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_default ----------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------- GeneratorTest: test_upload --------------------------  (0.3ms) ROLLBACK  (0.2ms) BEGIN --------------------------- GeneratorTest: test_install ---------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- CollectionTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-hzg0e9.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-4zovz5.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"1ac0ea3df07246d6a9d10842871ffc30\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-06T09:36:57.508-03:00\",\"paths\":{\"original\":\"1ac0ea3df07246d6a9d10842871ffc30-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725},{\"id\":\"3a5c60003b2a4984a418d90d1b4e9c7e\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-06T09:36:57.509-03:00\",\"paths\":{\"original\":\"3a5c60003b2a4984a418d90d1b4e9c7e-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-12-06 12:36:57.510339"], ["updated_at", "2016-12-06 12:36:57.510339"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-hzg0e9.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1cjihh8.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1cjihh8.jpg => 1ac0ea3df07246d6a9d10842871ffc30-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-4zovz5.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-10wj399.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-10wj399.jpg => 3a5c60003b2a4984a418d90d1b4e9c7e-original.jpg Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 26]] [ActiveJob] [Attachs::Jobs::DeleteJob] [d111288c-1a4f-4540-816a-fe6f5e0426f8] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["1ac0ea3df07246d6a9d10842871ffc30-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [d111288c-1a4f-4540-816a-fe6f5e0426f8] Deleting: 1ac0ea3df07246d6a9d10842871ffc30-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [d111288c-1a4f-4540-816a-fe6f5e0426f8] Performed Attachs::Jobs::DeleteJob from Inline(default) in 459.26ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: d111288c-1a4f-4540-816a-fe6f5e0426f8) to Inline(default) with arguments: ["1ac0ea3df07246d6a9d10842871ffc30-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [ad3e834a-9636-4d97-9f4d-3ee9ac13456f] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["3a5c60003b2a4984a418d90d1b4e9c7e-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [ad3e834a-9636-4d97-9f4d-3ee9ac13456f] Deleting: 3a5c60003b2a4984a418d90d1b4e9c7e-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [ad3e834a-9636-4d97-9f4d-3ee9ac13456f] Performed Attachs::Jobs::DeleteJob from Inline(default) in 360.78ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: ad3e834a-9636-4d97-9f4d-3ee9ac13456f) to Inline(default) with arguments: ["3a5c60003b2a4984a418d90d1b4e9c7e-original.jpg"]  (0.4ms) ROLLBACK  (0.1ms) BEGIN -------------------------- CollectionTest: test_index -------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-663fau.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-heliud.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"f91c71e5fa6440a39eeb161a4aa2ac5c\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-06T09:37:00.016-03:00\",\"paths\":{\"original\":\"f91c71e5fa6440a39eeb161a4aa2ac5c-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725,\"position\":0},{\"id\":\"aade3d9a7e984f61a7ad9bd26c99b5bf\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-06T09:37:00.018-03:00\",\"paths\":{\"original\":\"aade3d9a7e984f61a7ad9bd26c99b5bf-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-12-06 12:37:00.021498"], ["updated_at", "2016-12-06 12:37:00.021498"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 27]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------- CollectionTest: test_nested_attributes -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-4g93s2.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-106ud5z.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------- QueryTest: test_exist --------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-cpt70t.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("name", "logo", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "first"], ["logo", "{\"id\":\"143ca900d75040c68f42975cddde1c17\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-06T09:37:00.065-03:00\",\"paths\":{\"original\":\"first/143ca900d75040c68f42975cddde1c17-original.png\",\"tiny\":\"first/143ca900d75040c68f42975cddde1c17-tiny.png\",\"small\":\"first/143ca900d75040c68f42975cddde1c17-small.png\",\"medium\":\"first/143ca900d75040c68f42975cddde1c17-medium.png\",\"large\":\"first/143ca900d75040c68f42975cddde1c17-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-06 12:37:00.067700"], ["updated_at", "2016-12-06 12:37:00.067700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-cpt70t.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-7qo66y.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-7qo66y.png => first/143ca900d75040c68f42975cddde1c17-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-cpt70t.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-slenf.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-slenf.png => first/143ca900d75040c68f42975cddde1c17-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-cpt70t.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1bdt01u.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-1bdt01u.png => first/143ca900d75040c68f42975cddde1c17-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-cpt70t.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-lasyhz.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-lasyhz.png => first/143ca900d75040c68f42975cddde1c17-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-cpt70t.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-dy9a3z.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-dy9a3z.png => first/143ca900d75040c68f42975cddde1c17-large.png  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "shops" SET "name" = $1, "updated_at" = $2 WHERE "shops"."id" = $3 [["name", "second"], ["updated_at", "2016-12-06 12:37:03.206877"], ["id", 48]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 48]] [ActiveJob] [Attachs::Jobs::UpdateJob] [5440d035-8da3-4581-a021-d797d22df7dd] Performing Attachs::Jobs::UpdateJob from Inline(default) with arguments: gid://dummy/Shop/48, "logo" [ActiveJob] [Attachs::Jobs::UpdateJob] [5440d035-8da3-4581-a021-d797d22df7dd] Copying: first/143ca900d75040c68f42975cddde1c17-original.png => second/143ca900d75040c68f42975cddde1c17-original.png [ActiveJob] [Attachs::Jobs::UpdateJob] [5440d035-8da3-4581-a021-d797d22df7dd] Copying: first/143ca900d75040c68f42975cddde1c17-tiny.png => second/143ca900d75040c68f42975cddde1c17-tiny.png [ActiveJob] [Attachs::Jobs::UpdateJob] [5440d035-8da3-4581-a021-d797d22df7dd] Copying: first/143ca900d75040c68f42975cddde1c17-small.png => second/143ca900d75040c68f42975cddde1c17-small.png [ActiveJob] [Attachs::Jobs::UpdateJob] [5440d035-8da3-4581-a021-d797d22df7dd] Copying: first/143ca900d75040c68f42975cddde1c17-medium.png => second/143ca900d75040c68f42975cddde1c17-medium.png [ActiveJob] [Attachs::Jobs::UpdateJob] [5440d035-8da3-4581-a021-d797d22df7dd] Copying: first/143ca900d75040c68f42975cddde1c17-large.png => second/143ca900d75040c68f42975cddde1c17-large.png [ActiveJob] [Attachs::Jobs::UpdateJob] [5440d035-8da3-4581-a021-d797d22df7dd] SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"tiny":"second/143ca900d75040c68f42975cddde1c17-tiny.png","large":"second/143ca900d75040c68f42975cddde1c17-large.png","small":"second/143ca900d75040c68f42975cddde1c17-small.png","medium":"second/143ca900d75040c68f42975cddde1c17-medium.png","original":"second/143ca900d75040c68f42975cddde1c17-original.png"},"old_paths":["first/143ca900d75040c68f42975cddde1c17-original.png","first/143ca900d75040c68f42975cddde1c17-tiny.png","first/143ca900d75040c68f42975cddde1c17-small.png","first/143ca900d75040c68f42975cddde1c17-medium.png","first/143ca900d75040c68f42975cddde1c17-large.png"],"id":"143ca900d75040c68f42975cddde1c17","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-06T09:37:00.065-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 48]] [ActiveJob] [Attachs::Jobs::UpdateJob] [5440d035-8da3-4581-a021-d797d22df7dd] Performed Attachs::Jobs::UpdateJob from Inline(default) in 2466.66ms [ActiveJob] Enqueued Attachs::Jobs::UpdateJob (Job ID: 5440d035-8da3-4581-a021-d797d22df7dd) to Inline(default) with arguments: gid://dummy/Shop/48, "logo" Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-46glz1.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-12cawim.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"9851e7346a204c7f966fa00e2353ba4f\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-06T09:37:05.698-03:00\",\"paths\":{\"original\":\"9851e7346a204c7f966fa00e2353ba4f-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725},{\"id\":\"69beb9c39f364f278bf10c9e25c7c7fb\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-06T09:37:05.700-03:00\",\"paths\":{\"original\":\"69beb9c39f364f278bf10c9e25c7c7fb-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-12-06 12:37:05.701695"], ["updated_at", "2016-12-06 12:37:05.701695"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-46glz1.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-14wz874.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-14wz874.jpg => 9851e7346a204c7f966fa00e2353ba4f-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40130-12cawim.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-wveo34.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40130-wveo34.jpg => 69beb9c39f364f278bf10c9e25c7c7fb-original.jpg  (1.7ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/143ca900d75040c68f42975cddde1c17-original.png' OR old_paths.value = 'first/143ca900d75040c68f42975cddde1c17-original.png') UNION SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/143ca900d75040c68f42975cddde1c17-original.png' OR old_paths.value = 'first/143ca900d75040c68f42975cddde1c17-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/143ca900d75040c68f42975cddde1c17-original.png' OR old_paths.value = 'first/143ca900d75040c68f42975cddde1c17-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/143ca900d75040c68f42975cddde1c17-original.png' OR old_paths.value = 'first/143ca900d75040c68f42975cddde1c17-original.png')  (0.9ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/143ca900d75040c68f42975cddde1c17-original.png' OR old_paths.value = 'first/143ca900d75040c68f42975cddde1c17-original.png') UNION SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/143ca900d75040c68f42975cddde1c17-original.png' OR old_paths.value = 'first/143ca900d75040c68f42975cddde1c17-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/143ca900d75040c68f42975cddde1c17-original.png' OR old_paths.value = 'first/143ca900d75040c68f42975cddde1c17-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/143ca900d75040c68f42975cddde1c17-original.png' OR old_paths.value = 'first/143ca900d75040c68f42975cddde1c17-original.png')  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '9851e7346a204c7f966fa00e2353ba4f-original.jpg' OR old_paths.value = '9851e7346a204c7f966fa00e2353ba4f-original.jpg') UNION SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = '9851e7346a204c7f966fa00e2353ba4f-original.jpg' OR old_paths.value = '9851e7346a204c7f966fa00e2353ba4f-original.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '9851e7346a204c7f966fa00e2353ba4f-original.jpg' OR old_paths.value = '9851e7346a204c7f966fa00e2353ba4f-original.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '9851e7346a204c7f966fa00e2353ba4f-original.jpg' OR old_paths.value = '9851e7346a204c7f966fa00e2353ba4f-original.jpg') [ActiveJob] [Attachs::Jobs::DeleteJob] [c139786b-c23c-4cdc-baf8-263fef9fb6c7] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["first/143ca900d75040c68f42975cddde1c17-original.png", "first/143ca900d75040c68f42975cddde1c17-tiny.png", "first/143ca900d75040c68f42975cddde1c17-small.png", "first/143ca900d75040c68f42975cddde1c17-medium.png", "first/143ca900d75040c68f42975cddde1c17-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [c139786b-c23c-4cdc-baf8-263fef9fb6c7] Deleting: first/143ca900d75040c68f42975cddde1c17-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [c139786b-c23c-4cdc-baf8-263fef9fb6c7] Deleting: first/143ca900d75040c68f42975cddde1c17-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [c139786b-c23c-4cdc-baf8-263fef9fb6c7] Deleting: first/143ca900d75040c68f42975cddde1c17-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [c139786b-c23c-4cdc-baf8-263fef9fb6c7] Deleting: first/143ca900d75040c68f42975cddde1c17-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [c139786b-c23c-4cdc-baf8-263fef9fb6c7] Deleting: first/143ca900d75040c68f42975cddde1c17-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [c139786b-c23c-4cdc-baf8-263fef9fb6c7] Performed Attachs::Jobs::DeleteJob from Inline(default) in 1933.69ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: c139786b-c23c-4cdc-baf8-263fef9fb6c7) to Inline(default) with arguments: ["first/143ca900d75040c68f42975cddde1c17-original.png", "first/143ca900d75040c68f42975cddde1c17-tiny.png", "first/143ca900d75040c68f42975cddde1c17-small.png", "first/143ca900d75040c68f42975cddde1c17-medium.png", "first/143ca900d75040c68f42975cddde1c17-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [1e58e5a3-8ade-49c7-826c-eee3a5d17504] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["9851e7346a204c7f966fa00e2353ba4f-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [1e58e5a3-8ade-49c7-826c-eee3a5d17504] Deleting: 9851e7346a204c7f966fa00e2353ba4f-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [1e58e5a3-8ade-49c7-826c-eee3a5d17504] Performed Attachs::Jobs::DeleteJob from Inline(default) in 358.63ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 1e58e5a3-8ade-49c7-826c-eee3a5d17504) to Inline(default) with arguments: ["9851e7346a204c7f966fa00e2353ba4f-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [a97fd654-e716-4e25-ae58-d52a92370d80] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["69beb9c39f364f278bf10c9e25c7c7fb-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [a97fd654-e716-4e25-ae58-d52a92370d80] Deleting: 69beb9c39f364f278bf10c9e25c7c7fb-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [a97fd654-e716-4e25-ae58-d52a92370d80] Performed Attachs::Jobs::DeleteJob from Inline(default) in 363.67ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: a97fd654-e716-4e25-ae58-d52a92370d80) to Inline(default) with arguments: ["69beb9c39f364f278bf10c9e25c7c7fb-original.jpg"]  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------------- AttachmentTest: test_default ----------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- AttachmentTest: test_nested_attributes --------------------------------------  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------- AttachmentTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-1vnix1w.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"f61c60dacd2d46c2b00951b1b4e91cee\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-06T09:37:36.350-03:00\",\"paths\":{\"original\":\"f61c60dacd2d46c2b00951b1b4e91cee-original.png\",\"tiny\":\"f61c60dacd2d46c2b00951b1b4e91cee-tiny.png\",\"small\":\"f61c60dacd2d46c2b00951b1b4e91cee-small.png\",\"medium\":\"f61c60dacd2d46c2b00951b1b4e91cee-medium.png\",\"large\":\"f61c60dacd2d46c2b00951b1b4e91cee-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-06 12:37:36.351798"], ["updated_at", "2016-12-06 12:37:36.351798"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-1vnix1w.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1a11bvd.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1a11bvd.png => f61c60dacd2d46c2b00951b1b4e91cee-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-1vnix1w.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1nbs991.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1nbs991.png => f61c60dacd2d46c2b00951b1b4e91cee-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-1vnix1w.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-n5yxbr.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-n5yxbr.png => f61c60dacd2d46c2b00951b1b4e91cee-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-1vnix1w.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-ldpplo.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-ldpplo.png => f61c60dacd2d46c2b00951b1b4e91cee-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-1vnix1w.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-vm5mzl.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-vm5mzl.png => f61c60dacd2d46c2b00951b1b4e91cee-large.png Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 49]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 49]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Attachs::Jobs::DeleteJob] [def17e50-5241-4479-9ed3-7d0b15969f69] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["f61c60dacd2d46c2b00951b1b4e91cee-tiny.png", "f61c60dacd2d46c2b00951b1b4e91cee-large.png", "f61c60dacd2d46c2b00951b1b4e91cee-small.png", "f61c60dacd2d46c2b00951b1b4e91cee-medium.png", "f61c60dacd2d46c2b00951b1b4e91cee-original.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [def17e50-5241-4479-9ed3-7d0b15969f69] Deleting: f61c60dacd2d46c2b00951b1b4e91cee-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [def17e50-5241-4479-9ed3-7d0b15969f69] Deleting: f61c60dacd2d46c2b00951b1b4e91cee-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [def17e50-5241-4479-9ed3-7d0b15969f69] Deleting: f61c60dacd2d46c2b00951b1b4e91cee-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [def17e50-5241-4479-9ed3-7d0b15969f69] Deleting: f61c60dacd2d46c2b00951b1b4e91cee-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [def17e50-5241-4479-9ed3-7d0b15969f69] Deleting: f61c60dacd2d46c2b00951b1b4e91cee-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [def17e50-5241-4479-9ed3-7d0b15969f69] Performed Attachs::Jobs::DeleteJob from Inline(default) in 3274.31ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: def17e50-5241-4479-9ed3-7d0b15969f69) to Inline(default) with arguments: ["f61c60dacd2d46c2b00951b1b4e91cee-tiny.png", "f61c60dacd2d46c2b00951b1b4e91cee-large.png", "f61c60dacd2d46c2b00951b1b4e91cee-small.png", "f61c60dacd2d46c2b00951b1b4e91cee-medium.png", "f61c60dacd2d46c2b00951b1b4e91cee-original.png"]  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_renames ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-1gtyu34.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("logo", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["logo", "{\"id\":\"adffc75932c0461ca7106e95b9ad3eb5\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-06T09:38:04.288-03:00\",\"paths\":{\"original\":\"anderstons/adffc75932c0461ca7106e95b9ad3eb5-original.png\",\"tiny\":\"anderstons/adffc75932c0461ca7106e95b9ad3eb5-tiny.png\",\"small\":\"anderstons/adffc75932c0461ca7106e95b9ad3eb5-small.png\",\"medium\":\"anderstons/adffc75932c0461ca7106e95b9ad3eb5-medium.png\",\"large\":\"anderstons/adffc75932c0461ca7106e95b9ad3eb5-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["name", "Anderstons"], ["created_at", "2016-12-06 12:38:04.288750"], ["updated_at", "2016-12-06 12:38:04.288750"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-1gtyu34.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-y1s6dc.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-y1s6dc.png => anderstons/adffc75932c0461ca7106e95b9ad3eb5-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-1gtyu34.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-2a9vul.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-2a9vul.png => anderstons/adffc75932c0461ca7106e95b9ad3eb5-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-1gtyu34.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1kp3nzd.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1kp3nzd.png => anderstons/adffc75932c0461ca7106e95b9ad3eb5-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-1gtyu34.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1fnrxj.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1fnrxj.png => anderstons/adffc75932c0461ca7106e95b9ad3eb5-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-1gtyu34.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1eozwi7.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1eozwi7.png => anderstons/adffc75932c0461ca7106e95b9ad3eb5-large.png  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "shops" SET "name" = $1, "updated_at" = $2 WHERE "shops"."id" = $3 [["name", "Musicians Friend"], ["updated_at", "2016-12-06 12:38:14.697322"], ["id", 50]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 50]] [ActiveJob] [Attachs::Jobs::UpdateJob] [87818eba-519d-4e9e-b74c-d4fd4ed8111e] Performing Attachs::Jobs::UpdateJob from Inline(default) with arguments: gid://dummy/Shop/50, "logo" [ActiveJob] [Attachs::Jobs::UpdateJob] [87818eba-519d-4e9e-b74c-d4fd4ed8111e] Copying: anderstons/adffc75932c0461ca7106e95b9ad3eb5-original.png => musicians-friend/adffc75932c0461ca7106e95b9ad3eb5-original.png [ActiveJob] [Attachs::Jobs::UpdateJob] [87818eba-519d-4e9e-b74c-d4fd4ed8111e] Copying: anderstons/adffc75932c0461ca7106e95b9ad3eb5-tiny.png => musicians-friend/adffc75932c0461ca7106e95b9ad3eb5-tiny.png [ActiveJob] [Attachs::Jobs::UpdateJob] [87818eba-519d-4e9e-b74c-d4fd4ed8111e] Copying: anderstons/adffc75932c0461ca7106e95b9ad3eb5-small.png => musicians-friend/adffc75932c0461ca7106e95b9ad3eb5-small.png [ActiveJob] [Attachs::Jobs::UpdateJob] [87818eba-519d-4e9e-b74c-d4fd4ed8111e] Copying: anderstons/adffc75932c0461ca7106e95b9ad3eb5-medium.png => musicians-friend/adffc75932c0461ca7106e95b9ad3eb5-medium.png [ActiveJob] [Attachs::Jobs::UpdateJob] [87818eba-519d-4e9e-b74c-d4fd4ed8111e] Copying: anderstons/adffc75932c0461ca7106e95b9ad3eb5-large.png => musicians-friend/adffc75932c0461ca7106e95b9ad3eb5-large.png [ActiveJob] [Attachs::Jobs::UpdateJob] [87818eba-519d-4e9e-b74c-d4fd4ed8111e] SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"tiny":"musicians-friend/adffc75932c0461ca7106e95b9ad3eb5-tiny.png","large":"musicians-friend/adffc75932c0461ca7106e95b9ad3eb5-large.png","small":"musicians-friend/adffc75932c0461ca7106e95b9ad3eb5-small.png","medium":"musicians-friend/adffc75932c0461ca7106e95b9ad3eb5-medium.png","original":"musicians-friend/adffc75932c0461ca7106e95b9ad3eb5-original.png"},"old_paths":["anderstons/adffc75932c0461ca7106e95b9ad3eb5-original.png","anderstons/adffc75932c0461ca7106e95b9ad3eb5-tiny.png","anderstons/adffc75932c0461ca7106e95b9ad3eb5-small.png","anderstons/adffc75932c0461ca7106e95b9ad3eb5-medium.png","anderstons/adffc75932c0461ca7106e95b9ad3eb5-large.png"],"id":"adffc75932c0461ca7106e95b9ad3eb5","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-06T09:38:04.288-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 50]] [ActiveJob] [Attachs::Jobs::UpdateJob] [87818eba-519d-4e9e-b74c-d4fd4ed8111e] Performed Attachs::Jobs::UpdateJob from Inline(default) in 3482.74ms [ActiveJob] Enqueued Attachs::Jobs::UpdateJob (Job ID: 87818eba-519d-4e9e-b74c-d4fd4ed8111e) to Inline(default) with arguments: gid://dummy/Shop/50, "logo" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 50]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 50]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Attachs::Jobs::DeleteJob] [3d711d17-7b11-4861-abbe-f7c03a73c4c0] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["musicians-friend/adffc75932c0461ca7106e95b9ad3eb5-tiny.png", "musicians-friend/adffc75932c0461ca7106e95b9ad3eb5-large.png", "musicians-friend/adffc75932c0461ca7106e95b9ad3eb5-small.png", "musicians-friend/adffc75932c0461ca7106e95b9ad3eb5-medium.png", "musicians-friend/adffc75932c0461ca7106e95b9ad3eb5-original.png", "anderstons/adffc75932c0461ca7106e95b9ad3eb5-original.png", "anderstons/adffc75932c0461ca7106e95b9ad3eb5-tiny.png", "anderstons/adffc75932c0461ca7106e95b9ad3eb5-small.png", "anderstons/adffc75932c0461ca7106e95b9ad3eb5-medium.png", "anderstons/adffc75932c0461ca7106e95b9ad3eb5-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [3d711d17-7b11-4861-abbe-f7c03a73c4c0] Deleting: musicians-friend/adffc75932c0461ca7106e95b9ad3eb5-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [3d711d17-7b11-4861-abbe-f7c03a73c4c0] Deleting: musicians-friend/adffc75932c0461ca7106e95b9ad3eb5-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [3d711d17-7b11-4861-abbe-f7c03a73c4c0] Deleting: musicians-friend/adffc75932c0461ca7106e95b9ad3eb5-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [3d711d17-7b11-4861-abbe-f7c03a73c4c0] Deleting: musicians-friend/adffc75932c0461ca7106e95b9ad3eb5-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [3d711d17-7b11-4861-abbe-f7c03a73c4c0] Deleting: musicians-friend/adffc75932c0461ca7106e95b9ad3eb5-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [3d711d17-7b11-4861-abbe-f7c03a73c4c0] Deleting: anderstons/adffc75932c0461ca7106e95b9ad3eb5-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [3d711d17-7b11-4861-abbe-f7c03a73c4c0] Deleting: anderstons/adffc75932c0461ca7106e95b9ad3eb5-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [3d711d17-7b11-4861-abbe-f7c03a73c4c0] Deleting: anderstons/adffc75932c0461ca7106e95b9ad3eb5-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [3d711d17-7b11-4861-abbe-f7c03a73c4c0] Deleting: anderstons/adffc75932c0461ca7106e95b9ad3eb5-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [3d711d17-7b11-4861-abbe-f7c03a73c4c0] Deleting: anderstons/adffc75932c0461ca7106e95b9ad3eb5-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [3d711d17-7b11-4861-abbe-f7c03a73c4c0] Performed Attachs::Jobs::DeleteJob from Inline(default) in 6558.76ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 3d711d17-7b11-4861-abbe-f7c03a73c4c0) to Inline(default) with arguments: ["musicians-friend/adffc75932c0461ca7106e95b9ad3eb5-tiny.png", "musicians-friend/adffc75932c0461ca7106e95b9ad3eb5-large.png", "musicians-friend/adffc75932c0461ca7106e95b9ad3eb5-small.png", "musicians-friend/adffc75932c0461ca7106e95b9ad3eb5-medium.png", "musicians-friend/adffc75932c0461ca7106e95b9ad3eb5-original.png", "anderstons/adffc75932c0461ca7106e95b9ad3eb5-original.png", "anderstons/adffc75932c0461ca7106e95b9ad3eb5-tiny.png", "anderstons/adffc75932c0461ca7106e95b9ad3eb5-small.png", "anderstons/adffc75932c0461ca7106e95b9ad3eb5-medium.png", "anderstons/adffc75932c0461ca7106e95b9ad3eb5-large.png"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------- ConcernTest: test_inherit -------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------- TaskTest: test_fix_missings --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-1lgld23.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"f70a98395edc4f398d38eebb3ff10f7a\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-06T09:38:53.285-03:00\",\"paths\":{\"original\":\"f70a98395edc4f398d38eebb3ff10f7a-original.png\",\"tiny\":\"f70a98395edc4f398d38eebb3ff10f7a-tiny.png\",\"small\":\"f70a98395edc4f398d38eebb3ff10f7a-small.png\",\"medium\":\"f70a98395edc4f398d38eebb3ff10f7a-medium.png\",\"large\":\"f70a98395edc4f398d38eebb3ff10f7a-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-06 12:38:53.286073"], ["updated_at", "2016-12-06 12:38:53.286073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-1lgld23.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-6yngxr.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-6yngxr.png => f70a98395edc4f398d38eebb3ff10f7a-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-1lgld23.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-d9r67x.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-d9r67x.png => f70a98395edc4f398d38eebb3ff10f7a-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-1lgld23.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1ik8b5z.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1ik8b5z.png => f70a98395edc4f398d38eebb3ff10f7a-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-1lgld23.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1kmpdsf.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1kmpdsf.png => f70a98395edc4f398d38eebb3ff10f7a-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-1lgld23.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1ewjz9a.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1ewjz9a.png => f70a98395edc4f398d38eebb3ff10f7a-large.png Deleting: f70a98395edc4f398d38eebb3ff10f7a-tiny.png Deleting: f70a98395edc4f398d38eebb3ff10f7a-small.png Shop Load (0.5ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Fix missings of Shop #51 => logo Generating: tiny => f70a98395edc4f398d38eebb3ff10f7a-tiny.png Generating: small => f70a98395edc4f398d38eebb3ff10f7a-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-c4um5o.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1ud4k4l.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1ud4k4l.png => f70a98395edc4f398d38eebb3ff10f7a-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-c4um5o.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-6rabxa.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-6rabxa.png => f70a98395edc4f398d38eebb3ff10f7a-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-c4um5o.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-18cx8x.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-18cx8x.png => f70a98395edc4f398d38eebb3ff10f7a-small.png ConcernTest::Subclass Load (0.5ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 [ActiveJob] [Attachs::Jobs::DeleteJob] [8d504184-a014-4501-81ea-0e609ead89fc] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["f70a98395edc4f398d38eebb3ff10f7a-original.png", "f70a98395edc4f398d38eebb3ff10f7a-tiny.png", "f70a98395edc4f398d38eebb3ff10f7a-small.png", "f70a98395edc4f398d38eebb3ff10f7a-medium.png", "f70a98395edc4f398d38eebb3ff10f7a-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [8d504184-a014-4501-81ea-0e609ead89fc] Deleting: f70a98395edc4f398d38eebb3ff10f7a-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [8d504184-a014-4501-81ea-0e609ead89fc] Deleting: f70a98395edc4f398d38eebb3ff10f7a-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [8d504184-a014-4501-81ea-0e609ead89fc] Deleting: f70a98395edc4f398d38eebb3ff10f7a-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [8d504184-a014-4501-81ea-0e609ead89fc] Deleting: f70a98395edc4f398d38eebb3ff10f7a-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [8d504184-a014-4501-81ea-0e609ead89fc] Deleting: f70a98395edc4f398d38eebb3ff10f7a-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [8d504184-a014-4501-81ea-0e609ead89fc] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2712.29ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 8d504184-a014-4501-81ea-0e609ead89fc) to Inline(default) with arguments: ["f70a98395edc4f398d38eebb3ff10f7a-original.png", "f70a98395edc4f398d38eebb3ff10f7a-tiny.png", "f70a98395edc4f398d38eebb3ff10f7a-small.png", "f70a98395edc4f398d38eebb3ff10f7a-medium.png", "f70a98395edc4f398d38eebb3ff10f7a-large.png"]  (0.3ms) ROLLBACK  (0.2ms) BEGIN ------------------------ TaskTest: test_reprocess ------------------------ Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-mrdkth.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"c94b2c6bcf174ae4bcb48f759082dd31\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-06T09:39:09.664-03:00\",\"paths\":{\"original\":\"c94b2c6bcf174ae4bcb48f759082dd31-original.png\",\"tiny\":\"c94b2c6bcf174ae4bcb48f759082dd31-tiny.png\",\"small\":\"c94b2c6bcf174ae4bcb48f759082dd31-small.png\",\"medium\":\"c94b2c6bcf174ae4bcb48f759082dd31-medium.png\",\"large\":\"c94b2c6bcf174ae4bcb48f759082dd31-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-06 12:39:09.664846"], ["updated_at", "2016-12-06 12:39:09.664846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-mrdkth.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1xokw7c.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1xokw7c.png => c94b2c6bcf174ae4bcb48f759082dd31-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-mrdkth.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-18diuu9.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-18diuu9.png => c94b2c6bcf174ae4bcb48f759082dd31-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-mrdkth.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1e4mflu.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1e4mflu.png => c94b2c6bcf174ae4bcb48f759082dd31-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-mrdkth.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1xhavi6.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1xhavi6.png => c94b2c6bcf174ae4bcb48f759082dd31-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-mrdkth.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-15yzucl.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-15yzucl.png => c94b2c6bcf174ae4bcb48f759082dd31-large.png Deleting: c94b2c6bcf174ae4bcb48f759082dd31-tiny.png Deleting: c94b2c6bcf174ae4bcb48f759082dd31-small.png Deleting: c94b2c6bcf174ae4bcb48f759082dd31-medium.png Deleting: c94b2c6bcf174ae4bcb48f759082dd31-large.png Shop Load (0.5ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Reprocessing Shop #52 => logo Regenerating: tiny => c94b2c6bcf174ae4bcb48f759082dd31-tiny.png Regenerating: large => c94b2c6bcf174ae4bcb48f759082dd31-large.png Regenerating: small => c94b2c6bcf174ae4bcb48f759082dd31-small.png Regenerating: medium => c94b2c6bcf174ae4bcb48f759082dd31-medium.png Deleting: c94b2c6bcf174ae4bcb48f759082dd31-original.png Regenerating: original => c94b2c6bcf174ae4bcb48f759082dd31-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1px2fbl.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-qwwiro.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-qwwiro.png => c94b2c6bcf174ae4bcb48f759082dd31-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1px2fbl.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-k3f7f0.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-k3f7f0.png => c94b2c6bcf174ae4bcb48f759082dd31-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1px2fbl.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1jz8f10.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1jz8f10.png => c94b2c6bcf174ae4bcb48f759082dd31-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1px2fbl.png' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1rrriud.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1rrriud.png => c94b2c6bcf174ae4bcb48f759082dd31-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1px2fbl.png' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-fi6ilo.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-fi6ilo.png => c94b2c6bcf174ae4bcb48f759082dd31-large.png SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"original":"c94b2c6bcf174ae4bcb48f759082dd31-original.png","tiny":"c94b2c6bcf174ae4bcb48f759082dd31-tiny.png","small":"c94b2c6bcf174ae4bcb48f759082dd31-small.png","medium":"c94b2c6bcf174ae4bcb48f759082dd31-medium.png","large":"c94b2c6bcf174ae4bcb48f759082dd31-large.png"},"old_paths":[],"id":"c94b2c6bcf174ae4bcb48f759082dd31","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-06T09:39:09.664-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 52]] ConcernTest::Subclass Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Reprocessing Shop #52 => logo Deleting: c94b2c6bcf174ae4bcb48f759082dd31-tiny.png Regenerating: tiny => c94b2c6bcf174ae4bcb48f759082dd31-tiny.png Deleting: c94b2c6bcf174ae4bcb48f759082dd31-large.png Regenerating: large => c94b2c6bcf174ae4bcb48f759082dd31-large.png Deleting: c94b2c6bcf174ae4bcb48f759082dd31-small.png Regenerating: small => c94b2c6bcf174ae4bcb48f759082dd31-small.png Deleting: c94b2c6bcf174ae4bcb48f759082dd31-medium.png Regenerating: medium => c94b2c6bcf174ae4bcb48f759082dd31-medium.png Deleting: c94b2c6bcf174ae4bcb48f759082dd31-original.png Regenerating: original => c94b2c6bcf174ae4bcb48f759082dd31-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-ia5rwn.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-19e3viz.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-19e3viz.png => c94b2c6bcf174ae4bcb48f759082dd31-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-ia5rwn.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1ascs0v.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1ascs0v.png => c94b2c6bcf174ae4bcb48f759082dd31-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-ia5rwn.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1brdtlb.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1brdtlb.png => c94b2c6bcf174ae4bcb48f759082dd31-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-ia5rwn.png' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-elzth2.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-elzth2.png => c94b2c6bcf174ae4bcb48f759082dd31-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-ia5rwn.png' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-ocxnk2.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-ocxnk2.png => c94b2c6bcf174ae4bcb48f759082dd31-large.png SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"original":"c94b2c6bcf174ae4bcb48f759082dd31-original.png","tiny":"c94b2c6bcf174ae4bcb48f759082dd31-tiny.png","small":"c94b2c6bcf174ae4bcb48f759082dd31-small.png","medium":"c94b2c6bcf174ae4bcb48f759082dd31-medium.png","large":"c94b2c6bcf174ae4bcb48f759082dd31-large.png"},"old_paths":[],"id":"c94b2c6bcf174ae4bcb48f759082dd31","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-06T09:39:09.664-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 52]] ConcernTest::Subclass Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 52]] [ActiveJob] [Attachs::Jobs::DeleteJob] [be169fa8-6d80-42e2-8dc7-c57e72f7a3cb] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["c94b2c6bcf174ae4bcb48f759082dd31-tiny.png", "c94b2c6bcf174ae4bcb48f759082dd31-large.png", "c94b2c6bcf174ae4bcb48f759082dd31-small.png", "c94b2c6bcf174ae4bcb48f759082dd31-medium.png", "c94b2c6bcf174ae4bcb48f759082dd31-original.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [be169fa8-6d80-42e2-8dc7-c57e72f7a3cb] Deleting: c94b2c6bcf174ae4bcb48f759082dd31-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [be169fa8-6d80-42e2-8dc7-c57e72f7a3cb] Deleting: c94b2c6bcf174ae4bcb48f759082dd31-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [be169fa8-6d80-42e2-8dc7-c57e72f7a3cb] Deleting: c94b2c6bcf174ae4bcb48f759082dd31-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [be169fa8-6d80-42e2-8dc7-c57e72f7a3cb] Deleting: c94b2c6bcf174ae4bcb48f759082dd31-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [be169fa8-6d80-42e2-8dc7-c57e72f7a3cb] Deleting: c94b2c6bcf174ae4bcb48f759082dd31-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [be169fa8-6d80-42e2-8dc7-c57e72f7a3cb] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2968.01ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: be169fa8-6d80-42e2-8dc7-c57e72f7a3cb) to Inline(default) with arguments: ["c94b2c6bcf174ae4bcb48f759082dd31-tiny.png", "c94b2c6bcf174ae4bcb48f759082dd31-large.png", "c94b2c6bcf174ae4bcb48f759082dd31-small.png", "c94b2c6bcf174ae4bcb48f759082dd31-medium.png", "c94b2c6bcf174ae4bcb48f759082dd31-original.png"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------- TaskTest: test_clear -------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-sf8ln0.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"475322371cde49f185428e93ce40dd6d\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-06T09:39:35.948-03:00\",\"paths\":{\"original\":\"475322371cde49f185428e93ce40dd6d-original.png\",\"tiny\":\"475322371cde49f185428e93ce40dd6d-tiny.png\",\"small\":\"475322371cde49f185428e93ce40dd6d-small.png\",\"medium\":\"475322371cde49f185428e93ce40dd6d-medium.png\",\"large\":\"475322371cde49f185428e93ce40dd6d-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-06 12:39:35.948898"], ["updated_at", "2016-12-06 12:39:35.948898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-sf8ln0.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-g1uh58.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-g1uh58.png => 475322371cde49f185428e93ce40dd6d-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-sf8ln0.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-l2jbxb.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-l2jbxb.png => 475322371cde49f185428e93ce40dd6d-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-sf8ln0.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1yhou2x.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1yhou2x.png => 475322371cde49f185428e93ce40dd6d-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-sf8ln0.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-pwgq26.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-pwgq26.png => 475322371cde49f185428e93ce40dd6d-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-sf8ln0.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-ylehkn.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-ylehkn.png => 475322371cde49f185428e93ce40dd6d-large.png Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-5kt6hr.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"a8b107b86cbf4062a6a42e094b6e5e0e\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-06T09:39:39.621-03:00\",\"paths\":{\"original\":\"a8b107b86cbf4062a6a42e094b6e5e0e-original.png\",\"tiny\":\"a8b107b86cbf4062a6a42e094b6e5e0e-tiny.png\",\"small\":\"a8b107b86cbf4062a6a42e094b6e5e0e-small.png\",\"medium\":\"a8b107b86cbf4062a6a42e094b6e5e0e-medium.png\",\"large\":\"a8b107b86cbf4062a6a42e094b6e5e0e-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-06 12:39:39.622144"], ["updated_at", "2016-12-06 12:39:39.622144"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-5kt6hr.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-6v6sk3.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-6v6sk3.png => a8b107b86cbf4062a6a42e094b6e5e0e-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-5kt6hr.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-19ls6qp.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-19ls6qp.png => a8b107b86cbf4062a6a42e094b6e5e0e-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-5kt6hr.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-10jtpct.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-10jtpct.png => a8b107b86cbf4062a6a42e094b6e5e0e-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-5kt6hr.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-k1i4pp.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-k1i4pp.png => a8b107b86cbf4062a6a42e094b6e5e0e-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-5kt6hr.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1wv9jpq.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1wv9jpq.png => a8b107b86cbf4062a6a42e094b6e5e0e-large.png SQL (0.4ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 54]]  (0.8ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '475322371cde49f185428e93ce40dd6d-large.png' OR old_paths.value = '475322371cde49f185428e93ce40dd6d-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '475322371cde49f185428e93ce40dd6d-large.png' OR old_paths.value = '475322371cde49f185428e93ce40dd6d-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '475322371cde49f185428e93ce40dd6d-large.png' OR old_paths.value = '475322371cde49f185428e93ce40dd6d-large.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '475322371cde49f185428e93ce40dd6d-medium.png' OR old_paths.value = '475322371cde49f185428e93ce40dd6d-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '475322371cde49f185428e93ce40dd6d-medium.png' OR old_paths.value = '475322371cde49f185428e93ce40dd6d-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '475322371cde49f185428e93ce40dd6d-medium.png' OR old_paths.value = '475322371cde49f185428e93ce40dd6d-medium.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '475322371cde49f185428e93ce40dd6d-original.png' OR old_paths.value = '475322371cde49f185428e93ce40dd6d-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '475322371cde49f185428e93ce40dd6d-original.png' OR old_paths.value = '475322371cde49f185428e93ce40dd6d-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '475322371cde49f185428e93ce40dd6d-original.png' OR old_paths.value = '475322371cde49f185428e93ce40dd6d-original.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '475322371cde49f185428e93ce40dd6d-small.png' OR old_paths.value = '475322371cde49f185428e93ce40dd6d-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '475322371cde49f185428e93ce40dd6d-small.png' OR old_paths.value = '475322371cde49f185428e93ce40dd6d-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '475322371cde49f185428e93ce40dd6d-small.png' OR old_paths.value = '475322371cde49f185428e93ce40dd6d-small.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '475322371cde49f185428e93ce40dd6d-tiny.png' OR old_paths.value = '475322371cde49f185428e93ce40dd6d-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '475322371cde49f185428e93ce40dd6d-tiny.png' OR old_paths.value = '475322371cde49f185428e93ce40dd6d-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '475322371cde49f185428e93ce40dd6d-tiny.png' OR old_paths.value = '475322371cde49f185428e93ce40dd6d-tiny.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'a8b107b86cbf4062a6a42e094b6e5e0e-large.png' OR old_paths.value = 'a8b107b86cbf4062a6a42e094b6e5e0e-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'a8b107b86cbf4062a6a42e094b6e5e0e-large.png' OR old_paths.value = 'a8b107b86cbf4062a6a42e094b6e5e0e-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'a8b107b86cbf4062a6a42e094b6e5e0e-large.png' OR old_paths.value = 'a8b107b86cbf4062a6a42e094b6e5e0e-large.png') Deleting a8b107b86cbf4062a6a42e094b6e5e0e-large.png Deleting: a8b107b86cbf4062a6a42e094b6e5e0e-large.png  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'a8b107b86cbf4062a6a42e094b6e5e0e-medium.png' OR old_paths.value = 'a8b107b86cbf4062a6a42e094b6e5e0e-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'a8b107b86cbf4062a6a42e094b6e5e0e-medium.png' OR old_paths.value = 'a8b107b86cbf4062a6a42e094b6e5e0e-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'a8b107b86cbf4062a6a42e094b6e5e0e-medium.png' OR old_paths.value = 'a8b107b86cbf4062a6a42e094b6e5e0e-medium.png') Deleting a8b107b86cbf4062a6a42e094b6e5e0e-medium.png Deleting: a8b107b86cbf4062a6a42e094b6e5e0e-medium.png  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'a8b107b86cbf4062a6a42e094b6e5e0e-original.png' OR old_paths.value = 'a8b107b86cbf4062a6a42e094b6e5e0e-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'a8b107b86cbf4062a6a42e094b6e5e0e-original.png' OR old_paths.value = 'a8b107b86cbf4062a6a42e094b6e5e0e-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'a8b107b86cbf4062a6a42e094b6e5e0e-original.png' OR old_paths.value = 'a8b107b86cbf4062a6a42e094b6e5e0e-original.png') Deleting a8b107b86cbf4062a6a42e094b6e5e0e-original.png Deleting: a8b107b86cbf4062a6a42e094b6e5e0e-original.png  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'a8b107b86cbf4062a6a42e094b6e5e0e-small.png' OR old_paths.value = 'a8b107b86cbf4062a6a42e094b6e5e0e-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'a8b107b86cbf4062a6a42e094b6e5e0e-small.png' OR old_paths.value = 'a8b107b86cbf4062a6a42e094b6e5e0e-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'a8b107b86cbf4062a6a42e094b6e5e0e-small.png' OR old_paths.value = 'a8b107b86cbf4062a6a42e094b6e5e0e-small.png') Deleting a8b107b86cbf4062a6a42e094b6e5e0e-small.png Deleting: a8b107b86cbf4062a6a42e094b6e5e0e-small.png  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'a8b107b86cbf4062a6a42e094b6e5e0e-tiny.png' OR old_paths.value = 'a8b107b86cbf4062a6a42e094b6e5e0e-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'a8b107b86cbf4062a6a42e094b6e5e0e-tiny.png' OR old_paths.value = 'a8b107b86cbf4062a6a42e094b6e5e0e-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'a8b107b86cbf4062a6a42e094b6e5e0e-tiny.png' OR old_paths.value = 'a8b107b86cbf4062a6a42e094b6e5e0e-tiny.png') Deleting a8b107b86cbf4062a6a42e094b6e5e0e-tiny.png Deleting: a8b107b86cbf4062a6a42e094b6e5e0e-tiny.png  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/143ca900d75040c68f42975cddde1c17-large.png' OR old_paths.value = 'second/143ca900d75040c68f42975cddde1c17-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/143ca900d75040c68f42975cddde1c17-large.png' OR old_paths.value = 'second/143ca900d75040c68f42975cddde1c17-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/143ca900d75040c68f42975cddde1c17-large.png' OR old_paths.value = 'second/143ca900d75040c68f42975cddde1c17-large.png') Deleting second/143ca900d75040c68f42975cddde1c17-large.png Deleting: second/143ca900d75040c68f42975cddde1c17-large.png  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/143ca900d75040c68f42975cddde1c17-medium.png' OR old_paths.value = 'second/143ca900d75040c68f42975cddde1c17-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/143ca900d75040c68f42975cddde1c17-medium.png' OR old_paths.value = 'second/143ca900d75040c68f42975cddde1c17-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/143ca900d75040c68f42975cddde1c17-medium.png' OR old_paths.value = 'second/143ca900d75040c68f42975cddde1c17-medium.png') Deleting second/143ca900d75040c68f42975cddde1c17-medium.png Deleting: second/143ca900d75040c68f42975cddde1c17-medium.png  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/143ca900d75040c68f42975cddde1c17-original.png' OR old_paths.value = 'second/143ca900d75040c68f42975cddde1c17-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/143ca900d75040c68f42975cddde1c17-original.png' OR old_paths.value = 'second/143ca900d75040c68f42975cddde1c17-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/143ca900d75040c68f42975cddde1c17-original.png' OR old_paths.value = 'second/143ca900d75040c68f42975cddde1c17-original.png') Deleting second/143ca900d75040c68f42975cddde1c17-original.png Deleting: second/143ca900d75040c68f42975cddde1c17-original.png  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/143ca900d75040c68f42975cddde1c17-small.png' OR old_paths.value = 'second/143ca900d75040c68f42975cddde1c17-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/143ca900d75040c68f42975cddde1c17-small.png' OR old_paths.value = 'second/143ca900d75040c68f42975cddde1c17-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/143ca900d75040c68f42975cddde1c17-small.png' OR old_paths.value = 'second/143ca900d75040c68f42975cddde1c17-small.png') Deleting second/143ca900d75040c68f42975cddde1c17-small.png Deleting: second/143ca900d75040c68f42975cddde1c17-small.png  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/143ca900d75040c68f42975cddde1c17-tiny.png' OR old_paths.value = 'second/143ca900d75040c68f42975cddde1c17-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/143ca900d75040c68f42975cddde1c17-tiny.png' OR old_paths.value = 'second/143ca900d75040c68f42975cddde1c17-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/143ca900d75040c68f42975cddde1c17-tiny.png' OR old_paths.value = 'second/143ca900d75040c68f42975cddde1c17-tiny.png') Deleting second/143ca900d75040c68f42975cddde1c17-tiny.png Deleting: second/143ca900d75040c68f42975cddde1c17-tiny.png  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '475322371cde49f185428e93ce40dd6d-large.png' OR old_paths.value = '475322371cde49f185428e93ce40dd6d-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '475322371cde49f185428e93ce40dd6d-large.png' OR old_paths.value = '475322371cde49f185428e93ce40dd6d-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '475322371cde49f185428e93ce40dd6d-large.png' OR old_paths.value = '475322371cde49f185428e93ce40dd6d-large.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '475322371cde49f185428e93ce40dd6d-medium.png' OR old_paths.value = '475322371cde49f185428e93ce40dd6d-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '475322371cde49f185428e93ce40dd6d-medium.png' OR old_paths.value = '475322371cde49f185428e93ce40dd6d-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '475322371cde49f185428e93ce40dd6d-medium.png' OR old_paths.value = '475322371cde49f185428e93ce40dd6d-medium.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '475322371cde49f185428e93ce40dd6d-original.png' OR old_paths.value = '475322371cde49f185428e93ce40dd6d-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '475322371cde49f185428e93ce40dd6d-original.png' OR old_paths.value = '475322371cde49f185428e93ce40dd6d-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '475322371cde49f185428e93ce40dd6d-original.png' OR old_paths.value = '475322371cde49f185428e93ce40dd6d-original.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '475322371cde49f185428e93ce40dd6d-small.png' OR old_paths.value = '475322371cde49f185428e93ce40dd6d-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '475322371cde49f185428e93ce40dd6d-small.png' OR old_paths.value = '475322371cde49f185428e93ce40dd6d-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '475322371cde49f185428e93ce40dd6d-small.png' OR old_paths.value = '475322371cde49f185428e93ce40dd6d-small.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '475322371cde49f185428e93ce40dd6d-tiny.png' OR old_paths.value = '475322371cde49f185428e93ce40dd6d-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '475322371cde49f185428e93ce40dd6d-tiny.png' OR old_paths.value = '475322371cde49f185428e93ce40dd6d-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '475322371cde49f185428e93ce40dd6d-tiny.png' OR old_paths.value = '475322371cde49f185428e93ce40dd6d-tiny.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '475322371cde49f185428e93ce40dd6d-large.png' OR old_paths.value = '475322371cde49f185428e93ce40dd6d-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '475322371cde49f185428e93ce40dd6d-large.png' OR old_paths.value = '475322371cde49f185428e93ce40dd6d-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '475322371cde49f185428e93ce40dd6d-large.png' OR old_paths.value = '475322371cde49f185428e93ce40dd6d-large.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '475322371cde49f185428e93ce40dd6d-medium.png' OR old_paths.value = '475322371cde49f185428e93ce40dd6d-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '475322371cde49f185428e93ce40dd6d-medium.png' OR old_paths.value = '475322371cde49f185428e93ce40dd6d-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '475322371cde49f185428e93ce40dd6d-medium.png' OR old_paths.value = '475322371cde49f185428e93ce40dd6d-medium.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '475322371cde49f185428e93ce40dd6d-original.png' OR old_paths.value = '475322371cde49f185428e93ce40dd6d-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '475322371cde49f185428e93ce40dd6d-original.png' OR old_paths.value = '475322371cde49f185428e93ce40dd6d-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '475322371cde49f185428e93ce40dd6d-original.png' OR old_paths.value = '475322371cde49f185428e93ce40dd6d-original.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '475322371cde49f185428e93ce40dd6d-small.png' OR old_paths.value = '475322371cde49f185428e93ce40dd6d-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '475322371cde49f185428e93ce40dd6d-small.png' OR old_paths.value = '475322371cde49f185428e93ce40dd6d-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '475322371cde49f185428e93ce40dd6d-small.png' OR old_paths.value = '475322371cde49f185428e93ce40dd6d-small.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '475322371cde49f185428e93ce40dd6d-tiny.png' OR old_paths.value = '475322371cde49f185428e93ce40dd6d-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '475322371cde49f185428e93ce40dd6d-tiny.png' OR old_paths.value = '475322371cde49f185428e93ce40dd6d-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '475322371cde49f185428e93ce40dd6d-tiny.png' OR old_paths.value = '475322371cde49f185428e93ce40dd6d-tiny.png') [ActiveJob] [Attachs::Jobs::DeleteJob] [b8ed4c7d-1104-4c17-9138-6ca197f85470] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["475322371cde49f185428e93ce40dd6d-original.png", "475322371cde49f185428e93ce40dd6d-tiny.png", "475322371cde49f185428e93ce40dd6d-small.png", "475322371cde49f185428e93ce40dd6d-medium.png", "475322371cde49f185428e93ce40dd6d-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [b8ed4c7d-1104-4c17-9138-6ca197f85470] Deleting: 475322371cde49f185428e93ce40dd6d-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [b8ed4c7d-1104-4c17-9138-6ca197f85470] Deleting: 475322371cde49f185428e93ce40dd6d-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [b8ed4c7d-1104-4c17-9138-6ca197f85470] Deleting: 475322371cde49f185428e93ce40dd6d-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [b8ed4c7d-1104-4c17-9138-6ca197f85470] Deleting: 475322371cde49f185428e93ce40dd6d-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [b8ed4c7d-1104-4c17-9138-6ca197f85470] Deleting: 475322371cde49f185428e93ce40dd6d-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [b8ed4c7d-1104-4c17-9138-6ca197f85470] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2599.85ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: b8ed4c7d-1104-4c17-9138-6ca197f85470) to Inline(default) with arguments: ["475322371cde49f185428e93ce40dd6d-original.png", "475322371cde49f185428e93ce40dd6d-tiny.png", "475322371cde49f185428e93ce40dd6d-small.png", "475322371cde49f185428e93ce40dd6d-medium.png", "475322371cde49f185428e93ce40dd6d-large.png"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- CollectionTest: test_nested_attributes -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-189nvbc.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-1b8ilcr.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- CollectionTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-1w8uvqk.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-gx3sk5.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"c65fe6f6e6174123b3593af9c0e26547\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-06T09:39:57.961-03:00\",\"paths\":{\"original\":\"c65fe6f6e6174123b3593af9c0e26547-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725},{\"id\":\"a782c304e68745458e34df6217863511\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-06T09:39:57.962-03:00\",\"paths\":{\"original\":\"a782c304e68745458e34df6217863511-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-12-06 12:39:57.963244"], ["updated_at", "2016-12-06 12:39:57.963244"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-1w8uvqk.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-190iws8.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-190iws8.jpg => c65fe6f6e6174123b3593af9c0e26547-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-gx3sk5.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-14x2ush.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-14x2ush.jpg => a782c304e68745458e34df6217863511-original.jpg Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 29]] [ActiveJob] [Attachs::Jobs::DeleteJob] [34f8ec85-c526-474a-8c67-f2599e08c75d] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["c65fe6f6e6174123b3593af9c0e26547-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [34f8ec85-c526-474a-8c67-f2599e08c75d] Deleting: c65fe6f6e6174123b3593af9c0e26547-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [34f8ec85-c526-474a-8c67-f2599e08c75d] Performed Attachs::Jobs::DeleteJob from Inline(default) in 388.78ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 34f8ec85-c526-474a-8c67-f2599e08c75d) to Inline(default) with arguments: ["c65fe6f6e6174123b3593af9c0e26547-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [9c96575e-1d6f-4cc9-9d01-5292aa11e606] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["a782c304e68745458e34df6217863511-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [9c96575e-1d6f-4cc9-9d01-5292aa11e606] Deleting: a782c304e68745458e34df6217863511-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [9c96575e-1d6f-4cc9-9d01-5292aa11e606] Performed Attachs::Jobs::DeleteJob from Inline(default) in 367.43ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 9c96575e-1d6f-4cc9-9d01-5292aa11e606) to Inline(default) with arguments: ["a782c304e68745458e34df6217863511-original.jpg"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------- CollectionTest: test_index -------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-1k09bim.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-v646pj.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"216940ba73284a83938119f9ca4f6249\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-06T09:39:59.765-03:00\",\"paths\":{\"original\":\"216940ba73284a83938119f9ca4f6249-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725,\"position\":0},{\"id\":\"695bd90db0394afd9076495232fe7172\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-06T09:39:59.766-03:00\",\"paths\":{\"original\":\"695bd90db0394afd9076495232fe7172-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-12-06 12:39:59.768343"], ["updated_at", "2016-12-06 12:39:59.768343"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 30]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------- QueryTest: test_exist --------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-6hmodt.jpg'  (0.9ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "logo", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "first"], ["logo", "{\"id\":\"ce52a6d8d8c7438c9d881fb6243cbe34\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-06T09:39:59.786-03:00\",\"paths\":{\"original\":\"first/ce52a6d8d8c7438c9d881fb6243cbe34-original.png\",\"tiny\":\"first/ce52a6d8d8c7438c9d881fb6243cbe34-tiny.png\",\"small\":\"first/ce52a6d8d8c7438c9d881fb6243cbe34-small.png\",\"medium\":\"first/ce52a6d8d8c7438c9d881fb6243cbe34-medium.png\",\"large\":\"first/ce52a6d8d8c7438c9d881fb6243cbe34-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-06 12:39:59.786985"], ["updated_at", "2016-12-06 12:39:59.786985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-6hmodt.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1v28r03.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1v28r03.png => first/ce52a6d8d8c7438c9d881fb6243cbe34-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-6hmodt.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1gizv21.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1gizv21.png => first/ce52a6d8d8c7438c9d881fb6243cbe34-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-6hmodt.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-shvc30.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-shvc30.png => first/ce52a6d8d8c7438c9d881fb6243cbe34-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-6hmodt.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-2z9nur.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-2z9nur.png => first/ce52a6d8d8c7438c9d881fb6243cbe34-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-6hmodt.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1otetxf.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1otetxf.png => first/ce52a6d8d8c7438c9d881fb6243cbe34-large.png  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "shops" SET "name" = $1, "updated_at" = $2 WHERE "shops"."id" = $3 [["name", "second"], ["updated_at", "2016-12-06 12:40:02.782639"], ["id", 55]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 55]] [ActiveJob] [Attachs::Jobs::UpdateJob] [4f947577-e55e-461c-9fce-f2de1652ff66] Performing Attachs::Jobs::UpdateJob from Inline(default) with arguments: gid://dummy/Shop/55, "logo" [ActiveJob] [Attachs::Jobs::UpdateJob] [4f947577-e55e-461c-9fce-f2de1652ff66] Copying: first/ce52a6d8d8c7438c9d881fb6243cbe34-original.png => second/ce52a6d8d8c7438c9d881fb6243cbe34-original.png [ActiveJob] [Attachs::Jobs::UpdateJob] [4f947577-e55e-461c-9fce-f2de1652ff66] Copying: first/ce52a6d8d8c7438c9d881fb6243cbe34-tiny.png => second/ce52a6d8d8c7438c9d881fb6243cbe34-tiny.png [ActiveJob] [Attachs::Jobs::UpdateJob] [4f947577-e55e-461c-9fce-f2de1652ff66] Copying: first/ce52a6d8d8c7438c9d881fb6243cbe34-small.png => second/ce52a6d8d8c7438c9d881fb6243cbe34-small.png [ActiveJob] [Attachs::Jobs::UpdateJob] [4f947577-e55e-461c-9fce-f2de1652ff66] Copying: first/ce52a6d8d8c7438c9d881fb6243cbe34-medium.png => second/ce52a6d8d8c7438c9d881fb6243cbe34-medium.png [ActiveJob] [Attachs::Jobs::UpdateJob] [4f947577-e55e-461c-9fce-f2de1652ff66] Copying: first/ce52a6d8d8c7438c9d881fb6243cbe34-large.png => second/ce52a6d8d8c7438c9d881fb6243cbe34-large.png [ActiveJob] [Attachs::Jobs::UpdateJob] [4f947577-e55e-461c-9fce-f2de1652ff66] SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"tiny":"second/ce52a6d8d8c7438c9d881fb6243cbe34-tiny.png","large":"second/ce52a6d8d8c7438c9d881fb6243cbe34-large.png","small":"second/ce52a6d8d8c7438c9d881fb6243cbe34-small.png","medium":"second/ce52a6d8d8c7438c9d881fb6243cbe34-medium.png","original":"second/ce52a6d8d8c7438c9d881fb6243cbe34-original.png"},"old_paths":["first/ce52a6d8d8c7438c9d881fb6243cbe34-original.png","first/ce52a6d8d8c7438c9d881fb6243cbe34-tiny.png","first/ce52a6d8d8c7438c9d881fb6243cbe34-small.png","first/ce52a6d8d8c7438c9d881fb6243cbe34-medium.png","first/ce52a6d8d8c7438c9d881fb6243cbe34-large.png"],"id":"ce52a6d8d8c7438c9d881fb6243cbe34","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-06T09:39:59.786-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 55]] [ActiveJob] [Attachs::Jobs::UpdateJob] [4f947577-e55e-461c-9fce-f2de1652ff66] Performed Attachs::Jobs::UpdateJob from Inline(default) in 2383.86ms [ActiveJob] Enqueued Attachs::Jobs::UpdateJob (Job ID: 4f947577-e55e-461c-9fce-f2de1652ff66) to Inline(default) with arguments: gid://dummy/Shop/55, "logo" Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-161t6x4.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-1iwo4ft.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"283a7b1c15e1487bb3c47e887bd9c124\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-06T09:40:05.197-03:00\",\"paths\":{\"original\":\"283a7b1c15e1487bb3c47e887bd9c124-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725},{\"id\":\"9e93e35dc86f4f70b037efe7ccadec45\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-06T09:40:05.199-03:00\",\"paths\":{\"original\":\"9e93e35dc86f4f70b037efe7ccadec45-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-12-06 12:40:05.201035"], ["updated_at", "2016-12-06 12:40:05.201035"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-161t6x4.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1ngyrr.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1ngyrr.jpg => 283a7b1c15e1487bb3c47e887bd9c124-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-1iwo4ft.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1aovcqn.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1aovcqn.jpg => 9e93e35dc86f4f70b037efe7ccadec45-original.jpg  (0.7ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/ce52a6d8d8c7438c9d881fb6243cbe34-original.png' OR old_paths.value = 'first/ce52a6d8d8c7438c9d881fb6243cbe34-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/ce52a6d8d8c7438c9d881fb6243cbe34-original.png' OR old_paths.value = 'first/ce52a6d8d8c7438c9d881fb6243cbe34-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/ce52a6d8d8c7438c9d881fb6243cbe34-original.png' OR old_paths.value = 'first/ce52a6d8d8c7438c9d881fb6243cbe34-original.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/ce52a6d8d8c7438c9d881fb6243cbe34-original.png' OR old_paths.value = 'first/ce52a6d8d8c7438c9d881fb6243cbe34-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/ce52a6d8d8c7438c9d881fb6243cbe34-original.png' OR old_paths.value = 'first/ce52a6d8d8c7438c9d881fb6243cbe34-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/ce52a6d8d8c7438c9d881fb6243cbe34-original.png' OR old_paths.value = 'first/ce52a6d8d8c7438c9d881fb6243cbe34-original.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '283a7b1c15e1487bb3c47e887bd9c124-original.jpg' OR old_paths.value = '283a7b1c15e1487bb3c47e887bd9c124-original.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '283a7b1c15e1487bb3c47e887bd9c124-original.jpg' OR old_paths.value = '283a7b1c15e1487bb3c47e887bd9c124-original.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '283a7b1c15e1487bb3c47e887bd9c124-original.jpg' OR old_paths.value = '283a7b1c15e1487bb3c47e887bd9c124-original.jpg') [ActiveJob] [Attachs::Jobs::DeleteJob] [14901a8d-f774-4270-aa8c-81712897cb21] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["first/ce52a6d8d8c7438c9d881fb6243cbe34-original.png", "first/ce52a6d8d8c7438c9d881fb6243cbe34-tiny.png", "first/ce52a6d8d8c7438c9d881fb6243cbe34-small.png", "first/ce52a6d8d8c7438c9d881fb6243cbe34-medium.png", "first/ce52a6d8d8c7438c9d881fb6243cbe34-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [14901a8d-f774-4270-aa8c-81712897cb21] Deleting: first/ce52a6d8d8c7438c9d881fb6243cbe34-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [14901a8d-f774-4270-aa8c-81712897cb21] Deleting: first/ce52a6d8d8c7438c9d881fb6243cbe34-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [14901a8d-f774-4270-aa8c-81712897cb21] Deleting: first/ce52a6d8d8c7438c9d881fb6243cbe34-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [14901a8d-f774-4270-aa8c-81712897cb21] Deleting: first/ce52a6d8d8c7438c9d881fb6243cbe34-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [14901a8d-f774-4270-aa8c-81712897cb21] Deleting: first/ce52a6d8d8c7438c9d881fb6243cbe34-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [14901a8d-f774-4270-aa8c-81712897cb21] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2102.05ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 14901a8d-f774-4270-aa8c-81712897cb21) to Inline(default) with arguments: ["first/ce52a6d8d8c7438c9d881fb6243cbe34-original.png", "first/ce52a6d8d8c7438c9d881fb6243cbe34-tiny.png", "first/ce52a6d8d8c7438c9d881fb6243cbe34-small.png", "first/ce52a6d8d8c7438c9d881fb6243cbe34-medium.png", "first/ce52a6d8d8c7438c9d881fb6243cbe34-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [672e5ea9-b184-4dc1-ab22-9e8737398b83] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["283a7b1c15e1487bb3c47e887bd9c124-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [672e5ea9-b184-4dc1-ab22-9e8737398b83] Deleting: 283a7b1c15e1487bb3c47e887bd9c124-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [672e5ea9-b184-4dc1-ab22-9e8737398b83] Performed Attachs::Jobs::DeleteJob from Inline(default) in 368.43ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 672e5ea9-b184-4dc1-ab22-9e8737398b83) to Inline(default) with arguments: ["283a7b1c15e1487bb3c47e887bd9c124-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [c7c0ffa7-5612-44d5-b7c0-d74e92fd1b9d] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["9e93e35dc86f4f70b037efe7ccadec45-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [c7c0ffa7-5612-44d5-b7c0-d74e92fd1b9d] Deleting: 9e93e35dc86f4f70b037efe7ccadec45-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [c7c0ffa7-5612-44d5-b7c0-d74e92fd1b9d] Performed Attachs::Jobs::DeleteJob from Inline(default) in 447.42ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: c7c0ffa7-5612-44d5-b7c0-d74e92fd1b9d) to Inline(default) with arguments: ["9e93e35dc86f4f70b037efe7ccadec45-original.jpg"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- GeneratorTest: test_install ---------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------- GeneratorTest: test_upload --------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------- UploadTest: test_upload ----------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-1mxoer6.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "uploads" ("file", "record_type", "record_attribute", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "{\"id\":\"e6506865308647fd851976ea9c6e09a5\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-06T09:40:08.980-03:00\",\"paths\":{\"original\":\"e6506865308647fd851976ea9c6e09a5-original.jpg\",\"tiny\":\"e6506865308647fd851976ea9c6e09a5-tiny.jpg\",\"small\":\"e6506865308647fd851976ea9c6e09a5-small.jpg\",\"medium\":\"e6506865308647fd851976ea9c6e09a5-medium.jpg\",\"large\":\"e6506865308647fd851976ea9c6e09a5-large.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["record_type", "Shop"], ["record_attribute", "logo"], ["created_at", "2016-12-06 12:40:08.981234"], ["updated_at", "2016-12-06 12:40:08.981234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-1mxoer6.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-kdq3yu.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-kdq3yu.jpg => e6506865308647fd851976ea9c6e09a5-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-1mxoer6.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-18bf04d.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-18bf04d.jpg => e6506865308647fd851976ea9c6e09a5-tiny.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-1mxoer6.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-f3i4uz.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-f3i4uz.jpg => e6506865308647fd851976ea9c6e09a5-small.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-1mxoer6.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1glc5al.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1glc5al.jpg => e6506865308647fd851976ea9c6e09a5-medium.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-1mxoer6.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-122644c.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-122644c.jpg => e6506865308647fd851976ea9c6e09a5-large.jpg  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"4e6b96f0fa53447da6fe0d7ab46bef39\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-06T09:40:14.812-03:00\",\"paths\":{\"original\":\"4e6b96f0fa53447da6fe0d7ab46bef39-original.png\",\"tiny\":\"4e6b96f0fa53447da6fe0d7ab46bef39-tiny.png\",\"small\":\"4e6b96f0fa53447da6fe0d7ab46bef39-small.png\",\"medium\":\"4e6b96f0fa53447da6fe0d7ab46bef39-medium.png\",\"large\":\"4e6b96f0fa53447da6fe0d7ab46bef39-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-06 12:40:14.813849"], ["updated_at", "2016-12-06 12:40:14.813849"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-s82w5f.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-vn4rvg.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-vn4rvg.png => 4e6b96f0fa53447da6fe0d7ab46bef39-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-s82w5f.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-12jan4y.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-12jan4y.png => 4e6b96f0fa53447da6fe0d7ab46bef39-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-s82w5f.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1x10xnh.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1x10xnh.png => 4e6b96f0fa53447da6fe0d7ab46bef39-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-s82w5f.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1eryd3a.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1eryd3a.png => 4e6b96f0fa53447da6fe0d7ab46bef39-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-s82w5f.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1iy2mb5.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-1iy2mb5.png => 4e6b96f0fa53447da6fe0d7ab46bef39-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [e6d3dc9f-3979-4e24-a464-ad2ffb23970e] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["4e6b96f0fa53447da6fe0d7ab46bef39-original.png", "4e6b96f0fa53447da6fe0d7ab46bef39-tiny.png", "4e6b96f0fa53447da6fe0d7ab46bef39-small.png", "4e6b96f0fa53447da6fe0d7ab46bef39-medium.png", "4e6b96f0fa53447da6fe0d7ab46bef39-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [e6d3dc9f-3979-4e24-a464-ad2ffb23970e] Deleting: 4e6b96f0fa53447da6fe0d7ab46bef39-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [e6d3dc9f-3979-4e24-a464-ad2ffb23970e] Deleting: 4e6b96f0fa53447da6fe0d7ab46bef39-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [e6d3dc9f-3979-4e24-a464-ad2ffb23970e] Deleting: 4e6b96f0fa53447da6fe0d7ab46bef39-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [e6d3dc9f-3979-4e24-a464-ad2ffb23970e] Deleting: 4e6b96f0fa53447da6fe0d7ab46bef39-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [e6d3dc9f-3979-4e24-a464-ad2ffb23970e] Deleting: 4e6b96f0fa53447da6fe0d7ab46bef39-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [e6d3dc9f-3979-4e24-a464-ad2ffb23970e] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2539.48ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: e6d3dc9f-3979-4e24-a464-ad2ffb23970e) to Inline(default) with arguments: ["4e6b96f0fa53447da6fe0d7ab46bef39-original.png", "4e6b96f0fa53447da6fe0d7ab46bef39-tiny.png", "4e6b96f0fa53447da6fe0d7ab46bef39-small.png", "4e6b96f0fa53447da6fe0d7ab46bef39-medium.png", "4e6b96f0fa53447da6fe0d7ab46bef39-large.png"] Upload Load (0.3ms) SELECT "uploads".* FROM "uploads" WHERE "uploads"."id" = $1 LIMIT 1 [["id", 9]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"paths\":{\"original\":\"eb4a17e853114c63bfee0661b09d8237-original.png\",\"tiny\":\"eb4a17e853114c63bfee0661b09d8237-tiny.png\",\"small\":\"eb4a17e853114c63bfee0661b09d8237-small.png\",\"medium\":\"eb4a17e853114c63bfee0661b09d8237-medium.png\",\"large\":\"eb4a17e853114c63bfee0661b09d8237-large.png\"},\"old_paths\":[],\"id\":\"eb4a17e853114c63bfee0661b09d8237\",\"size\":74474,\"ratio\":0.6725,\"width\":400,\"height\":269,\"filename\":\"image.jpg\",\"uploaded_at\":\"2016-12-06T09:40:26.216-03:00\",\"content_type\":\"image/jpeg\"}"], ["created_at", "2016-12-06 12:40:26.218112"], ["updated_at", "2016-12-06 12:40:26.218112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Copying: e6506865308647fd851976ea9c6e09a5-tiny.jpg => eb4a17e853114c63bfee0661b09d8237-tiny.png Copying: e6506865308647fd851976ea9c6e09a5-large.jpg => eb4a17e853114c63bfee0661b09d8237-large.png Copying: e6506865308647fd851976ea9c6e09a5-small.jpg => eb4a17e853114c63bfee0661b09d8237-small.png Copying: e6506865308647fd851976ea9c6e09a5-medium.jpg => eb4a17e853114c63bfee0661b09d8237-medium.png Copying: e6506865308647fd851976ea9c6e09a5-original.jpg => eb4a17e853114c63bfee0661b09d8237-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [49b966f7-b564-4342-8571-d200495610dd] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["eb4a17e853114c63bfee0661b09d8237-original.png", "eb4a17e853114c63bfee0661b09d8237-tiny.png", "eb4a17e853114c63bfee0661b09d8237-small.png", "eb4a17e853114c63bfee0661b09d8237-medium.png", "eb4a17e853114c63bfee0661b09d8237-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [49b966f7-b564-4342-8571-d200495610dd] Deleting: eb4a17e853114c63bfee0661b09d8237-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [49b966f7-b564-4342-8571-d200495610dd] Deleting: eb4a17e853114c63bfee0661b09d8237-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [49b966f7-b564-4342-8571-d200495610dd] Deleting: eb4a17e853114c63bfee0661b09d8237-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [49b966f7-b564-4342-8571-d200495610dd] Deleting: eb4a17e853114c63bfee0661b09d8237-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [49b966f7-b564-4342-8571-d200495610dd] Deleting: eb4a17e853114c63bfee0661b09d8237-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [49b966f7-b564-4342-8571-d200495610dd] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2444.57ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 49b966f7-b564-4342-8571-d200495610dd) to Inline(default) with arguments: ["eb4a17e853114c63bfee0661b09d8237-original.png", "eb4a17e853114c63bfee0661b09d8237-tiny.png", "eb4a17e853114c63bfee0661b09d8237-small.png", "eb4a17e853114c63bfee0661b09d8237-medium.png", "eb4a17e853114c63bfee0661b09d8237-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [b8089356-bdc6-4b83-8ace-d491235b6de0] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["e6506865308647fd851976ea9c6e09a5-original.jpg", "e6506865308647fd851976ea9c6e09a5-tiny.jpg", "e6506865308647fd851976ea9c6e09a5-small.jpg", "e6506865308647fd851976ea9c6e09a5-medium.jpg", "e6506865308647fd851976ea9c6e09a5-large.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [b8089356-bdc6-4b83-8ace-d491235b6de0] Deleting: e6506865308647fd851976ea9c6e09a5-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [b8089356-bdc6-4b83-8ace-d491235b6de0] Deleting: e6506865308647fd851976ea9c6e09a5-tiny.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [b8089356-bdc6-4b83-8ace-d491235b6de0] Deleting: e6506865308647fd851976ea9c6e09a5-small.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [b8089356-bdc6-4b83-8ace-d491235b6de0] Deleting: e6506865308647fd851976ea9c6e09a5-medium.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [b8089356-bdc6-4b83-8ace-d491235b6de0] Deleting: e6506865308647fd851976ea9c6e09a5-large.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [b8089356-bdc6-4b83-8ace-d491235b6de0] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2458.1ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: b8089356-bdc6-4b83-8ace-d491235b6de0) to Inline(default) with arguments: ["e6506865308647fd851976ea9c6e09a5-original.jpg", "e6506865308647fd851976ea9c6e09a5-tiny.jpg", "e6506865308647fd851976ea9c6e09a5-small.jpg", "e6506865308647fd851976ea9c6e09a5-medium.jpg", "e6506865308647fd851976ea9c6e09a5-large.jpg"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- HelperTest: test_fields_for --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-17eup6p.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"b9fc2c4d62e6428cbad657657831a7df\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-06T09:40:35.667-03:00\",\"paths\":{\"original\":\"b9fc2c4d62e6428cbad657657831a7df-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-12-06 12:40:35.668168"], ["updated_at", "2016-12-06 12:40:35.668168"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-17eup6p.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-pob3na.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161206-40358-pob3na.jpg => b9fc2c4d62e6428cbad657657831a7df-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [7ccf1985-4eb4-4b93-b129-7204c8bc01df] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["b9fc2c4d62e6428cbad657657831a7df-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [7ccf1985-4eb4-4b93-b129-7204c8bc01df] Deleting: b9fc2c4d62e6428cbad657657831a7df-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [7ccf1985-4eb4-4b93-b129-7204c8bc01df] Performed Attachs::Jobs::DeleteJob from Inline(default) in 363.33ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 7ccf1985-4eb4-4b93-b129-7204c8bc01df) to Inline(default) with arguments: ["b9fc2c4d62e6428cbad657657831a7df-original.jpg"]  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- ValidatorTest: test_content_type_in ----------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-j5ajbz.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-13boks5.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-1a5spg3.jpg'  (0.3ms) ROLLBACK  (0.2ms) BEGIN --------------------------------------- ValidatorTest: test_content_type_within --------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-1n8gjm1.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-1cwpxgp.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-9mpsi3.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- ValidatorTest: test_content_type_with ------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-1ptdclm.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-ylhtzw.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-1oghay5.jpg'  (0.2ms) ROLLBACK  (0.2ms) BEGIN --------------------------- ValidatorTest: test_size_in --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161206-40358-skr1fb.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-1q37vvu.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161206-40358-qvbsx.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-t5dcaw.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-lh21g.jpg'  (0.2ms) ROLLBACK  (0.2ms) BEGIN --------------------------- ValidatorTest: test_methods ---------------------------  (0.1ms) ROLLBACK  (0.2ms) BEGIN ------------------------------- ValidatorTest: test_size_within ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161206-40358-10w9fta.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-kceukv.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161206-40358-1fg9wd8.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-2t9w2c.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-msz2m2.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- ValidatorTest: test_size_less_than ---------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161206-40358-115su4y.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-gubq2r.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-rysb1x.jpg'  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------- ValidatorTest: test_size_greater_than ------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161206-40358-1ohhnth.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-14kmw1h.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161206-40358-jti2bx.jpg'  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (7.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ----------------------- UploadTest: test_upload ----------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-3410-ak11ez.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (12.4ms) INSERT INTO "uploads" ("file", "record_type", "record_attribute", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "{\"id\":\"e0e5534d61dd4ae8bcb5ac8f461cdd93\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-09T13:36:10.884-03:00\",\"paths\":{\"original\":\"e0e5534d61dd4ae8bcb5ac8f461cdd93-original.jpg\",\"tiny\":\"e0e5534d61dd4ae8bcb5ac8f461cdd93-tiny.jpg\",\"small\":\"e0e5534d61dd4ae8bcb5ac8f461cdd93-small.jpg\",\"medium\":\"e0e5534d61dd4ae8bcb5ac8f461cdd93-medium.jpg\",\"large\":\"e0e5534d61dd4ae8bcb5ac8f461cdd93-large.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["record_type", "Shop"], ["record_attribute", "logo"], ["created_at", "2016-12-09 16:36:10.885015"], ["updated_at", "2016-12-09 16:36:10.885015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-3410-ak11ez.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-3410-cm2p8w.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-3410-cm2p8w.jpg => e0e5534d61dd4ae8bcb5ac8f461cdd93-original.jpg  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ----------------------- UploadTest: test_upload ----------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-3431-4rodrh.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "uploads" ("file", "record_type", "record_attribute", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "{\"id\":\"192677eade144858932ccd4a9cd8e7d5\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-09T13:36:21.780-03:00\",\"paths\":{\"original\":\"192677eade144858932ccd4a9cd8e7d5-original.jpg\",\"tiny\":\"192677eade144858932ccd4a9cd8e7d5-tiny.jpg\",\"small\":\"192677eade144858932ccd4a9cd8e7d5-small.jpg\",\"medium\":\"192677eade144858932ccd4a9cd8e7d5-medium.jpg\",\"large\":\"192677eade144858932ccd4a9cd8e7d5-large.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["record_type", "Shop"], ["record_attribute", "logo"], ["created_at", "2016-12-09 16:36:21.781553"], ["updated_at", "2016-12-09 16:36:21.781553"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-3431-4rodrh.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-3431-1f8y2it.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-3431-1f8y2it.jpg => 192677eade144858932ccd4a9cd8e7d5-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-3431-4rodrh.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-3431-xol05c.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-3431-xol05c.jpg => 192677eade144858932ccd4a9cd8e7d5-tiny.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-3431-4rodrh.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-3431-1u8win2.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-3431-1u8win2.jpg => 192677eade144858932ccd4a9cd8e7d5-small.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-3431-4rodrh.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-3431-y8stte.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-3431-y8stte.jpg => 192677eade144858932ccd4a9cd8e7d5-medium.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-3431-4rodrh.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-3431-1nqaf1s.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-3431-1nqaf1s.jpg => 192677eade144858932ccd4a9cd8e7d5-large.jpg  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"1153b3ed014343c3beb826cd70b2be09\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-09T13:36:25.116-03:00\",\"paths\":{\"original\":\"1153b3ed014343c3beb826cd70b2be09-original.png\",\"tiny\":\"1153b3ed014343c3beb826cd70b2be09-tiny.png\",\"small\":\"1153b3ed014343c3beb826cd70b2be09-small.png\",\"medium\":\"1153b3ed014343c3beb826cd70b2be09-medium.png\",\"large\":\"1153b3ed014343c3beb826cd70b2be09-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-09 16:36:25.117496"], ["updated_at", "2016-12-09 16:36:25.117496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Copying: 192677eade144858932ccd4a9cd8e7d5-original.jpg => 1153b3ed014343c3beb826cd70b2be09-original.png Copying: 192677eade144858932ccd4a9cd8e7d5-tiny.jpg => 1153b3ed014343c3beb826cd70b2be09-tiny.png Copying: 192677eade144858932ccd4a9cd8e7d5-small.jpg => 1153b3ed014343c3beb826cd70b2be09-small.png Copying: 192677eade144858932ccd4a9cd8e7d5-medium.jpg => 1153b3ed014343c3beb826cd70b2be09-medium.png Copying: 192677eade144858932ccd4a9cd8e7d5-large.jpg => 1153b3ed014343c3beb826cd70b2be09-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [cafeca21-8d2f-40cf-b382-7d29bb7c94c5] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["1153b3ed014343c3beb826cd70b2be09-original.png", "1153b3ed014343c3beb826cd70b2be09-tiny.png", "1153b3ed014343c3beb826cd70b2be09-small.png", "1153b3ed014343c3beb826cd70b2be09-medium.png", "1153b3ed014343c3beb826cd70b2be09-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [cafeca21-8d2f-40cf-b382-7d29bb7c94c5] Deleting: 1153b3ed014343c3beb826cd70b2be09-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [cafeca21-8d2f-40cf-b382-7d29bb7c94c5] Deleting: 1153b3ed014343c3beb826cd70b2be09-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [cafeca21-8d2f-40cf-b382-7d29bb7c94c5] Deleting: 1153b3ed014343c3beb826cd70b2be09-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [cafeca21-8d2f-40cf-b382-7d29bb7c94c5] Deleting: 1153b3ed014343c3beb826cd70b2be09-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [cafeca21-8d2f-40cf-b382-7d29bb7c94c5] Deleting: 1153b3ed014343c3beb826cd70b2be09-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [cafeca21-8d2f-40cf-b382-7d29bb7c94c5] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2570.69ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: cafeca21-8d2f-40cf-b382-7d29bb7c94c5) to Inline(default) with arguments: ["1153b3ed014343c3beb826cd70b2be09-original.png", "1153b3ed014343c3beb826cd70b2be09-tiny.png", "1153b3ed014343c3beb826cd70b2be09-small.png", "1153b3ed014343c3beb826cd70b2be09-medium.png", "1153b3ed014343c3beb826cd70b2be09-large.png"] Upload Load (0.4ms) SELECT "uploads".* FROM "uploads" WHERE "uploads"."id" = $1 LIMIT 1 [["id", 11]]  (0.2ms) SAVEPOINT active_record_1 SQL (6.1ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"paths\":{\"original\":\"c569adfb2bd0434cb37106a494141908-original.png\",\"tiny\":\"c569adfb2bd0434cb37106a494141908-tiny.png\",\"small\":\"c569adfb2bd0434cb37106a494141908-small.png\",\"medium\":\"c569adfb2bd0434cb37106a494141908-medium.png\",\"large\":\"c569adfb2bd0434cb37106a494141908-large.png\"},\"old_paths\":[],\"id\":\"c569adfb2bd0434cb37106a494141908\",\"size\":74474,\"ratio\":0.6725,\"width\":400,\"height\":269,\"filename\":\"image.jpg\",\"uploaded_at\":\"2016-12-09T13:36:35.661-03:00\",\"content_type\":\"image/jpeg\"}"], ["created_at", "2016-12-09 16:36:35.661646"], ["updated_at", "2016-12-09 16:36:35.661646"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Copying: 192677eade144858932ccd4a9cd8e7d5-tiny.jpg => c569adfb2bd0434cb37106a494141908-tiny.png Copying: 192677eade144858932ccd4a9cd8e7d5-large.jpg => c569adfb2bd0434cb37106a494141908-large.png Copying: 192677eade144858932ccd4a9cd8e7d5-small.jpg => c569adfb2bd0434cb37106a494141908-small.png Copying: 192677eade144858932ccd4a9cd8e7d5-medium.jpg => c569adfb2bd0434cb37106a494141908-medium.png Copying: 192677eade144858932ccd4a9cd8e7d5-original.jpg => c569adfb2bd0434cb37106a494141908-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [3eae26fe-cddd-478a-8345-7cae6c420064] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["c569adfb2bd0434cb37106a494141908-original.png", "c569adfb2bd0434cb37106a494141908-tiny.png", "c569adfb2bd0434cb37106a494141908-small.png", "c569adfb2bd0434cb37106a494141908-medium.png", "c569adfb2bd0434cb37106a494141908-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [3eae26fe-cddd-478a-8345-7cae6c420064] Deleting: c569adfb2bd0434cb37106a494141908-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [3eae26fe-cddd-478a-8345-7cae6c420064] Deleting: c569adfb2bd0434cb37106a494141908-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [3eae26fe-cddd-478a-8345-7cae6c420064] Deleting: c569adfb2bd0434cb37106a494141908-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [3eae26fe-cddd-478a-8345-7cae6c420064] Deleting: c569adfb2bd0434cb37106a494141908-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [3eae26fe-cddd-478a-8345-7cae6c420064] Deleting: c569adfb2bd0434cb37106a494141908-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [3eae26fe-cddd-478a-8345-7cae6c420064] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2351.9ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 3eae26fe-cddd-478a-8345-7cae6c420064) to Inline(default) with arguments: ["c569adfb2bd0434cb37106a494141908-original.png", "c569adfb2bd0434cb37106a494141908-tiny.png", "c569adfb2bd0434cb37106a494141908-small.png", "c569adfb2bd0434cb37106a494141908-medium.png", "c569adfb2bd0434cb37106a494141908-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [e4345804-43a4-46cb-8c88-343140cdd3f9] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["192677eade144858932ccd4a9cd8e7d5-original.jpg", "192677eade144858932ccd4a9cd8e7d5-tiny.jpg", "192677eade144858932ccd4a9cd8e7d5-small.jpg", "192677eade144858932ccd4a9cd8e7d5-medium.jpg", "192677eade144858932ccd4a9cd8e7d5-large.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [e4345804-43a4-46cb-8c88-343140cdd3f9] Deleting: 192677eade144858932ccd4a9cd8e7d5-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [e4345804-43a4-46cb-8c88-343140cdd3f9] Deleting: 192677eade144858932ccd4a9cd8e7d5-tiny.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [e4345804-43a4-46cb-8c88-343140cdd3f9] Deleting: 192677eade144858932ccd4a9cd8e7d5-small.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [e4345804-43a4-46cb-8c88-343140cdd3f9] Deleting: 192677eade144858932ccd4a9cd8e7d5-medium.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [e4345804-43a4-46cb-8c88-343140cdd3f9] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2805.5ms ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ----------------------- UploadTest: test_upload ----------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-3499-xb6h05.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "uploads" ("file", "record_type", "record_attribute", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "{\"id\":\"c3e246b037fc4bda811414c1e7224de7\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-09T13:36:52.620-03:00\",\"paths\":{\"original\":\"c3e246b037fc4bda811414c1e7224de7-original.jpg\",\"tiny\":\"c3e246b037fc4bda811414c1e7224de7-tiny.jpg\",\"small\":\"c3e246b037fc4bda811414c1e7224de7-small.jpg\",\"medium\":\"c3e246b037fc4bda811414c1e7224de7-medium.jpg\",\"large\":\"c3e246b037fc4bda811414c1e7224de7-large.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["record_type", "Shop"], ["record_attribute", "logo"], ["created_at", "2016-12-09 16:36:52.621479"], ["updated_at", "2016-12-09 16:36:52.621479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-3499-xb6h05.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-3499-17nic81.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-3499-17nic81.jpg => c3e246b037fc4bda811414c1e7224de7-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-3499-xb6h05.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-3499-13p2cd2.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-3499-13p2cd2.jpg => c3e246b037fc4bda811414c1e7224de7-tiny.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-3499-xb6h05.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-3499-cuxp6f.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-3499-cuxp6f.jpg => c3e246b037fc4bda811414c1e7224de7-small.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-3499-xb6h05.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-3499-z5vksu.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-3499-z5vksu.jpg => c3e246b037fc4bda811414c1e7224de7-medium.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-3499-xb6h05.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-3499-n7lqpb.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-3499-n7lqpb.jpg => c3e246b037fc4bda811414c1e7224de7-large.jpg  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"9b2ad3983ecf4ad1afe7af14d6f3070c\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-09T13:36:55.697-03:00\",\"paths\":{\"original\":\"9b2ad3983ecf4ad1afe7af14d6f3070c-original.png\",\"tiny\":\"9b2ad3983ecf4ad1afe7af14d6f3070c-tiny.png\",\"small\":\"9b2ad3983ecf4ad1afe7af14d6f3070c-small.png\",\"medium\":\"9b2ad3983ecf4ad1afe7af14d6f3070c-medium.png\",\"large\":\"9b2ad3983ecf4ad1afe7af14d6f3070c-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-09 16:36:55.697776"], ["updated_at", "2016-12-09 16:36:55.697776"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Copying: c3e246b037fc4bda811414c1e7224de7-original.jpg => 9b2ad3983ecf4ad1afe7af14d6f3070c-original.png Copying: c3e246b037fc4bda811414c1e7224de7-tiny.jpg => 9b2ad3983ecf4ad1afe7af14d6f3070c-tiny.png Copying: c3e246b037fc4bda811414c1e7224de7-small.jpg => 9b2ad3983ecf4ad1afe7af14d6f3070c-small.png Copying: c3e246b037fc4bda811414c1e7224de7-medium.jpg => 9b2ad3983ecf4ad1afe7af14d6f3070c-medium.png Copying: c3e246b037fc4bda811414c1e7224de7-large.jpg => 9b2ad3983ecf4ad1afe7af14d6f3070c-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [5c282ccd-938f-45c5-83ec-3035b96ee567] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["9b2ad3983ecf4ad1afe7af14d6f3070c-original.png", "9b2ad3983ecf4ad1afe7af14d6f3070c-tiny.png", "9b2ad3983ecf4ad1afe7af14d6f3070c-small.png", "9b2ad3983ecf4ad1afe7af14d6f3070c-medium.png", "9b2ad3983ecf4ad1afe7af14d6f3070c-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [5c282ccd-938f-45c5-83ec-3035b96ee567] Deleting: 9b2ad3983ecf4ad1afe7af14d6f3070c-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [5c282ccd-938f-45c5-83ec-3035b96ee567] Deleting: 9b2ad3983ecf4ad1afe7af14d6f3070c-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [5c282ccd-938f-45c5-83ec-3035b96ee567] Deleting: 9b2ad3983ecf4ad1afe7af14d6f3070c-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [5c282ccd-938f-45c5-83ec-3035b96ee567] Deleting: 9b2ad3983ecf4ad1afe7af14d6f3070c-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [5c282ccd-938f-45c5-83ec-3035b96ee567] Deleting: 9b2ad3983ecf4ad1afe7af14d6f3070c-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [5c282ccd-938f-45c5-83ec-3035b96ee567] Performed Attachs::Jobs::DeleteJob from Inline(default) in 3394.88ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 5c282ccd-938f-45c5-83ec-3035b96ee567) to Inline(default) with arguments: ["9b2ad3983ecf4ad1afe7af14d6f3070c-original.png", "9b2ad3983ecf4ad1afe7af14d6f3070c-tiny.png", "9b2ad3983ecf4ad1afe7af14d6f3070c-small.png", "9b2ad3983ecf4ad1afe7af14d6f3070c-medium.png", "9b2ad3983ecf4ad1afe7af14d6f3070c-large.png"] Upload Load (0.3ms) SELECT "uploads".* FROM "uploads" WHERE "uploads"."id" = $1 LIMIT 1 [["id", 12]]  (0.1ms) SAVEPOINT active_record_1 SQL (6.1ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"paths\":{\"original\":\"3e6a247f49fe453aa2c596647a200593-original.png\",\"tiny\":\"3e6a247f49fe453aa2c596647a200593-tiny.png\",\"small\":\"3e6a247f49fe453aa2c596647a200593-small.png\",\"medium\":\"3e6a247f49fe453aa2c596647a200593-medium.png\",\"large\":\"3e6a247f49fe453aa2c596647a200593-large.png\"},\"old_paths\":[],\"id\":\"3e6a247f49fe453aa2c596647a200593\",\"size\":74474,\"ratio\":0.6725,\"width\":400,\"height\":269,\"filename\":\"image.jpg\",\"uploaded_at\":\"2016-12-09T13:37:06.713-03:00\",\"content_type\":\"image/jpeg\"}"], ["created_at", "2016-12-09 16:37:06.713909"], ["updated_at", "2016-12-09 16:37:06.713909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Copying: c3e246b037fc4bda811414c1e7224de7-tiny.jpg => 3e6a247f49fe453aa2c596647a200593-tiny.png Copying: c3e246b037fc4bda811414c1e7224de7-large.jpg => 3e6a247f49fe453aa2c596647a200593-large.png Copying: c3e246b037fc4bda811414c1e7224de7-small.jpg => 3e6a247f49fe453aa2c596647a200593-small.png Copying: c3e246b037fc4bda811414c1e7224de7-medium.jpg => 3e6a247f49fe453aa2c596647a200593-medium.png Copying: c3e246b037fc4bda811414c1e7224de7-original.jpg => 3e6a247f49fe453aa2c596647a200593-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [fbd4981c-5b50-4e83-8fb3-83a62ca11468] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["3e6a247f49fe453aa2c596647a200593-original.png", "3e6a247f49fe453aa2c596647a200593-tiny.png", "3e6a247f49fe453aa2c596647a200593-small.png", "3e6a247f49fe453aa2c596647a200593-medium.png", "3e6a247f49fe453aa2c596647a200593-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [fbd4981c-5b50-4e83-8fb3-83a62ca11468] Deleting: 3e6a247f49fe453aa2c596647a200593-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [fbd4981c-5b50-4e83-8fb3-83a62ca11468] Deleting: 3e6a247f49fe453aa2c596647a200593-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [fbd4981c-5b50-4e83-8fb3-83a62ca11468] Deleting: 3e6a247f49fe453aa2c596647a200593-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [fbd4981c-5b50-4e83-8fb3-83a62ca11468] Deleting: 3e6a247f49fe453aa2c596647a200593-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [fbd4981c-5b50-4e83-8fb3-83a62ca11468] Deleting: 3e6a247f49fe453aa2c596647a200593-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [fbd4981c-5b50-4e83-8fb3-83a62ca11468] Performed Attachs::Jobs::DeleteJob from Inline(default) in 3308.01ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: fbd4981c-5b50-4e83-8fb3-83a62ca11468) to Inline(default) with arguments: ["3e6a247f49fe453aa2c596647a200593-original.png", "3e6a247f49fe453aa2c596647a200593-tiny.png", "3e6a247f49fe453aa2c596647a200593-small.png", "3e6a247f49fe453aa2c596647a200593-medium.png", "3e6a247f49fe453aa2c596647a200593-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [57c66e8c-59ae-46d3-af9d-9347c42812f3] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["c3e246b037fc4bda811414c1e7224de7-original.jpg", "c3e246b037fc4bda811414c1e7224de7-tiny.jpg", "c3e246b037fc4bda811414c1e7224de7-small.jpg", "c3e246b037fc4bda811414c1e7224de7-medium.jpg", "c3e246b037fc4bda811414c1e7224de7-large.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [57c66e8c-59ae-46d3-af9d-9347c42812f3] Deleting: c3e246b037fc4bda811414c1e7224de7-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [57c66e8c-59ae-46d3-af9d-9347c42812f3] Deleting: c3e246b037fc4bda811414c1e7224de7-tiny.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [57c66e8c-59ae-46d3-af9d-9347c42812f3] Deleting: c3e246b037fc4bda811414c1e7224de7-small.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [57c66e8c-59ae-46d3-af9d-9347c42812f3] Deleting: c3e246b037fc4bda811414c1e7224de7-medium.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [57c66e8c-59ae-46d3-af9d-9347c42812f3] Deleting: c3e246b037fc4bda811414c1e7224de7-large.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [57c66e8c-59ae-46d3-af9d-9347c42812f3] Performed Attachs::Jobs::DeleteJob from Inline(default) in 1875.65ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 57c66e8c-59ae-46d3-af9d-9347c42812f3) to Inline(default) with arguments: ["c3e246b037fc4bda811414c1e7224de7-original.jpg", "c3e246b037fc4bda811414c1e7224de7-tiny.jpg", "c3e246b037fc4bda811414c1e7224de7-small.jpg", "c3e246b037fc4bda811414c1e7224de7-medium.jpg", "c3e246b037fc4bda811414c1e7224de7-large.jpg"]  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ----------------------- UploadTest: test_upload ----------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-3707-1wjtd18.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "uploads" ("file", "record_type", "record_attribute", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "{\"id\":\"318ad86becf64959925705c8c7f033b2\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-09T13:44:39.856-03:00\",\"paths\":{\"original\":\"318ad86becf64959925705c8c7f033b2-original.jpg\",\"tiny\":\"318ad86becf64959925705c8c7f033b2-tiny.jpg\",\"small\":\"318ad86becf64959925705c8c7f033b2-small.jpg\",\"medium\":\"318ad86becf64959925705c8c7f033b2-medium.jpg\",\"large\":\"318ad86becf64959925705c8c7f033b2-large.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["record_type", "Shop"], ["record_attribute", "logo"], ["created_at", "2016-12-09 16:44:39.856680"], ["updated_at", "2016-12-09 16:44:39.856680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-3707-1wjtd18.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-3707-17fiems.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-3707-17fiems.jpg => 318ad86becf64959925705c8c7f033b2-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-3707-1wjtd18.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-3707-1fu06ug.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-3707-1fu06ug.jpg => 318ad86becf64959925705c8c7f033b2-tiny.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-3707-1wjtd18.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-3707-1hn42sp.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-3707-1hn42sp.jpg => 318ad86becf64959925705c8c7f033b2-small.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-3707-1wjtd18.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-3707-x3h1ay.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-3707-x3h1ay.jpg => 318ad86becf64959925705c8c7f033b2-medium.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-3707-1wjtd18.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-3707-1ym25vs.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-3707-1ym25vs.jpg => 318ad86becf64959925705c8c7f033b2-large.jpg  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"bc38d13114104f8db32a57d474869981\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-09T13:44:43.143-03:00\",\"paths\":{\"original\":\"bc38d13114104f8db32a57d474869981-original.png\",\"tiny\":\"bc38d13114104f8db32a57d474869981-tiny.png\",\"small\":\"bc38d13114104f8db32a57d474869981-small.png\",\"medium\":\"bc38d13114104f8db32a57d474869981-medium.png\",\"large\":\"bc38d13114104f8db32a57d474869981-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-09 16:44:43.144615"], ["updated_at", "2016-12-09 16:44:43.144615"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Copying: 318ad86becf64959925705c8c7f033b2-original.jpg => bc38d13114104f8db32a57d474869981-original.png Copying: 318ad86becf64959925705c8c7f033b2-tiny.jpg => bc38d13114104f8db32a57d474869981-tiny.png Copying: 318ad86becf64959925705c8c7f033b2-small.jpg => bc38d13114104f8db32a57d474869981-small.png Copying: 318ad86becf64959925705c8c7f033b2-medium.jpg => bc38d13114104f8db32a57d474869981-medium.png Copying: 318ad86becf64959925705c8c7f033b2-large.jpg => bc38d13114104f8db32a57d474869981-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [f352acb8-02e0-4b3c-a477-9a11fb950b8f] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["bc38d13114104f8db32a57d474869981-original.png", "bc38d13114104f8db32a57d474869981-tiny.png", "bc38d13114104f8db32a57d474869981-small.png", "bc38d13114104f8db32a57d474869981-medium.png", "bc38d13114104f8db32a57d474869981-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [f352acb8-02e0-4b3c-a477-9a11fb950b8f] Deleting: bc38d13114104f8db32a57d474869981-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [f352acb8-02e0-4b3c-a477-9a11fb950b8f] Deleting: bc38d13114104f8db32a57d474869981-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [f352acb8-02e0-4b3c-a477-9a11fb950b8f] Deleting: bc38d13114104f8db32a57d474869981-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [f352acb8-02e0-4b3c-a477-9a11fb950b8f] Deleting: bc38d13114104f8db32a57d474869981-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [f352acb8-02e0-4b3c-a477-9a11fb950b8f] Deleting: bc38d13114104f8db32a57d474869981-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [f352acb8-02e0-4b3c-a477-9a11fb950b8f] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2369.03ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: f352acb8-02e0-4b3c-a477-9a11fb950b8f) to Inline(default) with arguments: ["bc38d13114104f8db32a57d474869981-original.png", "bc38d13114104f8db32a57d474869981-tiny.png", "bc38d13114104f8db32a57d474869981-small.png", "bc38d13114104f8db32a57d474869981-medium.png", "bc38d13114104f8db32a57d474869981-large.png"] Upload Load (0.3ms) SELECT "uploads".* FROM "uploads" WHERE "uploads"."id" = $1 LIMIT 1 [["id", 13]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"paths\":{\"original\":\"e7d1963667ba4822b7583fc0a40776fb-original.png\",\"tiny\":\"e7d1963667ba4822b7583fc0a40776fb-tiny.png\",\"small\":\"e7d1963667ba4822b7583fc0a40776fb-small.png\",\"medium\":\"e7d1963667ba4822b7583fc0a40776fb-medium.png\",\"large\":\"e7d1963667ba4822b7583fc0a40776fb-large.png\"},\"old_paths\":[],\"id\":\"e7d1963667ba4822b7583fc0a40776fb\",\"size\":74474,\"ratio\":0.6725,\"width\":400,\"height\":269,\"filename\":\"image.jpg\",\"uploaded_at\":\"2016-12-09T13:44:54.127-03:00\",\"content_type\":\"image/jpeg\"}"], ["created_at", "2016-12-09 16:44:54.128416"], ["updated_at", "2016-12-09 16:44:54.128416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Copying: 318ad86becf64959925705c8c7f033b2-tiny.jpg => e7d1963667ba4822b7583fc0a40776fb-tiny.png Copying: 318ad86becf64959925705c8c7f033b2-large.jpg => e7d1963667ba4822b7583fc0a40776fb-large.png Copying: 318ad86becf64959925705c8c7f033b2-small.jpg => e7d1963667ba4822b7583fc0a40776fb-small.png Copying: 318ad86becf64959925705c8c7f033b2-medium.jpg => e7d1963667ba4822b7583fc0a40776fb-medium.png Copying: 318ad86becf64959925705c8c7f033b2-original.jpg => e7d1963667ba4822b7583fc0a40776fb-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [fc220043-acb3-4349-a321-be2a276f22bf] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["e7d1963667ba4822b7583fc0a40776fb-original.png", "e7d1963667ba4822b7583fc0a40776fb-tiny.png", "e7d1963667ba4822b7583fc0a40776fb-small.png", "e7d1963667ba4822b7583fc0a40776fb-medium.png", "e7d1963667ba4822b7583fc0a40776fb-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [fc220043-acb3-4349-a321-be2a276f22bf] Deleting: e7d1963667ba4822b7583fc0a40776fb-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [fc220043-acb3-4349-a321-be2a276f22bf] Deleting: e7d1963667ba4822b7583fc0a40776fb-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [fc220043-acb3-4349-a321-be2a276f22bf] Deleting: e7d1963667ba4822b7583fc0a40776fb-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [fc220043-acb3-4349-a321-be2a276f22bf] Deleting: e7d1963667ba4822b7583fc0a40776fb-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [fc220043-acb3-4349-a321-be2a276f22bf] Deleting: e7d1963667ba4822b7583fc0a40776fb-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [fc220043-acb3-4349-a321-be2a276f22bf] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2335.82ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: fc220043-acb3-4349-a321-be2a276f22bf) to Inline(default) with arguments: ["e7d1963667ba4822b7583fc0a40776fb-original.png", "e7d1963667ba4822b7583fc0a40776fb-tiny.png", "e7d1963667ba4822b7583fc0a40776fb-small.png", "e7d1963667ba4822b7583fc0a40776fb-medium.png", "e7d1963667ba4822b7583fc0a40776fb-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [0c340d2d-3a87-42a0-863a-a81f21472c68] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["318ad86becf64959925705c8c7f033b2-original.jpg", "318ad86becf64959925705c8c7f033b2-tiny.jpg", "318ad86becf64959925705c8c7f033b2-small.jpg", "318ad86becf64959925705c8c7f033b2-medium.jpg", "318ad86becf64959925705c8c7f033b2-large.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [0c340d2d-3a87-42a0-863a-a81f21472c68] Deleting: 318ad86becf64959925705c8c7f033b2-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [0c340d2d-3a87-42a0-863a-a81f21472c68] Deleting: 318ad86becf64959925705c8c7f033b2-tiny.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [0c340d2d-3a87-42a0-863a-a81f21472c68] Deleting: 318ad86becf64959925705c8c7f033b2-small.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [0c340d2d-3a87-42a0-863a-a81f21472c68] Deleting: 318ad86becf64959925705c8c7f033b2-medium.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [0c340d2d-3a87-42a0-863a-a81f21472c68] Deleting: 318ad86becf64959925705c8c7f033b2-large.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [0c340d2d-3a87-42a0-863a-a81f21472c68] Performed Attachs::Jobs::DeleteJob from Inline(default) in 1852.38ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 0c340d2d-3a87-42a0-863a-a81f21472c68) to Inline(default) with arguments: ["318ad86becf64959925705c8c7f033b2-original.jpg", "318ad86becf64959925705c8c7f033b2-tiny.jpg", "318ad86becf64959925705c8c7f033b2-small.jpg", "318ad86becf64959925705c8c7f033b2-medium.jpg", "318ad86becf64959925705c8c7f033b2-large.jpg"]  (0.4ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ----------------------- UploadTest: test_upload ----------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-3862-fnua18.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "uploads" ("file", "record_type", "record_attribute", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "{\"id\":\"0ba255b843de41d7b10f1d4e78e64315\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-09T13:49:10.016-03:00\",\"paths\":{\"original\":\"0ba255b843de41d7b10f1d4e78e64315-original.jpg\",\"tiny\":\"0ba255b843de41d7b10f1d4e78e64315-tiny.jpg\",\"small\":\"0ba255b843de41d7b10f1d4e78e64315-small.jpg\",\"medium\":\"0ba255b843de41d7b10f1d4e78e64315-medium.jpg\",\"large\":\"0ba255b843de41d7b10f1d4e78e64315-large.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["record_type", "Shop"], ["record_attribute", "logo"], ["created_at", "2016-12-09 16:49:10.017191"], ["updated_at", "2016-12-09 16:49:10.017191"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-3862-fnua18.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-3862-11geix7.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-3862-11geix7.jpg => 0ba255b843de41d7b10f1d4e78e64315-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-3862-fnua18.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-3862-1vmwye1.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-3862-1vmwye1.jpg => 0ba255b843de41d7b10f1d4e78e64315-tiny.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-3862-fnua18.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-3862-xikihp.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-3862-xikihp.jpg => 0ba255b843de41d7b10f1d4e78e64315-small.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-3862-fnua18.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-3862-9myt9n.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-3862-9myt9n.jpg => 0ba255b843de41d7b10f1d4e78e64315-medium.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-3862-fnua18.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-3862-1mln8l0.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-3862-1mln8l0.jpg => 0ba255b843de41d7b10f1d4e78e64315-large.jpg  (0.6ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"909f7bea1217426492786502454a7a7e\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-09T13:49:13.252-03:00\",\"paths\":{\"original\":\"909f7bea1217426492786502454a7a7e-original.png\",\"tiny\":\"909f7bea1217426492786502454a7a7e-tiny.png\",\"small\":\"909f7bea1217426492786502454a7a7e-small.png\",\"medium\":\"909f7bea1217426492786502454a7a7e-medium.png\",\"large\":\"909f7bea1217426492786502454a7a7e-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-09 16:49:13.252960"], ["updated_at", "2016-12-09 16:49:13.252960"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Copying: 0ba255b843de41d7b10f1d4e78e64315-original.jpg => 909f7bea1217426492786502454a7a7e-original.png Copying: 0ba255b843de41d7b10f1d4e78e64315-tiny.jpg => 909f7bea1217426492786502454a7a7e-tiny.png Copying: 0ba255b843de41d7b10f1d4e78e64315-small.jpg => 909f7bea1217426492786502454a7a7e-small.png Copying: 0ba255b843de41d7b10f1d4e78e64315-medium.jpg => 909f7bea1217426492786502454a7a7e-medium.png Copying: 0ba255b843de41d7b10f1d4e78e64315-large.jpg => 909f7bea1217426492786502454a7a7e-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [d0b3b0d3-1b70-4d25-a53c-6316cb0328e0] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["909f7bea1217426492786502454a7a7e-original.png", "909f7bea1217426492786502454a7a7e-tiny.png", "909f7bea1217426492786502454a7a7e-small.png", "909f7bea1217426492786502454a7a7e-medium.png", "909f7bea1217426492786502454a7a7e-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [d0b3b0d3-1b70-4d25-a53c-6316cb0328e0] Deleting: 909f7bea1217426492786502454a7a7e-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [d0b3b0d3-1b70-4d25-a53c-6316cb0328e0] Deleting: 909f7bea1217426492786502454a7a7e-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [d0b3b0d3-1b70-4d25-a53c-6316cb0328e0] Deleting: 909f7bea1217426492786502454a7a7e-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [d0b3b0d3-1b70-4d25-a53c-6316cb0328e0] Deleting: 909f7bea1217426492786502454a7a7e-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [d0b3b0d3-1b70-4d25-a53c-6316cb0328e0] Deleting: 909f7bea1217426492786502454a7a7e-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [d0b3b0d3-1b70-4d25-a53c-6316cb0328e0] Performed Attachs::Jobs::DeleteJob from Inline(default) in 3278.03ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: d0b3b0d3-1b70-4d25-a53c-6316cb0328e0) to Inline(default) with arguments: ["909f7bea1217426492786502454a7a7e-original.png", "909f7bea1217426492786502454a7a7e-tiny.png", "909f7bea1217426492786502454a7a7e-small.png", "909f7bea1217426492786502454a7a7e-medium.png", "909f7bea1217426492786502454a7a7e-large.png"]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-09 16:49:25.898806"], ["updated_at", "2016-12-09 16:49:25.898806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Upload Load (0.3ms) SELECT "uploads".* FROM "uploads" WHERE "uploads"."id" = $1 LIMIT 1 [["id", 14]] SQL (0.3ms) UPDATE "shops" SET "logo" = $1, "updated_at" = $2 WHERE "shops"."id" = $3 [["logo", "{\"paths\":{\"original\":\"f6c646adfdb54d7da7568e36ff2b9c67-original.png\",\"tiny\":\"f6c646adfdb54d7da7568e36ff2b9c67-tiny.png\",\"small\":\"f6c646adfdb54d7da7568e36ff2b9c67-small.png\",\"medium\":\"f6c646adfdb54d7da7568e36ff2b9c67-medium.png\",\"large\":\"f6c646adfdb54d7da7568e36ff2b9c67-large.png\"},\"old_paths\":[],\"id\":\"f6c646adfdb54d7da7568e36ff2b9c67\",\"size\":74474,\"ratio\":0.6725,\"width\":400,\"height\":269,\"filename\":\"image.jpg\",\"uploaded_at\":\"2016-12-09T13:49:25.911-03:00\",\"content_type\":\"image/jpeg\"}"], ["updated_at", "2016-12-09 16:49:25.912323"], ["id", 65]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Copying: 0ba255b843de41d7b10f1d4e78e64315-tiny.jpg => f6c646adfdb54d7da7568e36ff2b9c67-tiny.png Copying: 0ba255b843de41d7b10f1d4e78e64315-large.jpg => f6c646adfdb54d7da7568e36ff2b9c67-large.png Copying: 0ba255b843de41d7b10f1d4e78e64315-small.jpg => f6c646adfdb54d7da7568e36ff2b9c67-small.png Copying: 0ba255b843de41d7b10f1d4e78e64315-medium.jpg => f6c646adfdb54d7da7568e36ff2b9c67-medium.png Copying: 0ba255b843de41d7b10f1d4e78e64315-original.jpg => f6c646adfdb54d7da7568e36ff2b9c67-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [95a280da-ef16-4f8f-ba54-a1f12bd18685] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["f6c646adfdb54d7da7568e36ff2b9c67-original.png", "f6c646adfdb54d7da7568e36ff2b9c67-tiny.png", "f6c646adfdb54d7da7568e36ff2b9c67-small.png", "f6c646adfdb54d7da7568e36ff2b9c67-medium.png", "f6c646adfdb54d7da7568e36ff2b9c67-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [95a280da-ef16-4f8f-ba54-a1f12bd18685] Deleting: f6c646adfdb54d7da7568e36ff2b9c67-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [95a280da-ef16-4f8f-ba54-a1f12bd18685] Deleting: f6c646adfdb54d7da7568e36ff2b9c67-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [95a280da-ef16-4f8f-ba54-a1f12bd18685] Deleting: f6c646adfdb54d7da7568e36ff2b9c67-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [95a280da-ef16-4f8f-ba54-a1f12bd18685] Deleting: f6c646adfdb54d7da7568e36ff2b9c67-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [95a280da-ef16-4f8f-ba54-a1f12bd18685] Deleting: f6c646adfdb54d7da7568e36ff2b9c67-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [95a280da-ef16-4f8f-ba54-a1f12bd18685] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2754.08ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 95a280da-ef16-4f8f-ba54-a1f12bd18685) to Inline(default) with arguments: ["f6c646adfdb54d7da7568e36ff2b9c67-original.png", "f6c646adfdb54d7da7568e36ff2b9c67-tiny.png", "f6c646adfdb54d7da7568e36ff2b9c67-small.png", "f6c646adfdb54d7da7568e36ff2b9c67-medium.png", "f6c646adfdb54d7da7568e36ff2b9c67-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [28a5a19d-3541-4606-a6e3-abb3da30172c] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["0ba255b843de41d7b10f1d4e78e64315-original.jpg", "0ba255b843de41d7b10f1d4e78e64315-tiny.jpg", "0ba255b843de41d7b10f1d4e78e64315-small.jpg", "0ba255b843de41d7b10f1d4e78e64315-medium.jpg", "0ba255b843de41d7b10f1d4e78e64315-large.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [28a5a19d-3541-4606-a6e3-abb3da30172c] Deleting: 0ba255b843de41d7b10f1d4e78e64315-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [28a5a19d-3541-4606-a6e3-abb3da30172c] Deleting: 0ba255b843de41d7b10f1d4e78e64315-tiny.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [28a5a19d-3541-4606-a6e3-abb3da30172c] Deleting: 0ba255b843de41d7b10f1d4e78e64315-small.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [28a5a19d-3541-4606-a6e3-abb3da30172c] Deleting: 0ba255b843de41d7b10f1d4e78e64315-medium.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [28a5a19d-3541-4606-a6e3-abb3da30172c] Deleting: 0ba255b843de41d7b10f1d4e78e64315-large.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [28a5a19d-3541-4606-a6e3-abb3da30172c] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2025.04ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 28a5a19d-3541-4606-a6e3-abb3da30172c) to Inline(default) with arguments: ["0ba255b843de41d7b10f1d4e78e64315-original.jpg", "0ba255b843de41d7b10f1d4e78e64315-tiny.jpg", "0ba255b843de41d7b10f1d4e78e64315-small.jpg", "0ba255b843de41d7b10f1d4e78e64315-medium.jpg", "0ba255b843de41d7b10f1d4e78e64315-large.jpg"]  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ----------------------- UploadTest: test_upload ----------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-4396-1hbdoeh.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ----------------------- UploadTest: test_upload ----------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-4436-h5j1pa.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "uploads" ("file", "record_type", "record_attribute", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "{\"id\":\"68a657d46daa4414881b88be3ab540cc\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-09T14:05:02.099-03:00\",\"paths\":{\"original\":\"68a657d46daa4414881b88be3ab540cc-original.jpg\",\"tiny\":\"68a657d46daa4414881b88be3ab540cc-tiny.jpg\",\"small\":\"68a657d46daa4414881b88be3ab540cc-small.jpg\",\"medium\":\"68a657d46daa4414881b88be3ab540cc-medium.jpg\",\"large\":\"68a657d46daa4414881b88be3ab540cc-large.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["record_type", "Shop"], ["record_attribute", "logo"], ["created_at", "2016-12-09 17:05:02.100410"], ["updated_at", "2016-12-09 17:05:02.100410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-4436-h5j1pa.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-4436-bjcd2t.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-4436-bjcd2t.jpg => 68a657d46daa4414881b88be3ab540cc-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-4436-h5j1pa.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-4436-1m6dmgr.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-4436-1m6dmgr.jpg => 68a657d46daa4414881b88be3ab540cc-tiny.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-4436-h5j1pa.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-4436-cej6mx.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-4436-cej6mx.jpg => 68a657d46daa4414881b88be3ab540cc-small.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-4436-h5j1pa.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-4436-1x623oh.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-4436-1x623oh.jpg => 68a657d46daa4414881b88be3ab540cc-medium.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-4436-h5j1pa.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-4436-1bicxyv.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-4436-1bicxyv.jpg => 68a657d46daa4414881b88be3ab540cc-large.jpg  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Copying: 68a657d46daa4414881b88be3ab540cc-original.jpg =>  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ----------------------- UploadTest: test_upload ----------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-4465-1xjvh1z.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "uploads" ("file", "record_type", "record_attribute", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "{\"id\":\"b0001311d89a4c1e859bf2d78dda7fee\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-09T14:05:19.215-03:00\",\"paths\":{\"original\":\"b0001311d89a4c1e859bf2d78dda7fee-original.jpg\",\"tiny\":\"b0001311d89a4c1e859bf2d78dda7fee-tiny.jpg\",\"small\":\"b0001311d89a4c1e859bf2d78dda7fee-small.jpg\",\"medium\":\"b0001311d89a4c1e859bf2d78dda7fee-medium.jpg\",\"large\":\"b0001311d89a4c1e859bf2d78dda7fee-large.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["record_type", "Shop"], ["record_attribute", "logo"], ["created_at", "2016-12-09 17:05:19.215991"], ["updated_at", "2016-12-09 17:05:19.215991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-4465-1xjvh1z.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-4465-76elqw.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-4465-76elqw.jpg => b0001311d89a4c1e859bf2d78dda7fee-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-4465-1xjvh1z.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-4465-s4mzj.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-4465-s4mzj.jpg => b0001311d89a4c1e859bf2d78dda7fee-tiny.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-4465-1xjvh1z.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-4465-1u4ozs1.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-4465-1u4ozs1.jpg => b0001311d89a4c1e859bf2d78dda7fee-small.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-4465-1xjvh1z.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-4465-fcs13s.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-4465-fcs13s.jpg => b0001311d89a4c1e859bf2d78dda7fee-medium.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-4465-1xjvh1z.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-4465-nweiz2.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-4465-nweiz2.jpg => b0001311d89a4c1e859bf2d78dda7fee-large.jpg  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Copying: b0001311d89a4c1e859bf2d78dda7fee-original.jpg =>  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ----------------------- UploadTest: test_upload ----------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-4541-17xjq5g.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "uploads" ("file", "record_type", "record_attribute", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "{\"id\":\"273c1ecaea884fe9b431442d3fcbab70\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-09T14:07:05.306-03:00\",\"paths\":{\"original\":\"273c1ecaea884fe9b431442d3fcbab70-original.jpg\",\"tiny\":\"273c1ecaea884fe9b431442d3fcbab70-tiny.jpg\",\"small\":\"273c1ecaea884fe9b431442d3fcbab70-small.jpg\",\"medium\":\"273c1ecaea884fe9b431442d3fcbab70-medium.jpg\",\"large\":\"273c1ecaea884fe9b431442d3fcbab70-large.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["record_type", "Shop"], ["record_attribute", "logo"], ["created_at", "2016-12-09 17:07:05.307226"], ["updated_at", "2016-12-09 17:07:05.307226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-4541-17xjq5g.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-4541-8yzced.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-4541-8yzced.jpg => 273c1ecaea884fe9b431442d3fcbab70-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-4541-17xjq5g.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-4541-8ggm10.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-4541-8ggm10.jpg => 273c1ecaea884fe9b431442d3fcbab70-tiny.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-4541-17xjq5g.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-4541-1ynz45n.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-4541-1ynz45n.jpg => 273c1ecaea884fe9b431442d3fcbab70-small.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-4541-17xjq5g.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-4541-1m3368x.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-4541-1m3368x.jpg => 273c1ecaea884fe9b431442d3fcbab70-medium.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-4541-17xjq5g.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-4541-1cmvv6s.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-4541-1cmvv6s.jpg => 273c1ecaea884fe9b431442d3fcbab70-large.jpg  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ----------------------- UploadTest: test_upload ----------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-v3b7jm.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "uploads" ("file", "record_type", "record_attribute", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "{\"id\":\"a677782bc4f947ee8b59871fe6342f95\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-09T14:53:04.804-03:00\",\"paths\":{\"original\":\"a677782bc4f947ee8b59871fe6342f95-original.jpg\",\"tiny\":\"a677782bc4f947ee8b59871fe6342f95-tiny.jpg\",\"small\":\"a677782bc4f947ee8b59871fe6342f95-small.jpg\",\"medium\":\"a677782bc4f947ee8b59871fe6342f95-medium.jpg\",\"large\":\"a677782bc4f947ee8b59871fe6342f95-large.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["record_type", "Shop"], ["record_attribute", "logo"], ["created_at", "2016-12-09 17:53:04.804914"], ["updated_at", "2016-12-09 17:53:04.804914"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-v3b7jm.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1owctx8.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1owctx8.jpg => a677782bc4f947ee8b59871fe6342f95-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-v3b7jm.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1w8z3gz.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1w8z3gz.jpg => a677782bc4f947ee8b59871fe6342f95-tiny.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-v3b7jm.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-12i2pie.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-12i2pie.jpg => a677782bc4f947ee8b59871fe6342f95-small.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-v3b7jm.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-r4r4qu.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-r4r4qu.jpg => a677782bc4f947ee8b59871fe6342f95-medium.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-v3b7jm.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-7gydqu.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-7gydqu.jpg => a677782bc4f947ee8b59871fe6342f95-large.jpg  (0.2ms) SAVEPOINT active_record_1 SQL (5.5ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"6cdf7a5ec76e433aaa70a7f4ba4f7fe2\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-09T14:53:08.348-03:00\",\"paths\":{\"original\":\"6cdf7a5ec76e433aaa70a7f4ba4f7fe2-original.png\",\"tiny\":\"6cdf7a5ec76e433aaa70a7f4ba4f7fe2-tiny.png\",\"small\":\"6cdf7a5ec76e433aaa70a7f4ba4f7fe2-small.png\",\"medium\":\"6cdf7a5ec76e433aaa70a7f4ba4f7fe2-medium.png\",\"large\":\"6cdf7a5ec76e433aaa70a7f4ba4f7fe2-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-09 17:53:08.349189"], ["updated_at", "2016-12-09 17:53:08.349189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Copying: a677782bc4f947ee8b59871fe6342f95-original.jpg => 6cdf7a5ec76e433aaa70a7f4ba4f7fe2-original.png Copying: a677782bc4f947ee8b59871fe6342f95-tiny.jpg => 6cdf7a5ec76e433aaa70a7f4ba4f7fe2-tiny.png Copying: a677782bc4f947ee8b59871fe6342f95-small.jpg => 6cdf7a5ec76e433aaa70a7f4ba4f7fe2-small.png Copying: a677782bc4f947ee8b59871fe6342f95-medium.jpg => 6cdf7a5ec76e433aaa70a7f4ba4f7fe2-medium.png Copying: a677782bc4f947ee8b59871fe6342f95-large.jpg => 6cdf7a5ec76e433aaa70a7f4ba4f7fe2-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [7739c4db-bc30-41a2-8e3f-97f0d828a551] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["6cdf7a5ec76e433aaa70a7f4ba4f7fe2-original.png", "6cdf7a5ec76e433aaa70a7f4ba4f7fe2-tiny.png", "6cdf7a5ec76e433aaa70a7f4ba4f7fe2-small.png", "6cdf7a5ec76e433aaa70a7f4ba4f7fe2-medium.png", "6cdf7a5ec76e433aaa70a7f4ba4f7fe2-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [7739c4db-bc30-41a2-8e3f-97f0d828a551] Deleting: 6cdf7a5ec76e433aaa70a7f4ba4f7fe2-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [7739c4db-bc30-41a2-8e3f-97f0d828a551] Deleting: 6cdf7a5ec76e433aaa70a7f4ba4f7fe2-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [7739c4db-bc30-41a2-8e3f-97f0d828a551] Deleting: 6cdf7a5ec76e433aaa70a7f4ba4f7fe2-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [7739c4db-bc30-41a2-8e3f-97f0d828a551] Deleting: 6cdf7a5ec76e433aaa70a7f4ba4f7fe2-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [7739c4db-bc30-41a2-8e3f-97f0d828a551] Deleting: 6cdf7a5ec76e433aaa70a7f4ba4f7fe2-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [7739c4db-bc30-41a2-8e3f-97f0d828a551] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2491.84ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 7739c4db-bc30-41a2-8e3f-97f0d828a551) to Inline(default) with arguments: ["6cdf7a5ec76e433aaa70a7f4ba4f7fe2-original.png", "6cdf7a5ec76e433aaa70a7f4ba4f7fe2-tiny.png", "6cdf7a5ec76e433aaa70a7f4ba4f7fe2-small.png", "6cdf7a5ec76e433aaa70a7f4ba4f7fe2-medium.png", "6cdf7a5ec76e433aaa70a7f4ba4f7fe2-large.png"] Upload Load (0.3ms) SELECT "uploads".* FROM "uploads" WHERE "uploads"."id" = $1 LIMIT 1 [["id", 18]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"paths\":{\"original\":\"8a8320a148a34c8987e32144bdf7f17e-original.png\",\"tiny\":\"8a8320a148a34c8987e32144bdf7f17e-tiny.png\",\"small\":\"8a8320a148a34c8987e32144bdf7f17e-small.png\",\"medium\":\"8a8320a148a34c8987e32144bdf7f17e-medium.png\",\"large\":\"8a8320a148a34c8987e32144bdf7f17e-large.png\"},\"old_paths\":[],\"id\":\"8a8320a148a34c8987e32144bdf7f17e\",\"size\":74474,\"ratio\":0.6725,\"width\":400,\"height\":269,\"filename\":\"image.jpg\",\"uploaded_at\":\"2016-12-09T14:53:20.552-03:00\",\"content_type\":\"image/jpeg\"}"], ["created_at", "2016-12-09 17:53:20.552741"], ["updated_at", "2016-12-09 17:53:20.552741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Copying: a677782bc4f947ee8b59871fe6342f95-tiny.jpg => 8a8320a148a34c8987e32144bdf7f17e-tiny.png Copying: a677782bc4f947ee8b59871fe6342f95-large.jpg => 8a8320a148a34c8987e32144bdf7f17e-large.png Copying: a677782bc4f947ee8b59871fe6342f95-small.jpg => 8a8320a148a34c8987e32144bdf7f17e-small.png Copying: a677782bc4f947ee8b59871fe6342f95-medium.jpg => 8a8320a148a34c8987e32144bdf7f17e-medium.png Copying: a677782bc4f947ee8b59871fe6342f95-original.jpg => 8a8320a148a34c8987e32144bdf7f17e-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [d781525c-5ac8-41c8-aeaf-9f8d933ca9b6] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["8a8320a148a34c8987e32144bdf7f17e-original.png", "8a8320a148a34c8987e32144bdf7f17e-tiny.png", "8a8320a148a34c8987e32144bdf7f17e-small.png", "8a8320a148a34c8987e32144bdf7f17e-medium.png", "8a8320a148a34c8987e32144bdf7f17e-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [d781525c-5ac8-41c8-aeaf-9f8d933ca9b6] Deleting: 8a8320a148a34c8987e32144bdf7f17e-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [d781525c-5ac8-41c8-aeaf-9f8d933ca9b6] Deleting: 8a8320a148a34c8987e32144bdf7f17e-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [d781525c-5ac8-41c8-aeaf-9f8d933ca9b6] Deleting: 8a8320a148a34c8987e32144bdf7f17e-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [d781525c-5ac8-41c8-aeaf-9f8d933ca9b6] Deleting: 8a8320a148a34c8987e32144bdf7f17e-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [d781525c-5ac8-41c8-aeaf-9f8d933ca9b6] Deleting: 8a8320a148a34c8987e32144bdf7f17e-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [d781525c-5ac8-41c8-aeaf-9f8d933ca9b6] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2639.93ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: d781525c-5ac8-41c8-aeaf-9f8d933ca9b6) to Inline(default) with arguments: ["8a8320a148a34c8987e32144bdf7f17e-original.png", "8a8320a148a34c8987e32144bdf7f17e-tiny.png", "8a8320a148a34c8987e32144bdf7f17e-small.png", "8a8320a148a34c8987e32144bdf7f17e-medium.png", "8a8320a148a34c8987e32144bdf7f17e-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [f87b6759-347d-4689-936c-38dc4fcb5ab0] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["a677782bc4f947ee8b59871fe6342f95-original.jpg", "a677782bc4f947ee8b59871fe6342f95-tiny.jpg", "a677782bc4f947ee8b59871fe6342f95-small.jpg", "a677782bc4f947ee8b59871fe6342f95-medium.jpg", "a677782bc4f947ee8b59871fe6342f95-large.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [f87b6759-347d-4689-936c-38dc4fcb5ab0] Deleting: a677782bc4f947ee8b59871fe6342f95-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [f87b6759-347d-4689-936c-38dc4fcb5ab0] Deleting: a677782bc4f947ee8b59871fe6342f95-tiny.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [f87b6759-347d-4689-936c-38dc4fcb5ab0] Deleting: a677782bc4f947ee8b59871fe6342f95-small.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [f87b6759-347d-4689-936c-38dc4fcb5ab0] Deleting: a677782bc4f947ee8b59871fe6342f95-medium.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [f87b6759-347d-4689-936c-38dc4fcb5ab0] Deleting: a677782bc4f947ee8b59871fe6342f95-large.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [f87b6759-347d-4689-936c-38dc4fcb5ab0] Performed Attachs::Jobs::DeleteJob from Inline(default) in 1980.92ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: f87b6759-347d-4689-936c-38dc4fcb5ab0) to Inline(default) with arguments: ["a677782bc4f947ee8b59871fe6342f95-original.jpg", "a677782bc4f947ee8b59871fe6342f95-tiny.jpg", "a677782bc4f947ee8b59871fe6342f95-small.jpg", "a677782bc4f947ee8b59871fe6342f95-medium.jpg", "a677782bc4f947ee8b59871fe6342f95-large.jpg"]  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- CollectionTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-1fyl8zu.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-uysp87.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"ddbf4dd54c3b4aa8bcc0092b6198a827\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-09T14:53:34.261-03:00\",\"paths\":{\"original\":\"ddbf4dd54c3b4aa8bcc0092b6198a827-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725},{\"id\":\"4cec371ec9464569ab03f61f1faf7e94\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-09T14:53:34.262-03:00\",\"paths\":{\"original\":\"4cec371ec9464569ab03f61f1faf7e94-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-12-09 17:53:34.263189"], ["updated_at", "2016-12-09 17:53:34.263189"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-1fyl8zu.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-rcgr0q.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-rcgr0q.jpg => ddbf4dd54c3b4aa8bcc0092b6198a827-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-uysp87.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-i9kzrp.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-i9kzrp.jpg => 4cec371ec9464569ab03f61f1faf7e94-original.jpg Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 33]] [ActiveJob] [Attachs::Jobs::DeleteJob] [ab3e9d95-1b5a-405d-abd9-a595d95dcc9b] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["ddbf4dd54c3b4aa8bcc0092b6198a827-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [ab3e9d95-1b5a-405d-abd9-a595d95dcc9b] Deleting: ddbf4dd54c3b4aa8bcc0092b6198a827-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [ab3e9d95-1b5a-405d-abd9-a595d95dcc9b] Performed Attachs::Jobs::DeleteJob from Inline(default) in 378.61ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: ab3e9d95-1b5a-405d-abd9-a595d95dcc9b) to Inline(default) with arguments: ["ddbf4dd54c3b4aa8bcc0092b6198a827-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [4ffb2965-b145-4cbe-b3fd-aa40441896e0] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["4cec371ec9464569ab03f61f1faf7e94-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [4ffb2965-b145-4cbe-b3fd-aa40441896e0] Deleting: 4cec371ec9464569ab03f61f1faf7e94-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [4ffb2965-b145-4cbe-b3fd-aa40441896e0] Performed Attachs::Jobs::DeleteJob from Inline(default) in 379.61ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 4ffb2965-b145-4cbe-b3fd-aa40441896e0) to Inline(default) with arguments: ["4cec371ec9464569ab03f61f1faf7e94-original.jpg"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------- CollectionTest: test_index -------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-1lfqh6u.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-m9vko4.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"29f1ff4bb59a4f4d827f91febf6000bd\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-09T14:53:35.965-03:00\",\"paths\":{\"original\":\"29f1ff4bb59a4f4d827f91febf6000bd-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725,\"position\":0},{\"id\":\"156950b0c8cc4579a9cf91d579fcf502\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-09T14:53:35.965-03:00\",\"paths\":{\"original\":\"156950b0c8cc4579a9cf91d579fcf502-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-12-09 17:53:35.966463"], ["updated_at", "2016-12-09 17:53:35.966463"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 34]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------- CollectionTest: test_nested_attributes -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-hbhzr8.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-1lindrx.jpg'  (0.2ms) ROLLBACK  (0.2ms) BEGIN --------------------------- HelperTest: test_fields_for --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-c92s6u.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"7451fd36959e4af3a3eb69e509d6f641\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-09T14:53:35.997-03:00\",\"paths\":{\"original\":\"7451fd36959e4af3a3eb69e509d6f641-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-12-09 17:53:35.998293"], ["updated_at", "2016-12-09 17:53:35.998293"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-c92s6u.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-12itwg1.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-12itwg1.jpg => 7451fd36959e4af3a3eb69e509d6f641-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [931ae2e2-079f-4be3-a88d-377d1bb214de] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["7451fd36959e4af3a3eb69e509d6f641-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [931ae2e2-079f-4be3-a88d-377d1bb214de] Deleting: 7451fd36959e4af3a3eb69e509d6f641-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [931ae2e2-079f-4be3-a88d-377d1bb214de] Performed Attachs::Jobs::DeleteJob from Inline(default) in 457.6ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 931ae2e2-079f-4be3-a88d-377d1bb214de) to Inline(default) with arguments: ["7451fd36959e4af3a3eb69e509d6f641-original.jpg"]  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------- RecordTest: test_dup --------------------  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------ RecordTest: test_inherit ------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------- TaskTest: test_clear -------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-zcoq7b.jpg'  (0.4ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"15874968fa4049188f0f650d2c3bb52f\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-09T14:53:36.956-03:00\",\"paths\":{\"original\":\"15874968fa4049188f0f650d2c3bb52f-original.png\",\"tiny\":\"15874968fa4049188f0f650d2c3bb52f-tiny.png\",\"small\":\"15874968fa4049188f0f650d2c3bb52f-small.png\",\"medium\":\"15874968fa4049188f0f650d2c3bb52f-medium.png\",\"large\":\"15874968fa4049188f0f650d2c3bb52f-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-09 17:53:36.956893"], ["updated_at", "2016-12-09 17:53:36.956893"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-zcoq7b.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-fgdp9e.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-fgdp9e.png => 15874968fa4049188f0f650d2c3bb52f-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-zcoq7b.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1bhup2j.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1bhup2j.png => 15874968fa4049188f0f650d2c3bb52f-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-zcoq7b.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-clph4w.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-clph4w.png => 15874968fa4049188f0f650d2c3bb52f-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-zcoq7b.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1lvwznv.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1lvwznv.png => 15874968fa4049188f0f650d2c3bb52f-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-zcoq7b.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1wzwjza.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1wzwjza.png => 15874968fa4049188f0f650d2c3bb52f-large.png Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-1ghnobb.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"7bc897df78a34182bb10f50c0dce298d\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-09T14:53:39.910-03:00\",\"paths\":{\"original\":\"7bc897df78a34182bb10f50c0dce298d-original.png\",\"tiny\":\"7bc897df78a34182bb10f50c0dce298d-tiny.png\",\"small\":\"7bc897df78a34182bb10f50c0dce298d-small.png\",\"medium\":\"7bc897df78a34182bb10f50c0dce298d-medium.png\",\"large\":\"7bc897df78a34182bb10f50c0dce298d-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-09 17:53:39.911061"], ["updated_at", "2016-12-09 17:53:39.911061"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-1ghnobb.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1xli5n0.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1xli5n0.png => 7bc897df78a34182bb10f50c0dce298d-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-1ghnobb.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-15h29tl.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-15h29tl.png => 7bc897df78a34182bb10f50c0dce298d-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-1ghnobb.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-42w8z4.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-42w8z4.png => 7bc897df78a34182bb10f50c0dce298d-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-1ghnobb.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1apjlfx.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1apjlfx.png => 7bc897df78a34182bb10f50c0dce298d-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-1ghnobb.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-8xpzk.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-8xpzk.png => 7bc897df78a34182bb10f50c0dce298d-large.png SQL (0.3ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 69]]  (27.0ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = '15874968fa4049188f0f650d2c3bb52f-large.png' OR old_paths.value = '15874968fa4049188f0f650d2c3bb52f-large.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '15874968fa4049188f0f650d2c3bb52f-large.png' OR old_paths.value = '15874968fa4049188f0f650d2c3bb52f-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '15874968fa4049188f0f650d2c3bb52f-large.png' OR old_paths.value = '15874968fa4049188f0f650d2c3bb52f-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '15874968fa4049188f0f650d2c3bb52f-large.png' OR old_paths.value = '15874968fa4049188f0f650d2c3bb52f-large.png')  (0.6ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = '15874968fa4049188f0f650d2c3bb52f-medium.png' OR old_paths.value = '15874968fa4049188f0f650d2c3bb52f-medium.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '15874968fa4049188f0f650d2c3bb52f-medium.png' OR old_paths.value = '15874968fa4049188f0f650d2c3bb52f-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '15874968fa4049188f0f650d2c3bb52f-medium.png' OR old_paths.value = '15874968fa4049188f0f650d2c3bb52f-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '15874968fa4049188f0f650d2c3bb52f-medium.png' OR old_paths.value = '15874968fa4049188f0f650d2c3bb52f-medium.png')  (0.5ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = '15874968fa4049188f0f650d2c3bb52f-original.png' OR old_paths.value = '15874968fa4049188f0f650d2c3bb52f-original.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '15874968fa4049188f0f650d2c3bb52f-original.png' OR old_paths.value = '15874968fa4049188f0f650d2c3bb52f-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '15874968fa4049188f0f650d2c3bb52f-original.png' OR old_paths.value = '15874968fa4049188f0f650d2c3bb52f-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '15874968fa4049188f0f650d2c3bb52f-original.png' OR old_paths.value = '15874968fa4049188f0f650d2c3bb52f-original.png')  (0.4ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = '15874968fa4049188f0f650d2c3bb52f-small.png' OR old_paths.value = '15874968fa4049188f0f650d2c3bb52f-small.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '15874968fa4049188f0f650d2c3bb52f-small.png' OR old_paths.value = '15874968fa4049188f0f650d2c3bb52f-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '15874968fa4049188f0f650d2c3bb52f-small.png' OR old_paths.value = '15874968fa4049188f0f650d2c3bb52f-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '15874968fa4049188f0f650d2c3bb52f-small.png' OR old_paths.value = '15874968fa4049188f0f650d2c3bb52f-small.png')  (0.4ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = '15874968fa4049188f0f650d2c3bb52f-tiny.png' OR old_paths.value = '15874968fa4049188f0f650d2c3bb52f-tiny.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '15874968fa4049188f0f650d2c3bb52f-tiny.png' OR old_paths.value = '15874968fa4049188f0f650d2c3bb52f-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '15874968fa4049188f0f650d2c3bb52f-tiny.png' OR old_paths.value = '15874968fa4049188f0f650d2c3bb52f-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '15874968fa4049188f0f650d2c3bb52f-tiny.png' OR old_paths.value = '15874968fa4049188f0f650d2c3bb52f-tiny.png')  (0.7ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = '192677eade144858932ccd4a9cd8e7d5-large.jpg' OR old_paths.value = '192677eade144858932ccd4a9cd8e7d5-large.jpg') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '192677eade144858932ccd4a9cd8e7d5-large.jpg' OR old_paths.value = '192677eade144858932ccd4a9cd8e7d5-large.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '192677eade144858932ccd4a9cd8e7d5-large.jpg' OR old_paths.value = '192677eade144858932ccd4a9cd8e7d5-large.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '192677eade144858932ccd4a9cd8e7d5-large.jpg' OR old_paths.value = '192677eade144858932ccd4a9cd8e7d5-large.jpg') Deleting 192677eade144858932ccd4a9cd8e7d5-large.jpg Deleting: 192677eade144858932ccd4a9cd8e7d5-large.jpg  (0.7ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = '273c1ecaea884fe9b431442d3fcbab70-large.jpg' OR old_paths.value = '273c1ecaea884fe9b431442d3fcbab70-large.jpg') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '273c1ecaea884fe9b431442d3fcbab70-large.jpg' OR old_paths.value = '273c1ecaea884fe9b431442d3fcbab70-large.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '273c1ecaea884fe9b431442d3fcbab70-large.jpg' OR old_paths.value = '273c1ecaea884fe9b431442d3fcbab70-large.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '273c1ecaea884fe9b431442d3fcbab70-large.jpg' OR old_paths.value = '273c1ecaea884fe9b431442d3fcbab70-large.jpg') Deleting 273c1ecaea884fe9b431442d3fcbab70-large.jpg Deleting: 273c1ecaea884fe9b431442d3fcbab70-large.jpg  (0.6ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = '273c1ecaea884fe9b431442d3fcbab70-medium.jpg' OR old_paths.value = '273c1ecaea884fe9b431442d3fcbab70-medium.jpg') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '273c1ecaea884fe9b431442d3fcbab70-medium.jpg' OR old_paths.value = '273c1ecaea884fe9b431442d3fcbab70-medium.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '273c1ecaea884fe9b431442d3fcbab70-medium.jpg' OR old_paths.value = '273c1ecaea884fe9b431442d3fcbab70-medium.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '273c1ecaea884fe9b431442d3fcbab70-medium.jpg' OR old_paths.value = '273c1ecaea884fe9b431442d3fcbab70-medium.jpg') Deleting 273c1ecaea884fe9b431442d3fcbab70-medium.jpg Deleting: 273c1ecaea884fe9b431442d3fcbab70-medium.jpg  (1.1ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = '273c1ecaea884fe9b431442d3fcbab70-original.jpg' OR old_paths.value = '273c1ecaea884fe9b431442d3fcbab70-original.jpg') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '273c1ecaea884fe9b431442d3fcbab70-original.jpg' OR old_paths.value = '273c1ecaea884fe9b431442d3fcbab70-original.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '273c1ecaea884fe9b431442d3fcbab70-original.jpg' OR old_paths.value = '273c1ecaea884fe9b431442d3fcbab70-original.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '273c1ecaea884fe9b431442d3fcbab70-original.jpg' OR old_paths.value = '273c1ecaea884fe9b431442d3fcbab70-original.jpg') Deleting 273c1ecaea884fe9b431442d3fcbab70-original.jpg Deleting: 273c1ecaea884fe9b431442d3fcbab70-original.jpg  (0.6ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = '273c1ecaea884fe9b431442d3fcbab70-small.jpg' OR old_paths.value = '273c1ecaea884fe9b431442d3fcbab70-small.jpg') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '273c1ecaea884fe9b431442d3fcbab70-small.jpg' OR old_paths.value = '273c1ecaea884fe9b431442d3fcbab70-small.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '273c1ecaea884fe9b431442d3fcbab70-small.jpg' OR old_paths.value = '273c1ecaea884fe9b431442d3fcbab70-small.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '273c1ecaea884fe9b431442d3fcbab70-small.jpg' OR old_paths.value = '273c1ecaea884fe9b431442d3fcbab70-small.jpg') Deleting 273c1ecaea884fe9b431442d3fcbab70-small.jpg Deleting: 273c1ecaea884fe9b431442d3fcbab70-small.jpg  (0.7ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = '273c1ecaea884fe9b431442d3fcbab70-tiny.jpg' OR old_paths.value = '273c1ecaea884fe9b431442d3fcbab70-tiny.jpg') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '273c1ecaea884fe9b431442d3fcbab70-tiny.jpg' OR old_paths.value = '273c1ecaea884fe9b431442d3fcbab70-tiny.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '273c1ecaea884fe9b431442d3fcbab70-tiny.jpg' OR old_paths.value = '273c1ecaea884fe9b431442d3fcbab70-tiny.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '273c1ecaea884fe9b431442d3fcbab70-tiny.jpg' OR old_paths.value = '273c1ecaea884fe9b431442d3fcbab70-tiny.jpg') Deleting 273c1ecaea884fe9b431442d3fcbab70-tiny.jpg Deleting: 273c1ecaea884fe9b431442d3fcbab70-tiny.jpg  (0.6ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = '68a657d46daa4414881b88be3ab540cc-large.jpg' OR old_paths.value = '68a657d46daa4414881b88be3ab540cc-large.jpg') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '68a657d46daa4414881b88be3ab540cc-large.jpg' OR old_paths.value = '68a657d46daa4414881b88be3ab540cc-large.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '68a657d46daa4414881b88be3ab540cc-large.jpg' OR old_paths.value = '68a657d46daa4414881b88be3ab540cc-large.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '68a657d46daa4414881b88be3ab540cc-large.jpg' OR old_paths.value = '68a657d46daa4414881b88be3ab540cc-large.jpg') Deleting 68a657d46daa4414881b88be3ab540cc-large.jpg Deleting: 68a657d46daa4414881b88be3ab540cc-large.jpg  (0.8ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = '68a657d46daa4414881b88be3ab540cc-medium.jpg' OR old_paths.value = '68a657d46daa4414881b88be3ab540cc-medium.jpg') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '68a657d46daa4414881b88be3ab540cc-medium.jpg' OR old_paths.value = '68a657d46daa4414881b88be3ab540cc-medium.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '68a657d46daa4414881b88be3ab540cc-medium.jpg' OR old_paths.value = '68a657d46daa4414881b88be3ab540cc-medium.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '68a657d46daa4414881b88be3ab540cc-medium.jpg' OR old_paths.value = '68a657d46daa4414881b88be3ab540cc-medium.jpg') Deleting 68a657d46daa4414881b88be3ab540cc-medium.jpg Deleting: 68a657d46daa4414881b88be3ab540cc-medium.jpg  (0.6ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = '68a657d46daa4414881b88be3ab540cc-original.jpg' OR old_paths.value = '68a657d46daa4414881b88be3ab540cc-original.jpg') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '68a657d46daa4414881b88be3ab540cc-original.jpg' OR old_paths.value = '68a657d46daa4414881b88be3ab540cc-original.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '68a657d46daa4414881b88be3ab540cc-original.jpg' OR old_paths.value = '68a657d46daa4414881b88be3ab540cc-original.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '68a657d46daa4414881b88be3ab540cc-original.jpg' OR old_paths.value = '68a657d46daa4414881b88be3ab540cc-original.jpg') Deleting 68a657d46daa4414881b88be3ab540cc-original.jpg Deleting: 68a657d46daa4414881b88be3ab540cc-original.jpg  (0.6ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = '68a657d46daa4414881b88be3ab540cc-small.jpg' OR old_paths.value = '68a657d46daa4414881b88be3ab540cc-small.jpg') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '68a657d46daa4414881b88be3ab540cc-small.jpg' OR old_paths.value = '68a657d46daa4414881b88be3ab540cc-small.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '68a657d46daa4414881b88be3ab540cc-small.jpg' OR old_paths.value = '68a657d46daa4414881b88be3ab540cc-small.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '68a657d46daa4414881b88be3ab540cc-small.jpg' OR old_paths.value = '68a657d46daa4414881b88be3ab540cc-small.jpg') Deleting 68a657d46daa4414881b88be3ab540cc-small.jpg Deleting: 68a657d46daa4414881b88be3ab540cc-small.jpg  (0.6ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = '68a657d46daa4414881b88be3ab540cc-tiny.jpg' OR old_paths.value = '68a657d46daa4414881b88be3ab540cc-tiny.jpg') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '68a657d46daa4414881b88be3ab540cc-tiny.jpg' OR old_paths.value = '68a657d46daa4414881b88be3ab540cc-tiny.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '68a657d46daa4414881b88be3ab540cc-tiny.jpg' OR old_paths.value = '68a657d46daa4414881b88be3ab540cc-tiny.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '68a657d46daa4414881b88be3ab540cc-tiny.jpg' OR old_paths.value = '68a657d46daa4414881b88be3ab540cc-tiny.jpg') Deleting 68a657d46daa4414881b88be3ab540cc-tiny.jpg Deleting: 68a657d46daa4414881b88be3ab540cc-tiny.jpg  (0.6ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = '7bc897df78a34182bb10f50c0dce298d-large.png' OR old_paths.value = '7bc897df78a34182bb10f50c0dce298d-large.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '7bc897df78a34182bb10f50c0dce298d-large.png' OR old_paths.value = '7bc897df78a34182bb10f50c0dce298d-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '7bc897df78a34182bb10f50c0dce298d-large.png' OR old_paths.value = '7bc897df78a34182bb10f50c0dce298d-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '7bc897df78a34182bb10f50c0dce298d-large.png' OR old_paths.value = '7bc897df78a34182bb10f50c0dce298d-large.png') Deleting 7bc897df78a34182bb10f50c0dce298d-large.png Deleting: 7bc897df78a34182bb10f50c0dce298d-large.png  (0.6ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = '7bc897df78a34182bb10f50c0dce298d-medium.png' OR old_paths.value = '7bc897df78a34182bb10f50c0dce298d-medium.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '7bc897df78a34182bb10f50c0dce298d-medium.png' OR old_paths.value = '7bc897df78a34182bb10f50c0dce298d-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '7bc897df78a34182bb10f50c0dce298d-medium.png' OR old_paths.value = '7bc897df78a34182bb10f50c0dce298d-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '7bc897df78a34182bb10f50c0dce298d-medium.png' OR old_paths.value = '7bc897df78a34182bb10f50c0dce298d-medium.png') Deleting 7bc897df78a34182bb10f50c0dce298d-medium.png Deleting: 7bc897df78a34182bb10f50c0dce298d-medium.png  (0.6ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = '7bc897df78a34182bb10f50c0dce298d-original.png' OR old_paths.value = '7bc897df78a34182bb10f50c0dce298d-original.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '7bc897df78a34182bb10f50c0dce298d-original.png' OR old_paths.value = '7bc897df78a34182bb10f50c0dce298d-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '7bc897df78a34182bb10f50c0dce298d-original.png' OR old_paths.value = '7bc897df78a34182bb10f50c0dce298d-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '7bc897df78a34182bb10f50c0dce298d-original.png' OR old_paths.value = '7bc897df78a34182bb10f50c0dce298d-original.png') Deleting 7bc897df78a34182bb10f50c0dce298d-original.png Deleting: 7bc897df78a34182bb10f50c0dce298d-original.png  (0.7ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = '7bc897df78a34182bb10f50c0dce298d-small.png' OR old_paths.value = '7bc897df78a34182bb10f50c0dce298d-small.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '7bc897df78a34182bb10f50c0dce298d-small.png' OR old_paths.value = '7bc897df78a34182bb10f50c0dce298d-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '7bc897df78a34182bb10f50c0dce298d-small.png' OR old_paths.value = '7bc897df78a34182bb10f50c0dce298d-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '7bc897df78a34182bb10f50c0dce298d-small.png' OR old_paths.value = '7bc897df78a34182bb10f50c0dce298d-small.png') Deleting 7bc897df78a34182bb10f50c0dce298d-small.png Deleting: 7bc897df78a34182bb10f50c0dce298d-small.png  (0.7ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = '7bc897df78a34182bb10f50c0dce298d-tiny.png' OR old_paths.value = '7bc897df78a34182bb10f50c0dce298d-tiny.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '7bc897df78a34182bb10f50c0dce298d-tiny.png' OR old_paths.value = '7bc897df78a34182bb10f50c0dce298d-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '7bc897df78a34182bb10f50c0dce298d-tiny.png' OR old_paths.value = '7bc897df78a34182bb10f50c0dce298d-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '7bc897df78a34182bb10f50c0dce298d-tiny.png' OR old_paths.value = '7bc897df78a34182bb10f50c0dce298d-tiny.png') Deleting 7bc897df78a34182bb10f50c0dce298d-tiny.png Deleting: 7bc897df78a34182bb10f50c0dce298d-tiny.png  (0.7ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b0001311d89a4c1e859bf2d78dda7fee-large.jpg' OR old_paths.value = 'b0001311d89a4c1e859bf2d78dda7fee-large.jpg') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b0001311d89a4c1e859bf2d78dda7fee-large.jpg' OR old_paths.value = 'b0001311d89a4c1e859bf2d78dda7fee-large.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b0001311d89a4c1e859bf2d78dda7fee-large.jpg' OR old_paths.value = 'b0001311d89a4c1e859bf2d78dda7fee-large.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b0001311d89a4c1e859bf2d78dda7fee-large.jpg' OR old_paths.value = 'b0001311d89a4c1e859bf2d78dda7fee-large.jpg') Deleting b0001311d89a4c1e859bf2d78dda7fee-large.jpg Deleting: b0001311d89a4c1e859bf2d78dda7fee-large.jpg  (0.6ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b0001311d89a4c1e859bf2d78dda7fee-medium.jpg' OR old_paths.value = 'b0001311d89a4c1e859bf2d78dda7fee-medium.jpg') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b0001311d89a4c1e859bf2d78dda7fee-medium.jpg' OR old_paths.value = 'b0001311d89a4c1e859bf2d78dda7fee-medium.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b0001311d89a4c1e859bf2d78dda7fee-medium.jpg' OR old_paths.value = 'b0001311d89a4c1e859bf2d78dda7fee-medium.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b0001311d89a4c1e859bf2d78dda7fee-medium.jpg' OR old_paths.value = 'b0001311d89a4c1e859bf2d78dda7fee-medium.jpg') Deleting b0001311d89a4c1e859bf2d78dda7fee-medium.jpg Deleting: b0001311d89a4c1e859bf2d78dda7fee-medium.jpg  (0.6ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b0001311d89a4c1e859bf2d78dda7fee-original.jpg' OR old_paths.value = 'b0001311d89a4c1e859bf2d78dda7fee-original.jpg') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b0001311d89a4c1e859bf2d78dda7fee-original.jpg' OR old_paths.value = 'b0001311d89a4c1e859bf2d78dda7fee-original.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b0001311d89a4c1e859bf2d78dda7fee-original.jpg' OR old_paths.value = 'b0001311d89a4c1e859bf2d78dda7fee-original.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b0001311d89a4c1e859bf2d78dda7fee-original.jpg' OR old_paths.value = 'b0001311d89a4c1e859bf2d78dda7fee-original.jpg') Deleting b0001311d89a4c1e859bf2d78dda7fee-original.jpg Deleting: b0001311d89a4c1e859bf2d78dda7fee-original.jpg  (0.6ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b0001311d89a4c1e859bf2d78dda7fee-small.jpg' OR old_paths.value = 'b0001311d89a4c1e859bf2d78dda7fee-small.jpg') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b0001311d89a4c1e859bf2d78dda7fee-small.jpg' OR old_paths.value = 'b0001311d89a4c1e859bf2d78dda7fee-small.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b0001311d89a4c1e859bf2d78dda7fee-small.jpg' OR old_paths.value = 'b0001311d89a4c1e859bf2d78dda7fee-small.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b0001311d89a4c1e859bf2d78dda7fee-small.jpg' OR old_paths.value = 'b0001311d89a4c1e859bf2d78dda7fee-small.jpg') Deleting b0001311d89a4c1e859bf2d78dda7fee-small.jpg Deleting: b0001311d89a4c1e859bf2d78dda7fee-small.jpg  (0.6ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b0001311d89a4c1e859bf2d78dda7fee-tiny.jpg' OR old_paths.value = 'b0001311d89a4c1e859bf2d78dda7fee-tiny.jpg') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b0001311d89a4c1e859bf2d78dda7fee-tiny.jpg' OR old_paths.value = 'b0001311d89a4c1e859bf2d78dda7fee-tiny.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b0001311d89a4c1e859bf2d78dda7fee-tiny.jpg' OR old_paths.value = 'b0001311d89a4c1e859bf2d78dda7fee-tiny.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'b0001311d89a4c1e859bf2d78dda7fee-tiny.jpg' OR old_paths.value = 'b0001311d89a4c1e859bf2d78dda7fee-tiny.jpg') Deleting b0001311d89a4c1e859bf2d78dda7fee-tiny.jpg Deleting: b0001311d89a4c1e859bf2d78dda7fee-tiny.jpg  (0.6ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/ce52a6d8d8c7438c9d881fb6243cbe34-large.png' OR old_paths.value = 'second/ce52a6d8d8c7438c9d881fb6243cbe34-large.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/ce52a6d8d8c7438c9d881fb6243cbe34-large.png' OR old_paths.value = 'second/ce52a6d8d8c7438c9d881fb6243cbe34-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/ce52a6d8d8c7438c9d881fb6243cbe34-large.png' OR old_paths.value = 'second/ce52a6d8d8c7438c9d881fb6243cbe34-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/ce52a6d8d8c7438c9d881fb6243cbe34-large.png' OR old_paths.value = 'second/ce52a6d8d8c7438c9d881fb6243cbe34-large.png') Deleting second/ce52a6d8d8c7438c9d881fb6243cbe34-large.png Deleting: second/ce52a6d8d8c7438c9d881fb6243cbe34-large.png  (1.0ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/ce52a6d8d8c7438c9d881fb6243cbe34-medium.png' OR old_paths.value = 'second/ce52a6d8d8c7438c9d881fb6243cbe34-medium.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/ce52a6d8d8c7438c9d881fb6243cbe34-medium.png' OR old_paths.value = 'second/ce52a6d8d8c7438c9d881fb6243cbe34-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/ce52a6d8d8c7438c9d881fb6243cbe34-medium.png' OR old_paths.value = 'second/ce52a6d8d8c7438c9d881fb6243cbe34-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/ce52a6d8d8c7438c9d881fb6243cbe34-medium.png' OR old_paths.value = 'second/ce52a6d8d8c7438c9d881fb6243cbe34-medium.png') Deleting second/ce52a6d8d8c7438c9d881fb6243cbe34-medium.png Deleting: second/ce52a6d8d8c7438c9d881fb6243cbe34-medium.png  (0.6ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/ce52a6d8d8c7438c9d881fb6243cbe34-original.png' OR old_paths.value = 'second/ce52a6d8d8c7438c9d881fb6243cbe34-original.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/ce52a6d8d8c7438c9d881fb6243cbe34-original.png' OR old_paths.value = 'second/ce52a6d8d8c7438c9d881fb6243cbe34-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/ce52a6d8d8c7438c9d881fb6243cbe34-original.png' OR old_paths.value = 'second/ce52a6d8d8c7438c9d881fb6243cbe34-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/ce52a6d8d8c7438c9d881fb6243cbe34-original.png' OR old_paths.value = 'second/ce52a6d8d8c7438c9d881fb6243cbe34-original.png') Deleting second/ce52a6d8d8c7438c9d881fb6243cbe34-original.png Deleting: second/ce52a6d8d8c7438c9d881fb6243cbe34-original.png  (0.7ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/ce52a6d8d8c7438c9d881fb6243cbe34-small.png' OR old_paths.value = 'second/ce52a6d8d8c7438c9d881fb6243cbe34-small.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/ce52a6d8d8c7438c9d881fb6243cbe34-small.png' OR old_paths.value = 'second/ce52a6d8d8c7438c9d881fb6243cbe34-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/ce52a6d8d8c7438c9d881fb6243cbe34-small.png' OR old_paths.value = 'second/ce52a6d8d8c7438c9d881fb6243cbe34-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/ce52a6d8d8c7438c9d881fb6243cbe34-small.png' OR old_paths.value = 'second/ce52a6d8d8c7438c9d881fb6243cbe34-small.png') Deleting second/ce52a6d8d8c7438c9d881fb6243cbe34-small.png Deleting: second/ce52a6d8d8c7438c9d881fb6243cbe34-small.png  (11.2ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/ce52a6d8d8c7438c9d881fb6243cbe34-tiny.png' OR old_paths.value = 'second/ce52a6d8d8c7438c9d881fb6243cbe34-tiny.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/ce52a6d8d8c7438c9d881fb6243cbe34-tiny.png' OR old_paths.value = 'second/ce52a6d8d8c7438c9d881fb6243cbe34-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/ce52a6d8d8c7438c9d881fb6243cbe34-tiny.png' OR old_paths.value = 'second/ce52a6d8d8c7438c9d881fb6243cbe34-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/ce52a6d8d8c7438c9d881fb6243cbe34-tiny.png' OR old_paths.value = 'second/ce52a6d8d8c7438c9d881fb6243cbe34-tiny.png') Deleting second/ce52a6d8d8c7438c9d881fb6243cbe34-tiny.png Deleting: second/ce52a6d8d8c7438c9d881fb6243cbe34-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [a9c53871-81a1-44fd-8f92-0b01d16d312f] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["15874968fa4049188f0f650d2c3bb52f-original.png", "15874968fa4049188f0f650d2c3bb52f-tiny.png", "15874968fa4049188f0f650d2c3bb52f-small.png", "15874968fa4049188f0f650d2c3bb52f-medium.png", "15874968fa4049188f0f650d2c3bb52f-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [a9c53871-81a1-44fd-8f92-0b01d16d312f] Deleting: 15874968fa4049188f0f650d2c3bb52f-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [a9c53871-81a1-44fd-8f92-0b01d16d312f] Deleting: 15874968fa4049188f0f650d2c3bb52f-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [a9c53871-81a1-44fd-8f92-0b01d16d312f] Deleting: 15874968fa4049188f0f650d2c3bb52f-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [a9c53871-81a1-44fd-8f92-0b01d16d312f] Deleting: 15874968fa4049188f0f650d2c3bb52f-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [a9c53871-81a1-44fd-8f92-0b01d16d312f] Deleting: 15874968fa4049188f0f650d2c3bb52f-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [a9c53871-81a1-44fd-8f92-0b01d16d312f] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2412.43ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: a9c53871-81a1-44fd-8f92-0b01d16d312f) to Inline(default) with arguments: ["15874968fa4049188f0f650d2c3bb52f-original.png", "15874968fa4049188f0f650d2c3bb52f-tiny.png", "15874968fa4049188f0f650d2c3bb52f-small.png", "15874968fa4049188f0f650d2c3bb52f-medium.png", "15874968fa4049188f0f650d2c3bb52f-large.png"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------- TaskTest: test_exist -------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-2hkf2m.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "logo", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "first"], ["logo", "{\"id\":\"16034eca9904465a9cefe58b35da2831\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-09T14:53:59.357-03:00\",\"paths\":{\"original\":\"first/16034eca9904465a9cefe58b35da2831-original.png\",\"tiny\":\"first/16034eca9904465a9cefe58b35da2831-tiny.png\",\"small\":\"first/16034eca9904465a9cefe58b35da2831-small.png\",\"medium\":\"first/16034eca9904465a9cefe58b35da2831-medium.png\",\"large\":\"first/16034eca9904465a9cefe58b35da2831-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-09 17:53:59.358566"], ["updated_at", "2016-12-09 17:53:59.358566"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-2hkf2m.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1qstf2r.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1qstf2r.png => first/16034eca9904465a9cefe58b35da2831-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-2hkf2m.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-18u6p3i.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-18u6p3i.png => first/16034eca9904465a9cefe58b35da2831-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-2hkf2m.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1l7v11l.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1l7v11l.png => first/16034eca9904465a9cefe58b35da2831-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-2hkf2m.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-158tlqt.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-158tlqt.png => first/16034eca9904465a9cefe58b35da2831-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-2hkf2m.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1hmamzs.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1hmamzs.png => first/16034eca9904465a9cefe58b35da2831-large.png  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "shops" SET "name" = $1, "updated_at" = $2 WHERE "shops"."id" = $3 [["name", "second"], ["updated_at", "2016-12-09 17:54:02.534785"], ["id", 70]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 70]] [ActiveJob] [Attachs::Jobs::UpdateJob] [f4af84d2-9b26-4144-b0ca-53b759a3a91b] Performing Attachs::Jobs::UpdateJob from Inline(default) with arguments: gid://dummy/Shop/70, "logo" [ActiveJob] [Attachs::Jobs::UpdateJob] [f4af84d2-9b26-4144-b0ca-53b759a3a91b] Copying: first/16034eca9904465a9cefe58b35da2831-original.png => second/16034eca9904465a9cefe58b35da2831-original.png [ActiveJob] [Attachs::Jobs::UpdateJob] [f4af84d2-9b26-4144-b0ca-53b759a3a91b] Copying: first/16034eca9904465a9cefe58b35da2831-tiny.png => second/16034eca9904465a9cefe58b35da2831-tiny.png [ActiveJob] [Attachs::Jobs::UpdateJob] [f4af84d2-9b26-4144-b0ca-53b759a3a91b] Copying: first/16034eca9904465a9cefe58b35da2831-small.png => second/16034eca9904465a9cefe58b35da2831-small.png [ActiveJob] [Attachs::Jobs::UpdateJob] [f4af84d2-9b26-4144-b0ca-53b759a3a91b] Copying: first/16034eca9904465a9cefe58b35da2831-medium.png => second/16034eca9904465a9cefe58b35da2831-medium.png [ActiveJob] [Attachs::Jobs::UpdateJob] [f4af84d2-9b26-4144-b0ca-53b759a3a91b] Copying: first/16034eca9904465a9cefe58b35da2831-large.png => second/16034eca9904465a9cefe58b35da2831-large.png [ActiveJob] [Attachs::Jobs::UpdateJob] [f4af84d2-9b26-4144-b0ca-53b759a3a91b] SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"tiny":"second/16034eca9904465a9cefe58b35da2831-tiny.png","large":"second/16034eca9904465a9cefe58b35da2831-large.png","small":"second/16034eca9904465a9cefe58b35da2831-small.png","medium":"second/16034eca9904465a9cefe58b35da2831-medium.png","original":"second/16034eca9904465a9cefe58b35da2831-original.png"},"old_paths":["first/16034eca9904465a9cefe58b35da2831-original.png","first/16034eca9904465a9cefe58b35da2831-tiny.png","first/16034eca9904465a9cefe58b35da2831-small.png","first/16034eca9904465a9cefe58b35da2831-medium.png","first/16034eca9904465a9cefe58b35da2831-large.png"],"id":"16034eca9904465a9cefe58b35da2831","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-09T14:53:59.357-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 70]] [ActiveJob] [Attachs::Jobs::UpdateJob] [f4af84d2-9b26-4144-b0ca-53b759a3a91b] Performed Attachs::Jobs::UpdateJob from Inline(default) in 2210.79ms [ActiveJob] Enqueued Attachs::Jobs::UpdateJob (Job ID: f4af84d2-9b26-4144-b0ca-53b759a3a91b) to Inline(default) with arguments: gid://dummy/Shop/70, "logo" Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-764yi5.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-k43sda.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"bada71b7e5d140b5aca749d7bd2ad838\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-09T14:54:04.769-03:00\",\"paths\":{\"original\":\"bada71b7e5d140b5aca749d7bd2ad838-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725},{\"id\":\"f2d73356682f428389e33e302ce30546\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-09T14:54:04.771-03:00\",\"paths\":{\"original\":\"f2d73356682f428389e33e302ce30546-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-12-09 17:54:04.772538"], ["updated_at", "2016-12-09 17:54:04.772538"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-764yi5.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-10e0wl4.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-10e0wl4.jpg => bada71b7e5d140b5aca749d7bd2ad838-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-k43sda.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1996vi1.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1996vi1.jpg => f2d73356682f428389e33e302ce30546-original.jpg  (0.7ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/16034eca9904465a9cefe58b35da2831-original.png' OR old_paths.value = 'first/16034eca9904465a9cefe58b35da2831-original.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/16034eca9904465a9cefe58b35da2831-original.png' OR old_paths.value = 'first/16034eca9904465a9cefe58b35da2831-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/16034eca9904465a9cefe58b35da2831-original.png' OR old_paths.value = 'first/16034eca9904465a9cefe58b35da2831-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/16034eca9904465a9cefe58b35da2831-original.png' OR old_paths.value = 'first/16034eca9904465a9cefe58b35da2831-original.png')  (0.6ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/16034eca9904465a9cefe58b35da2831-original.png' OR old_paths.value = 'first/16034eca9904465a9cefe58b35da2831-original.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/16034eca9904465a9cefe58b35da2831-original.png' OR old_paths.value = 'first/16034eca9904465a9cefe58b35da2831-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/16034eca9904465a9cefe58b35da2831-original.png' OR old_paths.value = 'first/16034eca9904465a9cefe58b35da2831-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/16034eca9904465a9cefe58b35da2831-original.png' OR old_paths.value = 'first/16034eca9904465a9cefe58b35da2831-original.png')  (0.5ms) SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'bada71b7e5d140b5aca749d7bd2ad838-original.jpg' OR old_paths.value = 'bada71b7e5d140b5aca749d7bd2ad838-original.jpg') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'bada71b7e5d140b5aca749d7bd2ad838-original.jpg' OR old_paths.value = 'bada71b7e5d140b5aca749d7bd2ad838-original.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'bada71b7e5d140b5aca749d7bd2ad838-original.jpg' OR old_paths.value = 'bada71b7e5d140b5aca749d7bd2ad838-original.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'bada71b7e5d140b5aca749d7bd2ad838-original.jpg' OR old_paths.value = 'bada71b7e5d140b5aca749d7bd2ad838-original.jpg') [ActiveJob] [Attachs::Jobs::DeleteJob] [b7fe80f4-f0b5-4cb8-b5a7-c7ec93205e42] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["first/16034eca9904465a9cefe58b35da2831-original.png", "first/16034eca9904465a9cefe58b35da2831-tiny.png", "first/16034eca9904465a9cefe58b35da2831-small.png", "first/16034eca9904465a9cefe58b35da2831-medium.png", "first/16034eca9904465a9cefe58b35da2831-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [b7fe80f4-f0b5-4cb8-b5a7-c7ec93205e42] Deleting: first/16034eca9904465a9cefe58b35da2831-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [b7fe80f4-f0b5-4cb8-b5a7-c7ec93205e42] Deleting: first/16034eca9904465a9cefe58b35da2831-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [b7fe80f4-f0b5-4cb8-b5a7-c7ec93205e42] Deleting: first/16034eca9904465a9cefe58b35da2831-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [b7fe80f4-f0b5-4cb8-b5a7-c7ec93205e42] Deleting: first/16034eca9904465a9cefe58b35da2831-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [b7fe80f4-f0b5-4cb8-b5a7-c7ec93205e42] Deleting: first/16034eca9904465a9cefe58b35da2831-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [b7fe80f4-f0b5-4cb8-b5a7-c7ec93205e42] Performed Attachs::Jobs::DeleteJob from Inline(default) in 1935.0ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: b7fe80f4-f0b5-4cb8-b5a7-c7ec93205e42) to Inline(default) with arguments: ["first/16034eca9904465a9cefe58b35da2831-original.png", "first/16034eca9904465a9cefe58b35da2831-tiny.png", "first/16034eca9904465a9cefe58b35da2831-small.png", "first/16034eca9904465a9cefe58b35da2831-medium.png", "first/16034eca9904465a9cefe58b35da2831-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [8398ee19-5763-40c7-b21a-030cbfefcd11] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["bada71b7e5d140b5aca749d7bd2ad838-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [8398ee19-5763-40c7-b21a-030cbfefcd11] Deleting: bada71b7e5d140b5aca749d7bd2ad838-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [8398ee19-5763-40c7-b21a-030cbfefcd11] Performed Attachs::Jobs::DeleteJob from Inline(default) in 361.65ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 8398ee19-5763-40c7-b21a-030cbfefcd11) to Inline(default) with arguments: ["bada71b7e5d140b5aca749d7bd2ad838-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [6a0f8386-84fc-4197-adb7-d2ffa504f246] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["f2d73356682f428389e33e302ce30546-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [6a0f8386-84fc-4197-adb7-d2ffa504f246] Deleting: f2d73356682f428389e33e302ce30546-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [6a0f8386-84fc-4197-adb7-d2ffa504f246] Performed Attachs::Jobs::DeleteJob from Inline(default) in 377.74ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 6a0f8386-84fc-4197-adb7-d2ffa504f246) to Inline(default) with arguments: ["f2d73356682f428389e33e302ce30546-original.jpg"]  (0.4ms) ROLLBACK  (0.1ms) BEGIN ------------------------ TaskTest: test_reprocess ------------------------ Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-rfbt91.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"1a9af772250c4dc9bf450b2f342e6df6\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-09T14:54:09.066-03:00\",\"paths\":{\"original\":\"1a9af772250c4dc9bf450b2f342e6df6-original.png\",\"tiny\":\"1a9af772250c4dc9bf450b2f342e6df6-tiny.png\",\"small\":\"1a9af772250c4dc9bf450b2f342e6df6-small.png\",\"medium\":\"1a9af772250c4dc9bf450b2f342e6df6-medium.png\",\"large\":\"1a9af772250c4dc9bf450b2f342e6df6-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-09 17:54:09.067561"], ["updated_at", "2016-12-09 17:54:09.067561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-rfbt91.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-ru8ft0.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-ru8ft0.png => 1a9af772250c4dc9bf450b2f342e6df6-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-rfbt91.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1xyx17w.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1xyx17w.png => 1a9af772250c4dc9bf450b2f342e6df6-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-rfbt91.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1as0cg2.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1as0cg2.png => 1a9af772250c4dc9bf450b2f342e6df6-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-rfbt91.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-tol8nj.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-tol8nj.png => 1a9af772250c4dc9bf450b2f342e6df6-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-rfbt91.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-l7rfq6.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-l7rfq6.png => 1a9af772250c4dc9bf450b2f342e6df6-large.png Deleting: 1a9af772250c4dc9bf450b2f342e6df6-tiny.png Deleting: 1a9af772250c4dc9bf450b2f342e6df6-small.png Deleting: 1a9af772250c4dc9bf450b2f342e6df6-medium.png Deleting: 1a9af772250c4dc9bf450b2f342e6df6-large.png Upload Load (0.4ms) SELECT "uploads".* FROM "uploads" ORDER BY "uploads"."id" ASC LIMIT 1000 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Reprocessing Shop #71 => logo Regenerating: tiny => 1a9af772250c4dc9bf450b2f342e6df6-tiny.png Regenerating: large => 1a9af772250c4dc9bf450b2f342e6df6-large.png Regenerating: small => 1a9af772250c4dc9bf450b2f342e6df6-small.png Regenerating: medium => 1a9af772250c4dc9bf450b2f342e6df6-medium.png Deleting: 1a9af772250c4dc9bf450b2f342e6df6-original.png Regenerating: original => 1a9af772250c4dc9bf450b2f342e6df6-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-184thvm.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1cc0ok0.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1cc0ok0.png => 1a9af772250c4dc9bf450b2f342e6df6-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-184thvm.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-zww4al.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-zww4al.png => 1a9af772250c4dc9bf450b2f342e6df6-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-184thvm.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-rr5t5a.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-rr5t5a.png => 1a9af772250c4dc9bf450b2f342e6df6-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-184thvm.png' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-u7gl71.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-u7gl71.png => 1a9af772250c4dc9bf450b2f342e6df6-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-184thvm.png' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1nbwvsy.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1nbwvsy.png => 1a9af772250c4dc9bf450b2f342e6df6-large.png SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"original":"1a9af772250c4dc9bf450b2f342e6df6-original.png","tiny":"1a9af772250c4dc9bf450b2f342e6df6-tiny.png","small":"1a9af772250c4dc9bf450b2f342e6df6-small.png","medium":"1a9af772250c4dc9bf450b2f342e6df6-medium.png","large":"1a9af772250c4dc9bf450b2f342e6df6-large.png"},"old_paths":[],"id":"1a9af772250c4dc9bf450b2f342e6df6","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-09T14:54:09.066-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 71]] RecordTest::Subclass Load (0.6ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Upload Load (0.7ms) SELECT "uploads".* FROM "uploads" ORDER BY "uploads"."id" ASC LIMIT 1000 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Reprocessing Shop #71 => logo Deleting: 1a9af772250c4dc9bf450b2f342e6df6-tiny.png Regenerating: tiny => 1a9af772250c4dc9bf450b2f342e6df6-tiny.png Deleting: 1a9af772250c4dc9bf450b2f342e6df6-large.png Regenerating: large => 1a9af772250c4dc9bf450b2f342e6df6-large.png Deleting: 1a9af772250c4dc9bf450b2f342e6df6-small.png Regenerating: small => 1a9af772250c4dc9bf450b2f342e6df6-small.png Deleting: 1a9af772250c4dc9bf450b2f342e6df6-medium.png Regenerating: medium => 1a9af772250c4dc9bf450b2f342e6df6-medium.png Deleting: 1a9af772250c4dc9bf450b2f342e6df6-original.png Regenerating: original => 1a9af772250c4dc9bf450b2f342e6df6-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1upo0g3.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-m2nqsh.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-m2nqsh.png => 1a9af772250c4dc9bf450b2f342e6df6-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1upo0g3.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-umdw6f.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-umdw6f.png => 1a9af772250c4dc9bf450b2f342e6df6-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1upo0g3.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-17x8swd.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-17x8swd.png => 1a9af772250c4dc9bf450b2f342e6df6-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1upo0g3.png' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-peftxy.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-peftxy.png => 1a9af772250c4dc9bf450b2f342e6df6-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1upo0g3.png' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-27ulda.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-27ulda.png => 1a9af772250c4dc9bf450b2f342e6df6-large.png SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"original":"1a9af772250c4dc9bf450b2f342e6df6-original.png","tiny":"1a9af772250c4dc9bf450b2f342e6df6-tiny.png","small":"1a9af772250c4dc9bf450b2f342e6df6-small.png","medium":"1a9af772250c4dc9bf450b2f342e6df6-medium.png","large":"1a9af772250c4dc9bf450b2f342e6df6-large.png"},"old_paths":[],"id":"1a9af772250c4dc9bf450b2f342e6df6","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-09T14:54:09.066-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 71]] RecordTest::Subclass Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Upload Load (0.3ms) SELECT "uploads".* FROM "uploads" ORDER BY "uploads"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Reprocessing Shop #71 => logo Deleting: 1a9af772250c4dc9bf450b2f342e6df6-tiny.png Regenerating: tiny => 1a9af772250c4dc9bf450b2f342e6df6-tiny.png Deleting: 1a9af772250c4dc9bf450b2f342e6df6-large.png Regenerating: large => 1a9af772250c4dc9bf450b2f342e6df6-large.png Deleting: 1a9af772250c4dc9bf450b2f342e6df6-small.png Regenerating: small => 1a9af772250c4dc9bf450b2f342e6df6-small.png Deleting: 1a9af772250c4dc9bf450b2f342e6df6-medium.png Regenerating: medium => 1a9af772250c4dc9bf450b2f342e6df6-medium.png Deleting: 1a9af772250c4dc9bf450b2f342e6df6-original.png Regenerating: original => 1a9af772250c4dc9bf450b2f342e6df6-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1w1o2a3.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1j5zeal.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1j5zeal.png => 1a9af772250c4dc9bf450b2f342e6df6-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1w1o2a3.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-3ixfsa.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-3ixfsa.png => 1a9af772250c4dc9bf450b2f342e6df6-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1w1o2a3.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-etoobu.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-etoobu.png => 1a9af772250c4dc9bf450b2f342e6df6-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1w1o2a3.png' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1v00gql.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1v00gql.png => 1a9af772250c4dc9bf450b2f342e6df6-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1w1o2a3.png' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-k66fgg.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-k66fgg.png => 1a9af772250c4dc9bf450b2f342e6df6-large.png SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"original":"1a9af772250c4dc9bf450b2f342e6df6-original.png","tiny":"1a9af772250c4dc9bf450b2f342e6df6-tiny.png","small":"1a9af772250c4dc9bf450b2f342e6df6-small.png","medium":"1a9af772250c4dc9bf450b2f342e6df6-medium.png","large":"1a9af772250c4dc9bf450b2f342e6df6-large.png"},"old_paths":[],"id":"1a9af772250c4dc9bf450b2f342e6df6","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-09T14:54:09.066-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 71]] RecordTest::Subclass Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 71]] [ActiveJob] [Attachs::Jobs::DeleteJob] [cebccf2b-eb45-4cdd-bd54-917911abb654] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["1a9af772250c4dc9bf450b2f342e6df6-tiny.png", "1a9af772250c4dc9bf450b2f342e6df6-large.png", "1a9af772250c4dc9bf450b2f342e6df6-small.png", "1a9af772250c4dc9bf450b2f342e6df6-medium.png", "1a9af772250c4dc9bf450b2f342e6df6-original.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [cebccf2b-eb45-4cdd-bd54-917911abb654] Deleting: 1a9af772250c4dc9bf450b2f342e6df6-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [cebccf2b-eb45-4cdd-bd54-917911abb654] Deleting: 1a9af772250c4dc9bf450b2f342e6df6-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [cebccf2b-eb45-4cdd-bd54-917911abb654] Deleting: 1a9af772250c4dc9bf450b2f342e6df6-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [cebccf2b-eb45-4cdd-bd54-917911abb654] Deleting: 1a9af772250c4dc9bf450b2f342e6df6-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [cebccf2b-eb45-4cdd-bd54-917911abb654] Deleting: 1a9af772250c4dc9bf450b2f342e6df6-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [cebccf2b-eb45-4cdd-bd54-917911abb654] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2414.27ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: cebccf2b-eb45-4cdd-bd54-917911abb654) to Inline(default) with arguments: ["1a9af772250c4dc9bf450b2f342e6df6-tiny.png", "1a9af772250c4dc9bf450b2f342e6df6-large.png", "1a9af772250c4dc9bf450b2f342e6df6-small.png", "1a9af772250c4dc9bf450b2f342e6df6-medium.png", "1a9af772250c4dc9bf450b2f342e6df6-original.png"]  (0.3ms) ROLLBACK  (0.1ms) BEGIN --------------------------- TaskTest: test_fix_missings --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-49blfp.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"4480833b33954620aa6c608895ac1a36\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-09T14:54:40.659-03:00\",\"paths\":{\"original\":\"4480833b33954620aa6c608895ac1a36-original.png\",\"tiny\":\"4480833b33954620aa6c608895ac1a36-tiny.png\",\"small\":\"4480833b33954620aa6c608895ac1a36-small.png\",\"medium\":\"4480833b33954620aa6c608895ac1a36-medium.png\",\"large\":\"4480833b33954620aa6c608895ac1a36-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-09 17:54:40.660553"], ["updated_at", "2016-12-09 17:54:40.660553"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-49blfp.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1ubwcla.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1ubwcla.png => 4480833b33954620aa6c608895ac1a36-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-49blfp.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-nq1lbl.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-nq1lbl.png => 4480833b33954620aa6c608895ac1a36-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-49blfp.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-qjrvpd.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-qjrvpd.png => 4480833b33954620aa6c608895ac1a36-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-49blfp.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-fbra54.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-fbra54.png => 4480833b33954620aa6c608895ac1a36-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-49blfp.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1qmfsje.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1qmfsje.png => 4480833b33954620aa6c608895ac1a36-large.png Deleting: 4480833b33954620aa6c608895ac1a36-tiny.png Deleting: 4480833b33954620aa6c608895ac1a36-small.png Upload Load (0.3ms) SELECT "uploads".* FROM "uploads" ORDER BY "uploads"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Fix missings of Shop #72 => logo Generating: tiny => 4480833b33954620aa6c608895ac1a36-tiny.png Generating: small => 4480833b33954620aa6c608895ac1a36-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-xn42sz.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-ybp9vh.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-ybp9vh.png => 4480833b33954620aa6c608895ac1a36-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-xn42sz.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-h0jwbr.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-h0jwbr.png => 4480833b33954620aa6c608895ac1a36-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-xn42sz.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1irp7mb.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1irp7mb.png => 4480833b33954620aa6c608895ac1a36-small.png RecordTest::Subclass Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Upload Load (0.5ms) SELECT "uploads".* FROM "uploads" ORDER BY "uploads"."id" ASC LIMIT 1000 Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Fix missings of Shop #72 => logo RecordTest::Subclass Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Upload Load (0.4ms) SELECT "uploads".* FROM "uploads" ORDER BY "uploads"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Fix missings of Shop #72 => logo RecordTest::Subclass Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Upload Load (0.2ms) SELECT "uploads".* FROM "uploads" ORDER BY "uploads"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Fix missings of Shop #72 => logo RecordTest::Subclass Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 [ActiveJob] [Attachs::Jobs::DeleteJob] [d8dfc2b5-041e-4e13-85b7-435f97c18454] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["4480833b33954620aa6c608895ac1a36-original.png", "4480833b33954620aa6c608895ac1a36-tiny.png", "4480833b33954620aa6c608895ac1a36-small.png", "4480833b33954620aa6c608895ac1a36-medium.png", "4480833b33954620aa6c608895ac1a36-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [d8dfc2b5-041e-4e13-85b7-435f97c18454] Deleting: 4480833b33954620aa6c608895ac1a36-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [d8dfc2b5-041e-4e13-85b7-435f97c18454] Deleting: 4480833b33954620aa6c608895ac1a36-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [d8dfc2b5-041e-4e13-85b7-435f97c18454] Deleting: 4480833b33954620aa6c608895ac1a36-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [d8dfc2b5-041e-4e13-85b7-435f97c18454] Deleting: 4480833b33954620aa6c608895ac1a36-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [d8dfc2b5-041e-4e13-85b7-435f97c18454] Deleting: 4480833b33954620aa6c608895ac1a36-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [d8dfc2b5-041e-4e13-85b7-435f97c18454] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2572.48ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: d8dfc2b5-041e-4e13-85b7-435f97c18454) to Inline(default) with arguments: ["4480833b33954620aa6c608895ac1a36-original.png", "4480833b33954620aa6c608895ac1a36-tiny.png", "4480833b33954620aa6c608895ac1a36-small.png", "4480833b33954620aa6c608895ac1a36-medium.png", "4480833b33954620aa6c608895ac1a36-large.png"]  (0.3ms) ROLLBACK  (0.1ms) BEGIN --------------------------- GeneratorTest: test_install ---------------------------  (0.3ms) ROLLBACK  (0.2ms) BEGIN -------------------------- GeneratorTest: test_upload --------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- ValidatorTest: test_content_type_with ------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-6l9uay.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-xryk7b.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-dnfcrb.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- ValidatorTest: test_size_less_than ---------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161209-6248-ugnm99.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-1ycw79o.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-1um28k7.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- ValidatorTest: test_content_type_within --------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-yxmgl2.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-66u35t.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-1v40vcy.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN --------------------------- ValidatorTest: test_methods ---------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------- ValidatorTest: test_size_in --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161209-6248-f19i4b.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-6sa2op.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161209-6248-1qpukwj.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-16wz3ba.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-1h1blti.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- ValidatorTest: test_content_type_in ----------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-1ww2l6a.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-zntsjt.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-1o5wgct.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- ValidatorTest: test_size_within ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161209-6248-1dmf2nt.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-4745lf.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161209-6248-1jbl9pt.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-txttgo.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-s0dcx2.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- ValidatorTest: test_size_greater_than ------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161209-6248-1jke2gu.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-8eg6dk.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-1r7dlj8.jpg'  (0.3ms) ROLLBACK  (0.2ms) BEGIN ------------------------------- AttachmentTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-11ppe6f.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"89b0ff6690674cd99c55e16f3958a4f4\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-09T14:54:58.146-03:00\",\"paths\":{\"original\":\"89b0ff6690674cd99c55e16f3958a4f4-original.png\",\"tiny\":\"89b0ff6690674cd99c55e16f3958a4f4-tiny.png\",\"small\":\"89b0ff6690674cd99c55e16f3958a4f4-small.png\",\"medium\":\"89b0ff6690674cd99c55e16f3958a4f4-medium.png\",\"large\":\"89b0ff6690674cd99c55e16f3958a4f4-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-09 17:54:58.147084"], ["updated_at", "2016-12-09 17:54:58.147084"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-11ppe6f.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1q5nsdk.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1q5nsdk.png => 89b0ff6690674cd99c55e16f3958a4f4-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-11ppe6f.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-ko4ule.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-ko4ule.png => 89b0ff6690674cd99c55e16f3958a4f4-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-11ppe6f.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-10g9pvt.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-10g9pvt.png => 89b0ff6690674cd99c55e16f3958a4f4-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-11ppe6f.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1vv4gu8.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1vv4gu8.png => 89b0ff6690674cd99c55e16f3958a4f4-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-11ppe6f.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1f3i8oc.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1f3i8oc.png => 89b0ff6690674cd99c55e16f3958a4f4-large.png Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 73]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 73]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Attachs::Jobs::DeleteJob] [50baa9d4-79a2-4418-97ea-bed86d793ac9] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["89b0ff6690674cd99c55e16f3958a4f4-tiny.png", "89b0ff6690674cd99c55e16f3958a4f4-large.png", "89b0ff6690674cd99c55e16f3958a4f4-small.png", "89b0ff6690674cd99c55e16f3958a4f4-medium.png", "89b0ff6690674cd99c55e16f3958a4f4-original.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [50baa9d4-79a2-4418-97ea-bed86d793ac9] Deleting: 89b0ff6690674cd99c55e16f3958a4f4-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [50baa9d4-79a2-4418-97ea-bed86d793ac9] Deleting: 89b0ff6690674cd99c55e16f3958a4f4-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [50baa9d4-79a2-4418-97ea-bed86d793ac9] Deleting: 89b0ff6690674cd99c55e16f3958a4f4-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [50baa9d4-79a2-4418-97ea-bed86d793ac9] Deleting: 89b0ff6690674cd99c55e16f3958a4f4-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [50baa9d4-79a2-4418-97ea-bed86d793ac9] Deleting: 89b0ff6690674cd99c55e16f3958a4f4-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [50baa9d4-79a2-4418-97ea-bed86d793ac9] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2832.81ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 50baa9d4-79a2-4418-97ea-bed86d793ac9) to Inline(default) with arguments: ["89b0ff6690674cd99c55e16f3958a4f4-tiny.png", "89b0ff6690674cd99c55e16f3958a4f4-large.png", "89b0ff6690674cd99c55e16f3958a4f4-small.png", "89b0ff6690674cd99c55e16f3958a4f4-medium.png", "89b0ff6690674cd99c55e16f3958a4f4-original.png"]  (0.2ms) ROLLBACK  (0.2ms) BEGIN ---------------------------- AttachmentTest: test_default ----------------------------  (0.1ms) ROLLBACK  (0.2ms) BEGIN ---------------------------- AttachmentTest: test_renames ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-1emchw0.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("logo", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["logo", "{\"id\":\"0c68fe1879fc4276a03e1aad35cd1e2e\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-09T14:55:26.322-03:00\",\"paths\":{\"original\":\"anderstons/0c68fe1879fc4276a03e1aad35cd1e2e-original.png\",\"tiny\":\"anderstons/0c68fe1879fc4276a03e1aad35cd1e2e-tiny.png\",\"small\":\"anderstons/0c68fe1879fc4276a03e1aad35cd1e2e-small.png\",\"medium\":\"anderstons/0c68fe1879fc4276a03e1aad35cd1e2e-medium.png\",\"large\":\"anderstons/0c68fe1879fc4276a03e1aad35cd1e2e-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["name", "Anderstons"], ["created_at", "2016-12-09 17:55:26.323505"], ["updated_at", "2016-12-09 17:55:26.323505"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-1emchw0.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-vvi9xa.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-vvi9xa.png => anderstons/0c68fe1879fc4276a03e1aad35cd1e2e-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-1emchw0.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1girvsq.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1girvsq.png => anderstons/0c68fe1879fc4276a03e1aad35cd1e2e-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-1emchw0.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-15c80zg.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-15c80zg.png => anderstons/0c68fe1879fc4276a03e1aad35cd1e2e-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-1emchw0.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1o8i9di.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-1o8i9di.png => anderstons/0c68fe1879fc4276a03e1aad35cd1e2e-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6248-1emchw0.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-rbs258.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161209-6248-rbs258.png => anderstons/0c68fe1879fc4276a03e1aad35cd1e2e-large.png  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "shops" SET "name" = $1, "updated_at" = $2 WHERE "shops"."id" = $3 [["name", "Musicians Friend"], ["updated_at", "2016-12-09 17:55:37.421648"], ["id", 74]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 74]] [ActiveJob] [Attachs::Jobs::UpdateJob] [e5ca2913-efcc-4855-bfed-d39f5ce858b9] Performing Attachs::Jobs::UpdateJob from Inline(default) with arguments: gid://dummy/Shop/74, "logo" [ActiveJob] [Attachs::Jobs::UpdateJob] [e5ca2913-efcc-4855-bfed-d39f5ce858b9] Copying: anderstons/0c68fe1879fc4276a03e1aad35cd1e2e-original.png => musicians-friend/0c68fe1879fc4276a03e1aad35cd1e2e-original.png [ActiveJob] [Attachs::Jobs::UpdateJob] [e5ca2913-efcc-4855-bfed-d39f5ce858b9] Copying: anderstons/0c68fe1879fc4276a03e1aad35cd1e2e-tiny.png => musicians-friend/0c68fe1879fc4276a03e1aad35cd1e2e-tiny.png [ActiveJob] [Attachs::Jobs::UpdateJob] [e5ca2913-efcc-4855-bfed-d39f5ce858b9] Copying: anderstons/0c68fe1879fc4276a03e1aad35cd1e2e-small.png => musicians-friend/0c68fe1879fc4276a03e1aad35cd1e2e-small.png [ActiveJob] [Attachs::Jobs::UpdateJob] [e5ca2913-efcc-4855-bfed-d39f5ce858b9] Copying: anderstons/0c68fe1879fc4276a03e1aad35cd1e2e-medium.png => musicians-friend/0c68fe1879fc4276a03e1aad35cd1e2e-medium.png [ActiveJob] [Attachs::Jobs::UpdateJob] [e5ca2913-efcc-4855-bfed-d39f5ce858b9] Copying: anderstons/0c68fe1879fc4276a03e1aad35cd1e2e-large.png => musicians-friend/0c68fe1879fc4276a03e1aad35cd1e2e-large.png [ActiveJob] [Attachs::Jobs::UpdateJob] [e5ca2913-efcc-4855-bfed-d39f5ce858b9] SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"tiny":"musicians-friend/0c68fe1879fc4276a03e1aad35cd1e2e-tiny.png","large":"musicians-friend/0c68fe1879fc4276a03e1aad35cd1e2e-large.png","small":"musicians-friend/0c68fe1879fc4276a03e1aad35cd1e2e-small.png","medium":"musicians-friend/0c68fe1879fc4276a03e1aad35cd1e2e-medium.png","original":"musicians-friend/0c68fe1879fc4276a03e1aad35cd1e2e-original.png"},"old_paths":["anderstons/0c68fe1879fc4276a03e1aad35cd1e2e-original.png","anderstons/0c68fe1879fc4276a03e1aad35cd1e2e-tiny.png","anderstons/0c68fe1879fc4276a03e1aad35cd1e2e-small.png","anderstons/0c68fe1879fc4276a03e1aad35cd1e2e-medium.png","anderstons/0c68fe1879fc4276a03e1aad35cd1e2e-large.png"],"id":"0c68fe1879fc4276a03e1aad35cd1e2e","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-09T14:55:26.322-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 74]] [ActiveJob] [Attachs::Jobs::UpdateJob] [e5ca2913-efcc-4855-bfed-d39f5ce858b9] Performed Attachs::Jobs::UpdateJob from Inline(default) in 2752.1ms [ActiveJob] Enqueued Attachs::Jobs::UpdateJob (Job ID: e5ca2913-efcc-4855-bfed-d39f5ce858b9) to Inline(default) with arguments: gid://dummy/Shop/74, "logo" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 74]]  (0.5ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 74]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Attachs::Jobs::DeleteJob] [6d104933-c4e1-414b-9dd3-afe00f02e279] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["musicians-friend/0c68fe1879fc4276a03e1aad35cd1e2e-tiny.png", "musicians-friend/0c68fe1879fc4276a03e1aad35cd1e2e-large.png", "musicians-friend/0c68fe1879fc4276a03e1aad35cd1e2e-small.png", "musicians-friend/0c68fe1879fc4276a03e1aad35cd1e2e-medium.png", "musicians-friend/0c68fe1879fc4276a03e1aad35cd1e2e-original.png", "anderstons/0c68fe1879fc4276a03e1aad35cd1e2e-original.png", "anderstons/0c68fe1879fc4276a03e1aad35cd1e2e-tiny.png", "anderstons/0c68fe1879fc4276a03e1aad35cd1e2e-small.png", "anderstons/0c68fe1879fc4276a03e1aad35cd1e2e-medium.png", "anderstons/0c68fe1879fc4276a03e1aad35cd1e2e-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [6d104933-c4e1-414b-9dd3-afe00f02e279] Deleting: musicians-friend/0c68fe1879fc4276a03e1aad35cd1e2e-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [6d104933-c4e1-414b-9dd3-afe00f02e279] Deleting: musicians-friend/0c68fe1879fc4276a03e1aad35cd1e2e-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [6d104933-c4e1-414b-9dd3-afe00f02e279] Deleting: musicians-friend/0c68fe1879fc4276a03e1aad35cd1e2e-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [6d104933-c4e1-414b-9dd3-afe00f02e279] Deleting: musicians-friend/0c68fe1879fc4276a03e1aad35cd1e2e-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [6d104933-c4e1-414b-9dd3-afe00f02e279] Deleting: musicians-friend/0c68fe1879fc4276a03e1aad35cd1e2e-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [6d104933-c4e1-414b-9dd3-afe00f02e279] Deleting: anderstons/0c68fe1879fc4276a03e1aad35cd1e2e-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [6d104933-c4e1-414b-9dd3-afe00f02e279] Deleting: anderstons/0c68fe1879fc4276a03e1aad35cd1e2e-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [6d104933-c4e1-414b-9dd3-afe00f02e279] Deleting: anderstons/0c68fe1879fc4276a03e1aad35cd1e2e-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [6d104933-c4e1-414b-9dd3-afe00f02e279] Deleting: anderstons/0c68fe1879fc4276a03e1aad35cd1e2e-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [6d104933-c4e1-414b-9dd3-afe00f02e279] Deleting: anderstons/0c68fe1879fc4276a03e1aad35cd1e2e-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [6d104933-c4e1-414b-9dd3-afe00f02e279] Performed Attachs::Jobs::DeleteJob from Inline(default) in 6056.01ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 6d104933-c4e1-414b-9dd3-afe00f02e279) to Inline(default) with arguments: ["musicians-friend/0c68fe1879fc4276a03e1aad35cd1e2e-tiny.png", "musicians-friend/0c68fe1879fc4276a03e1aad35cd1e2e-large.png", "musicians-friend/0c68fe1879fc4276a03e1aad35cd1e2e-small.png", "musicians-friend/0c68fe1879fc4276a03e1aad35cd1e2e-medium.png", "musicians-friend/0c68fe1879fc4276a03e1aad35cd1e2e-original.png", "anderstons/0c68fe1879fc4276a03e1aad35cd1e2e-original.png", "anderstons/0c68fe1879fc4276a03e1aad35cd1e2e-tiny.png", "anderstons/0c68fe1879fc4276a03e1aad35cd1e2e-small.png", "anderstons/0c68fe1879fc4276a03e1aad35cd1e2e-medium.png", "anderstons/0c68fe1879fc4276a03e1aad35cd1e2e-large.png"]  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------- AttachmentTest: test_nested_attributes --------------------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN -------------------- RecordTest: test_dup --------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ RecordTest: test_inherit ------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN -------------------- RecordTest: test_dup -------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6560-1ovm7la.jpg'  (0.3ms) ROLLBACK  (0.2ms) BEGIN ------------------------ RecordTest: test_inherit ------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN -------------------- RecordTest: test_dup -------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6653-11amn8d.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ RecordTest: test_inherit ------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------ RecordTest: test_inherit ------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------- RecordTest: test_dup -------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6680-13uts4v.jpg'  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN -------------------- RecordTest: test_dup -------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6715-111nxgt.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ RecordTest: test_inherit ------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN -------------------- RecordTest: test_dup -------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6737-19ss4fe.jpg'  (0.4ms) ROLLBACK  (0.1ms) BEGIN ------------------------ RecordTest: test_inherit ------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN -------------------- RecordTest: test_dup -------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6773-1djuqjd.jpg' ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------ RecordTest: test_inherit ------------------------  (0.3ms) ROLLBACK  (0.2ms) BEGIN -------------------- RecordTest: test_dup -------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6859-sx7em0.jpg'  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN -------------------- RecordTest: test_dup -------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6962-1gu1yfi.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------ RecordTest: test_inherit ------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------ RecordTest: test_inherit ------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------- RecordTest: test_dup -------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-6986-xg0paf.jpg'  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN -------------------- RecordTest: test_dup -------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-7022-1rqx67h.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------ RecordTest: test_inherit ------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------ RecordTest: test_inherit ------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------- RecordTest: test_dup -------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-7044-1m3a5fb.jpg'  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------ RecordTest: test_inherit ------------------------  (0.4ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- RecordTest: test_clear_attachments ---------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-7092-rgkiwy.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161209-7092-1a0gk99.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"d408fbd1044d423c98513b60236aa529\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-09T15:11:51.355-03:00\",\"paths\":{\"original\":\"d408fbd1044d423c98513b60236aa529-original.png\",\"tiny\":\"d408fbd1044d423c98513b60236aa529-tiny.png\",\"small\":\"d408fbd1044d423c98513b60236aa529-small.png\",\"medium\":\"d408fbd1044d423c98513b60236aa529-medium.png\",\"large\":\"d408fbd1044d423c98513b60236aa529-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-09 18:11:51.356521"], ["updated_at", "2016-12-09 18:11:51.356521"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 75]]  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (28.9ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN -------------------------- GeneratorTest: test_upload --------------------------  (0.3ms) ROLLBACK  (0.1ms) BEGIN --------------------------- GeneratorTest: test_install ---------------------------  (0.2ms) ROLLBACK  (0.2ms) BEGIN ---------------------------------- RecordTest: test_clear_attachments ---------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-1puq0or.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-1hpmuxu.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (24.9ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"0814e083946f49009312b8e0708afcaf\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-11T02:20:13.978-03:00\",\"paths\":{\"original\":\"0814e083946f49009312b8e0708afcaf-original.png\",\"tiny\":\"0814e083946f49009312b8e0708afcaf-tiny.png\",\"small\":\"0814e083946f49009312b8e0708afcaf-small.png\",\"medium\":\"0814e083946f49009312b8e0708afcaf-medium.png\",\"large\":\"0814e083946f49009312b8e0708afcaf-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-11 05:20:13.978864"], ["updated_at", "2016-12-11 05:20:13.978864"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Shop Load (6.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 76]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ RecordTest: test_inherit ------------------------  (0.1ms) ROLLBACK  (0.2ms) BEGIN -------------------------- CollectionTest: test_index -------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-r02x9x.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-1yuw894.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"53841a91930c4157a661e4ac173d8c68\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-11T02:20:14.051-03:00\",\"paths\":{\"original\":\"53841a91930c4157a661e4ac173d8c68-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725,\"position\":0},{\"id\":\"a766307ce83d47209ff67f3856307532\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-11T02:20:14.052-03:00\",\"paths\":{\"original\":\"a766307ce83d47209ff67f3856307532-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-12-11 05:20:14.053534"], ["updated_at", "2016-12-11 05:20:14.053534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 37]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- CollectionTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-1ogtbly.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-txauhu.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"0df916f74f3c46e9a84d1bf54bfbb3eb\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-11T02:20:14.081-03:00\",\"paths\":{\"original\":\"0df916f74f3c46e9a84d1bf54bfbb3eb-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725},{\"id\":\"ba5b31ff55724a8fb0351c2c71801866\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-11T02:20:14.082-03:00\",\"paths\":{\"original\":\"ba5b31ff55724a8fb0351c2c71801866-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-12-11 05:20:14.083569"], ["updated_at", "2016-12-11 05:20:14.083569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-1ogtbly.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1ud3v5a.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1ud3v5a.jpg => 0df916f74f3c46e9a84d1bf54bfbb3eb-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-txauhu.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-134knlw.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-134knlw.jpg => ba5b31ff55724a8fb0351c2c71801866-original.jpg Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 38]] [ActiveJob] [Attachs::Jobs::DeleteJob] [12a93656-b62f-4cf7-862a-da0630de9b32] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["0df916f74f3c46e9a84d1bf54bfbb3eb-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [12a93656-b62f-4cf7-862a-da0630de9b32] Deleting: 0df916f74f3c46e9a84d1bf54bfbb3eb-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [12a93656-b62f-4cf7-862a-da0630de9b32] Performed Attachs::Jobs::DeleteJob from Inline(default) in 492.0ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 12a93656-b62f-4cf7-862a-da0630de9b32) to Inline(default) with arguments: ["0df916f74f3c46e9a84d1bf54bfbb3eb-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [4aff2e36-06bd-41cb-9c3f-00861a1a318c] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["ba5b31ff55724a8fb0351c2c71801866-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [4aff2e36-06bd-41cb-9c3f-00861a1a318c] Deleting: ba5b31ff55724a8fb0351c2c71801866-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [4aff2e36-06bd-41cb-9c3f-00861a1a318c] Performed Attachs::Jobs::DeleteJob from Inline(default) in 378.48ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 4aff2e36-06bd-41cb-9c3f-00861a1a318c) to Inline(default) with arguments: ["ba5b31ff55724a8fb0351c2c71801866-original.jpg"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- CollectionTest: test_nested_attributes -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-vzeht9.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-1rmt1vp.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- AttachmentTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-f4emck.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"e5ee3ece0a9b4e66ab77612237dd9426\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-11T02:20:17.272-03:00\",\"paths\":{\"original\":\"e5ee3ece0a9b4e66ab77612237dd9426-original.png\",\"tiny\":\"e5ee3ece0a9b4e66ab77612237dd9426-tiny.png\",\"small\":\"e5ee3ece0a9b4e66ab77612237dd9426-small.png\",\"medium\":\"e5ee3ece0a9b4e66ab77612237dd9426-medium.png\",\"large\":\"e5ee3ece0a9b4e66ab77612237dd9426-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-11 05:20:17.272874"], ["updated_at", "2016-12-11 05:20:17.272874"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-f4emck.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-mon0io.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-mon0io.png => e5ee3ece0a9b4e66ab77612237dd9426-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-f4emck.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-oiwkoi.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-oiwkoi.png => e5ee3ece0a9b4e66ab77612237dd9426-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-f4emck.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1jyi7oq.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1jyi7oq.png => e5ee3ece0a9b4e66ab77612237dd9426-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-f4emck.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-xfibpm.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-xfibpm.png => e5ee3ece0a9b4e66ab77612237dd9426-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-f4emck.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-16f9kkf.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-16f9kkf.png => e5ee3ece0a9b4e66ab77612237dd9426-large.png Shop Load (0.4ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 77]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 77]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Attachs::Jobs::DeleteJob] [21bbd410-b169-4f27-ae7c-e583c3d8a1a7] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["e5ee3ece0a9b4e66ab77612237dd9426-tiny.png", "e5ee3ece0a9b4e66ab77612237dd9426-large.png", "e5ee3ece0a9b4e66ab77612237dd9426-small.png", "e5ee3ece0a9b4e66ab77612237dd9426-medium.png", "e5ee3ece0a9b4e66ab77612237dd9426-original.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [21bbd410-b169-4f27-ae7c-e583c3d8a1a7] Deleting: e5ee3ece0a9b4e66ab77612237dd9426-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [21bbd410-b169-4f27-ae7c-e583c3d8a1a7] Deleting: e5ee3ece0a9b4e66ab77612237dd9426-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [21bbd410-b169-4f27-ae7c-e583c3d8a1a7] Deleting: e5ee3ece0a9b4e66ab77612237dd9426-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [21bbd410-b169-4f27-ae7c-e583c3d8a1a7] Deleting: e5ee3ece0a9b4e66ab77612237dd9426-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [21bbd410-b169-4f27-ae7c-e583c3d8a1a7] Deleting: e5ee3ece0a9b4e66ab77612237dd9426-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [21bbd410-b169-4f27-ae7c-e583c3d8a1a7] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2565.38ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 21bbd410-b169-4f27-ae7c-e583c3d8a1a7) to Inline(default) with arguments: ["e5ee3ece0a9b4e66ab77612237dd9426-tiny.png", "e5ee3ece0a9b4e66ab77612237dd9426-large.png", "e5ee3ece0a9b4e66ab77612237dd9426-small.png", "e5ee3ece0a9b4e66ab77612237dd9426-medium.png", "e5ee3ece0a9b4e66ab77612237dd9426-original.png"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_renames ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-rb5uoi.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["logo", "{\"id\":\"f058bc48f4614e178fd95c8f52d0d87f\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-11T02:20:42.634-03:00\",\"paths\":{\"original\":\"anderstons/f058bc48f4614e178fd95c8f52d0d87f-original.png\",\"tiny\":\"anderstons/f058bc48f4614e178fd95c8f52d0d87f-tiny.png\",\"small\":\"anderstons/f058bc48f4614e178fd95c8f52d0d87f-small.png\",\"medium\":\"anderstons/f058bc48f4614e178fd95c8f52d0d87f-medium.png\",\"large\":\"anderstons/f058bc48f4614e178fd95c8f52d0d87f-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["name", "Anderstons"], ["created_at", "2016-12-11 05:20:42.635772"], ["updated_at", "2016-12-11 05:20:42.635772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-rb5uoi.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1fwtvy5.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1fwtvy5.png => anderstons/f058bc48f4614e178fd95c8f52d0d87f-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-rb5uoi.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-36vcjv.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-36vcjv.png => anderstons/f058bc48f4614e178fd95c8f52d0d87f-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-rb5uoi.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1g4zvpr.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1g4zvpr.png => anderstons/f058bc48f4614e178fd95c8f52d0d87f-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-rb5uoi.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1smdj6d.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1smdj6d.png => anderstons/f058bc48f4614e178fd95c8f52d0d87f-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-rb5uoi.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-xjqk1o.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-xjqk1o.png => anderstons/f058bc48f4614e178fd95c8f52d0d87f-large.png  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "shops" SET "name" = $1, "updated_at" = $2 WHERE "shops"."id" = $3 [["name", "Musicians Friend"], ["updated_at", "2016-12-11 05:20:52.573109"], ["id", 78]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 78]] [ActiveJob] [Attachs::Jobs::UpdateJob] [3f8c7e74-04c7-4569-be9a-8d34d709f807] Performing Attachs::Jobs::UpdateJob from Inline(default) with arguments: gid://dummy/Shop/78, "logo" [ActiveJob] [Attachs::Jobs::UpdateJob] [3f8c7e74-04c7-4569-be9a-8d34d709f807] Copying: anderstons/f058bc48f4614e178fd95c8f52d0d87f-original.png => musicians-friend/f058bc48f4614e178fd95c8f52d0d87f-original.png [ActiveJob] [Attachs::Jobs::UpdateJob] [3f8c7e74-04c7-4569-be9a-8d34d709f807] Copying: anderstons/f058bc48f4614e178fd95c8f52d0d87f-tiny.png => musicians-friend/f058bc48f4614e178fd95c8f52d0d87f-tiny.png [ActiveJob] [Attachs::Jobs::UpdateJob] [3f8c7e74-04c7-4569-be9a-8d34d709f807] Copying: anderstons/f058bc48f4614e178fd95c8f52d0d87f-small.png => musicians-friend/f058bc48f4614e178fd95c8f52d0d87f-small.png [ActiveJob] [Attachs::Jobs::UpdateJob] [3f8c7e74-04c7-4569-be9a-8d34d709f807] Copying: anderstons/f058bc48f4614e178fd95c8f52d0d87f-medium.png => musicians-friend/f058bc48f4614e178fd95c8f52d0d87f-medium.png [ActiveJob] [Attachs::Jobs::UpdateJob] [3f8c7e74-04c7-4569-be9a-8d34d709f807] Copying: anderstons/f058bc48f4614e178fd95c8f52d0d87f-large.png => musicians-friend/f058bc48f4614e178fd95c8f52d0d87f-large.png [ActiveJob] [Attachs::Jobs::UpdateJob] [3f8c7e74-04c7-4569-be9a-8d34d709f807] SQL (0.2ms) UPDATE "shops" SET "logo" = '{"paths":{"tiny":"musicians-friend/f058bc48f4614e178fd95c8f52d0d87f-tiny.png","large":"musicians-friend/f058bc48f4614e178fd95c8f52d0d87f-large.png","small":"musicians-friend/f058bc48f4614e178fd95c8f52d0d87f-small.png","medium":"musicians-friend/f058bc48f4614e178fd95c8f52d0d87f-medium.png","original":"musicians-friend/f058bc48f4614e178fd95c8f52d0d87f-original.png"},"old_paths":["anderstons/f058bc48f4614e178fd95c8f52d0d87f-original.png","anderstons/f058bc48f4614e178fd95c8f52d0d87f-tiny.png","anderstons/f058bc48f4614e178fd95c8f52d0d87f-small.png","anderstons/f058bc48f4614e178fd95c8f52d0d87f-medium.png","anderstons/f058bc48f4614e178fd95c8f52d0d87f-large.png"],"id":"f058bc48f4614e178fd95c8f52d0d87f","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-11T02:20:42.634-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 78]] [ActiveJob] [Attachs::Jobs::UpdateJob] [3f8c7e74-04c7-4569-be9a-8d34d709f807] Performed Attachs::Jobs::UpdateJob from Inline(default) in 2859.89ms [ActiveJob] Enqueued Attachs::Jobs::UpdateJob (Job ID: 3f8c7e74-04c7-4569-be9a-8d34d709f807) to Inline(default) with arguments: gid://dummy/Shop/78, "logo" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 78]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 78]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Attachs::Jobs::DeleteJob] [e6bf6fe7-0e42-47f7-bdd1-444735a5f8de] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["musicians-friend/f058bc48f4614e178fd95c8f52d0d87f-tiny.png", "musicians-friend/f058bc48f4614e178fd95c8f52d0d87f-large.png", "musicians-friend/f058bc48f4614e178fd95c8f52d0d87f-small.png", "musicians-friend/f058bc48f4614e178fd95c8f52d0d87f-medium.png", "musicians-friend/f058bc48f4614e178fd95c8f52d0d87f-original.png", "anderstons/f058bc48f4614e178fd95c8f52d0d87f-original.png", "anderstons/f058bc48f4614e178fd95c8f52d0d87f-tiny.png", "anderstons/f058bc48f4614e178fd95c8f52d0d87f-small.png", "anderstons/f058bc48f4614e178fd95c8f52d0d87f-medium.png", "anderstons/f058bc48f4614e178fd95c8f52d0d87f-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [e6bf6fe7-0e42-47f7-bdd1-444735a5f8de] Deleting: musicians-friend/f058bc48f4614e178fd95c8f52d0d87f-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [e6bf6fe7-0e42-47f7-bdd1-444735a5f8de] Deleting: musicians-friend/f058bc48f4614e178fd95c8f52d0d87f-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [e6bf6fe7-0e42-47f7-bdd1-444735a5f8de] Deleting: musicians-friend/f058bc48f4614e178fd95c8f52d0d87f-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [e6bf6fe7-0e42-47f7-bdd1-444735a5f8de] Deleting: musicians-friend/f058bc48f4614e178fd95c8f52d0d87f-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [e6bf6fe7-0e42-47f7-bdd1-444735a5f8de] Deleting: musicians-friend/f058bc48f4614e178fd95c8f52d0d87f-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [e6bf6fe7-0e42-47f7-bdd1-444735a5f8de] Deleting: anderstons/f058bc48f4614e178fd95c8f52d0d87f-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [e6bf6fe7-0e42-47f7-bdd1-444735a5f8de] Deleting: anderstons/f058bc48f4614e178fd95c8f52d0d87f-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [e6bf6fe7-0e42-47f7-bdd1-444735a5f8de] Deleting: anderstons/f058bc48f4614e178fd95c8f52d0d87f-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [e6bf6fe7-0e42-47f7-bdd1-444735a5f8de] Deleting: anderstons/f058bc48f4614e178fd95c8f52d0d87f-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [e6bf6fe7-0e42-47f7-bdd1-444735a5f8de] Deleting: anderstons/f058bc48f4614e178fd95c8f52d0d87f-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [e6bf6fe7-0e42-47f7-bdd1-444735a5f8de] Performed Attachs::Jobs::DeleteJob from Inline(default) in 4622.08ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: e6bf6fe7-0e42-47f7-bdd1-444735a5f8de) to Inline(default) with arguments: ["musicians-friend/f058bc48f4614e178fd95c8f52d0d87f-tiny.png", "musicians-friend/f058bc48f4614e178fd95c8f52d0d87f-large.png", "musicians-friend/f058bc48f4614e178fd95c8f52d0d87f-small.png", "musicians-friend/f058bc48f4614e178fd95c8f52d0d87f-medium.png", "musicians-friend/f058bc48f4614e178fd95c8f52d0d87f-original.png", "anderstons/f058bc48f4614e178fd95c8f52d0d87f-original.png", "anderstons/f058bc48f4614e178fd95c8f52d0d87f-tiny.png", "anderstons/f058bc48f4614e178fd95c8f52d0d87f-small.png", "anderstons/f058bc48f4614e178fd95c8f52d0d87f-medium.png", "anderstons/f058bc48f4614e178fd95c8f52d0d87f-large.png"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_default ----------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- AttachmentTest: test_nested_attributes --------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------- TaskTest: test_clear -------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-i16cn9.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"2dbaa0f85cb34b4e92850e98c1f94ef7\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-11T02:21:28.616-03:00\",\"paths\":{\"original\":\"2dbaa0f85cb34b4e92850e98c1f94ef7-original.png\",\"tiny\":\"2dbaa0f85cb34b4e92850e98c1f94ef7-tiny.png\",\"small\":\"2dbaa0f85cb34b4e92850e98c1f94ef7-small.png\",\"medium\":\"2dbaa0f85cb34b4e92850e98c1f94ef7-medium.png\",\"large\":\"2dbaa0f85cb34b4e92850e98c1f94ef7-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-11 05:21:28.617290"], ["updated_at", "2016-12-11 05:21:28.617290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-i16cn9.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-ablbu9.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-ablbu9.png => 2dbaa0f85cb34b4e92850e98c1f94ef7-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-i16cn9.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1swluhs.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1swluhs.png => 2dbaa0f85cb34b4e92850e98c1f94ef7-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-i16cn9.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1tjaf99.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1tjaf99.png => 2dbaa0f85cb34b4e92850e98c1f94ef7-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-i16cn9.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-jxc904.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-jxc904.png => 2dbaa0f85cb34b4e92850e98c1f94ef7-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-i16cn9.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-vtsqb9.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-vtsqb9.png => 2dbaa0f85cb34b4e92850e98c1f94ef7-large.png Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-1vjxd19.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"0544df412b3048989d30cf3d6af007c4\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-11T02:21:33.013-03:00\",\"paths\":{\"original\":\"0544df412b3048989d30cf3d6af007c4-original.png\",\"tiny\":\"0544df412b3048989d30cf3d6af007c4-tiny.png\",\"small\":\"0544df412b3048989d30cf3d6af007c4-small.png\",\"medium\":\"0544df412b3048989d30cf3d6af007c4-medium.png\",\"large\":\"0544df412b3048989d30cf3d6af007c4-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-11 05:21:33.014642"], ["updated_at", "2016-12-11 05:21:33.014642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-1vjxd19.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1be706t.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1be706t.png => 0544df412b3048989d30cf3d6af007c4-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-1vjxd19.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-14z4rog.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-14z4rog.png => 0544df412b3048989d30cf3d6af007c4-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-1vjxd19.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-5b42ym.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-5b42ym.png => 0544df412b3048989d30cf3d6af007c4-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-1vjxd19.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1tm8u5o.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1tm8u5o.png => 0544df412b3048989d30cf3d6af007c4-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-1vjxd19.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-tsvemx.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-tsvemx.png => 0544df412b3048989d30cf3d6af007c4-large.png SQL (0.3ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 80]]  (28.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '0544df412b3048989d30cf3d6af007c4-large.png' OR old_paths.value = '0544df412b3048989d30cf3d6af007c4-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '0544df412b3048989d30cf3d6af007c4-large.png' OR old_paths.value = '0544df412b3048989d30cf3d6af007c4-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '0544df412b3048989d30cf3d6af007c4-large.png' OR old_paths.value = '0544df412b3048989d30cf3d6af007c4-large.png') Deleting 0544df412b3048989d30cf3d6af007c4-large.png Deleting: 0544df412b3048989d30cf3d6af007c4-large.png  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '0544df412b3048989d30cf3d6af007c4-medium.png' OR old_paths.value = '0544df412b3048989d30cf3d6af007c4-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '0544df412b3048989d30cf3d6af007c4-medium.png' OR old_paths.value = '0544df412b3048989d30cf3d6af007c4-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '0544df412b3048989d30cf3d6af007c4-medium.png' OR old_paths.value = '0544df412b3048989d30cf3d6af007c4-medium.png') Deleting 0544df412b3048989d30cf3d6af007c4-medium.png Deleting: 0544df412b3048989d30cf3d6af007c4-medium.png  (2.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '0544df412b3048989d30cf3d6af007c4-original.png' OR old_paths.value = '0544df412b3048989d30cf3d6af007c4-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '0544df412b3048989d30cf3d6af007c4-original.png' OR old_paths.value = '0544df412b3048989d30cf3d6af007c4-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '0544df412b3048989d30cf3d6af007c4-original.png' OR old_paths.value = '0544df412b3048989d30cf3d6af007c4-original.png') Deleting 0544df412b3048989d30cf3d6af007c4-original.png Deleting: 0544df412b3048989d30cf3d6af007c4-original.png  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '0544df412b3048989d30cf3d6af007c4-small.png' OR old_paths.value = '0544df412b3048989d30cf3d6af007c4-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '0544df412b3048989d30cf3d6af007c4-small.png' OR old_paths.value = '0544df412b3048989d30cf3d6af007c4-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '0544df412b3048989d30cf3d6af007c4-small.png' OR old_paths.value = '0544df412b3048989d30cf3d6af007c4-small.png') Deleting 0544df412b3048989d30cf3d6af007c4-small.png Deleting: 0544df412b3048989d30cf3d6af007c4-small.png  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '0544df412b3048989d30cf3d6af007c4-tiny.png' OR old_paths.value = '0544df412b3048989d30cf3d6af007c4-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '0544df412b3048989d30cf3d6af007c4-tiny.png' OR old_paths.value = '0544df412b3048989d30cf3d6af007c4-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '0544df412b3048989d30cf3d6af007c4-tiny.png' OR old_paths.value = '0544df412b3048989d30cf3d6af007c4-tiny.png') Deleting 0544df412b3048989d30cf3d6af007c4-tiny.png Deleting: 0544df412b3048989d30cf3d6af007c4-tiny.png  (0.7ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '2dbaa0f85cb34b4e92850e98c1f94ef7-large.png' OR old_paths.value = '2dbaa0f85cb34b4e92850e98c1f94ef7-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '2dbaa0f85cb34b4e92850e98c1f94ef7-large.png' OR old_paths.value = '2dbaa0f85cb34b4e92850e98c1f94ef7-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '2dbaa0f85cb34b4e92850e98c1f94ef7-large.png' OR old_paths.value = '2dbaa0f85cb34b4e92850e98c1f94ef7-large.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '2dbaa0f85cb34b4e92850e98c1f94ef7-medium.png' OR old_paths.value = '2dbaa0f85cb34b4e92850e98c1f94ef7-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '2dbaa0f85cb34b4e92850e98c1f94ef7-medium.png' OR old_paths.value = '2dbaa0f85cb34b4e92850e98c1f94ef7-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '2dbaa0f85cb34b4e92850e98c1f94ef7-medium.png' OR old_paths.value = '2dbaa0f85cb34b4e92850e98c1f94ef7-medium.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '2dbaa0f85cb34b4e92850e98c1f94ef7-original.png' OR old_paths.value = '2dbaa0f85cb34b4e92850e98c1f94ef7-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '2dbaa0f85cb34b4e92850e98c1f94ef7-original.png' OR old_paths.value = '2dbaa0f85cb34b4e92850e98c1f94ef7-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '2dbaa0f85cb34b4e92850e98c1f94ef7-original.png' OR old_paths.value = '2dbaa0f85cb34b4e92850e98c1f94ef7-original.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '2dbaa0f85cb34b4e92850e98c1f94ef7-small.png' OR old_paths.value = '2dbaa0f85cb34b4e92850e98c1f94ef7-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '2dbaa0f85cb34b4e92850e98c1f94ef7-small.png' OR old_paths.value = '2dbaa0f85cb34b4e92850e98c1f94ef7-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '2dbaa0f85cb34b4e92850e98c1f94ef7-small.png' OR old_paths.value = '2dbaa0f85cb34b4e92850e98c1f94ef7-small.png')  (0.8ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '2dbaa0f85cb34b4e92850e98c1f94ef7-tiny.png' OR old_paths.value = '2dbaa0f85cb34b4e92850e98c1f94ef7-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '2dbaa0f85cb34b4e92850e98c1f94ef7-tiny.png' OR old_paths.value = '2dbaa0f85cb34b4e92850e98c1f94ef7-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '2dbaa0f85cb34b4e92850e98c1f94ef7-tiny.png' OR old_paths.value = '2dbaa0f85cb34b4e92850e98c1f94ef7-tiny.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/16034eca9904465a9cefe58b35da2831-large.png' OR old_paths.value = 'second/16034eca9904465a9cefe58b35da2831-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/16034eca9904465a9cefe58b35da2831-large.png' OR old_paths.value = 'second/16034eca9904465a9cefe58b35da2831-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/16034eca9904465a9cefe58b35da2831-large.png' OR old_paths.value = 'second/16034eca9904465a9cefe58b35da2831-large.png') Deleting second/16034eca9904465a9cefe58b35da2831-large.png Deleting: second/16034eca9904465a9cefe58b35da2831-large.png  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/16034eca9904465a9cefe58b35da2831-medium.png' OR old_paths.value = 'second/16034eca9904465a9cefe58b35da2831-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/16034eca9904465a9cefe58b35da2831-medium.png' OR old_paths.value = 'second/16034eca9904465a9cefe58b35da2831-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/16034eca9904465a9cefe58b35da2831-medium.png' OR old_paths.value = 'second/16034eca9904465a9cefe58b35da2831-medium.png') Deleting second/16034eca9904465a9cefe58b35da2831-medium.png Deleting: second/16034eca9904465a9cefe58b35da2831-medium.png  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/16034eca9904465a9cefe58b35da2831-original.png' OR old_paths.value = 'second/16034eca9904465a9cefe58b35da2831-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/16034eca9904465a9cefe58b35da2831-original.png' OR old_paths.value = 'second/16034eca9904465a9cefe58b35da2831-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/16034eca9904465a9cefe58b35da2831-original.png' OR old_paths.value = 'second/16034eca9904465a9cefe58b35da2831-original.png') Deleting second/16034eca9904465a9cefe58b35da2831-original.png Deleting: second/16034eca9904465a9cefe58b35da2831-original.png  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/16034eca9904465a9cefe58b35da2831-small.png' OR old_paths.value = 'second/16034eca9904465a9cefe58b35da2831-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/16034eca9904465a9cefe58b35da2831-small.png' OR old_paths.value = 'second/16034eca9904465a9cefe58b35da2831-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/16034eca9904465a9cefe58b35da2831-small.png' OR old_paths.value = 'second/16034eca9904465a9cefe58b35da2831-small.png') Deleting second/16034eca9904465a9cefe58b35da2831-small.png Deleting: second/16034eca9904465a9cefe58b35da2831-small.png  (0.8ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/16034eca9904465a9cefe58b35da2831-tiny.png' OR old_paths.value = 'second/16034eca9904465a9cefe58b35da2831-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/16034eca9904465a9cefe58b35da2831-tiny.png' OR old_paths.value = 'second/16034eca9904465a9cefe58b35da2831-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/16034eca9904465a9cefe58b35da2831-tiny.png' OR old_paths.value = 'second/16034eca9904465a9cefe58b35da2831-tiny.png') Deleting second/16034eca9904465a9cefe58b35da2831-tiny.png Deleting: second/16034eca9904465a9cefe58b35da2831-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [bac18783-de63-446b-b26e-5d2d50b3c239] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["2dbaa0f85cb34b4e92850e98c1f94ef7-original.png", "2dbaa0f85cb34b4e92850e98c1f94ef7-tiny.png", "2dbaa0f85cb34b4e92850e98c1f94ef7-small.png", "2dbaa0f85cb34b4e92850e98c1f94ef7-medium.png", "2dbaa0f85cb34b4e92850e98c1f94ef7-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [bac18783-de63-446b-b26e-5d2d50b3c239] Deleting: 2dbaa0f85cb34b4e92850e98c1f94ef7-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [bac18783-de63-446b-b26e-5d2d50b3c239] Deleting: 2dbaa0f85cb34b4e92850e98c1f94ef7-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [bac18783-de63-446b-b26e-5d2d50b3c239] Deleting: 2dbaa0f85cb34b4e92850e98c1f94ef7-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [bac18783-de63-446b-b26e-5d2d50b3c239] Deleting: 2dbaa0f85cb34b4e92850e98c1f94ef7-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [bac18783-de63-446b-b26e-5d2d50b3c239] Deleting: 2dbaa0f85cb34b4e92850e98c1f94ef7-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [bac18783-de63-446b-b26e-5d2d50b3c239] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2607.54ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: bac18783-de63-446b-b26e-5d2d50b3c239) to Inline(default) with arguments: ["2dbaa0f85cb34b4e92850e98c1f94ef7-original.png", "2dbaa0f85cb34b4e92850e98c1f94ef7-tiny.png", "2dbaa0f85cb34b4e92850e98c1f94ef7-small.png", "2dbaa0f85cb34b4e92850e98c1f94ef7-medium.png", "2dbaa0f85cb34b4e92850e98c1f94ef7-large.png"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------- TaskTest: test_exist -------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-ad4epv.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "logo", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "first"], ["logo", "{\"id\":\"ea94528a2b684b7abaf25232c5650f34\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-11T02:21:51.791-03:00\",\"paths\":{\"original\":\"first/ea94528a2b684b7abaf25232c5650f34-original.png\",\"tiny\":\"first/ea94528a2b684b7abaf25232c5650f34-tiny.png\",\"small\":\"first/ea94528a2b684b7abaf25232c5650f34-small.png\",\"medium\":\"first/ea94528a2b684b7abaf25232c5650f34-medium.png\",\"large\":\"first/ea94528a2b684b7abaf25232c5650f34-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-11 05:21:51.791874"], ["updated_at", "2016-12-11 05:21:51.791874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-ad4epv.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-k6o4l3.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-k6o4l3.png => first/ea94528a2b684b7abaf25232c5650f34-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-ad4epv.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-qrdcul.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-qrdcul.png => first/ea94528a2b684b7abaf25232c5650f34-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-ad4epv.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-8j4uf5.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-8j4uf5.png => first/ea94528a2b684b7abaf25232c5650f34-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-ad4epv.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-94inqs.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-94inqs.png => first/ea94528a2b684b7abaf25232c5650f34-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-ad4epv.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-2ib7i9.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-2ib7i9.png => first/ea94528a2b684b7abaf25232c5650f34-large.png  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "shops" SET "name" = $1, "updated_at" = $2 WHERE "shops"."id" = $3 [["name", "second"], ["updated_at", "2016-12-11 05:21:55.103165"], ["id", 81]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 81]] [ActiveJob] [Attachs::Jobs::UpdateJob] [04c86612-a2dc-40a7-96f7-2c2d062d85f6] Performing Attachs::Jobs::UpdateJob from Inline(default) with arguments: gid://dummy/Shop/81, "logo" [ActiveJob] [Attachs::Jobs::UpdateJob] [04c86612-a2dc-40a7-96f7-2c2d062d85f6] Copying: first/ea94528a2b684b7abaf25232c5650f34-original.png => second/ea94528a2b684b7abaf25232c5650f34-original.png [ActiveJob] [Attachs::Jobs::UpdateJob] [04c86612-a2dc-40a7-96f7-2c2d062d85f6] Copying: first/ea94528a2b684b7abaf25232c5650f34-tiny.png => second/ea94528a2b684b7abaf25232c5650f34-tiny.png [ActiveJob] [Attachs::Jobs::UpdateJob] [04c86612-a2dc-40a7-96f7-2c2d062d85f6] Copying: first/ea94528a2b684b7abaf25232c5650f34-small.png => second/ea94528a2b684b7abaf25232c5650f34-small.png [ActiveJob] [Attachs::Jobs::UpdateJob] [04c86612-a2dc-40a7-96f7-2c2d062d85f6] Copying: first/ea94528a2b684b7abaf25232c5650f34-medium.png => second/ea94528a2b684b7abaf25232c5650f34-medium.png [ActiveJob] [Attachs::Jobs::UpdateJob] [04c86612-a2dc-40a7-96f7-2c2d062d85f6] Copying: first/ea94528a2b684b7abaf25232c5650f34-large.png => second/ea94528a2b684b7abaf25232c5650f34-large.png [ActiveJob] [Attachs::Jobs::UpdateJob] [04c86612-a2dc-40a7-96f7-2c2d062d85f6] SQL (0.2ms) UPDATE "shops" SET "logo" = '{"paths":{"tiny":"second/ea94528a2b684b7abaf25232c5650f34-tiny.png","large":"second/ea94528a2b684b7abaf25232c5650f34-large.png","small":"second/ea94528a2b684b7abaf25232c5650f34-small.png","medium":"second/ea94528a2b684b7abaf25232c5650f34-medium.png","original":"second/ea94528a2b684b7abaf25232c5650f34-original.png"},"old_paths":["first/ea94528a2b684b7abaf25232c5650f34-original.png","first/ea94528a2b684b7abaf25232c5650f34-tiny.png","first/ea94528a2b684b7abaf25232c5650f34-small.png","first/ea94528a2b684b7abaf25232c5650f34-medium.png","first/ea94528a2b684b7abaf25232c5650f34-large.png"],"id":"ea94528a2b684b7abaf25232c5650f34","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-11T02:21:51.791-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 81]] [ActiveJob] [Attachs::Jobs::UpdateJob] [04c86612-a2dc-40a7-96f7-2c2d062d85f6] Performed Attachs::Jobs::UpdateJob from Inline(default) in 5582.64ms [ActiveJob] Enqueued Attachs::Jobs::UpdateJob (Job ID: 04c86612-a2dc-40a7-96f7-2c2d062d85f6) to Inline(default) with arguments: gid://dummy/Shop/81, "logo" Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-d8w1sc.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-12yv8vn.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"2397887378224e0080d6a40681d0da7a\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-11T02:22:00.710-03:00\",\"paths\":{\"original\":\"2397887378224e0080d6a40681d0da7a-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725},{\"id\":\"0ade197839184c9bb7ae247ff158a865\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-11T02:22:00.711-03:00\",\"paths\":{\"original\":\"0ade197839184c9bb7ae247ff158a865-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-12-11 05:22:00.713259"], ["updated_at", "2016-12-11 05:22:00.713259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-d8w1sc.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1vnwpid.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1vnwpid.jpg => 2397887378224e0080d6a40681d0da7a-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-12yv8vn.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1xiljqt.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1xiljqt.jpg => 0ade197839184c9bb7ae247ff158a865-original.jpg  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/ea94528a2b684b7abaf25232c5650f34-original.png' OR old_paths.value = 'first/ea94528a2b684b7abaf25232c5650f34-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/ea94528a2b684b7abaf25232c5650f34-original.png' OR old_paths.value = 'first/ea94528a2b684b7abaf25232c5650f34-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/ea94528a2b684b7abaf25232c5650f34-original.png' OR old_paths.value = 'first/ea94528a2b684b7abaf25232c5650f34-original.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/ea94528a2b684b7abaf25232c5650f34-original.png' OR old_paths.value = 'first/ea94528a2b684b7abaf25232c5650f34-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/ea94528a2b684b7abaf25232c5650f34-original.png' OR old_paths.value = 'first/ea94528a2b684b7abaf25232c5650f34-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/ea94528a2b684b7abaf25232c5650f34-original.png' OR old_paths.value = 'first/ea94528a2b684b7abaf25232c5650f34-original.png')  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '2397887378224e0080d6a40681d0da7a-original.jpg' OR old_paths.value = '2397887378224e0080d6a40681d0da7a-original.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '2397887378224e0080d6a40681d0da7a-original.jpg' OR old_paths.value = '2397887378224e0080d6a40681d0da7a-original.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '2397887378224e0080d6a40681d0da7a-original.jpg' OR old_paths.value = '2397887378224e0080d6a40681d0da7a-original.jpg') [ActiveJob] [Attachs::Jobs::DeleteJob] [1f86a138-59a4-47d8-9ffa-52fb44d98c8f] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["first/ea94528a2b684b7abaf25232c5650f34-original.png", "first/ea94528a2b684b7abaf25232c5650f34-tiny.png", "first/ea94528a2b684b7abaf25232c5650f34-small.png", "first/ea94528a2b684b7abaf25232c5650f34-medium.png", "first/ea94528a2b684b7abaf25232c5650f34-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [1f86a138-59a4-47d8-9ffa-52fb44d98c8f] Deleting: first/ea94528a2b684b7abaf25232c5650f34-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [1f86a138-59a4-47d8-9ffa-52fb44d98c8f] Deleting: first/ea94528a2b684b7abaf25232c5650f34-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [1f86a138-59a4-47d8-9ffa-52fb44d98c8f] Deleting: first/ea94528a2b684b7abaf25232c5650f34-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [1f86a138-59a4-47d8-9ffa-52fb44d98c8f] Deleting: first/ea94528a2b684b7abaf25232c5650f34-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [1f86a138-59a4-47d8-9ffa-52fb44d98c8f] Deleting: first/ea94528a2b684b7abaf25232c5650f34-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [1f86a138-59a4-47d8-9ffa-52fb44d98c8f] Performed Attachs::Jobs::DeleteJob from Inline(default) in 5788.75ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 1f86a138-59a4-47d8-9ffa-52fb44d98c8f) to Inline(default) with arguments: ["first/ea94528a2b684b7abaf25232c5650f34-original.png", "first/ea94528a2b684b7abaf25232c5650f34-tiny.png", "first/ea94528a2b684b7abaf25232c5650f34-small.png", "first/ea94528a2b684b7abaf25232c5650f34-medium.png", "first/ea94528a2b684b7abaf25232c5650f34-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [aeb4f95d-b97d-47f5-9da1-f8c11a76febf] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["2397887378224e0080d6a40681d0da7a-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [aeb4f95d-b97d-47f5-9da1-f8c11a76febf] Deleting: 2397887378224e0080d6a40681d0da7a-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [aeb4f95d-b97d-47f5-9da1-f8c11a76febf] Performed Attachs::Jobs::DeleteJob from Inline(default) in 641.42ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: aeb4f95d-b97d-47f5-9da1-f8c11a76febf) to Inline(default) with arguments: ["2397887378224e0080d6a40681d0da7a-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [8c2003c7-de9f-492b-adb1-57f3dd2dd5d7] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["0ade197839184c9bb7ae247ff158a865-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [8c2003c7-de9f-492b-adb1-57f3dd2dd5d7] Deleting: 0ade197839184c9bb7ae247ff158a865-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [8c2003c7-de9f-492b-adb1-57f3dd2dd5d7] Performed Attachs::Jobs::DeleteJob from Inline(default) in 465.81ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 8c2003c7-de9f-492b-adb1-57f3dd2dd5d7) to Inline(default) with arguments: ["0ade197839184c9bb7ae247ff158a865-original.jpg"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- TaskTest: test_fix_missings --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-1re6qot.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"bcd617a576914151a47e0d55c328916f\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-11T02:22:09.349-03:00\",\"paths\":{\"original\":\"bcd617a576914151a47e0d55c328916f-original.png\",\"tiny\":\"bcd617a576914151a47e0d55c328916f-tiny.png\",\"small\":\"bcd617a576914151a47e0d55c328916f-small.png\",\"medium\":\"bcd617a576914151a47e0d55c328916f-medium.png\",\"large\":\"bcd617a576914151a47e0d55c328916f-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-11 05:22:09.349996"], ["updated_at", "2016-12-11 05:22:09.349996"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-1re6qot.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1boluwe.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1boluwe.png => bcd617a576914151a47e0d55c328916f-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-1re6qot.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1q37ojf.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1q37ojf.png => bcd617a576914151a47e0d55c328916f-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-1re6qot.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-dqnb8l.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-dqnb8l.png => bcd617a576914151a47e0d55c328916f-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-1re6qot.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-4ctq9g.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-4ctq9g.png => bcd617a576914151a47e0d55c328916f-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-1re6qot.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1yx0n42.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1yx0n42.png => bcd617a576914151a47e0d55c328916f-large.png Deleting: bcd617a576914151a47e0d55c328916f-tiny.png Deleting: bcd617a576914151a47e0d55c328916f-small.png Shop Load (1.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Fix missings of Shop #82 => logo Generating: tiny => bcd617a576914151a47e0d55c328916f-tiny.png Generating: small => bcd617a576914151a47e0d55c328916f-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-12u7ze.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-fas3i5.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-fas3i5.png => bcd617a576914151a47e0d55c328916f-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-12u7ze.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-7oh4n6.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-7oh4n6.png => bcd617a576914151a47e0d55c328916f-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-12u7ze.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1f9zzlm.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1f9zzlm.png => bcd617a576914151a47e0d55c328916f-small.png RecordTest::Subclass Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Fix missings of Shop #82 => logo RecordTest::Subclass Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Fix missings of Shop #82 => logo RecordTest::Subclass Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 [ActiveJob] [Attachs::Jobs::DeleteJob] [d27b2528-59e4-4b92-aeb4-97ea55d8ef2b] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["bcd617a576914151a47e0d55c328916f-original.png", "bcd617a576914151a47e0d55c328916f-tiny.png", "bcd617a576914151a47e0d55c328916f-small.png", "bcd617a576914151a47e0d55c328916f-medium.png", "bcd617a576914151a47e0d55c328916f-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [d27b2528-59e4-4b92-aeb4-97ea55d8ef2b] Deleting: bcd617a576914151a47e0d55c328916f-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [d27b2528-59e4-4b92-aeb4-97ea55d8ef2b] Deleting: bcd617a576914151a47e0d55c328916f-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [d27b2528-59e4-4b92-aeb4-97ea55d8ef2b] Deleting: bcd617a576914151a47e0d55c328916f-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [d27b2528-59e4-4b92-aeb4-97ea55d8ef2b] Deleting: bcd617a576914151a47e0d55c328916f-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [d27b2528-59e4-4b92-aeb4-97ea55d8ef2b] Deleting: bcd617a576914151a47e0d55c328916f-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [d27b2528-59e4-4b92-aeb4-97ea55d8ef2b] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2398.32ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: d27b2528-59e4-4b92-aeb4-97ea55d8ef2b) to Inline(default) with arguments: ["bcd617a576914151a47e0d55c328916f-original.png", "bcd617a576914151a47e0d55c328916f-tiny.png", "bcd617a576914151a47e0d55c328916f-small.png", "bcd617a576914151a47e0d55c328916f-medium.png", "bcd617a576914151a47e0d55c328916f-large.png"]  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------ TaskTest: test_reprocess ------------------------ Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-1lg4ya1.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"924e2f30d3c14102a60a6b4b6652c5b0\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-11T02:22:28.407-03:00\",\"paths\":{\"original\":\"924e2f30d3c14102a60a6b4b6652c5b0-original.png\",\"tiny\":\"924e2f30d3c14102a60a6b4b6652c5b0-tiny.png\",\"small\":\"924e2f30d3c14102a60a6b4b6652c5b0-small.png\",\"medium\":\"924e2f30d3c14102a60a6b4b6652c5b0-medium.png\",\"large\":\"924e2f30d3c14102a60a6b4b6652c5b0-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-11 05:22:28.408140"], ["updated_at", "2016-12-11 05:22:28.408140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-1lg4ya1.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-2ia0ww.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-2ia0ww.png => 924e2f30d3c14102a60a6b4b6652c5b0-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-1lg4ya1.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1spz3ri.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1spz3ri.png => 924e2f30d3c14102a60a6b4b6652c5b0-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-1lg4ya1.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1jo2hr8.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1jo2hr8.png => 924e2f30d3c14102a60a6b4b6652c5b0-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-1lg4ya1.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-zpj7rd.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-zpj7rd.png => 924e2f30d3c14102a60a6b4b6652c5b0-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-1lg4ya1.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-nx271g.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-nx271g.png => 924e2f30d3c14102a60a6b4b6652c5b0-large.png Deleting: 924e2f30d3c14102a60a6b4b6652c5b0-tiny.png Deleting: 924e2f30d3c14102a60a6b4b6652c5b0-small.png Deleting: 924e2f30d3c14102a60a6b4b6652c5b0-medium.png Deleting: 924e2f30d3c14102a60a6b4b6652c5b0-large.png Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Reprocessing Shop #83 => logo Regenerating: tiny => 924e2f30d3c14102a60a6b4b6652c5b0-tiny.png Regenerating: large => 924e2f30d3c14102a60a6b4b6652c5b0-large.png Regenerating: small => 924e2f30d3c14102a60a6b4b6652c5b0-small.png Regenerating: medium => 924e2f30d3c14102a60a6b4b6652c5b0-medium.png Deleting: 924e2f30d3c14102a60a6b4b6652c5b0-original.png Regenerating: original => 924e2f30d3c14102a60a6b4b6652c5b0-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-14psahq.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1fufjev.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1fufjev.png => 924e2f30d3c14102a60a6b4b6652c5b0-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-14psahq.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-xg4vc.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-xg4vc.png => 924e2f30d3c14102a60a6b4b6652c5b0-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-14psahq.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1corfbl.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1corfbl.png => 924e2f30d3c14102a60a6b4b6652c5b0-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-14psahq.png' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1yhpvy8.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1yhpvy8.png => 924e2f30d3c14102a60a6b4b6652c5b0-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-14psahq.png' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1skcn4r.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1skcn4r.png => 924e2f30d3c14102a60a6b4b6652c5b0-large.png SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"original":"924e2f30d3c14102a60a6b4b6652c5b0-original.png","tiny":"924e2f30d3c14102a60a6b4b6652c5b0-tiny.png","small":"924e2f30d3c14102a60a6b4b6652c5b0-small.png","medium":"924e2f30d3c14102a60a6b4b6652c5b0-medium.png","large":"924e2f30d3c14102a60a6b4b6652c5b0-large.png"},"old_paths":[],"id":"924e2f30d3c14102a60a6b4b6652c5b0","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-11T02:22:28.407-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 83]] RecordTest::Subclass Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Reprocessing Shop #83 => logo Deleting: 924e2f30d3c14102a60a6b4b6652c5b0-tiny.png Regenerating: tiny => 924e2f30d3c14102a60a6b4b6652c5b0-tiny.png Deleting: 924e2f30d3c14102a60a6b4b6652c5b0-large.png Regenerating: large => 924e2f30d3c14102a60a6b4b6652c5b0-large.png Deleting: 924e2f30d3c14102a60a6b4b6652c5b0-small.png Regenerating: small => 924e2f30d3c14102a60a6b4b6652c5b0-small.png Deleting: 924e2f30d3c14102a60a6b4b6652c5b0-medium.png Regenerating: medium => 924e2f30d3c14102a60a6b4b6652c5b0-medium.png Deleting: 924e2f30d3c14102a60a6b4b6652c5b0-original.png Regenerating: original => 924e2f30d3c14102a60a6b4b6652c5b0-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1dq5hnw.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1re1d4h.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1re1d4h.png => 924e2f30d3c14102a60a6b4b6652c5b0-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1dq5hnw.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-14b3stb.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-14b3stb.png => 924e2f30d3c14102a60a6b4b6652c5b0-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1dq5hnw.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1apnpu9.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1apnpu9.png => 924e2f30d3c14102a60a6b4b6652c5b0-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1dq5hnw.png' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-15s0gql.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-15s0gql.png => 924e2f30d3c14102a60a6b4b6652c5b0-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1dq5hnw.png' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-4g3j44.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-4g3j44.png => 924e2f30d3c14102a60a6b4b6652c5b0-large.png SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"original":"924e2f30d3c14102a60a6b4b6652c5b0-original.png","tiny":"924e2f30d3c14102a60a6b4b6652c5b0-tiny.png","small":"924e2f30d3c14102a60a6b4b6652c5b0-small.png","medium":"924e2f30d3c14102a60a6b4b6652c5b0-medium.png","large":"924e2f30d3c14102a60a6b4b6652c5b0-large.png"},"old_paths":[],"id":"924e2f30d3c14102a60a6b4b6652c5b0","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-11T02:22:28.407-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 83]] RecordTest::Subclass Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Reprocessing Shop #83 => logo Deleting: 924e2f30d3c14102a60a6b4b6652c5b0-tiny.png Regenerating: tiny => 924e2f30d3c14102a60a6b4b6652c5b0-tiny.png Deleting: 924e2f30d3c14102a60a6b4b6652c5b0-large.png Regenerating: large => 924e2f30d3c14102a60a6b4b6652c5b0-large.png Deleting: 924e2f30d3c14102a60a6b4b6652c5b0-small.png Regenerating: small => 924e2f30d3c14102a60a6b4b6652c5b0-small.png Deleting: 924e2f30d3c14102a60a6b4b6652c5b0-medium.png Regenerating: medium => 924e2f30d3c14102a60a6b4b6652c5b0-medium.png Deleting: 924e2f30d3c14102a60a6b4b6652c5b0-original.png Regenerating: original => 924e2f30d3c14102a60a6b4b6652c5b0-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1wdvden.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1bm7rxh.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1bm7rxh.png => 924e2f30d3c14102a60a6b4b6652c5b0-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1wdvden.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-aw5tbj.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-aw5tbj.png => 924e2f30d3c14102a60a6b4b6652c5b0-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1wdvden.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-110odx5.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-110odx5.png => 924e2f30d3c14102a60a6b4b6652c5b0-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1wdvden.png' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-17nuybv.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-17nuybv.png => 924e2f30d3c14102a60a6b4b6652c5b0-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1wdvden.png' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1uicndf.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1uicndf.png => 924e2f30d3c14102a60a6b4b6652c5b0-large.png SQL (0.4ms) UPDATE "shops" SET "logo" = '{"paths":{"original":"924e2f30d3c14102a60a6b4b6652c5b0-original.png","tiny":"924e2f30d3c14102a60a6b4b6652c5b0-tiny.png","small":"924e2f30d3c14102a60a6b4b6652c5b0-small.png","medium":"924e2f30d3c14102a60a6b4b6652c5b0-medium.png","large":"924e2f30d3c14102a60a6b4b6652c5b0-large.png"},"old_paths":[],"id":"924e2f30d3c14102a60a6b4b6652c5b0","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-11T02:22:28.407-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 83]] RecordTest::Subclass Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Reprocessing Shop #83 => logo Deleting: 924e2f30d3c14102a60a6b4b6652c5b0-tiny.png Regenerating: tiny => 924e2f30d3c14102a60a6b4b6652c5b0-tiny.png Deleting: 924e2f30d3c14102a60a6b4b6652c5b0-large.png Regenerating: large => 924e2f30d3c14102a60a6b4b6652c5b0-large.png Deleting: 924e2f30d3c14102a60a6b4b6652c5b0-small.png Regenerating: small => 924e2f30d3c14102a60a6b4b6652c5b0-small.png Deleting: 924e2f30d3c14102a60a6b4b6652c5b0-medium.png Regenerating: medium => 924e2f30d3c14102a60a6b4b6652c5b0-medium.png Deleting: 924e2f30d3c14102a60a6b4b6652c5b0-original.png Regenerating: original => 924e2f30d3c14102a60a6b4b6652c5b0-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1n3740u.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1r0vnv7.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1r0vnv7.png => 924e2f30d3c14102a60a6b4b6652c5b0-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1n3740u.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-nhvjh6.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-nhvjh6.png => 924e2f30d3c14102a60a6b4b6652c5b0-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1n3740u.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1lrtfrk.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1lrtfrk.png => 924e2f30d3c14102a60a6b4b6652c5b0-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1n3740u.png' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1yno15u.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1yno15u.png => 924e2f30d3c14102a60a6b4b6652c5b0-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1n3740u.png' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-pqaomv.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-pqaomv.png => 924e2f30d3c14102a60a6b4b6652c5b0-large.png SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"original":"924e2f30d3c14102a60a6b4b6652c5b0-original.png","tiny":"924e2f30d3c14102a60a6b4b6652c5b0-tiny.png","small":"924e2f30d3c14102a60a6b4b6652c5b0-small.png","medium":"924e2f30d3c14102a60a6b4b6652c5b0-medium.png","large":"924e2f30d3c14102a60a6b4b6652c5b0-large.png"},"old_paths":[],"id":"924e2f30d3c14102a60a6b4b6652c5b0","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-11T02:22:28.407-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 83]] RecordTest::Subclass Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 83]] [ActiveJob] [Attachs::Jobs::DeleteJob] [ed49ffb4-b46f-4d29-9666-296f95a0102b] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["924e2f30d3c14102a60a6b4b6652c5b0-tiny.png", "924e2f30d3c14102a60a6b4b6652c5b0-large.png", "924e2f30d3c14102a60a6b4b6652c5b0-small.png", "924e2f30d3c14102a60a6b4b6652c5b0-medium.png", "924e2f30d3c14102a60a6b4b6652c5b0-original.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [ed49ffb4-b46f-4d29-9666-296f95a0102b] Deleting: 924e2f30d3c14102a60a6b4b6652c5b0-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [ed49ffb4-b46f-4d29-9666-296f95a0102b] Deleting: 924e2f30d3c14102a60a6b4b6652c5b0-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [ed49ffb4-b46f-4d29-9666-296f95a0102b] Deleting: 924e2f30d3c14102a60a6b4b6652c5b0-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [ed49ffb4-b46f-4d29-9666-296f95a0102b] Deleting: 924e2f30d3c14102a60a6b4b6652c5b0-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [ed49ffb4-b46f-4d29-9666-296f95a0102b] Deleting: 924e2f30d3c14102a60a6b4b6652c5b0-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [ed49ffb4-b46f-4d29-9666-296f95a0102b] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2490.04ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: ed49ffb4-b46f-4d29-9666-296f95a0102b) to Inline(default) with arguments: ["924e2f30d3c14102a60a6b4b6652c5b0-tiny.png", "924e2f30d3c14102a60a6b4b6652c5b0-large.png", "924e2f30d3c14102a60a6b4b6652c5b0-small.png", "924e2f30d3c14102a60a6b4b6652c5b0-medium.png", "924e2f30d3c14102a60a6b4b6652c5b0-original.png"]  (0.2ms) ROLLBACK  (0.2ms) BEGIN --------------------------- HelperTest: test_fields_for --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-1rgi97o.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"efbfbe4a203b49e4aae0c11e7f9537f0\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-11T02:23:05.172-03:00\",\"paths\":{\"original\":\"efbfbe4a203b49e4aae0c11e7f9537f0-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-12-11 05:23:05.173034"], ["updated_at", "2016-12-11 05:23:05.173034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-1rgi97o.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-vbsot5.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-vbsot5.jpg => efbfbe4a203b49e4aae0c11e7f9537f0-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [e7844e57-8b78-4ba7-8aaa-74b35ab9e7b8] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["efbfbe4a203b49e4aae0c11e7f9537f0-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [e7844e57-8b78-4ba7-8aaa-74b35ab9e7b8] Deleting: efbfbe4a203b49e4aae0c11e7f9537f0-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [e7844e57-8b78-4ba7-8aaa-74b35ab9e7b8] Performed Attachs::Jobs::DeleteJob from Inline(default) in 496.42ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: e7844e57-8b78-4ba7-8aaa-74b35ab9e7b8) to Inline(default) with arguments: ["efbfbe4a203b49e4aae0c11e7f9537f0-original.jpg"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------- UploadTest: test_upload ----------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-17km43q.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (9.1ms) INSERT INTO "uploads" ("file", "record_type", "record_attribute", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "{\"id\":\"2f92e40d4e8f43d1a6e0cb83d71b6fa7\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-11T02:23:08.808-03:00\",\"paths\":{\"original\":\"2f92e40d4e8f43d1a6e0cb83d71b6fa7-original.jpg\",\"tiny\":\"2f92e40d4e8f43d1a6e0cb83d71b6fa7-tiny.jpg\",\"small\":\"2f92e40d4e8f43d1a6e0cb83d71b6fa7-small.jpg\",\"medium\":\"2f92e40d4e8f43d1a6e0cb83d71b6fa7-medium.jpg\",\"large\":\"2f92e40d4e8f43d1a6e0cb83d71b6fa7-large.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["record_type", "Shop"], ["record_attribute", "logo"], ["created_at", "2016-12-11 05:23:08.809262"], ["updated_at", "2016-12-11 05:23:08.809262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-17km43q.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-lyk1dr.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-lyk1dr.jpg => 2f92e40d4e8f43d1a6e0cb83d71b6fa7-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-17km43q.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1xglf7f.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1xglf7f.jpg => 2f92e40d4e8f43d1a6e0cb83d71b6fa7-tiny.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-17km43q.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-151l36a.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-151l36a.jpg => 2f92e40d4e8f43d1a6e0cb83d71b6fa7-small.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-17km43q.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-483e3u.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-483e3u.jpg => 2f92e40d4e8f43d1a6e0cb83d71b6fa7-medium.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-17km43q.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1ususjp.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161211-13491-1ususjp.jpg => 2f92e40d4e8f43d1a6e0cb83d71b6fa7-large.jpg  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"01f58fcd8d004f3c8e23cf9283af9ff2\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-11T02:23:11.223-03:00\",\"paths\":{\"original\":\"01f58fcd8d004f3c8e23cf9283af9ff2-original.png\",\"tiny\":\"01f58fcd8d004f3c8e23cf9283af9ff2-tiny.png\",\"small\":\"01f58fcd8d004f3c8e23cf9283af9ff2-small.png\",\"medium\":\"01f58fcd8d004f3c8e23cf9283af9ff2-medium.png\",\"large\":\"01f58fcd8d004f3c8e23cf9283af9ff2-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-11 05:23:11.223485"], ["updated_at", "2016-12-11 05:23:11.223485"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Copying: 2f92e40d4e8f43d1a6e0cb83d71b6fa7-original.jpg => 01f58fcd8d004f3c8e23cf9283af9ff2-original.png Copying: 2f92e40d4e8f43d1a6e0cb83d71b6fa7-tiny.jpg => 01f58fcd8d004f3c8e23cf9283af9ff2-tiny.png Copying: 2f92e40d4e8f43d1a6e0cb83d71b6fa7-small.jpg => 01f58fcd8d004f3c8e23cf9283af9ff2-small.png Copying: 2f92e40d4e8f43d1a6e0cb83d71b6fa7-medium.jpg => 01f58fcd8d004f3c8e23cf9283af9ff2-medium.png Copying: 2f92e40d4e8f43d1a6e0cb83d71b6fa7-large.jpg => 01f58fcd8d004f3c8e23cf9283af9ff2-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [578a1829-211d-4014-bbc3-ca3441cdd4a6] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["01f58fcd8d004f3c8e23cf9283af9ff2-original.png", "01f58fcd8d004f3c8e23cf9283af9ff2-tiny.png", "01f58fcd8d004f3c8e23cf9283af9ff2-small.png", "01f58fcd8d004f3c8e23cf9283af9ff2-medium.png", "01f58fcd8d004f3c8e23cf9283af9ff2-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [578a1829-211d-4014-bbc3-ca3441cdd4a6] Deleting: 01f58fcd8d004f3c8e23cf9283af9ff2-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [578a1829-211d-4014-bbc3-ca3441cdd4a6] Deleting: 01f58fcd8d004f3c8e23cf9283af9ff2-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [578a1829-211d-4014-bbc3-ca3441cdd4a6] Deleting: 01f58fcd8d004f3c8e23cf9283af9ff2-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [578a1829-211d-4014-bbc3-ca3441cdd4a6] Deleting: 01f58fcd8d004f3c8e23cf9283af9ff2-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [578a1829-211d-4014-bbc3-ca3441cdd4a6] Deleting: 01f58fcd8d004f3c8e23cf9283af9ff2-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [578a1829-211d-4014-bbc3-ca3441cdd4a6] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2881.11ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 578a1829-211d-4014-bbc3-ca3441cdd4a6) to Inline(default) with arguments: ["01f58fcd8d004f3c8e23cf9283af9ff2-original.png", "01f58fcd8d004f3c8e23cf9283af9ff2-tiny.png", "01f58fcd8d004f3c8e23cf9283af9ff2-small.png", "01f58fcd8d004f3c8e23cf9283af9ff2-medium.png", "01f58fcd8d004f3c8e23cf9283af9ff2-large.png"] Upload Load (0.3ms) SELECT "uploads".* FROM "uploads" WHERE "uploads"."id" = $1 LIMIT 1 [["id", 19]]  (0.1ms) SAVEPOINT active_record_1 SQL (6.6ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"paths\":{\"original\":\"5313431477cc4eef97b78a69b374779d-original.png\",\"tiny\":\"5313431477cc4eef97b78a69b374779d-tiny.png\",\"small\":\"5313431477cc4eef97b78a69b374779d-small.png\",\"medium\":\"5313431477cc4eef97b78a69b374779d-medium.png\",\"large\":\"5313431477cc4eef97b78a69b374779d-large.png\"},\"old_paths\":[],\"id\":\"5313431477cc4eef97b78a69b374779d\",\"size\":74474,\"ratio\":0.6725,\"width\":400,\"height\":269,\"filename\":\"image.jpg\",\"uploaded_at\":\"2016-12-11T02:23:21.929-03:00\",\"content_type\":\"image/jpeg\"}"], ["created_at", "2016-12-11 05:23:21.931036"], ["updated_at", "2016-12-11 05:23:21.931036"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Copying: 2f92e40d4e8f43d1a6e0cb83d71b6fa7-tiny.jpg => 5313431477cc4eef97b78a69b374779d-tiny.png Copying: 2f92e40d4e8f43d1a6e0cb83d71b6fa7-large.jpg => 5313431477cc4eef97b78a69b374779d-large.png Copying: 2f92e40d4e8f43d1a6e0cb83d71b6fa7-small.jpg => 5313431477cc4eef97b78a69b374779d-small.png Copying: 2f92e40d4e8f43d1a6e0cb83d71b6fa7-medium.jpg => 5313431477cc4eef97b78a69b374779d-medium.png Copying: 2f92e40d4e8f43d1a6e0cb83d71b6fa7-original.jpg => 5313431477cc4eef97b78a69b374779d-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [74ebb175-31ec-4baf-b675-010b671a76b8] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["5313431477cc4eef97b78a69b374779d-original.png", "5313431477cc4eef97b78a69b374779d-tiny.png", "5313431477cc4eef97b78a69b374779d-small.png", "5313431477cc4eef97b78a69b374779d-medium.png", "5313431477cc4eef97b78a69b374779d-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [74ebb175-31ec-4baf-b675-010b671a76b8] Deleting: 5313431477cc4eef97b78a69b374779d-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [74ebb175-31ec-4baf-b675-010b671a76b8] Deleting: 5313431477cc4eef97b78a69b374779d-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [74ebb175-31ec-4baf-b675-010b671a76b8] Deleting: 5313431477cc4eef97b78a69b374779d-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [74ebb175-31ec-4baf-b675-010b671a76b8] Deleting: 5313431477cc4eef97b78a69b374779d-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [74ebb175-31ec-4baf-b675-010b671a76b8] Deleting: 5313431477cc4eef97b78a69b374779d-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [74ebb175-31ec-4baf-b675-010b671a76b8] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2475.31ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 74ebb175-31ec-4baf-b675-010b671a76b8) to Inline(default) with arguments: ["5313431477cc4eef97b78a69b374779d-original.png", "5313431477cc4eef97b78a69b374779d-tiny.png", "5313431477cc4eef97b78a69b374779d-small.png", "5313431477cc4eef97b78a69b374779d-medium.png", "5313431477cc4eef97b78a69b374779d-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [95168cc1-8d12-4eb1-a383-e648f45a4614] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["2f92e40d4e8f43d1a6e0cb83d71b6fa7-original.jpg", "2f92e40d4e8f43d1a6e0cb83d71b6fa7-tiny.jpg", "2f92e40d4e8f43d1a6e0cb83d71b6fa7-small.jpg", "2f92e40d4e8f43d1a6e0cb83d71b6fa7-medium.jpg", "2f92e40d4e8f43d1a6e0cb83d71b6fa7-large.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [95168cc1-8d12-4eb1-a383-e648f45a4614] Deleting: 2f92e40d4e8f43d1a6e0cb83d71b6fa7-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [95168cc1-8d12-4eb1-a383-e648f45a4614] Deleting: 2f92e40d4e8f43d1a6e0cb83d71b6fa7-tiny.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [95168cc1-8d12-4eb1-a383-e648f45a4614] Deleting: 2f92e40d4e8f43d1a6e0cb83d71b6fa7-small.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [95168cc1-8d12-4eb1-a383-e648f45a4614] Deleting: 2f92e40d4e8f43d1a6e0cb83d71b6fa7-medium.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [95168cc1-8d12-4eb1-a383-e648f45a4614] Deleting: 2f92e40d4e8f43d1a6e0cb83d71b6fa7-large.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [95168cc1-8d12-4eb1-a383-e648f45a4614] Performed Attachs::Jobs::DeleteJob from Inline(default) in 1983.03ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 95168cc1-8d12-4eb1-a383-e648f45a4614) to Inline(default) with arguments: ["2f92e40d4e8f43d1a6e0cb83d71b6fa7-original.jpg", "2f92e40d4e8f43d1a6e0cb83d71b6fa7-tiny.jpg", "2f92e40d4e8f43d1a6e0cb83d71b6fa7-small.jpg", "2f92e40d4e8f43d1a6e0cb83d71b6fa7-medium.jpg", "2f92e40d4e8f43d1a6e0cb83d71b6fa7-large.jpg"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- ValidatorTest: test_content_type_in ----------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-cat7nu.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-1jvc7g2.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-12ri41d.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- ValidatorTest: test_size_within ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161211-13491-1qw42n8.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-ukm5t4.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161211-13491-dkcnb4.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-1lyg4n9.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-qmcu5e.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- ValidatorTest: test_content_type_with ------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-1p655gw.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-1v7royh.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-11mbzkt.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- ValidatorTest: test_content_type_within --------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-uyopy6.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-1euf47q.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-1gq5d5s.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- ValidatorTest: test_methods ---------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- ValidatorTest: test_size_greater_than ------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161211-13491-158qrr8.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-irr713.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-1vjal93.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- ValidatorTest: test_size_in --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161211-13491-26d6gq.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-ur3kcc.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161211-13491-1e1w8lc.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-1pvsol9.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-yvz7ut.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- ValidatorTest: test_size_less_than ---------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161211-13491-wov7vl.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-15k5frh.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161211-13491-heqe5g.jpg'  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (12.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN -------------------------- CollectionTest: test_index --------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- CollectionTest: test_nested_attributes --------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- CollectionTest: test_attributes -------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------- TaskTest: test_fix_missings ---------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------- TaskTest: test_exist --------------------  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------- TaskTest: test_clear --------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ TaskTest: test_reprocess ------------------------  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------- UploadTest: test_upload -----------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------- HelperTest: test_fields_for ---------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"tempfile\":[],\"original_filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"headers\":null}]"], ["created_at", "2016-12-13 17:01:29.198495"], ["updated_at", "2016-12-13 17:01:29.198495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------- GeneratorTest: test_install ---------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------- GeneratorTest: test_upload --------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- ValidatorTest: test_size_less_than ----------------------------------  (0.2ms) ROLLBACK  (0.2ms) BEGIN --------------------------- ValidatorTest: test_methods ---------------------------  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------- ValidatorTest: test_content_type_with -------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- ValidatorTest: test_size_within -------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- ValidatorTest: test_size_greater_than -------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------- ValidatorTest: test_size_in ---------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- ValidatorTest: test_content_type_within ---------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- ValidatorTest: test_content_type_in -----------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- AttachmentTest: test_nested_attributes --------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- AttachmentTest: test_attributes -------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_default ----------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_renames ----------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ RecordTest: test_inherit ------------------------  (0.2ms) ROLLBACK  (0.2ms) BEGIN ---------------------------------- RecordTest: test_clear_attachments ----------------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------- AttachmentTest: test_attributes -------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- AttachmentTest: test_nested_attributes --------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_default ----------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_renames ----------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ TaskTest: test_reprocess ------------------------  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------- TaskTest: test_clear --------------------  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------- TaskTest: test_exist --------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------- TaskTest: test_fix_missings ---------------------------  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- RecordTest: test_clear_attachments ----------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ RecordTest: test_inherit ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------- GeneratorTest: test_install ---------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------- GeneratorTest: test_upload --------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------- CollectionTest: test_index --------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- CollectionTest: test_nested_attributes --------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- CollectionTest: test_attributes -------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------- UploadTest: test_upload -----------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------- HelperTest: test_fields_for ---------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"tempfile\":[],\"original_filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"headers\":null}]"], ["created_at", "2016-12-13 17:03:27.788328"], ["updated_at", "2016-12-13 17:03:27.788328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- ValidatorTest: test_size_greater_than -------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- ValidatorTest: test_size_less_than ----------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- ValidatorTest: test_methods ---------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- ValidatorTest: test_content_type_within ---------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- ValidatorTest: test_content_type_in -----------------------------------  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------- ValidatorTest: test_content_type_with -------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- ValidatorTest: test_size_in ---------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- ValidatorTest: test_size_within -------------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------- ValidatorTest: test_size_within -------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- ValidatorTest: test_content_type_with -------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- ValidatorTest: test_size_greater_than -------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- ValidatorTest: test_size_less_than ----------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- ValidatorTest: test_content_type_within ---------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- ValidatorTest: test_content_type_in -----------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------- ValidatorTest: test_size_in ---------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------- ValidatorTest: test_methods ---------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_renames ----------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- AttachmentTest: test_attributes -------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_default ----------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- AttachmentTest: test_nested_attributes --------------------------------------  (0.1ms) ROLLBACK  (0.2ms) BEGIN --------------------------- HelperTest: test_fields_for ---------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"tempfile\":[],\"original_filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"headers\":null}]"], ["created_at", "2016-12-13 17:04:23.160324"], ["updated_at", "2016-12-13 17:04:23.160324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- RecordTest: test_clear_attachments ----------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ RecordTest: test_inherit ------------------------  (0.1ms) ROLLBACK  (0.2ms) BEGIN --------------------------- GeneratorTest: test_install ---------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------- GeneratorTest: test_upload --------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------- TaskTest: test_exist --------------------  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------- TaskTest: test_fix_missings ---------------------------  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ TaskTest: test_reprocess ------------------------  (0.3ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------- TaskTest: test_clear --------------------  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- CollectionTest: test_attributes -------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------- CollectionTest: test_index --------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- CollectionTest: test_nested_attributes --------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------- UploadTest: test_upload -----------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------------- AttachmentTest: test_default ----------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- AttachmentTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-7q8wdd.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"d4d0ad94a6854e22add17afbcb1e07ef\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-13T14:04:41.322-03:00\",\"paths\":{\"original\":\"d4d0ad94a6854e22add17afbcb1e07ef-original.png\",\"tiny\":\"d4d0ad94a6854e22add17afbcb1e07ef-tiny.png\",\"small\":\"d4d0ad94a6854e22add17afbcb1e07ef-small.png\",\"medium\":\"d4d0ad94a6854e22add17afbcb1e07ef-medium.png\",\"large\":\"d4d0ad94a6854e22add17afbcb1e07ef-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-13 17:04:41.323515"], ["updated_at", "2016-12-13 17:04:41.323515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-7q8wdd.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-zamibk.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-zamibk.png => d4d0ad94a6854e22add17afbcb1e07ef-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-7q8wdd.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1w8d9jg.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1w8d9jg.png => d4d0ad94a6854e22add17afbcb1e07ef-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-7q8wdd.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-pqhy4l.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-pqhy4l.png => d4d0ad94a6854e22add17afbcb1e07ef-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-7q8wdd.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1i22hbx.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1i22hbx.png => d4d0ad94a6854e22add17afbcb1e07ef-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-7q8wdd.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-134e6vh.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-134e6vh.png => d4d0ad94a6854e22add17afbcb1e07ef-large.png Shop Load (0.4ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 86]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 86]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Attachs::Jobs::DeleteJob] [3ee53326-1504-44e9-9808-d9dfb1781872] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["d4d0ad94a6854e22add17afbcb1e07ef-tiny.png", "d4d0ad94a6854e22add17afbcb1e07ef-large.png", "d4d0ad94a6854e22add17afbcb1e07ef-small.png", "d4d0ad94a6854e22add17afbcb1e07ef-medium.png", "d4d0ad94a6854e22add17afbcb1e07ef-original.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [3ee53326-1504-44e9-9808-d9dfb1781872] Deleting: d4d0ad94a6854e22add17afbcb1e07ef-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [3ee53326-1504-44e9-9808-d9dfb1781872] Deleting: d4d0ad94a6854e22add17afbcb1e07ef-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [3ee53326-1504-44e9-9808-d9dfb1781872] Deleting: d4d0ad94a6854e22add17afbcb1e07ef-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [3ee53326-1504-44e9-9808-d9dfb1781872] Deleting: d4d0ad94a6854e22add17afbcb1e07ef-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [3ee53326-1504-44e9-9808-d9dfb1781872] Deleting: d4d0ad94a6854e22add17afbcb1e07ef-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [3ee53326-1504-44e9-9808-d9dfb1781872] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2419.52ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 3ee53326-1504-44e9-9808-d9dfb1781872) to Inline(default) with arguments: ["d4d0ad94a6854e22add17afbcb1e07ef-tiny.png", "d4d0ad94a6854e22add17afbcb1e07ef-large.png", "d4d0ad94a6854e22add17afbcb1e07ef-small.png", "d4d0ad94a6854e22add17afbcb1e07ef-medium.png", "d4d0ad94a6854e22add17afbcb1e07ef-original.png"]  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- AttachmentTest: test_nested_attributes --------------------------------------  (0.1ms) ROLLBACK  (0.2ms) BEGIN ---------------------------- AttachmentTest: test_renames ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-83zzdq.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("logo", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["logo", "{\"id\":\"b4d9daff53d14f00b9742c75f91f7ee0\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-13T14:05:08.722-03:00\",\"paths\":{\"original\":\"anderstons/b4d9daff53d14f00b9742c75f91f7ee0-original.png\",\"tiny\":\"anderstons/b4d9daff53d14f00b9742c75f91f7ee0-tiny.png\",\"small\":\"anderstons/b4d9daff53d14f00b9742c75f91f7ee0-small.png\",\"medium\":\"anderstons/b4d9daff53d14f00b9742c75f91f7ee0-medium.png\",\"large\":\"anderstons/b4d9daff53d14f00b9742c75f91f7ee0-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["name", "Anderstons"], ["created_at", "2016-12-13 17:05:08.722709"], ["updated_at", "2016-12-13 17:05:08.722709"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-83zzdq.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-12bq4af.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-12bq4af.png => anderstons/b4d9daff53d14f00b9742c75f91f7ee0-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-83zzdq.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1jebscw.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1jebscw.png => anderstons/b4d9daff53d14f00b9742c75f91f7ee0-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-83zzdq.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1fo8qkv.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1fo8qkv.png => anderstons/b4d9daff53d14f00b9742c75f91f7ee0-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-83zzdq.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1wem37a.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1wem37a.png => anderstons/b4d9daff53d14f00b9742c75f91f7ee0-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-83zzdq.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-rqp4zx.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-rqp4zx.png => anderstons/b4d9daff53d14f00b9742c75f91f7ee0-large.png  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "shops" SET "name" = $1, "updated_at" = $2 WHERE "shops"."id" = $3 [["name", "Musicians Friend"], ["updated_at", "2016-12-13 17:05:19.799138"], ["id", 87]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 87]] [ActiveJob] [Attachs::Jobs::UpdateJob] [aa3cda95-9633-4aed-91bd-2953ff3c803d] Performing Attachs::Jobs::UpdateJob from Inline(default) with arguments: gid://dummy/Shop/87, "logo" [ActiveJob] [Attachs::Jobs::UpdateJob] [aa3cda95-9633-4aed-91bd-2953ff3c803d] Copying: anderstons/b4d9daff53d14f00b9742c75f91f7ee0-original.png => musicians-friend/b4d9daff53d14f00b9742c75f91f7ee0-original.png [ActiveJob] [Attachs::Jobs::UpdateJob] [aa3cda95-9633-4aed-91bd-2953ff3c803d] Copying: anderstons/b4d9daff53d14f00b9742c75f91f7ee0-tiny.png => musicians-friend/b4d9daff53d14f00b9742c75f91f7ee0-tiny.png [ActiveJob] [Attachs::Jobs::UpdateJob] [aa3cda95-9633-4aed-91bd-2953ff3c803d] Copying: anderstons/b4d9daff53d14f00b9742c75f91f7ee0-small.png => musicians-friend/b4d9daff53d14f00b9742c75f91f7ee0-small.png [ActiveJob] [Attachs::Jobs::UpdateJob] [aa3cda95-9633-4aed-91bd-2953ff3c803d] Copying: anderstons/b4d9daff53d14f00b9742c75f91f7ee0-medium.png => musicians-friend/b4d9daff53d14f00b9742c75f91f7ee0-medium.png [ActiveJob] [Attachs::Jobs::UpdateJob] [aa3cda95-9633-4aed-91bd-2953ff3c803d] Copying: anderstons/b4d9daff53d14f00b9742c75f91f7ee0-large.png => musicians-friend/b4d9daff53d14f00b9742c75f91f7ee0-large.png [ActiveJob] [Attachs::Jobs::UpdateJob] [aa3cda95-9633-4aed-91bd-2953ff3c803d] SQL (0.2ms) UPDATE "shops" SET "logo" = '{"paths":{"tiny":"musicians-friend/b4d9daff53d14f00b9742c75f91f7ee0-tiny.png","large":"musicians-friend/b4d9daff53d14f00b9742c75f91f7ee0-large.png","small":"musicians-friend/b4d9daff53d14f00b9742c75f91f7ee0-small.png","medium":"musicians-friend/b4d9daff53d14f00b9742c75f91f7ee0-medium.png","original":"musicians-friend/b4d9daff53d14f00b9742c75f91f7ee0-original.png"},"old_paths":["anderstons/b4d9daff53d14f00b9742c75f91f7ee0-original.png","anderstons/b4d9daff53d14f00b9742c75f91f7ee0-tiny.png","anderstons/b4d9daff53d14f00b9742c75f91f7ee0-small.png","anderstons/b4d9daff53d14f00b9742c75f91f7ee0-medium.png","anderstons/b4d9daff53d14f00b9742c75f91f7ee0-large.png"],"id":"b4d9daff53d14f00b9742c75f91f7ee0","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-13T14:05:08.722-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 87]] [ActiveJob] [Attachs::Jobs::UpdateJob] [aa3cda95-9633-4aed-91bd-2953ff3c803d] Performed Attachs::Jobs::UpdateJob from Inline(default) in 3052.89ms [ActiveJob] Enqueued Attachs::Jobs::UpdateJob (Job ID: aa3cda95-9633-4aed-91bd-2953ff3c803d) to Inline(default) with arguments: gid://dummy/Shop/87, "logo" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 87]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 87]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Attachs::Jobs::DeleteJob] [25f5c7e1-3f25-4e9b-82e6-26814c53975e] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["musicians-friend/b4d9daff53d14f00b9742c75f91f7ee0-tiny.png", "musicians-friend/b4d9daff53d14f00b9742c75f91f7ee0-large.png", "musicians-friend/b4d9daff53d14f00b9742c75f91f7ee0-small.png", "musicians-friend/b4d9daff53d14f00b9742c75f91f7ee0-medium.png", "musicians-friend/b4d9daff53d14f00b9742c75f91f7ee0-original.png", "anderstons/b4d9daff53d14f00b9742c75f91f7ee0-original.png", "anderstons/b4d9daff53d14f00b9742c75f91f7ee0-tiny.png", "anderstons/b4d9daff53d14f00b9742c75f91f7ee0-small.png", "anderstons/b4d9daff53d14f00b9742c75f91f7ee0-medium.png", "anderstons/b4d9daff53d14f00b9742c75f91f7ee0-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [25f5c7e1-3f25-4e9b-82e6-26814c53975e] Deleting: musicians-friend/b4d9daff53d14f00b9742c75f91f7ee0-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [25f5c7e1-3f25-4e9b-82e6-26814c53975e] Deleting: musicians-friend/b4d9daff53d14f00b9742c75f91f7ee0-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [25f5c7e1-3f25-4e9b-82e6-26814c53975e] Deleting: musicians-friend/b4d9daff53d14f00b9742c75f91f7ee0-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [25f5c7e1-3f25-4e9b-82e6-26814c53975e] Deleting: musicians-friend/b4d9daff53d14f00b9742c75f91f7ee0-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [25f5c7e1-3f25-4e9b-82e6-26814c53975e] Deleting: musicians-friend/b4d9daff53d14f00b9742c75f91f7ee0-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [25f5c7e1-3f25-4e9b-82e6-26814c53975e] Deleting: anderstons/b4d9daff53d14f00b9742c75f91f7ee0-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [25f5c7e1-3f25-4e9b-82e6-26814c53975e] Deleting: anderstons/b4d9daff53d14f00b9742c75f91f7ee0-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [25f5c7e1-3f25-4e9b-82e6-26814c53975e] Deleting: anderstons/b4d9daff53d14f00b9742c75f91f7ee0-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [25f5c7e1-3f25-4e9b-82e6-26814c53975e] Deleting: anderstons/b4d9daff53d14f00b9742c75f91f7ee0-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [25f5c7e1-3f25-4e9b-82e6-26814c53975e] Deleting: anderstons/b4d9daff53d14f00b9742c75f91f7ee0-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [25f5c7e1-3f25-4e9b-82e6-26814c53975e] Performed Attachs::Jobs::DeleteJob from Inline(default) in 6037.29ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 25f5c7e1-3f25-4e9b-82e6-26814c53975e) to Inline(default) with arguments: ["musicians-friend/b4d9daff53d14f00b9742c75f91f7ee0-tiny.png", "musicians-friend/b4d9daff53d14f00b9742c75f91f7ee0-large.png", "musicians-friend/b4d9daff53d14f00b9742c75f91f7ee0-small.png", "musicians-friend/b4d9daff53d14f00b9742c75f91f7ee0-medium.png", "musicians-friend/b4d9daff53d14f00b9742c75f91f7ee0-original.png", "anderstons/b4d9daff53d14f00b9742c75f91f7ee0-original.png", "anderstons/b4d9daff53d14f00b9742c75f91f7ee0-tiny.png", "anderstons/b4d9daff53d14f00b9742c75f91f7ee0-small.png", "anderstons/b4d9daff53d14f00b9742c75f91f7ee0-medium.png", "anderstons/b4d9daff53d14f00b9742c75f91f7ee0-large.png"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- GeneratorTest: test_install ---------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------- GeneratorTest: test_upload --------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- CollectionTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-6xpbe4.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-13hm2dx.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"64dac0d26fff4bc9bc5bea1fc5faea95\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-13T14:05:56.854-03:00\",\"paths\":{\"original\":\"64dac0d26fff4bc9bc5bea1fc5faea95-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725},{\"id\":\"df8a21e56d574f5caa75583f4f36c11d\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-13T14:05:56.858-03:00\",\"paths\":{\"original\":\"df8a21e56d574f5caa75583f4f36c11d-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-12-13 17:05:56.860878"], ["updated_at", "2016-12-13 17:05:56.860878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-6xpbe4.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-13p7apx.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-13p7apx.jpg => 64dac0d26fff4bc9bc5bea1fc5faea95-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-13hm2dx.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1v9mcds.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1v9mcds.jpg => df8a21e56d574f5caa75583f4f36c11d-original.jpg Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 44]] [ActiveJob] [Attachs::Jobs::DeleteJob] [2515d4fb-b5be-4eca-8bf3-c75e05055d7b] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["64dac0d26fff4bc9bc5bea1fc5faea95-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [2515d4fb-b5be-4eca-8bf3-c75e05055d7b] Deleting: 64dac0d26fff4bc9bc5bea1fc5faea95-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [2515d4fb-b5be-4eca-8bf3-c75e05055d7b] Performed Attachs::Jobs::DeleteJob from Inline(default) in 437.85ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 2515d4fb-b5be-4eca-8bf3-c75e05055d7b) to Inline(default) with arguments: ["64dac0d26fff4bc9bc5bea1fc5faea95-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [f28d4e99-7dc2-4e6f-912a-7287d9ece465] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["df8a21e56d574f5caa75583f4f36c11d-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [f28d4e99-7dc2-4e6f-912a-7287d9ece465] Deleting: df8a21e56d574f5caa75583f4f36c11d-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [f28d4e99-7dc2-4e6f-912a-7287d9ece465] Performed Attachs::Jobs::DeleteJob from Inline(default) in 435.33ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: f28d4e99-7dc2-4e6f-912a-7287d9ece465) to Inline(default) with arguments: ["df8a21e56d574f5caa75583f4f36c11d-original.jpg"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------- CollectionTest: test_index -------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-1a4lpra.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-smnuro.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"df630366723d4df9af7a71056854055b\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-13T14:06:00.533-03:00\",\"paths\":{\"original\":\"df630366723d4df9af7a71056854055b-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725,\"position\":0},{\"id\":\"f6d068a5ebc54bd9bfa14c0f263bccc8\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-13T14:06:00.535-03:00\",\"paths\":{\"original\":\"f6d068a5ebc54bd9bfa14c0f263bccc8-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-12-13 17:06:00.535974"], ["updated_at", "2016-12-13 17:06:00.535974"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 45]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- CollectionTest: test_nested_attributes -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-i2k0w6.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-gpovzm.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- HelperTest: test_fields_for --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-1pm2kn2.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"a2953dcbf8684aecb6f8d7e8485fd897\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-13T14:06:00.577-03:00\",\"paths\":{\"original\":\"a2953dcbf8684aecb6f8d7e8485fd897-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-12-13 17:06:00.577794"], ["updated_at", "2016-12-13 17:06:00.577794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-1pm2kn2.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-gn16sc.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-gn16sc.jpg => a2953dcbf8684aecb6f8d7e8485fd897-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [ca0b8061-c4b3-4990-abee-b91c78655eea] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["a2953dcbf8684aecb6f8d7e8485fd897-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [ca0b8061-c4b3-4990-abee-b91c78655eea] Deleting: a2953dcbf8684aecb6f8d7e8485fd897-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [ca0b8061-c4b3-4990-abee-b91c78655eea] Performed Attachs::Jobs::DeleteJob from Inline(default) in 400.44ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: ca0b8061-c4b3-4990-abee-b91c78655eea) to Inline(default) with arguments: ["a2953dcbf8684aecb6f8d7e8485fd897-original.jpg"]  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- RecordTest: test_clear_attachments ---------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-806xuy.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-9akxdg.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"a00f8ee1cc06482ab56c1c4125977f7f\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-13T14:06:01.679-03:00\",\"paths\":{\"original\":\"a00f8ee1cc06482ab56c1c4125977f7f-original.png\",\"tiny\":\"a00f8ee1cc06482ab56c1c4125977f7f-tiny.png\",\"small\":\"a00f8ee1cc06482ab56c1c4125977f7f-small.png\",\"medium\":\"a00f8ee1cc06482ab56c1c4125977f7f-medium.png\",\"large\":\"a00f8ee1cc06482ab56c1c4125977f7f-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-13 17:06:01.680460"], ["updated_at", "2016-12-13 17:06:01.680460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 88]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ RecordTest: test_inherit ------------------------  (0.1ms) ROLLBACK  (0.2ms) BEGIN ----------------------- UploadTest: test_upload ----------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-uymx2u.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (3.3ms) INSERT INTO "uploads" ("file", "record_type", "record_attribute", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "{\"id\":\"5fcb2cb1c3a64e5893bffa72d4fbeee9\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-13T14:06:01.704-03:00\",\"paths\":{\"original\":\"5fcb2cb1c3a64e5893bffa72d4fbeee9-original.jpg\",\"tiny\":\"5fcb2cb1c3a64e5893bffa72d4fbeee9-tiny.jpg\",\"small\":\"5fcb2cb1c3a64e5893bffa72d4fbeee9-small.jpg\",\"medium\":\"5fcb2cb1c3a64e5893bffa72d4fbeee9-medium.jpg\",\"large\":\"5fcb2cb1c3a64e5893bffa72d4fbeee9-large.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["record_type", "Shop"], ["record_attribute", "logo"], ["created_at", "2016-12-13 17:06:01.705306"], ["updated_at", "2016-12-13 17:06:01.705306"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-uymx2u.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1tkurxp.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1tkurxp.jpg => 5fcb2cb1c3a64e5893bffa72d4fbeee9-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-uymx2u.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-15c6ik5.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-15c6ik5.jpg => 5fcb2cb1c3a64e5893bffa72d4fbeee9-tiny.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-uymx2u.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-gkb8g4.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-gkb8g4.jpg => 5fcb2cb1c3a64e5893bffa72d4fbeee9-small.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-uymx2u.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1h50hpa.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1h50hpa.jpg => 5fcb2cb1c3a64e5893bffa72d4fbeee9-medium.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-uymx2u.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-skjf69.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-skjf69.jpg => 5fcb2cb1c3a64e5893bffa72d4fbeee9-large.jpg  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"cf23dac5a89d4a5db8d13c1ba57e70b7\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-13T14:06:04.094-03:00\",\"paths\":{\"original\":\"cf23dac5a89d4a5db8d13c1ba57e70b7-original.png\",\"tiny\":\"cf23dac5a89d4a5db8d13c1ba57e70b7-tiny.png\",\"small\":\"cf23dac5a89d4a5db8d13c1ba57e70b7-small.png\",\"medium\":\"cf23dac5a89d4a5db8d13c1ba57e70b7-medium.png\",\"large\":\"cf23dac5a89d4a5db8d13c1ba57e70b7-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-13 17:06:04.094928"], ["updated_at", "2016-12-13 17:06:04.094928"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Copying: 5fcb2cb1c3a64e5893bffa72d4fbeee9-original.jpg => cf23dac5a89d4a5db8d13c1ba57e70b7-original.png Copying: 5fcb2cb1c3a64e5893bffa72d4fbeee9-tiny.jpg => cf23dac5a89d4a5db8d13c1ba57e70b7-tiny.png Copying: 5fcb2cb1c3a64e5893bffa72d4fbeee9-small.jpg => cf23dac5a89d4a5db8d13c1ba57e70b7-small.png Copying: 5fcb2cb1c3a64e5893bffa72d4fbeee9-medium.jpg => cf23dac5a89d4a5db8d13c1ba57e70b7-medium.png Copying: 5fcb2cb1c3a64e5893bffa72d4fbeee9-large.jpg => cf23dac5a89d4a5db8d13c1ba57e70b7-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [b45e6aac-1eb2-4d9c-b5f1-7604445d6ec5] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["cf23dac5a89d4a5db8d13c1ba57e70b7-original.png", "cf23dac5a89d4a5db8d13c1ba57e70b7-tiny.png", "cf23dac5a89d4a5db8d13c1ba57e70b7-small.png", "cf23dac5a89d4a5db8d13c1ba57e70b7-medium.png", "cf23dac5a89d4a5db8d13c1ba57e70b7-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [b45e6aac-1eb2-4d9c-b5f1-7604445d6ec5] Deleting: cf23dac5a89d4a5db8d13c1ba57e70b7-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [b45e6aac-1eb2-4d9c-b5f1-7604445d6ec5] Deleting: cf23dac5a89d4a5db8d13c1ba57e70b7-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [b45e6aac-1eb2-4d9c-b5f1-7604445d6ec5] Deleting: cf23dac5a89d4a5db8d13c1ba57e70b7-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [b45e6aac-1eb2-4d9c-b5f1-7604445d6ec5] Deleting: cf23dac5a89d4a5db8d13c1ba57e70b7-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [b45e6aac-1eb2-4d9c-b5f1-7604445d6ec5] Deleting: cf23dac5a89d4a5db8d13c1ba57e70b7-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [b45e6aac-1eb2-4d9c-b5f1-7604445d6ec5] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2464.81ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: b45e6aac-1eb2-4d9c-b5f1-7604445d6ec5) to Inline(default) with arguments: ["cf23dac5a89d4a5db8d13c1ba57e70b7-original.png", "cf23dac5a89d4a5db8d13c1ba57e70b7-tiny.png", "cf23dac5a89d4a5db8d13c1ba57e70b7-small.png", "cf23dac5a89d4a5db8d13c1ba57e70b7-medium.png", "cf23dac5a89d4a5db8d13c1ba57e70b7-large.png"] Upload Load (0.3ms) SELECT "uploads".* FROM "uploads" WHERE "uploads"."id" = $1 LIMIT 1 [["id", 20]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"paths\":{\"original\":\"f2a379347890483d89930da97e2b7bc0-original.png\",\"tiny\":\"f2a379347890483d89930da97e2b7bc0-tiny.png\",\"small\":\"f2a379347890483d89930da97e2b7bc0-small.png\",\"medium\":\"f2a379347890483d89930da97e2b7bc0-medium.png\",\"large\":\"f2a379347890483d89930da97e2b7bc0-large.png\"},\"old_paths\":[],\"id\":\"f2a379347890483d89930da97e2b7bc0\",\"size\":74474,\"ratio\":0.6725,\"width\":400,\"height\":269,\"filename\":\"image.jpg\",\"uploaded_at\":\"2016-12-13T14:06:16.658-03:00\",\"content_type\":\"image/jpeg\"}"], ["created_at", "2016-12-13 17:06:16.658710"], ["updated_at", "2016-12-13 17:06:16.658710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Copying: 5fcb2cb1c3a64e5893bffa72d4fbeee9-tiny.jpg => f2a379347890483d89930da97e2b7bc0-tiny.png Copying: 5fcb2cb1c3a64e5893bffa72d4fbeee9-large.jpg => f2a379347890483d89930da97e2b7bc0-large.png Copying: 5fcb2cb1c3a64e5893bffa72d4fbeee9-small.jpg => f2a379347890483d89930da97e2b7bc0-small.png Copying: 5fcb2cb1c3a64e5893bffa72d4fbeee9-medium.jpg => f2a379347890483d89930da97e2b7bc0-medium.png Copying: 5fcb2cb1c3a64e5893bffa72d4fbeee9-original.jpg => f2a379347890483d89930da97e2b7bc0-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [f2a61e74-f639-4ef8-816d-78dba3695d34] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["f2a379347890483d89930da97e2b7bc0-original.png", "f2a379347890483d89930da97e2b7bc0-tiny.png", "f2a379347890483d89930da97e2b7bc0-small.png", "f2a379347890483d89930da97e2b7bc0-medium.png", "f2a379347890483d89930da97e2b7bc0-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [f2a61e74-f639-4ef8-816d-78dba3695d34] Deleting: f2a379347890483d89930da97e2b7bc0-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [f2a61e74-f639-4ef8-816d-78dba3695d34] Deleting: f2a379347890483d89930da97e2b7bc0-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [f2a61e74-f639-4ef8-816d-78dba3695d34] Deleting: f2a379347890483d89930da97e2b7bc0-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [f2a61e74-f639-4ef8-816d-78dba3695d34] Deleting: f2a379347890483d89930da97e2b7bc0-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [f2a61e74-f639-4ef8-816d-78dba3695d34] Deleting: f2a379347890483d89930da97e2b7bc0-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [f2a61e74-f639-4ef8-816d-78dba3695d34] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2532.97ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: f2a61e74-f639-4ef8-816d-78dba3695d34) to Inline(default) with arguments: ["f2a379347890483d89930da97e2b7bc0-original.png", "f2a379347890483d89930da97e2b7bc0-tiny.png", "f2a379347890483d89930da97e2b7bc0-small.png", "f2a379347890483d89930da97e2b7bc0-medium.png", "f2a379347890483d89930da97e2b7bc0-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [f0a2aeaa-f6db-45f6-a626-69e317853f68] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["5fcb2cb1c3a64e5893bffa72d4fbeee9-original.jpg", "5fcb2cb1c3a64e5893bffa72d4fbeee9-tiny.jpg", "5fcb2cb1c3a64e5893bffa72d4fbeee9-small.jpg", "5fcb2cb1c3a64e5893bffa72d4fbeee9-medium.jpg", "5fcb2cb1c3a64e5893bffa72d4fbeee9-large.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [f0a2aeaa-f6db-45f6-a626-69e317853f68] Deleting: 5fcb2cb1c3a64e5893bffa72d4fbeee9-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [f0a2aeaa-f6db-45f6-a626-69e317853f68] Deleting: 5fcb2cb1c3a64e5893bffa72d4fbeee9-tiny.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [f0a2aeaa-f6db-45f6-a626-69e317853f68] Deleting: 5fcb2cb1c3a64e5893bffa72d4fbeee9-small.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [f0a2aeaa-f6db-45f6-a626-69e317853f68] Deleting: 5fcb2cb1c3a64e5893bffa72d4fbeee9-medium.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [f0a2aeaa-f6db-45f6-a626-69e317853f68] Deleting: 5fcb2cb1c3a64e5893bffa72d4fbeee9-large.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [f0a2aeaa-f6db-45f6-a626-69e317853f68] Performed Attachs::Jobs::DeleteJob from Inline(default) in 1970.69ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: f0a2aeaa-f6db-45f6-a626-69e317853f68) to Inline(default) with arguments: ["5fcb2cb1c3a64e5893bffa72d4fbeee9-original.jpg", "5fcb2cb1c3a64e5893bffa72d4fbeee9-tiny.jpg", "5fcb2cb1c3a64e5893bffa72d4fbeee9-small.jpg", "5fcb2cb1c3a64e5893bffa72d4fbeee9-medium.jpg", "5fcb2cb1c3a64e5893bffa72d4fbeee9-large.jpg"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------- TaskTest: test_exist -------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-1npimz7.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "logo", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "first"], ["logo", "{\"id\":\"de2c00f30a5f42b0849c70c8f16c9d1b\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-13T14:06:28.945-03:00\",\"paths\":{\"original\":\"first/de2c00f30a5f42b0849c70c8f16c9d1b-original.png\",\"tiny\":\"first/de2c00f30a5f42b0849c70c8f16c9d1b-tiny.png\",\"small\":\"first/de2c00f30a5f42b0849c70c8f16c9d1b-small.png\",\"medium\":\"first/de2c00f30a5f42b0849c70c8f16c9d1b-medium.png\",\"large\":\"first/de2c00f30a5f42b0849c70c8f16c9d1b-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-13 17:06:28.946183"], ["updated_at", "2016-12-13 17:06:28.946183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-1npimz7.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1aifbr3.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1aifbr3.png => first/de2c00f30a5f42b0849c70c8f16c9d1b-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-1npimz7.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1l8xdos.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1l8xdos.png => first/de2c00f30a5f42b0849c70c8f16c9d1b-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-1npimz7.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-2wuske.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-2wuske.png => first/de2c00f30a5f42b0849c70c8f16c9d1b-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-1npimz7.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-r4k2f.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-r4k2f.png => first/de2c00f30a5f42b0849c70c8f16c9d1b-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-1npimz7.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1hba8mb.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1hba8mb.png => first/de2c00f30a5f42b0849c70c8f16c9d1b-large.png  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "shops" SET "name" = $1, "updated_at" = $2 WHERE "shops"."id" = $3 [["name", "second"], ["updated_at", "2016-12-13 17:06:32.106664"], ["id", 91]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 91]] [ActiveJob] [Attachs::Jobs::UpdateJob] [4254e507-5fee-465d-8efc-74554ad188ad] Performing Attachs::Jobs::UpdateJob from Inline(default) with arguments: gid://dummy/Shop/91, "logo" [ActiveJob] [Attachs::Jobs::UpdateJob] [4254e507-5fee-465d-8efc-74554ad188ad] Copying: first/de2c00f30a5f42b0849c70c8f16c9d1b-original.png => second/de2c00f30a5f42b0849c70c8f16c9d1b-original.png [ActiveJob] [Attachs::Jobs::UpdateJob] [4254e507-5fee-465d-8efc-74554ad188ad] Copying: first/de2c00f30a5f42b0849c70c8f16c9d1b-tiny.png => second/de2c00f30a5f42b0849c70c8f16c9d1b-tiny.png [ActiveJob] [Attachs::Jobs::UpdateJob] [4254e507-5fee-465d-8efc-74554ad188ad] Copying: first/de2c00f30a5f42b0849c70c8f16c9d1b-small.png => second/de2c00f30a5f42b0849c70c8f16c9d1b-small.png [ActiveJob] [Attachs::Jobs::UpdateJob] [4254e507-5fee-465d-8efc-74554ad188ad] Copying: first/de2c00f30a5f42b0849c70c8f16c9d1b-medium.png => second/de2c00f30a5f42b0849c70c8f16c9d1b-medium.png [ActiveJob] [Attachs::Jobs::UpdateJob] [4254e507-5fee-465d-8efc-74554ad188ad] Copying: first/de2c00f30a5f42b0849c70c8f16c9d1b-large.png => second/de2c00f30a5f42b0849c70c8f16c9d1b-large.png [ActiveJob] [Attachs::Jobs::UpdateJob] [4254e507-5fee-465d-8efc-74554ad188ad] SQL (0.2ms) UPDATE "shops" SET "logo" = '{"paths":{"tiny":"second/de2c00f30a5f42b0849c70c8f16c9d1b-tiny.png","large":"second/de2c00f30a5f42b0849c70c8f16c9d1b-large.png","small":"second/de2c00f30a5f42b0849c70c8f16c9d1b-small.png","medium":"second/de2c00f30a5f42b0849c70c8f16c9d1b-medium.png","original":"second/de2c00f30a5f42b0849c70c8f16c9d1b-original.png"},"old_paths":["first/de2c00f30a5f42b0849c70c8f16c9d1b-original.png","first/de2c00f30a5f42b0849c70c8f16c9d1b-tiny.png","first/de2c00f30a5f42b0849c70c8f16c9d1b-small.png","first/de2c00f30a5f42b0849c70c8f16c9d1b-medium.png","first/de2c00f30a5f42b0849c70c8f16c9d1b-large.png"],"id":"de2c00f30a5f42b0849c70c8f16c9d1b","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-13T14:06:28.945-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 91]] [ActiveJob] [Attachs::Jobs::UpdateJob] [4254e507-5fee-465d-8efc-74554ad188ad] Performed Attachs::Jobs::UpdateJob from Inline(default) in 2488.96ms [ActiveJob] Enqueued Attachs::Jobs::UpdateJob (Job ID: 4254e507-5fee-465d-8efc-74554ad188ad) to Inline(default) with arguments: gid://dummy/Shop/91, "logo" Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-19y4fe5.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-1ylhpa5.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"d0c7a928dbf54b859ee08d693ebc5443\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-13T14:06:34.621-03:00\",\"paths\":{\"original\":\"d0c7a928dbf54b859ee08d693ebc5443-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725},{\"id\":\"8191a122ba464ba3af7e26f638230761\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-13T14:06:34.622-03:00\",\"paths\":{\"original\":\"8191a122ba464ba3af7e26f638230761-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-12-13 17:06:34.623608"], ["updated_at", "2016-12-13 17:06:34.623608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-19y4fe5.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1a0mlla.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1a0mlla.jpg => d0c7a928dbf54b859ee08d693ebc5443-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-1ylhpa5.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1pup2y0.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1pup2y0.jpg => 8191a122ba464ba3af7e26f638230761-original.jpg  (23.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/de2c00f30a5f42b0849c70c8f16c9d1b-original.png' OR old_paths.value = 'first/de2c00f30a5f42b0849c70c8f16c9d1b-original.png') UNION SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/de2c00f30a5f42b0849c70c8f16c9d1b-original.png' OR old_paths.value = 'first/de2c00f30a5f42b0849c70c8f16c9d1b-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/de2c00f30a5f42b0849c70c8f16c9d1b-original.png' OR old_paths.value = 'first/de2c00f30a5f42b0849c70c8f16c9d1b-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/de2c00f30a5f42b0849c70c8f16c9d1b-original.png' OR old_paths.value = 'first/de2c00f30a5f42b0849c70c8f16c9d1b-original.png')  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/de2c00f30a5f42b0849c70c8f16c9d1b-original.png' OR old_paths.value = 'first/de2c00f30a5f42b0849c70c8f16c9d1b-original.png') UNION SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/de2c00f30a5f42b0849c70c8f16c9d1b-original.png' OR old_paths.value = 'first/de2c00f30a5f42b0849c70c8f16c9d1b-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/de2c00f30a5f42b0849c70c8f16c9d1b-original.png' OR old_paths.value = 'first/de2c00f30a5f42b0849c70c8f16c9d1b-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/de2c00f30a5f42b0849c70c8f16c9d1b-original.png' OR old_paths.value = 'first/de2c00f30a5f42b0849c70c8f16c9d1b-original.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd0c7a928dbf54b859ee08d693ebc5443-original.jpg' OR old_paths.value = 'd0c7a928dbf54b859ee08d693ebc5443-original.jpg') UNION SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd0c7a928dbf54b859ee08d693ebc5443-original.jpg' OR old_paths.value = 'd0c7a928dbf54b859ee08d693ebc5443-original.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd0c7a928dbf54b859ee08d693ebc5443-original.jpg' OR old_paths.value = 'd0c7a928dbf54b859ee08d693ebc5443-original.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd0c7a928dbf54b859ee08d693ebc5443-original.jpg' OR old_paths.value = 'd0c7a928dbf54b859ee08d693ebc5443-original.jpg') [ActiveJob] [Attachs::Jobs::DeleteJob] [d9241c52-b579-4688-ba83-7a67c8d9536c] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["first/de2c00f30a5f42b0849c70c8f16c9d1b-original.png", "first/de2c00f30a5f42b0849c70c8f16c9d1b-tiny.png", "first/de2c00f30a5f42b0849c70c8f16c9d1b-small.png", "first/de2c00f30a5f42b0849c70c8f16c9d1b-medium.png", "first/de2c00f30a5f42b0849c70c8f16c9d1b-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [d9241c52-b579-4688-ba83-7a67c8d9536c] Deleting: first/de2c00f30a5f42b0849c70c8f16c9d1b-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [d9241c52-b579-4688-ba83-7a67c8d9536c] Deleting: first/de2c00f30a5f42b0849c70c8f16c9d1b-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [d9241c52-b579-4688-ba83-7a67c8d9536c] Deleting: first/de2c00f30a5f42b0849c70c8f16c9d1b-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [d9241c52-b579-4688-ba83-7a67c8d9536c] Deleting: first/de2c00f30a5f42b0849c70c8f16c9d1b-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [d9241c52-b579-4688-ba83-7a67c8d9536c] Deleting: first/de2c00f30a5f42b0849c70c8f16c9d1b-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [d9241c52-b579-4688-ba83-7a67c8d9536c] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2167.61ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: d9241c52-b579-4688-ba83-7a67c8d9536c) to Inline(default) with arguments: ["first/de2c00f30a5f42b0849c70c8f16c9d1b-original.png", "first/de2c00f30a5f42b0849c70c8f16c9d1b-tiny.png", "first/de2c00f30a5f42b0849c70c8f16c9d1b-small.png", "first/de2c00f30a5f42b0849c70c8f16c9d1b-medium.png", "first/de2c00f30a5f42b0849c70c8f16c9d1b-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [ceec5b1f-4269-44fb-8b28-35c679705e84] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["d0c7a928dbf54b859ee08d693ebc5443-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [ceec5b1f-4269-44fb-8b28-35c679705e84] Deleting: d0c7a928dbf54b859ee08d693ebc5443-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [ceec5b1f-4269-44fb-8b28-35c679705e84] Performed Attachs::Jobs::DeleteJob from Inline(default) in 404.06ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: ceec5b1f-4269-44fb-8b28-35c679705e84) to Inline(default) with arguments: ["d0c7a928dbf54b859ee08d693ebc5443-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [1a06bf3f-cfc7-4a24-b913-82d1d01da6d9] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["8191a122ba464ba3af7e26f638230761-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [1a06bf3f-cfc7-4a24-b913-82d1d01da6d9] Deleting: 8191a122ba464ba3af7e26f638230761-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [1a06bf3f-cfc7-4a24-b913-82d1d01da6d9] Performed Attachs::Jobs::DeleteJob from Inline(default) in 373.39ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 1a06bf3f-cfc7-4a24-b913-82d1d01da6d9) to Inline(default) with arguments: ["8191a122ba464ba3af7e26f638230761-original.jpg"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------- TaskTest: test_clear -------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-19u4yz0.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"d9d02204e00945e697f99737a15ffa32\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-13T14:06:38.506-03:00\",\"paths\":{\"original\":\"d9d02204e00945e697f99737a15ffa32-original.png\",\"tiny\":\"d9d02204e00945e697f99737a15ffa32-tiny.png\",\"small\":\"d9d02204e00945e697f99737a15ffa32-small.png\",\"medium\":\"d9d02204e00945e697f99737a15ffa32-medium.png\",\"large\":\"d9d02204e00945e697f99737a15ffa32-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-13 17:06:38.507110"], ["updated_at", "2016-12-13 17:06:38.507110"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-19u4yz0.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1pcd8ml.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1pcd8ml.png => d9d02204e00945e697f99737a15ffa32-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-19u4yz0.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1ky0xhk.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1ky0xhk.png => d9d02204e00945e697f99737a15ffa32-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-19u4yz0.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1doza33.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1doza33.png => d9d02204e00945e697f99737a15ffa32-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-19u4yz0.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-10gs7il.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-10gs7il.png => d9d02204e00945e697f99737a15ffa32-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-19u4yz0.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1b7r4qx.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1b7r4qx.png => d9d02204e00945e697f99737a15ffa32-large.png Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-1qzhwvv.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"54d4ef0d154e4f2d91a2a7b1e98aab6e\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-13T14:06:44.667-03:00\",\"paths\":{\"original\":\"54d4ef0d154e4f2d91a2a7b1e98aab6e-original.png\",\"tiny\":\"54d4ef0d154e4f2d91a2a7b1e98aab6e-tiny.png\",\"small\":\"54d4ef0d154e4f2d91a2a7b1e98aab6e-small.png\",\"medium\":\"54d4ef0d154e4f2d91a2a7b1e98aab6e-medium.png\",\"large\":\"54d4ef0d154e4f2d91a2a7b1e98aab6e-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-13 17:06:44.668687"], ["updated_at", "2016-12-13 17:06:44.668687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-1qzhwvv.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1u9z5vz.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1u9z5vz.png => 54d4ef0d154e4f2d91a2a7b1e98aab6e-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-1qzhwvv.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1jw19g.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1jw19g.png => 54d4ef0d154e4f2d91a2a7b1e98aab6e-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-1qzhwvv.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1c85f7k.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1c85f7k.png => 54d4ef0d154e4f2d91a2a7b1e98aab6e-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-1qzhwvv.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-13dsv0d.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-13dsv0d.png => 54d4ef0d154e4f2d91a2a7b1e98aab6e-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-1qzhwvv.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1oywbzn.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1oywbzn.png => 54d4ef0d154e4f2d91a2a7b1e98aab6e-large.png SQL (0.3ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 93]]  (0.7ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '54d4ef0d154e4f2d91a2a7b1e98aab6e-large.png' OR old_paths.value = '54d4ef0d154e4f2d91a2a7b1e98aab6e-large.png') UNION SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = '54d4ef0d154e4f2d91a2a7b1e98aab6e-large.png' OR old_paths.value = '54d4ef0d154e4f2d91a2a7b1e98aab6e-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '54d4ef0d154e4f2d91a2a7b1e98aab6e-large.png' OR old_paths.value = '54d4ef0d154e4f2d91a2a7b1e98aab6e-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '54d4ef0d154e4f2d91a2a7b1e98aab6e-large.png' OR old_paths.value = '54d4ef0d154e4f2d91a2a7b1e98aab6e-large.png') Deleting 54d4ef0d154e4f2d91a2a7b1e98aab6e-large.png Deleting: 54d4ef0d154e4f2d91a2a7b1e98aab6e-large.png  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '54d4ef0d154e4f2d91a2a7b1e98aab6e-medium.png' OR old_paths.value = '54d4ef0d154e4f2d91a2a7b1e98aab6e-medium.png') UNION SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = '54d4ef0d154e4f2d91a2a7b1e98aab6e-medium.png' OR old_paths.value = '54d4ef0d154e4f2d91a2a7b1e98aab6e-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '54d4ef0d154e4f2d91a2a7b1e98aab6e-medium.png' OR old_paths.value = '54d4ef0d154e4f2d91a2a7b1e98aab6e-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '54d4ef0d154e4f2d91a2a7b1e98aab6e-medium.png' OR old_paths.value = '54d4ef0d154e4f2d91a2a7b1e98aab6e-medium.png') Deleting 54d4ef0d154e4f2d91a2a7b1e98aab6e-medium.png Deleting: 54d4ef0d154e4f2d91a2a7b1e98aab6e-medium.png  (0.7ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '54d4ef0d154e4f2d91a2a7b1e98aab6e-original.png' OR old_paths.value = '54d4ef0d154e4f2d91a2a7b1e98aab6e-original.png') UNION SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = '54d4ef0d154e4f2d91a2a7b1e98aab6e-original.png' OR old_paths.value = '54d4ef0d154e4f2d91a2a7b1e98aab6e-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '54d4ef0d154e4f2d91a2a7b1e98aab6e-original.png' OR old_paths.value = '54d4ef0d154e4f2d91a2a7b1e98aab6e-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '54d4ef0d154e4f2d91a2a7b1e98aab6e-original.png' OR old_paths.value = '54d4ef0d154e4f2d91a2a7b1e98aab6e-original.png') Deleting 54d4ef0d154e4f2d91a2a7b1e98aab6e-original.png Deleting: 54d4ef0d154e4f2d91a2a7b1e98aab6e-original.png  (0.7ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '54d4ef0d154e4f2d91a2a7b1e98aab6e-small.png' OR old_paths.value = '54d4ef0d154e4f2d91a2a7b1e98aab6e-small.png') UNION SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = '54d4ef0d154e4f2d91a2a7b1e98aab6e-small.png' OR old_paths.value = '54d4ef0d154e4f2d91a2a7b1e98aab6e-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '54d4ef0d154e4f2d91a2a7b1e98aab6e-small.png' OR old_paths.value = '54d4ef0d154e4f2d91a2a7b1e98aab6e-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '54d4ef0d154e4f2d91a2a7b1e98aab6e-small.png' OR old_paths.value = '54d4ef0d154e4f2d91a2a7b1e98aab6e-small.png') Deleting 54d4ef0d154e4f2d91a2a7b1e98aab6e-small.png Deleting: 54d4ef0d154e4f2d91a2a7b1e98aab6e-small.png  (0.7ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '54d4ef0d154e4f2d91a2a7b1e98aab6e-tiny.png' OR old_paths.value = '54d4ef0d154e4f2d91a2a7b1e98aab6e-tiny.png') UNION SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = '54d4ef0d154e4f2d91a2a7b1e98aab6e-tiny.png' OR old_paths.value = '54d4ef0d154e4f2d91a2a7b1e98aab6e-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '54d4ef0d154e4f2d91a2a7b1e98aab6e-tiny.png' OR old_paths.value = '54d4ef0d154e4f2d91a2a7b1e98aab6e-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '54d4ef0d154e4f2d91a2a7b1e98aab6e-tiny.png' OR old_paths.value = '54d4ef0d154e4f2d91a2a7b1e98aab6e-tiny.png') Deleting 54d4ef0d154e4f2d91a2a7b1e98aab6e-tiny.png Deleting: 54d4ef0d154e4f2d91a2a7b1e98aab6e-tiny.png  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd9d02204e00945e697f99737a15ffa32-large.png' OR old_paths.value = 'd9d02204e00945e697f99737a15ffa32-large.png') UNION SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd9d02204e00945e697f99737a15ffa32-large.png' OR old_paths.value = 'd9d02204e00945e697f99737a15ffa32-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd9d02204e00945e697f99737a15ffa32-large.png' OR old_paths.value = 'd9d02204e00945e697f99737a15ffa32-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd9d02204e00945e697f99737a15ffa32-large.png' OR old_paths.value = 'd9d02204e00945e697f99737a15ffa32-large.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd9d02204e00945e697f99737a15ffa32-medium.png' OR old_paths.value = 'd9d02204e00945e697f99737a15ffa32-medium.png') UNION SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd9d02204e00945e697f99737a15ffa32-medium.png' OR old_paths.value = 'd9d02204e00945e697f99737a15ffa32-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd9d02204e00945e697f99737a15ffa32-medium.png' OR old_paths.value = 'd9d02204e00945e697f99737a15ffa32-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd9d02204e00945e697f99737a15ffa32-medium.png' OR old_paths.value = 'd9d02204e00945e697f99737a15ffa32-medium.png')  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd9d02204e00945e697f99737a15ffa32-original.png' OR old_paths.value = 'd9d02204e00945e697f99737a15ffa32-original.png') UNION SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd9d02204e00945e697f99737a15ffa32-original.png' OR old_paths.value = 'd9d02204e00945e697f99737a15ffa32-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd9d02204e00945e697f99737a15ffa32-original.png' OR old_paths.value = 'd9d02204e00945e697f99737a15ffa32-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd9d02204e00945e697f99737a15ffa32-original.png' OR old_paths.value = 'd9d02204e00945e697f99737a15ffa32-original.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd9d02204e00945e697f99737a15ffa32-small.png' OR old_paths.value = 'd9d02204e00945e697f99737a15ffa32-small.png') UNION SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd9d02204e00945e697f99737a15ffa32-small.png' OR old_paths.value = 'd9d02204e00945e697f99737a15ffa32-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd9d02204e00945e697f99737a15ffa32-small.png' OR old_paths.value = 'd9d02204e00945e697f99737a15ffa32-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd9d02204e00945e697f99737a15ffa32-small.png' OR old_paths.value = 'd9d02204e00945e697f99737a15ffa32-small.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd9d02204e00945e697f99737a15ffa32-tiny.png' OR old_paths.value = 'd9d02204e00945e697f99737a15ffa32-tiny.png') UNION SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd9d02204e00945e697f99737a15ffa32-tiny.png' OR old_paths.value = 'd9d02204e00945e697f99737a15ffa32-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd9d02204e00945e697f99737a15ffa32-tiny.png' OR old_paths.value = 'd9d02204e00945e697f99737a15ffa32-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd9d02204e00945e697f99737a15ffa32-tiny.png' OR old_paths.value = 'd9d02204e00945e697f99737a15ffa32-tiny.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/de2c00f30a5f42b0849c70c8f16c9d1b-large.png' OR old_paths.value = 'second/de2c00f30a5f42b0849c70c8f16c9d1b-large.png') UNION SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/de2c00f30a5f42b0849c70c8f16c9d1b-large.png' OR old_paths.value = 'second/de2c00f30a5f42b0849c70c8f16c9d1b-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/de2c00f30a5f42b0849c70c8f16c9d1b-large.png' OR old_paths.value = 'second/de2c00f30a5f42b0849c70c8f16c9d1b-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/de2c00f30a5f42b0849c70c8f16c9d1b-large.png' OR old_paths.value = 'second/de2c00f30a5f42b0849c70c8f16c9d1b-large.png') Deleting second/de2c00f30a5f42b0849c70c8f16c9d1b-large.png Deleting: second/de2c00f30a5f42b0849c70c8f16c9d1b-large.png  (0.8ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/de2c00f30a5f42b0849c70c8f16c9d1b-medium.png' OR old_paths.value = 'second/de2c00f30a5f42b0849c70c8f16c9d1b-medium.png') UNION SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/de2c00f30a5f42b0849c70c8f16c9d1b-medium.png' OR old_paths.value = 'second/de2c00f30a5f42b0849c70c8f16c9d1b-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/de2c00f30a5f42b0849c70c8f16c9d1b-medium.png' OR old_paths.value = 'second/de2c00f30a5f42b0849c70c8f16c9d1b-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/de2c00f30a5f42b0849c70c8f16c9d1b-medium.png' OR old_paths.value = 'second/de2c00f30a5f42b0849c70c8f16c9d1b-medium.png') Deleting second/de2c00f30a5f42b0849c70c8f16c9d1b-medium.png Deleting: second/de2c00f30a5f42b0849c70c8f16c9d1b-medium.png  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/de2c00f30a5f42b0849c70c8f16c9d1b-original.png' OR old_paths.value = 'second/de2c00f30a5f42b0849c70c8f16c9d1b-original.png') UNION SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/de2c00f30a5f42b0849c70c8f16c9d1b-original.png' OR old_paths.value = 'second/de2c00f30a5f42b0849c70c8f16c9d1b-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/de2c00f30a5f42b0849c70c8f16c9d1b-original.png' OR old_paths.value = 'second/de2c00f30a5f42b0849c70c8f16c9d1b-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/de2c00f30a5f42b0849c70c8f16c9d1b-original.png' OR old_paths.value = 'second/de2c00f30a5f42b0849c70c8f16c9d1b-original.png') Deleting second/de2c00f30a5f42b0849c70c8f16c9d1b-original.png Deleting: second/de2c00f30a5f42b0849c70c8f16c9d1b-original.png  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/de2c00f30a5f42b0849c70c8f16c9d1b-small.png' OR old_paths.value = 'second/de2c00f30a5f42b0849c70c8f16c9d1b-small.png') UNION SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/de2c00f30a5f42b0849c70c8f16c9d1b-small.png' OR old_paths.value = 'second/de2c00f30a5f42b0849c70c8f16c9d1b-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/de2c00f30a5f42b0849c70c8f16c9d1b-small.png' OR old_paths.value = 'second/de2c00f30a5f42b0849c70c8f16c9d1b-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/de2c00f30a5f42b0849c70c8f16c9d1b-small.png' OR old_paths.value = 'second/de2c00f30a5f42b0849c70c8f16c9d1b-small.png') Deleting second/de2c00f30a5f42b0849c70c8f16c9d1b-small.png Deleting: second/de2c00f30a5f42b0849c70c8f16c9d1b-small.png  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/de2c00f30a5f42b0849c70c8f16c9d1b-tiny.png' OR old_paths.value = 'second/de2c00f30a5f42b0849c70c8f16c9d1b-tiny.png') UNION SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/de2c00f30a5f42b0849c70c8f16c9d1b-tiny.png' OR old_paths.value = 'second/de2c00f30a5f42b0849c70c8f16c9d1b-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/de2c00f30a5f42b0849c70c8f16c9d1b-tiny.png' OR old_paths.value = 'second/de2c00f30a5f42b0849c70c8f16c9d1b-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/de2c00f30a5f42b0849c70c8f16c9d1b-tiny.png' OR old_paths.value = 'second/de2c00f30a5f42b0849c70c8f16c9d1b-tiny.png') Deleting second/de2c00f30a5f42b0849c70c8f16c9d1b-tiny.png Deleting: second/de2c00f30a5f42b0849c70c8f16c9d1b-tiny.png  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/ea94528a2b684b7abaf25232c5650f34-large.png' OR old_paths.value = 'second/ea94528a2b684b7abaf25232c5650f34-large.png') UNION SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/ea94528a2b684b7abaf25232c5650f34-large.png' OR old_paths.value = 'second/ea94528a2b684b7abaf25232c5650f34-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/ea94528a2b684b7abaf25232c5650f34-large.png' OR old_paths.value = 'second/ea94528a2b684b7abaf25232c5650f34-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/ea94528a2b684b7abaf25232c5650f34-large.png' OR old_paths.value = 'second/ea94528a2b684b7abaf25232c5650f34-large.png') Deleting second/ea94528a2b684b7abaf25232c5650f34-large.png Deleting: second/ea94528a2b684b7abaf25232c5650f34-large.png  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/ea94528a2b684b7abaf25232c5650f34-medium.png' OR old_paths.value = 'second/ea94528a2b684b7abaf25232c5650f34-medium.png') UNION SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/ea94528a2b684b7abaf25232c5650f34-medium.png' OR old_paths.value = 'second/ea94528a2b684b7abaf25232c5650f34-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/ea94528a2b684b7abaf25232c5650f34-medium.png' OR old_paths.value = 'second/ea94528a2b684b7abaf25232c5650f34-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/ea94528a2b684b7abaf25232c5650f34-medium.png' OR old_paths.value = 'second/ea94528a2b684b7abaf25232c5650f34-medium.png') Deleting second/ea94528a2b684b7abaf25232c5650f34-medium.png Deleting: second/ea94528a2b684b7abaf25232c5650f34-medium.png  (0.7ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/ea94528a2b684b7abaf25232c5650f34-original.png' OR old_paths.value = 'second/ea94528a2b684b7abaf25232c5650f34-original.png') UNION SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/ea94528a2b684b7abaf25232c5650f34-original.png' OR old_paths.value = 'second/ea94528a2b684b7abaf25232c5650f34-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/ea94528a2b684b7abaf25232c5650f34-original.png' OR old_paths.value = 'second/ea94528a2b684b7abaf25232c5650f34-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/ea94528a2b684b7abaf25232c5650f34-original.png' OR old_paths.value = 'second/ea94528a2b684b7abaf25232c5650f34-original.png') Deleting second/ea94528a2b684b7abaf25232c5650f34-original.png Deleting: second/ea94528a2b684b7abaf25232c5650f34-original.png  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/ea94528a2b684b7abaf25232c5650f34-small.png' OR old_paths.value = 'second/ea94528a2b684b7abaf25232c5650f34-small.png') UNION SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/ea94528a2b684b7abaf25232c5650f34-small.png' OR old_paths.value = 'second/ea94528a2b684b7abaf25232c5650f34-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/ea94528a2b684b7abaf25232c5650f34-small.png' OR old_paths.value = 'second/ea94528a2b684b7abaf25232c5650f34-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/ea94528a2b684b7abaf25232c5650f34-small.png' OR old_paths.value = 'second/ea94528a2b684b7abaf25232c5650f34-small.png') Deleting second/ea94528a2b684b7abaf25232c5650f34-small.png Deleting: second/ea94528a2b684b7abaf25232c5650f34-small.png  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/ea94528a2b684b7abaf25232c5650f34-tiny.png' OR old_paths.value = 'second/ea94528a2b684b7abaf25232c5650f34-tiny.png') UNION SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/ea94528a2b684b7abaf25232c5650f34-tiny.png' OR old_paths.value = 'second/ea94528a2b684b7abaf25232c5650f34-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/ea94528a2b684b7abaf25232c5650f34-tiny.png' OR old_paths.value = 'second/ea94528a2b684b7abaf25232c5650f34-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/ea94528a2b684b7abaf25232c5650f34-tiny.png' OR old_paths.value = 'second/ea94528a2b684b7abaf25232c5650f34-tiny.png') Deleting second/ea94528a2b684b7abaf25232c5650f34-tiny.png Deleting: second/ea94528a2b684b7abaf25232c5650f34-tiny.png  (0.7ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd9d02204e00945e697f99737a15ffa32-large.png' OR old_paths.value = 'd9d02204e00945e697f99737a15ffa32-large.png') UNION SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd9d02204e00945e697f99737a15ffa32-large.png' OR old_paths.value = 'd9d02204e00945e697f99737a15ffa32-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd9d02204e00945e697f99737a15ffa32-large.png' OR old_paths.value = 'd9d02204e00945e697f99737a15ffa32-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd9d02204e00945e697f99737a15ffa32-large.png' OR old_paths.value = 'd9d02204e00945e697f99737a15ffa32-large.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd9d02204e00945e697f99737a15ffa32-medium.png' OR old_paths.value = 'd9d02204e00945e697f99737a15ffa32-medium.png') UNION SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd9d02204e00945e697f99737a15ffa32-medium.png' OR old_paths.value = 'd9d02204e00945e697f99737a15ffa32-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd9d02204e00945e697f99737a15ffa32-medium.png' OR old_paths.value = 'd9d02204e00945e697f99737a15ffa32-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd9d02204e00945e697f99737a15ffa32-medium.png' OR old_paths.value = 'd9d02204e00945e697f99737a15ffa32-medium.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd9d02204e00945e697f99737a15ffa32-original.png' OR old_paths.value = 'd9d02204e00945e697f99737a15ffa32-original.png') UNION SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd9d02204e00945e697f99737a15ffa32-original.png' OR old_paths.value = 'd9d02204e00945e697f99737a15ffa32-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd9d02204e00945e697f99737a15ffa32-original.png' OR old_paths.value = 'd9d02204e00945e697f99737a15ffa32-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd9d02204e00945e697f99737a15ffa32-original.png' OR old_paths.value = 'd9d02204e00945e697f99737a15ffa32-original.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd9d02204e00945e697f99737a15ffa32-small.png' OR old_paths.value = 'd9d02204e00945e697f99737a15ffa32-small.png') UNION SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd9d02204e00945e697f99737a15ffa32-small.png' OR old_paths.value = 'd9d02204e00945e697f99737a15ffa32-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd9d02204e00945e697f99737a15ffa32-small.png' OR old_paths.value = 'd9d02204e00945e697f99737a15ffa32-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd9d02204e00945e697f99737a15ffa32-small.png' OR old_paths.value = 'd9d02204e00945e697f99737a15ffa32-small.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd9d02204e00945e697f99737a15ffa32-tiny.png' OR old_paths.value = 'd9d02204e00945e697f99737a15ffa32-tiny.png') UNION SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd9d02204e00945e697f99737a15ffa32-tiny.png' OR old_paths.value = 'd9d02204e00945e697f99737a15ffa32-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd9d02204e00945e697f99737a15ffa32-tiny.png' OR old_paths.value = 'd9d02204e00945e697f99737a15ffa32-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'd9d02204e00945e697f99737a15ffa32-tiny.png' OR old_paths.value = 'd9d02204e00945e697f99737a15ffa32-tiny.png') [ActiveJob] [Attachs::Jobs::DeleteJob] [0f414b58-c343-4e14-8787-d1ca37a7c8f2] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["d9d02204e00945e697f99737a15ffa32-original.png", "d9d02204e00945e697f99737a15ffa32-tiny.png", "d9d02204e00945e697f99737a15ffa32-small.png", "d9d02204e00945e697f99737a15ffa32-medium.png", "d9d02204e00945e697f99737a15ffa32-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [0f414b58-c343-4e14-8787-d1ca37a7c8f2] Deleting: d9d02204e00945e697f99737a15ffa32-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [0f414b58-c343-4e14-8787-d1ca37a7c8f2] Deleting: d9d02204e00945e697f99737a15ffa32-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [0f414b58-c343-4e14-8787-d1ca37a7c8f2] Deleting: d9d02204e00945e697f99737a15ffa32-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [0f414b58-c343-4e14-8787-d1ca37a7c8f2] Deleting: d9d02204e00945e697f99737a15ffa32-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [0f414b58-c343-4e14-8787-d1ca37a7c8f2] Deleting: d9d02204e00945e697f99737a15ffa32-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [0f414b58-c343-4e14-8787-d1ca37a7c8f2] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2521.32ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 0f414b58-c343-4e14-8787-d1ca37a7c8f2) to Inline(default) with arguments: ["d9d02204e00945e697f99737a15ffa32-original.png", "d9d02204e00945e697f99737a15ffa32-tiny.png", "d9d02204e00945e697f99737a15ffa32-small.png", "d9d02204e00945e697f99737a15ffa32-medium.png", "d9d02204e00945e697f99737a15ffa32-large.png"]  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------ TaskTest: test_reprocess ------------------------ Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-15oizt2.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"7f0b4951a0a34b189606a266f1a7dd54\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-13T14:07:03.165-03:00\",\"paths\":{\"original\":\"7f0b4951a0a34b189606a266f1a7dd54-original.png\",\"tiny\":\"7f0b4951a0a34b189606a266f1a7dd54-tiny.png\",\"small\":\"7f0b4951a0a34b189606a266f1a7dd54-small.png\",\"medium\":\"7f0b4951a0a34b189606a266f1a7dd54-medium.png\",\"large\":\"7f0b4951a0a34b189606a266f1a7dd54-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-13 17:07:03.166386"], ["updated_at", "2016-12-13 17:07:03.166386"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-15oizt2.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1fyoe98.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1fyoe98.png => 7f0b4951a0a34b189606a266f1a7dd54-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-15oizt2.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1wf7b2o.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1wf7b2o.png => 7f0b4951a0a34b189606a266f1a7dd54-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-15oizt2.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-15ydfxq.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-15ydfxq.png => 7f0b4951a0a34b189606a266f1a7dd54-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-15oizt2.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-19vxwqw.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-19vxwqw.png => 7f0b4951a0a34b189606a266f1a7dd54-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-15oizt2.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-10yzs46.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-10yzs46.png => 7f0b4951a0a34b189606a266f1a7dd54-large.png Deleting: 7f0b4951a0a34b189606a266f1a7dd54-tiny.png Deleting: 7f0b4951a0a34b189606a266f1a7dd54-small.png Deleting: 7f0b4951a0a34b189606a266f1a7dd54-medium.png Deleting: 7f0b4951a0a34b189606a266f1a7dd54-large.png Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Reprocessing Shop #94 => logo Regenerating: tiny => 7f0b4951a0a34b189606a266f1a7dd54-tiny.png Regenerating: large => 7f0b4951a0a34b189606a266f1a7dd54-large.png Regenerating: small => 7f0b4951a0a34b189606a266f1a7dd54-small.png Regenerating: medium => 7f0b4951a0a34b189606a266f1a7dd54-medium.png Deleting: 7f0b4951a0a34b189606a266f1a7dd54-original.png Regenerating: original => 7f0b4951a0a34b189606a266f1a7dd54-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-ipjrww.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-93ixxv.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-93ixxv.png => 7f0b4951a0a34b189606a266f1a7dd54-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-ipjrww.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-k66g8c.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-k66g8c.png => 7f0b4951a0a34b189606a266f1a7dd54-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-ipjrww.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1l67eaf.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1l67eaf.png => 7f0b4951a0a34b189606a266f1a7dd54-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-ipjrww.png' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-n47gep.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-n47gep.png => 7f0b4951a0a34b189606a266f1a7dd54-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-ipjrww.png' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-xtby7v.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-xtby7v.png => 7f0b4951a0a34b189606a266f1a7dd54-large.png SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"original":"7f0b4951a0a34b189606a266f1a7dd54-original.png","tiny":"7f0b4951a0a34b189606a266f1a7dd54-tiny.png","small":"7f0b4951a0a34b189606a266f1a7dd54-small.png","medium":"7f0b4951a0a34b189606a266f1a7dd54-medium.png","large":"7f0b4951a0a34b189606a266f1a7dd54-large.png"},"old_paths":[],"id":"7f0b4951a0a34b189606a266f1a7dd54","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-13T14:07:03.165-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 94]] Upload Load (0.2ms) SELECT "uploads".* FROM "uploads" ORDER BY "uploads"."id" ASC LIMIT 1000 RecordTest::Subclass Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Reprocessing Shop #94 => logo Deleting: 7f0b4951a0a34b189606a266f1a7dd54-tiny.png Regenerating: tiny => 7f0b4951a0a34b189606a266f1a7dd54-tiny.png Deleting: 7f0b4951a0a34b189606a266f1a7dd54-large.png Regenerating: large => 7f0b4951a0a34b189606a266f1a7dd54-large.png Deleting: 7f0b4951a0a34b189606a266f1a7dd54-small.png Regenerating: small => 7f0b4951a0a34b189606a266f1a7dd54-small.png Deleting: 7f0b4951a0a34b189606a266f1a7dd54-medium.png Regenerating: medium => 7f0b4951a0a34b189606a266f1a7dd54-medium.png Deleting: 7f0b4951a0a34b189606a266f1a7dd54-original.png Regenerating: original => 7f0b4951a0a34b189606a266f1a7dd54-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1qm3wuo.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-qhswn1.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-qhswn1.png => 7f0b4951a0a34b189606a266f1a7dd54-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1qm3wuo.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1fclpum.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1fclpum.png => 7f0b4951a0a34b189606a266f1a7dd54-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1qm3wuo.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-ofkao5.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-ofkao5.png => 7f0b4951a0a34b189606a266f1a7dd54-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1qm3wuo.png' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1qvjnl4.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1qvjnl4.png => 7f0b4951a0a34b189606a266f1a7dd54-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1qm3wuo.png' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1xtc1d5.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1xtc1d5.png => 7f0b4951a0a34b189606a266f1a7dd54-large.png SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"original":"7f0b4951a0a34b189606a266f1a7dd54-original.png","tiny":"7f0b4951a0a34b189606a266f1a7dd54-tiny.png","small":"7f0b4951a0a34b189606a266f1a7dd54-small.png","medium":"7f0b4951a0a34b189606a266f1a7dd54-medium.png","large":"7f0b4951a0a34b189606a266f1a7dd54-large.png"},"old_paths":[],"id":"7f0b4951a0a34b189606a266f1a7dd54","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-13T14:07:03.165-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 94]] Upload Load (0.2ms) SELECT "uploads".* FROM "uploads" ORDER BY "uploads"."id" ASC LIMIT 1000 RecordTest::Subclass Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Reprocessing Shop #94 => logo Deleting: 7f0b4951a0a34b189606a266f1a7dd54-tiny.png Regenerating: tiny => 7f0b4951a0a34b189606a266f1a7dd54-tiny.png Deleting: 7f0b4951a0a34b189606a266f1a7dd54-large.png Regenerating: large => 7f0b4951a0a34b189606a266f1a7dd54-large.png Deleting: 7f0b4951a0a34b189606a266f1a7dd54-small.png Regenerating: small => 7f0b4951a0a34b189606a266f1a7dd54-small.png Deleting: 7f0b4951a0a34b189606a266f1a7dd54-medium.png Regenerating: medium => 7f0b4951a0a34b189606a266f1a7dd54-medium.png Deleting: 7f0b4951a0a34b189606a266f1a7dd54-original.png Regenerating: original => 7f0b4951a0a34b189606a266f1a7dd54-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-uw5l4j.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-hq4cis.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-hq4cis.png => 7f0b4951a0a34b189606a266f1a7dd54-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-uw5l4j.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-13i7smn.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-13i7smn.png => 7f0b4951a0a34b189606a266f1a7dd54-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-uw5l4j.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-flirvd.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-flirvd.png => 7f0b4951a0a34b189606a266f1a7dd54-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-uw5l4j.png' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1fpx9ws.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1fpx9ws.png => 7f0b4951a0a34b189606a266f1a7dd54-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-uw5l4j.png' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1p3d5yw.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1p3d5yw.png => 7f0b4951a0a34b189606a266f1a7dd54-large.png SQL (0.4ms) UPDATE "shops" SET "logo" = '{"paths":{"original":"7f0b4951a0a34b189606a266f1a7dd54-original.png","tiny":"7f0b4951a0a34b189606a266f1a7dd54-tiny.png","small":"7f0b4951a0a34b189606a266f1a7dd54-small.png","medium":"7f0b4951a0a34b189606a266f1a7dd54-medium.png","large":"7f0b4951a0a34b189606a266f1a7dd54-large.png"},"old_paths":[],"id":"7f0b4951a0a34b189606a266f1a7dd54","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-13T14:07:03.165-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 94]] Upload Load (0.3ms) SELECT "uploads".* FROM "uploads" ORDER BY "uploads"."id" ASC LIMIT 1000 RecordTest::Subclass Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 94]] [ActiveJob] [Attachs::Jobs::DeleteJob] [9283d802-20c0-4e92-87b6-f363360da4d6] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["7f0b4951a0a34b189606a266f1a7dd54-tiny.png", "7f0b4951a0a34b189606a266f1a7dd54-large.png", "7f0b4951a0a34b189606a266f1a7dd54-small.png", "7f0b4951a0a34b189606a266f1a7dd54-medium.png", "7f0b4951a0a34b189606a266f1a7dd54-original.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [9283d802-20c0-4e92-87b6-f363360da4d6] Deleting: 7f0b4951a0a34b189606a266f1a7dd54-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [9283d802-20c0-4e92-87b6-f363360da4d6] Deleting: 7f0b4951a0a34b189606a266f1a7dd54-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [9283d802-20c0-4e92-87b6-f363360da4d6] Deleting: 7f0b4951a0a34b189606a266f1a7dd54-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [9283d802-20c0-4e92-87b6-f363360da4d6] Deleting: 7f0b4951a0a34b189606a266f1a7dd54-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [9283d802-20c0-4e92-87b6-f363360da4d6] Deleting: 7f0b4951a0a34b189606a266f1a7dd54-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [9283d802-20c0-4e92-87b6-f363360da4d6] Performed Attachs::Jobs::DeleteJob from Inline(default) in 3963.71ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 9283d802-20c0-4e92-87b6-f363360da4d6) to Inline(default) with arguments: ["7f0b4951a0a34b189606a266f1a7dd54-tiny.png", "7f0b4951a0a34b189606a266f1a7dd54-large.png", "7f0b4951a0a34b189606a266f1a7dd54-small.png", "7f0b4951a0a34b189606a266f1a7dd54-medium.png", "7f0b4951a0a34b189606a266f1a7dd54-original.png"]  (0.2ms) ROLLBACK  (0.2ms) BEGIN --------------------------- TaskTest: test_fix_missings --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-19acrhg.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"f25bfeff7f9046628770217c957c7e0b\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-13T14:07:36.786-03:00\",\"paths\":{\"original\":\"f25bfeff7f9046628770217c957c7e0b-original.png\",\"tiny\":\"f25bfeff7f9046628770217c957c7e0b-tiny.png\",\"small\":\"f25bfeff7f9046628770217c957c7e0b-small.png\",\"medium\":\"f25bfeff7f9046628770217c957c7e0b-medium.png\",\"large\":\"f25bfeff7f9046628770217c957c7e0b-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-13 17:07:36.787220"], ["updated_at", "2016-12-13 17:07:36.787220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-19acrhg.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-53rciu.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-53rciu.png => f25bfeff7f9046628770217c957c7e0b-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-19acrhg.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-13xrcfe.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-13xrcfe.png => f25bfeff7f9046628770217c957c7e0b-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-19acrhg.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1t0w2a9.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1t0w2a9.png => f25bfeff7f9046628770217c957c7e0b-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-19acrhg.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1tah2nk.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1tah2nk.png => f25bfeff7f9046628770217c957c7e0b-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-19acrhg.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1rk1r3n.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1rk1r3n.png => f25bfeff7f9046628770217c957c7e0b-large.png Deleting: f25bfeff7f9046628770217c957c7e0b-tiny.png Deleting: f25bfeff7f9046628770217c957c7e0b-small.png Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Fix missings of Shop #95 => logo Generating: tiny => f25bfeff7f9046628770217c957c7e0b-tiny.png Generating: small => f25bfeff7f9046628770217c957c7e0b-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1xmb05s.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-154rtmq.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-154rtmq.png => f25bfeff7f9046628770217c957c7e0b-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1xmb05s.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-5e0olx.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-5e0olx.png => f25bfeff7f9046628770217c957c7e0b-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1xmb05s.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1iv0z56.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58215-1iv0z56.png => f25bfeff7f9046628770217c957c7e0b-small.png Upload Load (0.3ms) SELECT "uploads".* FROM "uploads" ORDER BY "uploads"."id" ASC LIMIT 1000 RecordTest::Subclass Load (0.5ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Fix missings of Shop #95 => logo Upload Load (0.4ms) SELECT "uploads".* FROM "uploads" ORDER BY "uploads"."id" ASC LIMIT 1000 RecordTest::Subclass Load (0.6ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Fix missings of Shop #95 => logo Upload Load (0.5ms) SELECT "uploads".* FROM "uploads" ORDER BY "uploads"."id" ASC LIMIT 1000 RecordTest::Subclass Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Fix missings of Shop #95 => logo Upload Load (0.3ms) SELECT "uploads".* FROM "uploads" ORDER BY "uploads"."id" ASC LIMIT 1000 RecordTest::Subclass Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 [ActiveJob] [Attachs::Jobs::DeleteJob] [03f47147-85d7-4b37-ba70-53bf997ff0be] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["f25bfeff7f9046628770217c957c7e0b-original.png", "f25bfeff7f9046628770217c957c7e0b-tiny.png", "f25bfeff7f9046628770217c957c7e0b-small.png", "f25bfeff7f9046628770217c957c7e0b-medium.png", "f25bfeff7f9046628770217c957c7e0b-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [03f47147-85d7-4b37-ba70-53bf997ff0be] Deleting: f25bfeff7f9046628770217c957c7e0b-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [03f47147-85d7-4b37-ba70-53bf997ff0be] Deleting: f25bfeff7f9046628770217c957c7e0b-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [03f47147-85d7-4b37-ba70-53bf997ff0be] Deleting: f25bfeff7f9046628770217c957c7e0b-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [03f47147-85d7-4b37-ba70-53bf997ff0be] Deleting: f25bfeff7f9046628770217c957c7e0b-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [03f47147-85d7-4b37-ba70-53bf997ff0be] Deleting: f25bfeff7f9046628770217c957c7e0b-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [03f47147-85d7-4b37-ba70-53bf997ff0be] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2615.32ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 03f47147-85d7-4b37-ba70-53bf997ff0be) to Inline(default) with arguments: ["f25bfeff7f9046628770217c957c7e0b-original.png", "f25bfeff7f9046628770217c957c7e0b-tiny.png", "f25bfeff7f9046628770217c957c7e0b-small.png", "f25bfeff7f9046628770217c957c7e0b-medium.png", "f25bfeff7f9046628770217c957c7e0b-large.png"]  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------- ValidatorTest: test_content_type_with ------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-pvxbou.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-23r4x9.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-x5gea7.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- ValidatorTest: test_size_greater_than ------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161213-58215-9qysjx.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-1hujz73.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-1h7c6ly.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- ValidatorTest: test_methods ---------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- ValidatorTest: test_content_type_within --------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-1hdlp4a.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-17bp4aw.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-e6ch4d.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- ValidatorTest: test_size_within ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161213-58215-1sfb1ig.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-pvc26i.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161213-58215-1fiqkq1.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-10zgcge.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-162q36o.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- ValidatorTest: test_size_in --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161213-58215-171axl5.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-1ezufjv.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161213-58215-br5ko2.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-jnos9.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-1t8144e.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- ValidatorTest: test_size_less_than ---------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161213-58215-u1cqb8.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-1pwt80.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-1jtvr7i.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- ValidatorTest: test_content_type_in ----------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-1j36uig.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-1e49z8k.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58215-1iswmpn.jpg'  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN -------------------------- CollectionTest: test_index -------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-ioiodr.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-hksgz9.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"d9d0979104c54611b1d5b56d67e42723\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-13T14:08:35.534-03:00\",\"paths\":{\"original\":\"d9d0979104c54611b1d5b56d67e42723-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725,\"position\":0},{\"id\":\"966efd85df434c279fa2beabe432d236\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-13T14:08:35.536-03:00\",\"paths\":{\"original\":\"966efd85df434c279fa2beabe432d236-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-12-13 17:08:35.536979"], ["updated_at", "2016-12-13 17:08:35.536979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 48]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- CollectionTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-53zshq.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-1yf32af.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"b7d470a7d51349198ae2228511d25b0f\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-13T14:08:35.568-03:00\",\"paths\":{\"original\":\"b7d470a7d51349198ae2228511d25b0f-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725},{\"id\":\"ca2f53bd1bf948738461be2b27211400\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-13T14:08:35.569-03:00\",\"paths\":{\"original\":\"ca2f53bd1bf948738461be2b27211400-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-12-13 17:08:35.570835"], ["updated_at", "2016-12-13 17:08:35.570835"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-53zshq.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1qy9x2.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1qy9x2.jpg => b7d470a7d51349198ae2228511d25b0f-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-1yf32af.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1trc9cd.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1trc9cd.jpg => ca2f53bd1bf948738461be2b27211400-original.jpg Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 49]] [ActiveJob] [Attachs::Jobs::DeleteJob] [e02a6c8d-6b46-4b02-9a5c-281b17179740] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["b7d470a7d51349198ae2228511d25b0f-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [e02a6c8d-6b46-4b02-9a5c-281b17179740] Deleting: b7d470a7d51349198ae2228511d25b0f-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [e02a6c8d-6b46-4b02-9a5c-281b17179740] Performed Attachs::Jobs::DeleteJob from Inline(default) in 475.52ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: e02a6c8d-6b46-4b02-9a5c-281b17179740) to Inline(default) with arguments: ["b7d470a7d51349198ae2228511d25b0f-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [e886265c-2133-4c81-beea-edc6e6b78e21] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["ca2f53bd1bf948738461be2b27211400-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [e886265c-2133-4c81-beea-edc6e6b78e21] Deleting: ca2f53bd1bf948738461be2b27211400-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [e886265c-2133-4c81-beea-edc6e6b78e21] Performed Attachs::Jobs::DeleteJob from Inline(default) in 383.67ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: e886265c-2133-4c81-beea-edc6e6b78e21) to Inline(default) with arguments: ["ca2f53bd1bf948738461be2b27211400-original.jpg"]  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- CollectionTest: test_nested_attributes -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-ytsoev.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-x92slh.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- GeneratorTest: test_install ---------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------- GeneratorTest: test_upload --------------------------  (0.2ms) ROLLBACK  (0.2ms) BEGIN ---------------------------------- RecordTest: test_clear_attachments ---------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-xhi4u.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-19qnmch.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"9fdb1ef5601e44178d21a4e2a9173bd7\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-13T14:08:38.871-03:00\",\"paths\":{\"original\":\"9fdb1ef5601e44178d21a4e2a9173bd7-original.png\",\"tiny\":\"9fdb1ef5601e44178d21a4e2a9173bd7-tiny.png\",\"small\":\"9fdb1ef5601e44178d21a4e2a9173bd7-small.png\",\"medium\":\"9fdb1ef5601e44178d21a4e2a9173bd7-medium.png\",\"large\":\"9fdb1ef5601e44178d21a4e2a9173bd7-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-13 17:08:38.872310"], ["updated_at", "2016-12-13 17:08:38.872310"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 96]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ RecordTest: test_inherit ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_default ----------------------------  (0.1ms) ROLLBACK  (0.2ms) BEGIN ---------------------------- AttachmentTest: test_renames ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-1l88r10.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("logo", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["logo", "{\"id\":\"72d4f4ce0f994481818d7cd8900fdfe3\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-13T14:08:38.891-03:00\",\"paths\":{\"original\":\"anderstons/72d4f4ce0f994481818d7cd8900fdfe3-original.png\",\"tiny\":\"anderstons/72d4f4ce0f994481818d7cd8900fdfe3-tiny.png\",\"small\":\"anderstons/72d4f4ce0f994481818d7cd8900fdfe3-small.png\",\"medium\":\"anderstons/72d4f4ce0f994481818d7cd8900fdfe3-medium.png\",\"large\":\"anderstons/72d4f4ce0f994481818d7cd8900fdfe3-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["name", "Anderstons"], ["created_at", "2016-12-13 17:08:38.892320"], ["updated_at", "2016-12-13 17:08:38.892320"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-1l88r10.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1imao2q.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1imao2q.png => anderstons/72d4f4ce0f994481818d7cd8900fdfe3-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-1l88r10.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1uoimi6.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1uoimi6.png => anderstons/72d4f4ce0f994481818d7cd8900fdfe3-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-1l88r10.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-14oesun.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-14oesun.png => anderstons/72d4f4ce0f994481818d7cd8900fdfe3-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-1l88r10.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-a43krm.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-a43krm.png => anderstons/72d4f4ce0f994481818d7cd8900fdfe3-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-1l88r10.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-zz2f37.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-zz2f37.png => anderstons/72d4f4ce0f994481818d7cd8900fdfe3-large.png  (0.4ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "shops" SET "name" = $1, "updated_at" = $2 WHERE "shops"."id" = $3 [["name", "Musicians Friend"], ["updated_at", "2016-12-13 17:08:48.823024"], ["id", 97]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 97]] [ActiveJob] [Attachs::Jobs::UpdateJob] [a17a6998-b5fc-4476-aec5-d5feb6d324b1] Performing Attachs::Jobs::UpdateJob from Inline(default) with arguments: gid://dummy/Shop/97, "logo" [ActiveJob] [Attachs::Jobs::UpdateJob] [a17a6998-b5fc-4476-aec5-d5feb6d324b1] Copying: anderstons/72d4f4ce0f994481818d7cd8900fdfe3-original.png => musicians-friend/72d4f4ce0f994481818d7cd8900fdfe3-original.png [ActiveJob] [Attachs::Jobs::UpdateJob] [a17a6998-b5fc-4476-aec5-d5feb6d324b1] Copying: anderstons/72d4f4ce0f994481818d7cd8900fdfe3-tiny.png => musicians-friend/72d4f4ce0f994481818d7cd8900fdfe3-tiny.png [ActiveJob] [Attachs::Jobs::UpdateJob] [a17a6998-b5fc-4476-aec5-d5feb6d324b1] Copying: anderstons/72d4f4ce0f994481818d7cd8900fdfe3-small.png => musicians-friend/72d4f4ce0f994481818d7cd8900fdfe3-small.png [ActiveJob] [Attachs::Jobs::UpdateJob] [a17a6998-b5fc-4476-aec5-d5feb6d324b1] Copying: anderstons/72d4f4ce0f994481818d7cd8900fdfe3-medium.png => musicians-friend/72d4f4ce0f994481818d7cd8900fdfe3-medium.png [ActiveJob] [Attachs::Jobs::UpdateJob] [a17a6998-b5fc-4476-aec5-d5feb6d324b1] Copying: anderstons/72d4f4ce0f994481818d7cd8900fdfe3-large.png => musicians-friend/72d4f4ce0f994481818d7cd8900fdfe3-large.png [ActiveJob] [Attachs::Jobs::UpdateJob] [a17a6998-b5fc-4476-aec5-d5feb6d324b1] SQL (0.2ms) UPDATE "shops" SET "logo" = '{"paths":{"tiny":"musicians-friend/72d4f4ce0f994481818d7cd8900fdfe3-tiny.png","large":"musicians-friend/72d4f4ce0f994481818d7cd8900fdfe3-large.png","small":"musicians-friend/72d4f4ce0f994481818d7cd8900fdfe3-small.png","medium":"musicians-friend/72d4f4ce0f994481818d7cd8900fdfe3-medium.png","original":"musicians-friend/72d4f4ce0f994481818d7cd8900fdfe3-original.png"},"old_paths":["anderstons/72d4f4ce0f994481818d7cd8900fdfe3-original.png","anderstons/72d4f4ce0f994481818d7cd8900fdfe3-tiny.png","anderstons/72d4f4ce0f994481818d7cd8900fdfe3-small.png","anderstons/72d4f4ce0f994481818d7cd8900fdfe3-medium.png","anderstons/72d4f4ce0f994481818d7cd8900fdfe3-large.png"],"id":"72d4f4ce0f994481818d7cd8900fdfe3","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-13T14:08:38.891-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 97]] [ActiveJob] [Attachs::Jobs::UpdateJob] [a17a6998-b5fc-4476-aec5-d5feb6d324b1] Performed Attachs::Jobs::UpdateJob from Inline(default) in 3726.84ms [ActiveJob] Enqueued Attachs::Jobs::UpdateJob (Job ID: a17a6998-b5fc-4476-aec5-d5feb6d324b1) to Inline(default) with arguments: gid://dummy/Shop/97, "logo" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 97]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 97]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Attachs::Jobs::DeleteJob] [61a2663b-50e5-42b2-852c-9a55e605ea26] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["musicians-friend/72d4f4ce0f994481818d7cd8900fdfe3-tiny.png", "musicians-friend/72d4f4ce0f994481818d7cd8900fdfe3-large.png", "musicians-friend/72d4f4ce0f994481818d7cd8900fdfe3-small.png", "musicians-friend/72d4f4ce0f994481818d7cd8900fdfe3-medium.png", "musicians-friend/72d4f4ce0f994481818d7cd8900fdfe3-original.png", "anderstons/72d4f4ce0f994481818d7cd8900fdfe3-original.png", "anderstons/72d4f4ce0f994481818d7cd8900fdfe3-tiny.png", "anderstons/72d4f4ce0f994481818d7cd8900fdfe3-small.png", "anderstons/72d4f4ce0f994481818d7cd8900fdfe3-medium.png", "anderstons/72d4f4ce0f994481818d7cd8900fdfe3-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [61a2663b-50e5-42b2-852c-9a55e605ea26] Deleting: musicians-friend/72d4f4ce0f994481818d7cd8900fdfe3-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [61a2663b-50e5-42b2-852c-9a55e605ea26] Deleting: musicians-friend/72d4f4ce0f994481818d7cd8900fdfe3-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [61a2663b-50e5-42b2-852c-9a55e605ea26] Deleting: musicians-friend/72d4f4ce0f994481818d7cd8900fdfe3-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [61a2663b-50e5-42b2-852c-9a55e605ea26] Deleting: musicians-friend/72d4f4ce0f994481818d7cd8900fdfe3-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [61a2663b-50e5-42b2-852c-9a55e605ea26] Deleting: musicians-friend/72d4f4ce0f994481818d7cd8900fdfe3-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [61a2663b-50e5-42b2-852c-9a55e605ea26] Deleting: anderstons/72d4f4ce0f994481818d7cd8900fdfe3-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [61a2663b-50e5-42b2-852c-9a55e605ea26] Deleting: anderstons/72d4f4ce0f994481818d7cd8900fdfe3-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [61a2663b-50e5-42b2-852c-9a55e605ea26] Deleting: anderstons/72d4f4ce0f994481818d7cd8900fdfe3-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [61a2663b-50e5-42b2-852c-9a55e605ea26] Deleting: anderstons/72d4f4ce0f994481818d7cd8900fdfe3-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [61a2663b-50e5-42b2-852c-9a55e605ea26] Deleting: anderstons/72d4f4ce0f994481818d7cd8900fdfe3-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [61a2663b-50e5-42b2-852c-9a55e605ea26] Performed Attachs::Jobs::DeleteJob from Inline(default) in 4596.49ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 61a2663b-50e5-42b2-852c-9a55e605ea26) to Inline(default) with arguments: ["musicians-friend/72d4f4ce0f994481818d7cd8900fdfe3-tiny.png", "musicians-friend/72d4f4ce0f994481818d7cd8900fdfe3-large.png", "musicians-friend/72d4f4ce0f994481818d7cd8900fdfe3-small.png", "musicians-friend/72d4f4ce0f994481818d7cd8900fdfe3-medium.png", "musicians-friend/72d4f4ce0f994481818d7cd8900fdfe3-original.png", "anderstons/72d4f4ce0f994481818d7cd8900fdfe3-original.png", "anderstons/72d4f4ce0f994481818d7cd8900fdfe3-tiny.png", "anderstons/72d4f4ce0f994481818d7cd8900fdfe3-small.png", "anderstons/72d4f4ce0f994481818d7cd8900fdfe3-medium.png", "anderstons/72d4f4ce0f994481818d7cd8900fdfe3-large.png"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- AttachmentTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-14ovpwk.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"650e4af679744c53bf8cecfde086ac35\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-13T14:09:26.895-03:00\",\"paths\":{\"original\":\"650e4af679744c53bf8cecfde086ac35-original.png\",\"tiny\":\"650e4af679744c53bf8cecfde086ac35-tiny.png\",\"small\":\"650e4af679744c53bf8cecfde086ac35-small.png\",\"medium\":\"650e4af679744c53bf8cecfde086ac35-medium.png\",\"large\":\"650e4af679744c53bf8cecfde086ac35-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-13 17:09:26.896050"], ["updated_at", "2016-12-13 17:09:26.896050"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-14ovpwk.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1e9t4wd.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1e9t4wd.png => 650e4af679744c53bf8cecfde086ac35-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-14ovpwk.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1o4655p.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1o4655p.png => 650e4af679744c53bf8cecfde086ac35-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-14ovpwk.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-n4ab0v.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-n4ab0v.png => 650e4af679744c53bf8cecfde086ac35-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-14ovpwk.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-e6j6ct.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-e6j6ct.png => 650e4af679744c53bf8cecfde086ac35-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-14ovpwk.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1ulkt11.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1ulkt11.png => 650e4af679744c53bf8cecfde086ac35-large.png Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 98]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 98]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Attachs::Jobs::DeleteJob] [aad2fb6d-575d-481e-b09c-d0ec40a399b0] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["650e4af679744c53bf8cecfde086ac35-tiny.png", "650e4af679744c53bf8cecfde086ac35-large.png", "650e4af679744c53bf8cecfde086ac35-small.png", "650e4af679744c53bf8cecfde086ac35-medium.png", "650e4af679744c53bf8cecfde086ac35-original.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [aad2fb6d-575d-481e-b09c-d0ec40a399b0] Deleting: 650e4af679744c53bf8cecfde086ac35-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [aad2fb6d-575d-481e-b09c-d0ec40a399b0] Deleting: 650e4af679744c53bf8cecfde086ac35-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [aad2fb6d-575d-481e-b09c-d0ec40a399b0] Deleting: 650e4af679744c53bf8cecfde086ac35-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [aad2fb6d-575d-481e-b09c-d0ec40a399b0] Deleting: 650e4af679744c53bf8cecfde086ac35-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [aad2fb6d-575d-481e-b09c-d0ec40a399b0] Deleting: 650e4af679744c53bf8cecfde086ac35-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [aad2fb6d-575d-481e-b09c-d0ec40a399b0] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2534.23ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: aad2fb6d-575d-481e-b09c-d0ec40a399b0) to Inline(default) with arguments: ["650e4af679744c53bf8cecfde086ac35-tiny.png", "650e4af679744c53bf8cecfde086ac35-large.png", "650e4af679744c53bf8cecfde086ac35-small.png", "650e4af679744c53bf8cecfde086ac35-medium.png", "650e4af679744c53bf8cecfde086ac35-original.png"]  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------- AttachmentTest: test_nested_attributes --------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------- UploadTest: test_upload ----------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-ce2z9w.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "uploads" ("file", "record_type", "record_attribute", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "{\"id\":\"7b224ba4bf3e4fb6a69c1b4caddf588a\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-13T14:09:53.994-03:00\",\"paths\":{\"original\":\"7b224ba4bf3e4fb6a69c1b4caddf588a-original.jpg\",\"tiny\":\"7b224ba4bf3e4fb6a69c1b4caddf588a-tiny.jpg\",\"small\":\"7b224ba4bf3e4fb6a69c1b4caddf588a-small.jpg\",\"medium\":\"7b224ba4bf3e4fb6a69c1b4caddf588a-medium.jpg\",\"large\":\"7b224ba4bf3e4fb6a69c1b4caddf588a-large.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["record_type", "Shop"], ["record_attribute", "logo"], ["created_at", "2016-12-13 17:09:53.995356"], ["updated_at", "2016-12-13 17:09:53.995356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-ce2z9w.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1tmhtzr.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1tmhtzr.jpg => 7b224ba4bf3e4fb6a69c1b4caddf588a-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-ce2z9w.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1xga8ms.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1xga8ms.jpg => 7b224ba4bf3e4fb6a69c1b4caddf588a-tiny.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-ce2z9w.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-15u5lii.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-15u5lii.jpg => 7b224ba4bf3e4fb6a69c1b4caddf588a-small.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-ce2z9w.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-13ovdai.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-13ovdai.jpg => 7b224ba4bf3e4fb6a69c1b4caddf588a-medium.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-ce2z9w.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-bog12n.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-bog12n.jpg => 7b224ba4bf3e4fb6a69c1b4caddf588a-large.jpg  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"f6843141714b4d1da1f10279c5778c7d\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-13T14:09:59.450-03:00\",\"paths\":{\"original\":\"f6843141714b4d1da1f10279c5778c7d-original.png\",\"tiny\":\"f6843141714b4d1da1f10279c5778c7d-tiny.png\",\"small\":\"f6843141714b4d1da1f10279c5778c7d-small.png\",\"medium\":\"f6843141714b4d1da1f10279c5778c7d-medium.png\",\"large\":\"f6843141714b4d1da1f10279c5778c7d-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-13 17:09:59.450859"], ["updated_at", "2016-12-13 17:09:59.450859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Copying: 7b224ba4bf3e4fb6a69c1b4caddf588a-original.jpg => f6843141714b4d1da1f10279c5778c7d-original.png Copying: 7b224ba4bf3e4fb6a69c1b4caddf588a-tiny.jpg => f6843141714b4d1da1f10279c5778c7d-tiny.png Copying: 7b224ba4bf3e4fb6a69c1b4caddf588a-small.jpg => f6843141714b4d1da1f10279c5778c7d-small.png Copying: 7b224ba4bf3e4fb6a69c1b4caddf588a-medium.jpg => f6843141714b4d1da1f10279c5778c7d-medium.png Copying: 7b224ba4bf3e4fb6a69c1b4caddf588a-large.jpg => f6843141714b4d1da1f10279c5778c7d-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [e5de3ecc-1fb7-4949-b6d7-152522fd8d19] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["f6843141714b4d1da1f10279c5778c7d-original.png", "f6843141714b4d1da1f10279c5778c7d-tiny.png", "f6843141714b4d1da1f10279c5778c7d-small.png", "f6843141714b4d1da1f10279c5778c7d-medium.png", "f6843141714b4d1da1f10279c5778c7d-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [e5de3ecc-1fb7-4949-b6d7-152522fd8d19] Deleting: f6843141714b4d1da1f10279c5778c7d-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [e5de3ecc-1fb7-4949-b6d7-152522fd8d19] Deleting: f6843141714b4d1da1f10279c5778c7d-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [e5de3ecc-1fb7-4949-b6d7-152522fd8d19] Deleting: f6843141714b4d1da1f10279c5778c7d-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [e5de3ecc-1fb7-4949-b6d7-152522fd8d19] Deleting: f6843141714b4d1da1f10279c5778c7d-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [e5de3ecc-1fb7-4949-b6d7-152522fd8d19] Deleting: f6843141714b4d1da1f10279c5778c7d-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [e5de3ecc-1fb7-4949-b6d7-152522fd8d19] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2495.06ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: e5de3ecc-1fb7-4949-b6d7-152522fd8d19) to Inline(default) with arguments: ["f6843141714b4d1da1f10279c5778c7d-original.png", "f6843141714b4d1da1f10279c5778c7d-tiny.png", "f6843141714b4d1da1f10279c5778c7d-small.png", "f6843141714b4d1da1f10279c5778c7d-medium.png", "f6843141714b4d1da1f10279c5778c7d-large.png"] Upload Load (0.3ms) SELECT "uploads".* FROM "uploads" WHERE "uploads"."id" = $1 LIMIT 1 [["id", 21]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"paths\":{\"original\":\"e8a4f2e1d6fc42a39aeafeb10c433d4b-original.png\",\"tiny\":\"e8a4f2e1d6fc42a39aeafeb10c433d4b-tiny.png\",\"small\":\"e8a4f2e1d6fc42a39aeafeb10c433d4b-small.png\",\"medium\":\"e8a4f2e1d6fc42a39aeafeb10c433d4b-medium.png\",\"large\":\"e8a4f2e1d6fc42a39aeafeb10c433d4b-large.png\"},\"old_paths\":[],\"id\":\"e8a4f2e1d6fc42a39aeafeb10c433d4b\",\"size\":74474,\"ratio\":0.6725,\"width\":400,\"height\":269,\"filename\":\"image.jpg\",\"uploaded_at\":\"2016-12-13T14:10:10.313-03:00\",\"content_type\":\"image/jpeg\"}"], ["created_at", "2016-12-13 17:10:10.314562"], ["updated_at", "2016-12-13 17:10:10.314562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Copying: 7b224ba4bf3e4fb6a69c1b4caddf588a-tiny.jpg => e8a4f2e1d6fc42a39aeafeb10c433d4b-tiny.png Copying: 7b224ba4bf3e4fb6a69c1b4caddf588a-large.jpg => e8a4f2e1d6fc42a39aeafeb10c433d4b-large.png Copying: 7b224ba4bf3e4fb6a69c1b4caddf588a-small.jpg => e8a4f2e1d6fc42a39aeafeb10c433d4b-small.png Copying: 7b224ba4bf3e4fb6a69c1b4caddf588a-medium.jpg => e8a4f2e1d6fc42a39aeafeb10c433d4b-medium.png Copying: 7b224ba4bf3e4fb6a69c1b4caddf588a-original.jpg => e8a4f2e1d6fc42a39aeafeb10c433d4b-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [54b6609a-00e5-4c10-92d6-b325180d43a6] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["e8a4f2e1d6fc42a39aeafeb10c433d4b-original.png", "e8a4f2e1d6fc42a39aeafeb10c433d4b-tiny.png", "e8a4f2e1d6fc42a39aeafeb10c433d4b-small.png", "e8a4f2e1d6fc42a39aeafeb10c433d4b-medium.png", "e8a4f2e1d6fc42a39aeafeb10c433d4b-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [54b6609a-00e5-4c10-92d6-b325180d43a6] Deleting: e8a4f2e1d6fc42a39aeafeb10c433d4b-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [54b6609a-00e5-4c10-92d6-b325180d43a6] Deleting: e8a4f2e1d6fc42a39aeafeb10c433d4b-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [54b6609a-00e5-4c10-92d6-b325180d43a6] Deleting: e8a4f2e1d6fc42a39aeafeb10c433d4b-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [54b6609a-00e5-4c10-92d6-b325180d43a6] Deleting: e8a4f2e1d6fc42a39aeafeb10c433d4b-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [54b6609a-00e5-4c10-92d6-b325180d43a6] Deleting: e8a4f2e1d6fc42a39aeafeb10c433d4b-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [54b6609a-00e5-4c10-92d6-b325180d43a6] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2725.35ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 54b6609a-00e5-4c10-92d6-b325180d43a6) to Inline(default) with arguments: ["e8a4f2e1d6fc42a39aeafeb10c433d4b-original.png", "e8a4f2e1d6fc42a39aeafeb10c433d4b-tiny.png", "e8a4f2e1d6fc42a39aeafeb10c433d4b-small.png", "e8a4f2e1d6fc42a39aeafeb10c433d4b-medium.png", "e8a4f2e1d6fc42a39aeafeb10c433d4b-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [0f6b8c1a-bd2b-48fa-b0fb-04348cdbd69a] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["7b224ba4bf3e4fb6a69c1b4caddf588a-original.jpg", "7b224ba4bf3e4fb6a69c1b4caddf588a-tiny.jpg", "7b224ba4bf3e4fb6a69c1b4caddf588a-small.jpg", "7b224ba4bf3e4fb6a69c1b4caddf588a-medium.jpg", "7b224ba4bf3e4fb6a69c1b4caddf588a-large.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [0f6b8c1a-bd2b-48fa-b0fb-04348cdbd69a] Deleting: 7b224ba4bf3e4fb6a69c1b4caddf588a-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [0f6b8c1a-bd2b-48fa-b0fb-04348cdbd69a] Deleting: 7b224ba4bf3e4fb6a69c1b4caddf588a-tiny.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [0f6b8c1a-bd2b-48fa-b0fb-04348cdbd69a] Deleting: 7b224ba4bf3e4fb6a69c1b4caddf588a-small.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [0f6b8c1a-bd2b-48fa-b0fb-04348cdbd69a] Deleting: 7b224ba4bf3e4fb6a69c1b4caddf588a-medium.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [0f6b8c1a-bd2b-48fa-b0fb-04348cdbd69a] Deleting: 7b224ba4bf3e4fb6a69c1b4caddf588a-large.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [0f6b8c1a-bd2b-48fa-b0fb-04348cdbd69a] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2173.88ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 0f6b8c1a-bd2b-48fa-b0fb-04348cdbd69a) to Inline(default) with arguments: ["7b224ba4bf3e4fb6a69c1b4caddf588a-original.jpg", "7b224ba4bf3e4fb6a69c1b4caddf588a-tiny.jpg", "7b224ba4bf3e4fb6a69c1b4caddf588a-small.jpg", "7b224ba4bf3e4fb6a69c1b4caddf588a-medium.jpg", "7b224ba4bf3e4fb6a69c1b4caddf588a-large.jpg"]  (0.3ms) ROLLBACK  (0.1ms) BEGIN --------------------------- HelperTest: test_fields_for --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-1sci7s0.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"9b40cd44444340d5a660f6ece1059c13\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-13T14:10:24.073-03:00\",\"paths\":{\"original\":\"9b40cd44444340d5a660f6ece1059c13-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-12-13 17:10:24.073869"], ["updated_at", "2016-12-13 17:10:24.073869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-1sci7s0.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-18mv7qy.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-18mv7qy.jpg => 9b40cd44444340d5a660f6ece1059c13-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [a390bf7f-090c-4737-b60f-b12c991ca7b2] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["9b40cd44444340d5a660f6ece1059c13-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [a390bf7f-090c-4737-b60f-b12c991ca7b2] Deleting: 9b40cd44444340d5a660f6ece1059c13-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [a390bf7f-090c-4737-b60f-b12c991ca7b2] Performed Attachs::Jobs::DeleteJob from Inline(default) in 394.87ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: a390bf7f-090c-4737-b60f-b12c991ca7b2) to Inline(default) with arguments: ["9b40cd44444340d5a660f6ece1059c13-original.jpg"]  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------- TaskTest: test_clear -------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-1ymdh3i.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"e089172a5abb4b6d8fe3ca95105f6bfa\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-13T14:10:24.958-03:00\",\"paths\":{\"original\":\"e089172a5abb4b6d8fe3ca95105f6bfa-original.png\",\"tiny\":\"e089172a5abb4b6d8fe3ca95105f6bfa-tiny.png\",\"small\":\"e089172a5abb4b6d8fe3ca95105f6bfa-small.png\",\"medium\":\"e089172a5abb4b6d8fe3ca95105f6bfa-medium.png\",\"large\":\"e089172a5abb4b6d8fe3ca95105f6bfa-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-13 17:10:24.958744"], ["updated_at", "2016-12-13 17:10:24.958744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-1ymdh3i.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1indyad.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1indyad.png => e089172a5abb4b6d8fe3ca95105f6bfa-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-1ymdh3i.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1ucmwzj.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1ucmwzj.png => e089172a5abb4b6d8fe3ca95105f6bfa-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-1ymdh3i.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1em545i.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1em545i.png => e089172a5abb4b6d8fe3ca95105f6bfa-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-1ymdh3i.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-gbeo4z.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-gbeo4z.png => e089172a5abb4b6d8fe3ca95105f6bfa-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-1ymdh3i.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1c988lf.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1c988lf.png => e089172a5abb4b6d8fe3ca95105f6bfa-large.png Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-1m7zngn.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"59b0badbdd0d46d2b527823d6887d94b\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-13T14:10:27.983-03:00\",\"paths\":{\"original\":\"59b0badbdd0d46d2b527823d6887d94b-original.png\",\"tiny\":\"59b0badbdd0d46d2b527823d6887d94b-tiny.png\",\"small\":\"59b0badbdd0d46d2b527823d6887d94b-small.png\",\"medium\":\"59b0badbdd0d46d2b527823d6887d94b-medium.png\",\"large\":\"59b0badbdd0d46d2b527823d6887d94b-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-13 17:10:27.983936"], ["updated_at", "2016-12-13 17:10:27.983936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-1m7zngn.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-qise0g.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-qise0g.png => 59b0badbdd0d46d2b527823d6887d94b-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-1m7zngn.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-sf3t54.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-sf3t54.png => 59b0badbdd0d46d2b527823d6887d94b-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-1m7zngn.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1k4tzva.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1k4tzva.png => 59b0badbdd0d46d2b527823d6887d94b-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-1m7zngn.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1deqt5u.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1deqt5u.png => 59b0badbdd0d46d2b527823d6887d94b-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-1m7zngn.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1lhexgi.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1lhexgi.png => 59b0badbdd0d46d2b527823d6887d94b-large.png SQL (0.3ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 102]]  (1.2ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '59b0badbdd0d46d2b527823d6887d94b-large.png' OR old_paths.value = '59b0badbdd0d46d2b527823d6887d94b-large.png') UNION SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = '59b0badbdd0d46d2b527823d6887d94b-large.png' OR old_paths.value = '59b0badbdd0d46d2b527823d6887d94b-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '59b0badbdd0d46d2b527823d6887d94b-large.png' OR old_paths.value = '59b0badbdd0d46d2b527823d6887d94b-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '59b0badbdd0d46d2b527823d6887d94b-large.png' OR old_paths.value = '59b0badbdd0d46d2b527823d6887d94b-large.png') Deleting 59b0badbdd0d46d2b527823d6887d94b-large.png Deleting: 59b0badbdd0d46d2b527823d6887d94b-large.png  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '59b0badbdd0d46d2b527823d6887d94b-medium.png' OR old_paths.value = '59b0badbdd0d46d2b527823d6887d94b-medium.png') UNION SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = '59b0badbdd0d46d2b527823d6887d94b-medium.png' OR old_paths.value = '59b0badbdd0d46d2b527823d6887d94b-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '59b0badbdd0d46d2b527823d6887d94b-medium.png' OR old_paths.value = '59b0badbdd0d46d2b527823d6887d94b-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '59b0badbdd0d46d2b527823d6887d94b-medium.png' OR old_paths.value = '59b0badbdd0d46d2b527823d6887d94b-medium.png') Deleting 59b0badbdd0d46d2b527823d6887d94b-medium.png Deleting: 59b0badbdd0d46d2b527823d6887d94b-medium.png  (0.7ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '59b0badbdd0d46d2b527823d6887d94b-original.png' OR old_paths.value = '59b0badbdd0d46d2b527823d6887d94b-original.png') UNION SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = '59b0badbdd0d46d2b527823d6887d94b-original.png' OR old_paths.value = '59b0badbdd0d46d2b527823d6887d94b-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '59b0badbdd0d46d2b527823d6887d94b-original.png' OR old_paths.value = '59b0badbdd0d46d2b527823d6887d94b-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '59b0badbdd0d46d2b527823d6887d94b-original.png' OR old_paths.value = '59b0badbdd0d46d2b527823d6887d94b-original.png') Deleting 59b0badbdd0d46d2b527823d6887d94b-original.png Deleting: 59b0badbdd0d46d2b527823d6887d94b-original.png  (0.9ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '59b0badbdd0d46d2b527823d6887d94b-small.png' OR old_paths.value = '59b0badbdd0d46d2b527823d6887d94b-small.png') UNION SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = '59b0badbdd0d46d2b527823d6887d94b-small.png' OR old_paths.value = '59b0badbdd0d46d2b527823d6887d94b-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '59b0badbdd0d46d2b527823d6887d94b-small.png' OR old_paths.value = '59b0badbdd0d46d2b527823d6887d94b-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '59b0badbdd0d46d2b527823d6887d94b-small.png' OR old_paths.value = '59b0badbdd0d46d2b527823d6887d94b-small.png') Deleting 59b0badbdd0d46d2b527823d6887d94b-small.png Deleting: 59b0badbdd0d46d2b527823d6887d94b-small.png  (0.9ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '59b0badbdd0d46d2b527823d6887d94b-tiny.png' OR old_paths.value = '59b0badbdd0d46d2b527823d6887d94b-tiny.png') UNION SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = '59b0badbdd0d46d2b527823d6887d94b-tiny.png' OR old_paths.value = '59b0badbdd0d46d2b527823d6887d94b-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '59b0badbdd0d46d2b527823d6887d94b-tiny.png' OR old_paths.value = '59b0badbdd0d46d2b527823d6887d94b-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '59b0badbdd0d46d2b527823d6887d94b-tiny.png' OR old_paths.value = '59b0badbdd0d46d2b527823d6887d94b-tiny.png') Deleting 59b0badbdd0d46d2b527823d6887d94b-tiny.png Deleting: 59b0badbdd0d46d2b527823d6887d94b-tiny.png  (0.7ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'e089172a5abb4b6d8fe3ca95105f6bfa-large.png' OR old_paths.value = 'e089172a5abb4b6d8fe3ca95105f6bfa-large.png') UNION SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'e089172a5abb4b6d8fe3ca95105f6bfa-large.png' OR old_paths.value = 'e089172a5abb4b6d8fe3ca95105f6bfa-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'e089172a5abb4b6d8fe3ca95105f6bfa-large.png' OR old_paths.value = 'e089172a5abb4b6d8fe3ca95105f6bfa-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'e089172a5abb4b6d8fe3ca95105f6bfa-large.png' OR old_paths.value = 'e089172a5abb4b6d8fe3ca95105f6bfa-large.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'e089172a5abb4b6d8fe3ca95105f6bfa-medium.png' OR old_paths.value = 'e089172a5abb4b6d8fe3ca95105f6bfa-medium.png') UNION SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'e089172a5abb4b6d8fe3ca95105f6bfa-medium.png' OR old_paths.value = 'e089172a5abb4b6d8fe3ca95105f6bfa-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'e089172a5abb4b6d8fe3ca95105f6bfa-medium.png' OR old_paths.value = 'e089172a5abb4b6d8fe3ca95105f6bfa-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'e089172a5abb4b6d8fe3ca95105f6bfa-medium.png' OR old_paths.value = 'e089172a5abb4b6d8fe3ca95105f6bfa-medium.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'e089172a5abb4b6d8fe3ca95105f6bfa-original.png' OR old_paths.value = 'e089172a5abb4b6d8fe3ca95105f6bfa-original.png') UNION SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'e089172a5abb4b6d8fe3ca95105f6bfa-original.png' OR old_paths.value = 'e089172a5abb4b6d8fe3ca95105f6bfa-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'e089172a5abb4b6d8fe3ca95105f6bfa-original.png' OR old_paths.value = 'e089172a5abb4b6d8fe3ca95105f6bfa-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'e089172a5abb4b6d8fe3ca95105f6bfa-original.png' OR old_paths.value = 'e089172a5abb4b6d8fe3ca95105f6bfa-original.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'e089172a5abb4b6d8fe3ca95105f6bfa-small.png' OR old_paths.value = 'e089172a5abb4b6d8fe3ca95105f6bfa-small.png') UNION SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'e089172a5abb4b6d8fe3ca95105f6bfa-small.png' OR old_paths.value = 'e089172a5abb4b6d8fe3ca95105f6bfa-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'e089172a5abb4b6d8fe3ca95105f6bfa-small.png' OR old_paths.value = 'e089172a5abb4b6d8fe3ca95105f6bfa-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'e089172a5abb4b6d8fe3ca95105f6bfa-small.png' OR old_paths.value = 'e089172a5abb4b6d8fe3ca95105f6bfa-small.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'e089172a5abb4b6d8fe3ca95105f6bfa-tiny.png' OR old_paths.value = 'e089172a5abb4b6d8fe3ca95105f6bfa-tiny.png') UNION SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'e089172a5abb4b6d8fe3ca95105f6bfa-tiny.png' OR old_paths.value = 'e089172a5abb4b6d8fe3ca95105f6bfa-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'e089172a5abb4b6d8fe3ca95105f6bfa-tiny.png' OR old_paths.value = 'e089172a5abb4b6d8fe3ca95105f6bfa-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'e089172a5abb4b6d8fe3ca95105f6bfa-tiny.png' OR old_paths.value = 'e089172a5abb4b6d8fe3ca95105f6bfa-tiny.png') [ActiveJob] [Attachs::Jobs::DeleteJob] [444666c6-61a7-483c-948b-1c42bef1ba22] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["e089172a5abb4b6d8fe3ca95105f6bfa-original.png", "e089172a5abb4b6d8fe3ca95105f6bfa-tiny.png", "e089172a5abb4b6d8fe3ca95105f6bfa-small.png", "e089172a5abb4b6d8fe3ca95105f6bfa-medium.png", "e089172a5abb4b6d8fe3ca95105f6bfa-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [444666c6-61a7-483c-948b-1c42bef1ba22] Deleting: e089172a5abb4b6d8fe3ca95105f6bfa-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [444666c6-61a7-483c-948b-1c42bef1ba22] Deleting: e089172a5abb4b6d8fe3ca95105f6bfa-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [444666c6-61a7-483c-948b-1c42bef1ba22] Deleting: e089172a5abb4b6d8fe3ca95105f6bfa-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [444666c6-61a7-483c-948b-1c42bef1ba22] Deleting: e089172a5abb4b6d8fe3ca95105f6bfa-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [444666c6-61a7-483c-948b-1c42bef1ba22] Deleting: e089172a5abb4b6d8fe3ca95105f6bfa-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [444666c6-61a7-483c-948b-1c42bef1ba22] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2545.23ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 444666c6-61a7-483c-948b-1c42bef1ba22) to Inline(default) with arguments: ["e089172a5abb4b6d8fe3ca95105f6bfa-original.png", "e089172a5abb4b6d8fe3ca95105f6bfa-tiny.png", "e089172a5abb4b6d8fe3ca95105f6bfa-small.png", "e089172a5abb4b6d8fe3ca95105f6bfa-medium.png", "e089172a5abb4b6d8fe3ca95105f6bfa-large.png"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- TaskTest: test_fix_missings --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-h68h0o.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"4e7fb05057614036b0ed4f8522867aa2\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-13T14:10:45.034-03:00\",\"paths\":{\"original\":\"4e7fb05057614036b0ed4f8522867aa2-original.png\",\"tiny\":\"4e7fb05057614036b0ed4f8522867aa2-tiny.png\",\"small\":\"4e7fb05057614036b0ed4f8522867aa2-small.png\",\"medium\":\"4e7fb05057614036b0ed4f8522867aa2-medium.png\",\"large\":\"4e7fb05057614036b0ed4f8522867aa2-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-13 17:10:45.037401"], ["updated_at", "2016-12-13 17:10:45.037401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-h68h0o.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-moezo0.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-moezo0.png => 4e7fb05057614036b0ed4f8522867aa2-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-h68h0o.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-7yz55j.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-7yz55j.png => 4e7fb05057614036b0ed4f8522867aa2-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-h68h0o.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-v062l7.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-v062l7.png => 4e7fb05057614036b0ed4f8522867aa2-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-h68h0o.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1fkdqn4.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1fkdqn4.png => 4e7fb05057614036b0ed4f8522867aa2-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-h68h0o.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1o6nt9n.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1o6nt9n.png => 4e7fb05057614036b0ed4f8522867aa2-large.png Deleting: 4e7fb05057614036b0ed4f8522867aa2-tiny.png Deleting: 4e7fb05057614036b0ed4f8522867aa2-small.png Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Fix missings of Shop #103 => logo Generating: tiny => 4e7fb05057614036b0ed4f8522867aa2-tiny.png Generating: small => 4e7fb05057614036b0ed4f8522867aa2-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1j13izu.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-qqbrmy.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-qqbrmy.png => 4e7fb05057614036b0ed4f8522867aa2-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1j13izu.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-2wn2rd.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-2wn2rd.png => 4e7fb05057614036b0ed4f8522867aa2-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1j13izu.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1q2tbjh.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1q2tbjh.png => 4e7fb05057614036b0ed4f8522867aa2-small.png Upload Load (0.3ms) SELECT "uploads".* FROM "uploads" ORDER BY "uploads"."id" ASC LIMIT 1000 RecordTest::Subclass Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Fix missings of Shop #103 => logo Upload Load (0.4ms) SELECT "uploads".* FROM "uploads" ORDER BY "uploads"."id" ASC LIMIT 1000 RecordTest::Subclass Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 [ActiveJob] [Attachs::Jobs::DeleteJob] [374d06a8-f0e2-4484-b8d1-e17a4a716902] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["4e7fb05057614036b0ed4f8522867aa2-original.png", "4e7fb05057614036b0ed4f8522867aa2-tiny.png", "4e7fb05057614036b0ed4f8522867aa2-small.png", "4e7fb05057614036b0ed4f8522867aa2-medium.png", "4e7fb05057614036b0ed4f8522867aa2-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [374d06a8-f0e2-4484-b8d1-e17a4a716902] Deleting: 4e7fb05057614036b0ed4f8522867aa2-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [374d06a8-f0e2-4484-b8d1-e17a4a716902] Deleting: 4e7fb05057614036b0ed4f8522867aa2-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [374d06a8-f0e2-4484-b8d1-e17a4a716902] Deleting: 4e7fb05057614036b0ed4f8522867aa2-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [374d06a8-f0e2-4484-b8d1-e17a4a716902] Deleting: 4e7fb05057614036b0ed4f8522867aa2-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [374d06a8-f0e2-4484-b8d1-e17a4a716902] Deleting: 4e7fb05057614036b0ed4f8522867aa2-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [374d06a8-f0e2-4484-b8d1-e17a4a716902] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2604.55ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 374d06a8-f0e2-4484-b8d1-e17a4a716902) to Inline(default) with arguments: ["4e7fb05057614036b0ed4f8522867aa2-original.png", "4e7fb05057614036b0ed4f8522867aa2-tiny.png", "4e7fb05057614036b0ed4f8522867aa2-small.png", "4e7fb05057614036b0ed4f8522867aa2-medium.png", "4e7fb05057614036b0ed4f8522867aa2-large.png"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------- TaskTest: test_exist -------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-aa70lv.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "logo", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "first"], ["logo", "{\"id\":\"8e8709a0caee4a6fa58fef5c2f78e7a4\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-13T14:11:01.371-03:00\",\"paths\":{\"original\":\"first/8e8709a0caee4a6fa58fef5c2f78e7a4-original.png\",\"tiny\":\"first/8e8709a0caee4a6fa58fef5c2f78e7a4-tiny.png\",\"small\":\"first/8e8709a0caee4a6fa58fef5c2f78e7a4-small.png\",\"medium\":\"first/8e8709a0caee4a6fa58fef5c2f78e7a4-medium.png\",\"large\":\"first/8e8709a0caee4a6fa58fef5c2f78e7a4-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-13 17:11:01.372523"], ["updated_at", "2016-12-13 17:11:01.372523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-aa70lv.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-19alnsr.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-19alnsr.png => first/8e8709a0caee4a6fa58fef5c2f78e7a4-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-aa70lv.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-6ce8kx.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-6ce8kx.png => first/8e8709a0caee4a6fa58fef5c2f78e7a4-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-aa70lv.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-123giz2.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-123giz2.png => first/8e8709a0caee4a6fa58fef5c2f78e7a4-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-aa70lv.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1tlhdo7.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1tlhdo7.png => first/8e8709a0caee4a6fa58fef5c2f78e7a4-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-aa70lv.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-irmscr.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-irmscr.png => first/8e8709a0caee4a6fa58fef5c2f78e7a4-large.png  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "shops" SET "name" = $1, "updated_at" = $2 WHERE "shops"."id" = $3 [["name", "second"], ["updated_at", "2016-12-13 17:11:05.006835"], ["id", 104]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 104]] [ActiveJob] [Attachs::Jobs::UpdateJob] [a82039cd-8562-439a-851b-ee23fa78cd12] Performing Attachs::Jobs::UpdateJob from Inline(default) with arguments: gid://dummy/Shop/104, "logo" [ActiveJob] [Attachs::Jobs::UpdateJob] [a82039cd-8562-439a-851b-ee23fa78cd12] Copying: first/8e8709a0caee4a6fa58fef5c2f78e7a4-original.png => second/8e8709a0caee4a6fa58fef5c2f78e7a4-original.png [ActiveJob] [Attachs::Jobs::UpdateJob] [a82039cd-8562-439a-851b-ee23fa78cd12] Copying: first/8e8709a0caee4a6fa58fef5c2f78e7a4-tiny.png => second/8e8709a0caee4a6fa58fef5c2f78e7a4-tiny.png [ActiveJob] [Attachs::Jobs::UpdateJob] [a82039cd-8562-439a-851b-ee23fa78cd12] Copying: first/8e8709a0caee4a6fa58fef5c2f78e7a4-small.png => second/8e8709a0caee4a6fa58fef5c2f78e7a4-small.png [ActiveJob] [Attachs::Jobs::UpdateJob] [a82039cd-8562-439a-851b-ee23fa78cd12] Copying: first/8e8709a0caee4a6fa58fef5c2f78e7a4-medium.png => second/8e8709a0caee4a6fa58fef5c2f78e7a4-medium.png [ActiveJob] [Attachs::Jobs::UpdateJob] [a82039cd-8562-439a-851b-ee23fa78cd12] Copying: first/8e8709a0caee4a6fa58fef5c2f78e7a4-large.png => second/8e8709a0caee4a6fa58fef5c2f78e7a4-large.png [ActiveJob] [Attachs::Jobs::UpdateJob] [a82039cd-8562-439a-851b-ee23fa78cd12] SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"tiny":"second/8e8709a0caee4a6fa58fef5c2f78e7a4-tiny.png","large":"second/8e8709a0caee4a6fa58fef5c2f78e7a4-large.png","small":"second/8e8709a0caee4a6fa58fef5c2f78e7a4-small.png","medium":"second/8e8709a0caee4a6fa58fef5c2f78e7a4-medium.png","original":"second/8e8709a0caee4a6fa58fef5c2f78e7a4-original.png"},"old_paths":["first/8e8709a0caee4a6fa58fef5c2f78e7a4-original.png","first/8e8709a0caee4a6fa58fef5c2f78e7a4-tiny.png","first/8e8709a0caee4a6fa58fef5c2f78e7a4-small.png","first/8e8709a0caee4a6fa58fef5c2f78e7a4-medium.png","first/8e8709a0caee4a6fa58fef5c2f78e7a4-large.png"],"id":"8e8709a0caee4a6fa58fef5c2f78e7a4","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-13T14:11:01.371-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 104]] [ActiveJob] [Attachs::Jobs::UpdateJob] [a82039cd-8562-439a-851b-ee23fa78cd12] Performed Attachs::Jobs::UpdateJob from Inline(default) in 2337.47ms [ActiveJob] Enqueued Attachs::Jobs::UpdateJob (Job ID: a82039cd-8562-439a-851b-ee23fa78cd12) to Inline(default) with arguments: gid://dummy/Shop/104, "logo" Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-1huzzfc.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-1lf4yge.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"5c7d70e9c9ec4480ac3d4a3fa23ae6ed\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-13T14:11:07.369-03:00\",\"paths\":{\"original\":\"5c7d70e9c9ec4480ac3d4a3fa23ae6ed-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725},{\"id\":\"cbc984a03b3144e5b25ef6ec916626fe\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-13T14:11:07.370-03:00\",\"paths\":{\"original\":\"cbc984a03b3144e5b25ef6ec916626fe-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-12-13 17:11:07.371496"], ["updated_at", "2016-12-13 17:11:07.371496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-1huzzfc.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1te08w4.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1te08w4.jpg => 5c7d70e9c9ec4480ac3d4a3fa23ae6ed-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-1lf4yge.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-ueqs6u.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-ueqs6u.jpg => cbc984a03b3144e5b25ef6ec916626fe-original.jpg  (0.7ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/8e8709a0caee4a6fa58fef5c2f78e7a4-original.png' OR old_paths.value = 'first/8e8709a0caee4a6fa58fef5c2f78e7a4-original.png') UNION SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/8e8709a0caee4a6fa58fef5c2f78e7a4-original.png' OR old_paths.value = 'first/8e8709a0caee4a6fa58fef5c2f78e7a4-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/8e8709a0caee4a6fa58fef5c2f78e7a4-original.png' OR old_paths.value = 'first/8e8709a0caee4a6fa58fef5c2f78e7a4-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/8e8709a0caee4a6fa58fef5c2f78e7a4-original.png' OR old_paths.value = 'first/8e8709a0caee4a6fa58fef5c2f78e7a4-original.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/8e8709a0caee4a6fa58fef5c2f78e7a4-original.png' OR old_paths.value = 'first/8e8709a0caee4a6fa58fef5c2f78e7a4-original.png') UNION SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/8e8709a0caee4a6fa58fef5c2f78e7a4-original.png' OR old_paths.value = 'first/8e8709a0caee4a6fa58fef5c2f78e7a4-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/8e8709a0caee4a6fa58fef5c2f78e7a4-original.png' OR old_paths.value = 'first/8e8709a0caee4a6fa58fef5c2f78e7a4-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/8e8709a0caee4a6fa58fef5c2f78e7a4-original.png' OR old_paths.value = 'first/8e8709a0caee4a6fa58fef5c2f78e7a4-original.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '5c7d70e9c9ec4480ac3d4a3fa23ae6ed-original.jpg' OR old_paths.value = '5c7d70e9c9ec4480ac3d4a3fa23ae6ed-original.jpg') UNION SELECT 1 AS one FROM uploads LEFT JOIN JSONB_EACH_TEXT(uploads.file->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(uploads.file->'old_paths') old_paths ON TRUE WHERE (paths.value = '5c7d70e9c9ec4480ac3d4a3fa23ae6ed-original.jpg' OR old_paths.value = '5c7d70e9c9ec4480ac3d4a3fa23ae6ed-original.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '5c7d70e9c9ec4480ac3d4a3fa23ae6ed-original.jpg' OR old_paths.value = '5c7d70e9c9ec4480ac3d4a3fa23ae6ed-original.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '5c7d70e9c9ec4480ac3d4a3fa23ae6ed-original.jpg' OR old_paths.value = '5c7d70e9c9ec4480ac3d4a3fa23ae6ed-original.jpg') [ActiveJob] [Attachs::Jobs::DeleteJob] [ff20e782-a6fe-4bc0-8a10-7a10d0588867] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["first/8e8709a0caee4a6fa58fef5c2f78e7a4-original.png", "first/8e8709a0caee4a6fa58fef5c2f78e7a4-tiny.png", "first/8e8709a0caee4a6fa58fef5c2f78e7a4-small.png", "first/8e8709a0caee4a6fa58fef5c2f78e7a4-medium.png", "first/8e8709a0caee4a6fa58fef5c2f78e7a4-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [ff20e782-a6fe-4bc0-8a10-7a10d0588867] Deleting: first/8e8709a0caee4a6fa58fef5c2f78e7a4-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [ff20e782-a6fe-4bc0-8a10-7a10d0588867] Deleting: first/8e8709a0caee4a6fa58fef5c2f78e7a4-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [ff20e782-a6fe-4bc0-8a10-7a10d0588867] Deleting: first/8e8709a0caee4a6fa58fef5c2f78e7a4-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [ff20e782-a6fe-4bc0-8a10-7a10d0588867] Deleting: first/8e8709a0caee4a6fa58fef5c2f78e7a4-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [ff20e782-a6fe-4bc0-8a10-7a10d0588867] Deleting: first/8e8709a0caee4a6fa58fef5c2f78e7a4-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [ff20e782-a6fe-4bc0-8a10-7a10d0588867] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2714.34ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: ff20e782-a6fe-4bc0-8a10-7a10d0588867) to Inline(default) with arguments: ["first/8e8709a0caee4a6fa58fef5c2f78e7a4-original.png", "first/8e8709a0caee4a6fa58fef5c2f78e7a4-tiny.png", "first/8e8709a0caee4a6fa58fef5c2f78e7a4-small.png", "first/8e8709a0caee4a6fa58fef5c2f78e7a4-medium.png", "first/8e8709a0caee4a6fa58fef5c2f78e7a4-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [4ab1b9d6-ed21-4f2f-8c4d-6125cc3c139c] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["5c7d70e9c9ec4480ac3d4a3fa23ae6ed-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [4ab1b9d6-ed21-4f2f-8c4d-6125cc3c139c] Deleting: 5c7d70e9c9ec4480ac3d4a3fa23ae6ed-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [4ab1b9d6-ed21-4f2f-8c4d-6125cc3c139c] Performed Attachs::Jobs::DeleteJob from Inline(default) in 363.6ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 4ab1b9d6-ed21-4f2f-8c4d-6125cc3c139c) to Inline(default) with arguments: ["5c7d70e9c9ec4480ac3d4a3fa23ae6ed-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [07b3a517-4faf-4925-9e36-03ffcde1429c] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["cbc984a03b3144e5b25ef6ec916626fe-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [07b3a517-4faf-4925-9e36-03ffcde1429c] Deleting: cbc984a03b3144e5b25ef6ec916626fe-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [07b3a517-4faf-4925-9e36-03ffcde1429c] Performed Attachs::Jobs::DeleteJob from Inline(default) in 387.03ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 07b3a517-4faf-4925-9e36-03ffcde1429c) to Inline(default) with arguments: ["cbc984a03b3144e5b25ef6ec916626fe-original.jpg"]  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------ TaskTest: test_reprocess ------------------------ Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-1mvkywj.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"c53a5be968374752a0ecde9882f25a9a\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-13T14:11:11.869-03:00\",\"paths\":{\"original\":\"c53a5be968374752a0ecde9882f25a9a-original.png\",\"tiny\":\"c53a5be968374752a0ecde9882f25a9a-tiny.png\",\"small\":\"c53a5be968374752a0ecde9882f25a9a-small.png\",\"medium\":\"c53a5be968374752a0ecde9882f25a9a-medium.png\",\"large\":\"c53a5be968374752a0ecde9882f25a9a-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-13 17:11:11.870225"], ["updated_at", "2016-12-13 17:11:11.870225"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-1mvkywj.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-nxkmfa.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-nxkmfa.png => c53a5be968374752a0ecde9882f25a9a-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-1mvkywj.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1y8wuve.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1y8wuve.png => c53a5be968374752a0ecde9882f25a9a-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-1mvkywj.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-18krx4h.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-18krx4h.png => c53a5be968374752a0ecde9882f25a9a-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-1mvkywj.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1gm8top.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1gm8top.png => c53a5be968374752a0ecde9882f25a9a-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-1mvkywj.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1t17ui5.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1t17ui5.png => c53a5be968374752a0ecde9882f25a9a-large.png Deleting: c53a5be968374752a0ecde9882f25a9a-tiny.png Deleting: c53a5be968374752a0ecde9882f25a9a-small.png Deleting: c53a5be968374752a0ecde9882f25a9a-medium.png Deleting: c53a5be968374752a0ecde9882f25a9a-large.png Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Reprocessing Shop #105 => logo Regenerating: tiny => c53a5be968374752a0ecde9882f25a9a-tiny.png Regenerating: large => c53a5be968374752a0ecde9882f25a9a-large.png Regenerating: small => c53a5be968374752a0ecde9882f25a9a-small.png Regenerating: medium => c53a5be968374752a0ecde9882f25a9a-medium.png Deleting: c53a5be968374752a0ecde9882f25a9a-original.png Regenerating: original => c53a5be968374752a0ecde9882f25a9a-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1un8nji.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-10wf6d6.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-10wf6d6.png => c53a5be968374752a0ecde9882f25a9a-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1un8nji.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1gum24s.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1gum24s.png => c53a5be968374752a0ecde9882f25a9a-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1un8nji.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-uctu0e.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-uctu0e.png => c53a5be968374752a0ecde9882f25a9a-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1un8nji.png' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-hsazjv.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-hsazjv.png => c53a5be968374752a0ecde9882f25a9a-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1un8nji.png' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-148ledv.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-148ledv.png => c53a5be968374752a0ecde9882f25a9a-large.png SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"original":"c53a5be968374752a0ecde9882f25a9a-original.png","tiny":"c53a5be968374752a0ecde9882f25a9a-tiny.png","small":"c53a5be968374752a0ecde9882f25a9a-small.png","medium":"c53a5be968374752a0ecde9882f25a9a-medium.png","large":"c53a5be968374752a0ecde9882f25a9a-large.png"},"old_paths":[],"id":"c53a5be968374752a0ecde9882f25a9a","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-13T14:11:11.869-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 105]] Upload Load (0.2ms) SELECT "uploads".* FROM "uploads" ORDER BY "uploads"."id" ASC LIMIT 1000 RecordTest::Subclass Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Reprocessing Shop #105 => logo Deleting: c53a5be968374752a0ecde9882f25a9a-tiny.png Regenerating: tiny => c53a5be968374752a0ecde9882f25a9a-tiny.png Deleting: c53a5be968374752a0ecde9882f25a9a-large.png Regenerating: large => c53a5be968374752a0ecde9882f25a9a-large.png Deleting: c53a5be968374752a0ecde9882f25a9a-small.png Regenerating: small => c53a5be968374752a0ecde9882f25a9a-small.png Deleting: c53a5be968374752a0ecde9882f25a9a-medium.png Regenerating: medium => c53a5be968374752a0ecde9882f25a9a-medium.png Deleting: c53a5be968374752a0ecde9882f25a9a-original.png Regenerating: original => c53a5be968374752a0ecde9882f25a9a-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1kxzaai.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-babhdf.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-babhdf.png => c53a5be968374752a0ecde9882f25a9a-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1kxzaai.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1poukwv.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1poukwv.png => c53a5be968374752a0ecde9882f25a9a-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1kxzaai.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1yuxgdr.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1yuxgdr.png => c53a5be968374752a0ecde9882f25a9a-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1kxzaai.png' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-14h1jx2.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-14h1jx2.png => c53a5be968374752a0ecde9882f25a9a-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1kxzaai.png' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1p6gm3p.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1p6gm3p.png => c53a5be968374752a0ecde9882f25a9a-large.png SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"original":"c53a5be968374752a0ecde9882f25a9a-original.png","tiny":"c53a5be968374752a0ecde9882f25a9a-tiny.png","small":"c53a5be968374752a0ecde9882f25a9a-small.png","medium":"c53a5be968374752a0ecde9882f25a9a-medium.png","large":"c53a5be968374752a0ecde9882f25a9a-large.png"},"old_paths":[],"id":"c53a5be968374752a0ecde9882f25a9a","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-13T14:11:11.869-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 105]] Upload Load (0.2ms) SELECT "uploads".* FROM "uploads" ORDER BY "uploads"."id" ASC LIMIT 1000 RecordTest::Subclass Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Reprocessing Shop #105 => logo Deleting: c53a5be968374752a0ecde9882f25a9a-tiny.png Regenerating: tiny => c53a5be968374752a0ecde9882f25a9a-tiny.png Deleting: c53a5be968374752a0ecde9882f25a9a-large.png Regenerating: large => c53a5be968374752a0ecde9882f25a9a-large.png Deleting: c53a5be968374752a0ecde9882f25a9a-small.png Regenerating: small => c53a5be968374752a0ecde9882f25a9a-small.png Deleting: c53a5be968374752a0ecde9882f25a9a-medium.png Regenerating: medium => c53a5be968374752a0ecde9882f25a9a-medium.png Deleting: c53a5be968374752a0ecde9882f25a9a-original.png Regenerating: original => c53a5be968374752a0ecde9882f25a9a-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-24h6ig.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1cpvicm.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1cpvicm.png => c53a5be968374752a0ecde9882f25a9a-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-24h6ig.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1ofufqp.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1ofufqp.png => c53a5be968374752a0ecde9882f25a9a-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-24h6ig.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-15aal67.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-15aal67.png => c53a5be968374752a0ecde9882f25a9a-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-24h6ig.png' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-11qnfaf.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-11qnfaf.png => c53a5be968374752a0ecde9882f25a9a-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-24h6ig.png' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-kt5nxh.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-kt5nxh.png => c53a5be968374752a0ecde9882f25a9a-large.png SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"original":"c53a5be968374752a0ecde9882f25a9a-original.png","tiny":"c53a5be968374752a0ecde9882f25a9a-tiny.png","small":"c53a5be968374752a0ecde9882f25a9a-small.png","medium":"c53a5be968374752a0ecde9882f25a9a-medium.png","large":"c53a5be968374752a0ecde9882f25a9a-large.png"},"old_paths":[],"id":"c53a5be968374752a0ecde9882f25a9a","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-13T14:11:11.869-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 105]] Upload Load (0.3ms) SELECT "uploads".* FROM "uploads" ORDER BY "uploads"."id" ASC LIMIT 1000 RecordTest::Subclass Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Reprocessing Shop #105 => logo Deleting: c53a5be968374752a0ecde9882f25a9a-tiny.png Regenerating: tiny => c53a5be968374752a0ecde9882f25a9a-tiny.png Deleting: c53a5be968374752a0ecde9882f25a9a-large.png Regenerating: large => c53a5be968374752a0ecde9882f25a9a-large.png Deleting: c53a5be968374752a0ecde9882f25a9a-small.png Regenerating: small => c53a5be968374752a0ecde9882f25a9a-small.png Deleting: c53a5be968374752a0ecde9882f25a9a-medium.png Regenerating: medium => c53a5be968374752a0ecde9882f25a9a-medium.png Deleting: c53a5be968374752a0ecde9882f25a9a-original.png Regenerating: original => c53a5be968374752a0ecde9882f25a9a-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-otvfj6.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1rij84q.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1rij84q.png => c53a5be968374752a0ecde9882f25a9a-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-otvfj6.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-jcbuj8.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-jcbuj8.png => c53a5be968374752a0ecde9882f25a9a-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-otvfj6.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1wjisgl.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-1wjisgl.png => c53a5be968374752a0ecde9882f25a9a-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-otvfj6.png' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-esqq83.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-esqq83.png => c53a5be968374752a0ecde9882f25a9a-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-otvfj6.png' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-ihnmwb.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161213-58531-ihnmwb.png => c53a5be968374752a0ecde9882f25a9a-large.png SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"original":"c53a5be968374752a0ecde9882f25a9a-original.png","tiny":"c53a5be968374752a0ecde9882f25a9a-tiny.png","small":"c53a5be968374752a0ecde9882f25a9a-small.png","medium":"c53a5be968374752a0ecde9882f25a9a-medium.png","large":"c53a5be968374752a0ecde9882f25a9a-large.png"},"old_paths":[],"id":"c53a5be968374752a0ecde9882f25a9a","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-13T14:11:11.869-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 105]] Upload Load (0.2ms) SELECT "uploads".* FROM "uploads" ORDER BY "uploads"."id" ASC LIMIT 1000 RecordTest::Subclass Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 105]] [ActiveJob] [Attachs::Jobs::DeleteJob] [4839af3d-53ad-48f5-a52a-76804b8bf378] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["c53a5be968374752a0ecde9882f25a9a-tiny.png", "c53a5be968374752a0ecde9882f25a9a-large.png", "c53a5be968374752a0ecde9882f25a9a-small.png", "c53a5be968374752a0ecde9882f25a9a-medium.png", "c53a5be968374752a0ecde9882f25a9a-original.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [4839af3d-53ad-48f5-a52a-76804b8bf378] Deleting: c53a5be968374752a0ecde9882f25a9a-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [4839af3d-53ad-48f5-a52a-76804b8bf378] Deleting: c53a5be968374752a0ecde9882f25a9a-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [4839af3d-53ad-48f5-a52a-76804b8bf378] Deleting: c53a5be968374752a0ecde9882f25a9a-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [4839af3d-53ad-48f5-a52a-76804b8bf378] Deleting: c53a5be968374752a0ecde9882f25a9a-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [4839af3d-53ad-48f5-a52a-76804b8bf378] Deleting: c53a5be968374752a0ecde9882f25a9a-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [4839af3d-53ad-48f5-a52a-76804b8bf378] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2569.75ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 4839af3d-53ad-48f5-a52a-76804b8bf378) to Inline(default) with arguments: ["c53a5be968374752a0ecde9882f25a9a-tiny.png", "c53a5be968374752a0ecde9882f25a9a-large.png", "c53a5be968374752a0ecde9882f25a9a-small.png", "c53a5be968374752a0ecde9882f25a9a-medium.png", "c53a5be968374752a0ecde9882f25a9a-original.png"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- ValidatorTest: test_size_in --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161213-58531-dyk124.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-10kkw22.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161213-58531-1gokawp.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-9yhnbk.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-dpp0mh.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- ValidatorTest: test_size_greater_than ------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161213-58531-1ai40d0.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-194t1ud.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-1s0eake.jpg'  (1.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- ValidatorTest: test_size_less_than ---------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161213-58531-1b5wrgn.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-780edi.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-13p9dnu.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- ValidatorTest: test_size_within ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161213-58531-1r1xon.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-1w1pvyh.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161213-58531-ammmlu.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-1y2zhlg.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-1a68bg5.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- ValidatorTest: test_content_type_with ------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-1fc9sin.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-oavqj2.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-1tsd0tt.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- ValidatorTest: test_content_type_within --------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-1jtqz17.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-8hulhr.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-jbf6cy.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- ValidatorTest: test_content_type_in ----------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-1suzyc6.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-16oxp17.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161213-58531-132qk31.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN --------------------------- ValidatorTest: test_methods ---------------------------  (0.1ms) ROLLBACK  (6.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateShops (20161024234003)  (0.2ms) BEGIN  (2.7ms) CREATE TABLE "shops" ("id" serial primary key, "name" character varying, "files" jsonb DEFAULT '[]', "logo" jsonb DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161024234003"]]  (0.5ms) COMMIT Migrating to CreateProducts (20161024234029)  (0.3ms) BEGIN  (2.3ms) CREATE TABLE "products" ("id" serial primary key, "shop_id" integer, "name" character varying, "pictures" jsonb DEFAULT '[]', "brief" jsonb DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161024234029"]]  (0.5ms) COMMIT Migrating to CreateUploads (20161031135453)  (0.2ms) BEGIN  (2.2ms) CREATE TABLE "uploads" ("id" serial primary key, "file" jsonb DEFAULT '{}', "record_type" character varying, "record_attribute" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161031135453"]]  (0.4ms) COMMIT ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.8ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'products' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (1.9ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'shops' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  (1.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'uploads' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  ActiveRecord::SchemaMigration Load (27.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN --------------------------- ValidatorTest: test_size_in --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161215-33907-15qkazk.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-33907-hmv9ud.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161215-33907-1eq6gkw.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-33907-q2umrr.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-33907-iet47y.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- ValidatorTest: test_content_type_with ------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-33907-12akrdc.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-33907-doag1p.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-33907-1slbjnf.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- ValidatorTest: test_content_type_in ----------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-33907-1gw5bfa.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-33907-1juhto9.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-33907-fws6co.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- ValidatorTest: test_size_less_than ---------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161215-33907-1w3akc9.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-33907-14q3llz.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-33907-ojeglo.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- ValidatorTest: test_size_within ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161215-33907-1u8ynrb.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-33907-1xu6694.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161215-33907-1swo57p.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-33907-1fnp860.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-33907-1ytdham.jpg'  (0.3ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------- ValidatorTest: test_size_greater_than ------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161215-33907-k24svl.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-33907-1tsyppg.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-33907-1i9qcfk.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- ValidatorTest: test_content_type_within --------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-33907-c3nj7u.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-33907-1x8umze.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-33907-1atalno.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidatorTest: test_presence ----------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------- ValidatorTest: test_methods ---------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN --------------------------------------- ValidatorTest: test_content_type_within --------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34000-1qmyal5.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34000-1f1busk.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34000-jml8g.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidatorTest: test_presence ----------------------------  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- ValidatorTest: test_size_less_than ---------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161215-34000-1b65ngg.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34000-ecm3ie.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34000-x016bh.jpg'  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------- ValidatorTest: test_size_greater_than ------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161215-34000-fei4y5.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34000-z8z7op.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34000-bhaghj.jpg'  (0.2ms) ROLLBACK  (0.2ms) BEGIN --------------------------- ValidatorTest: test_methods ---------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- ValidatorTest: test_content_type_in ----------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34000-jyt15i.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34000-9txu9d.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34000-1obntz6.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- ValidatorTest: test_size_in --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161215-34000-jkpjtp.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34000-r313as.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161215-34000-1cfn5dy.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34000-gfb4l9.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34000-1keu1yk.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- ValidatorTest: test_content_type_with ------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34000-10rdybh.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34000-1uz65b5.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34000-1wxsxqc.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- ValidatorTest: test_size_within ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161215-34000-9l9sqf.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34000-qcifzi.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161215-34000-kewtfz.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34000-1dcii9r.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34000-mr77ic.jpg'  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN --------------------------- ValidatorTest: test_size_in --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161215-34444-r2eurt.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34444-x2mbzb.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161215-34444-uq8r7z.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34444-1qjb77f.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34444-ufba6q.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- ValidatorTest: test_content_type_in ----------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34444-1yoptn.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34444-1xxfj89.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34444-103e9ml.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- ValidatorTest: test_content_type_within --------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34444-1pow3xt.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34444-v1lqi8.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34444-xlmsbh.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- ValidatorTest: test_methods ---------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- ValidatorTest: test_size_greater_than ------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161215-34444-qb72ln.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34444-1nsohoo.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34444-1xff8s5.jpg'  (0.2ms) ROLLBACK  (0.2ms) BEGIN ---------------------------- ValidatorTest: test_presence ----------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- ValidatorTest: test_content_type_with ------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34444-1st9dni.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34444-xec8kq.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34444-1grlxcz.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- ValidatorTest: test_size_within ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161215-34444-1l4kkil.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34444-1c5sy9h.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161215-34444-116ltml.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34444-ba1fqm.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34444-eg2tqs.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- ValidatorTest: test_size_less_than ---------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161215-34444-1psyohq.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34444-1yqptw8.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34444-1o1vexm.jpg'  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------------- ValidatorTest: test_presence ----------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- ValidatorTest: test_content_type_with ------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34498-17h4y8n.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34498-1018q5i.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34498-1jw0c8f.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- ValidatorTest: test_size_greater_than ------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161215-34498-8rseg4.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34498-1l10bul.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34498-k2u2n5.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- ValidatorTest: test_size_in --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161215-34498-17ek16a.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34498-1kya5ge.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161215-34498-1aueqbg.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34498-3p2yq0.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34498-1co8gwm.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- ValidatorTest: test_size_less_than ---------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161215-34498-15udjdy.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34498-uqtq9.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34498-171ky2w.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- ValidatorTest: test_methods ---------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- ValidatorTest: test_content_type_in ----------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34498-gr6v2a.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34498-hehf8o.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34498-ro8ery.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- ValidatorTest: test_content_type_within --------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34498-1sdd7os.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34498-1emukq4.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34498-1azius9.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- ValidatorTest: test_size_within ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161215-34498-hmnbbu.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34498-dto1n.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161215-34498-1inxike.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34498-1plj82k.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34498-jfbfzv.jpg'  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------------- ValidatorTest: test_presence ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34573-1lya0vv.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN --------------------------- ValidatorTest: test_methods ---------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- ValidatorTest: test_content_type_with ------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34573-1s3wknr.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34573-12cls8u.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34573-1d899o9.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- ValidatorTest: test_content_type_within --------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34573-16dj6d9.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34573-1vj9rs9.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34573-vp7jvm.jpg'  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------- ValidatorTest: test_content_type_in ----------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34573-w0rnvt.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34573-1i79bh6.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34573-t4rcjx.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- ValidatorTest: test_size_within ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161215-34573-7qw18b.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34573-179gf1a.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161215-34573-19i87gz.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34573-1lg1rq.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34573-181f3gc.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- ValidatorTest: test_size_less_than ---------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161215-34573-1kd3n2m.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34573-1uothoq.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34573-1i1fzkr.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- ValidatorTest: test_size_greater_than ------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161215-34573-e7a0at.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34573-1ykb245.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34573-wwnnh0.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- ValidatorTest: test_size_in --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161215-34573-xhtcce.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34573-1ymro8y.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161215-34573-1aa12a6.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34573-vevcxm.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34573-e19kzj.jpg'  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN --------------------------- ValidatorTest: test_size_in --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161215-34629-4a7sbp.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34629-1vm6uw0.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161215-34629-1n8llkn.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34629-3g33a8.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34629-g1j7p3.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- ValidatorTest: test_content_type_within --------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34629-1eocryu.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34629-e2pkxn.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34629-1gwf7if.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- ValidatorTest: test_size_greater_than ------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161215-34629-1mt26e5.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34629-dz20l4.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34629-1enl8c.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidatorTest: test_presence ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34629-1b4n6e1.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- ValidatorTest: test_size_within ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161215-34629-1di72hu.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34629-1xqwi0i.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161215-34629-2276lk.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34629-19x767h.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34629-in0c6v.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- ValidatorTest: test_content_type_in ----------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34629-50996f.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34629-icol8o.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34629-1i3ad88.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- ValidatorTest: test_content_type_with ------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34629-bbaalu.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34629-1554ot9.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34629-gequh1.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- ValidatorTest: test_size_less_than ---------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161215-34629-5btw8u.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34629-1eheejn.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-34629-2cxy1h.jpg'  (0.2ms) ROLLBACK  (0.2ms) BEGIN --------------------------- ValidatorTest: test_methods ---------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (6.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ----------------------------------- ValidatorTest: test_content_type_in -----------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidatorTest: test_presence ----------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- ValidatorTest: test_methods ---------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- ValidatorTest: test_size_greater_than ------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161215-37333-1884d57.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-37333-10xzs26.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-37333-1p2fq7j.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- ValidatorTest: test_size_less_than ---------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161215-37333-rw2wn3.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-37333-1tnajhc.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-37333-1xdbqk6.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- ValidatorTest: test_size_in --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161215-37333-8x2juf.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-37333-1ryowaz.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161215-37333-14ltypl.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-37333-1wnx8kb.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-37333-xbxaz6.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- ValidatorTest: test_content_type_within ---------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- ValidatorTest: test_content_type_with -------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- ValidatorTest: test_size_within ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161215-37333-6vgggl.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-37333-1j0soat.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161215-37333-72rgr2.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-37333-3x9l8v.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-37333-1w8830b.jpg'  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN --------------------------- ValidatorTest: test_size_in --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161215-37423-1c3ml7r.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-37423-1p8ad8c.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161215-37423-1hz7tbc.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-37423-nz5fv3.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-37423-jzkgsu.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidatorTest: test_presence ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-37423-1jpsk2z.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- ValidatorTest: test_size_greater_than ------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161215-37423-3uoo1s.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-37423-nucyvr.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-37423-1msmguf.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- ValidatorTest: test_size_less_than ---------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161215-37423-1ebzxyt.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-37423-ex0exz.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-37423-oycut1.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- ValidatorTest: test_content_type_within --------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-37423-ih0704.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-37423-1x4znua.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-37423-yfzvvn.jpg'  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------- ValidatorTest: test_content_type_with ------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-37423-1yi2ahe.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-37423-1myfxc6.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-37423-7jcurp.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- ValidatorTest: test_size_within ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161215-37423-w68sla.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-37423-uceeoz.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161215-37423-1qhhpjj.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-37423-8b6swh.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-37423-14r29ke.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- ValidatorTest: test_methods ---------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- ValidatorTest: test_content_type_in ----------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-37423-1bn7eml.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-37423-1qm99w8.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161215-37423-1uwlzs.jpg'  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (6.9ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------------------- RecordTest: test_clear_attachments ---------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-162mrp2.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-1bct2n1.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (24.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"b66650badb314d7dba7ea0d90d9a743e\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T14:28:59.864-03:00\",\"paths\":{\"original\":\"b66650badb314d7dba7ea0d90d9a743e-original.png\",\"tiny\":\"b66650badb314d7dba7ea0d90d9a743e-tiny.png\",\"small\":\"b66650badb314d7dba7ea0d90d9a743e-small.png\",\"medium\":\"b66650badb314d7dba7ea0d90d9a743e-medium.png\",\"large\":\"b66650badb314d7dba7ea0d90d9a743e-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-20 17:28:59.865526"], ["updated_at", "2016-12-20 17:28:59.865526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ RecordTest: test_inherit ------------------------  (0.2ms) ROLLBACK  (0.2ms) BEGIN ---------------------------------------- ValidationTest: test_content_type_within ---------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-ftmg6m.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-dh37gv.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- ValidationTest: test_size_within -------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-73463-1e8qxod.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-1qjs4b2.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161220-73463-1yizep3.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-amlu75.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-14ry6ig.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------- ValidationTest: test_presence -----------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ ValidationTest: test_content_type_in ------------------------------------ Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-1b5s4es.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-14fia8w.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidationTest: test_size_greater_than -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161220-73463-19msxg1.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-grqzf0.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-3dllei.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidationTest: test_content_type_with -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-ngl7ww.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-d68rt4.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-e6xbs4.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidationTest: test_size_in ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-73463-kct509.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-vuhdn.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161220-73463-1iioj7y.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-1sx3gtm.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-1k6lptc.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- ValidationTest: test_size_less_than ----------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-73463-11a2rsl.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-2iehsk.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-1s5pfsi.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidationTest: test_methods ----------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------- TaskTest: test_fix_missings --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-1siip9a.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (6.4ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"86dd6adb49cc426b96916abf9355092e\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T14:29:00.236-03:00\",\"paths\":{\"original\":\"86dd6adb49cc426b96916abf9355092e-original.png\",\"tiny\":\"86dd6adb49cc426b96916abf9355092e-tiny.png\",\"small\":\"86dd6adb49cc426b96916abf9355092e-small.png\",\"medium\":\"86dd6adb49cc426b96916abf9355092e-medium.png\",\"large\":\"86dd6adb49cc426b96916abf9355092e-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-20 17:29:00.237594"], ["updated_at", "2016-12-20 17:29:00.237594"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-1siip9a.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-135i60u.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-135i60u.png => 86dd6adb49cc426b96916abf9355092e-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-1siip9a.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1r7xu2b.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1r7xu2b.png => 86dd6adb49cc426b96916abf9355092e-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-1siip9a.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1xosry5.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1xosry5.png => 86dd6adb49cc426b96916abf9355092e-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-1siip9a.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-124ma08.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-124ma08.png => 86dd6adb49cc426b96916abf9355092e-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-1siip9a.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1uhmw9s.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1uhmw9s.png => 86dd6adb49cc426b96916abf9355092e-large.png Deleting: 86dd6adb49cc426b96916abf9355092e-tiny.png Deleting: 86dd6adb49cc426b96916abf9355092e-small.png Shop Load (5.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Fix missings of Shop #2 => logo Generating: tiny => 86dd6adb49cc426b96916abf9355092e-tiny.png Generating: small => 86dd6adb49cc426b96916abf9355092e-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1hgeuaa.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-3w5kij.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-3w5kij.png => 86dd6adb49cc426b96916abf9355092e-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1hgeuaa.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1qjg7kx.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1qjg7kx.png => 86dd6adb49cc426b96916abf9355092e-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1hgeuaa.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-16z8gfs.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-16z8gfs.png => 86dd6adb49cc426b96916abf9355092e-small.png RecordTest::Subclass Load (4.8ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 [ActiveJob] [Attachs::Jobs::DeleteJob] [23f41fba-576e-4edb-ba50-92da56978698] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["86dd6adb49cc426b96916abf9355092e-original.png", "86dd6adb49cc426b96916abf9355092e-tiny.png", "86dd6adb49cc426b96916abf9355092e-small.png", "86dd6adb49cc426b96916abf9355092e-medium.png", "86dd6adb49cc426b96916abf9355092e-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [23f41fba-576e-4edb-ba50-92da56978698] Deleting: 86dd6adb49cc426b96916abf9355092e-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [23f41fba-576e-4edb-ba50-92da56978698] Deleting: 86dd6adb49cc426b96916abf9355092e-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [23f41fba-576e-4edb-ba50-92da56978698] Deleting: 86dd6adb49cc426b96916abf9355092e-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [23f41fba-576e-4edb-ba50-92da56978698] Deleting: 86dd6adb49cc426b96916abf9355092e-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [23f41fba-576e-4edb-ba50-92da56978698] Deleting: 86dd6adb49cc426b96916abf9355092e-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [23f41fba-576e-4edb-ba50-92da56978698] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2568.43ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 23f41fba-576e-4edb-ba50-92da56978698) to Inline(default) with arguments: ["86dd6adb49cc426b96916abf9355092e-original.png", "86dd6adb49cc426b96916abf9355092e-tiny.png", "86dd6adb49cc426b96916abf9355092e-small.png", "86dd6adb49cc426b96916abf9355092e-medium.png", "86dd6adb49cc426b96916abf9355092e-large.png"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------- TaskTest: test_clear -------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-z9n6sx.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"c3c4321b6ea04d44b42820869bc48bee\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T14:29:24.503-03:00\",\"paths\":{\"original\":\"c3c4321b6ea04d44b42820869bc48bee-original.png\",\"tiny\":\"c3c4321b6ea04d44b42820869bc48bee-tiny.png\",\"small\":\"c3c4321b6ea04d44b42820869bc48bee-small.png\",\"medium\":\"c3c4321b6ea04d44b42820869bc48bee-medium.png\",\"large\":\"c3c4321b6ea04d44b42820869bc48bee-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-20 17:29:24.503943"], ["updated_at", "2016-12-20 17:29:24.503943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-z9n6sx.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1uylq66.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1uylq66.png => c3c4321b6ea04d44b42820869bc48bee-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-z9n6sx.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-4810ux.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-4810ux.png => c3c4321b6ea04d44b42820869bc48bee-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-z9n6sx.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1rt9z9f.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1rt9z9f.png => c3c4321b6ea04d44b42820869bc48bee-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-z9n6sx.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-fwv27n.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-fwv27n.png => c3c4321b6ea04d44b42820869bc48bee-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-z9n6sx.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-yqd9pf.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-yqd9pf.png => c3c4321b6ea04d44b42820869bc48bee-large.png Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-1da1ne2.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"9c3d94f19ad24132a953344abb7f9564\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T14:29:28.355-03:00\",\"paths\":{\"original\":\"9c3d94f19ad24132a953344abb7f9564-original.png\",\"tiny\":\"9c3d94f19ad24132a953344abb7f9564-tiny.png\",\"small\":\"9c3d94f19ad24132a953344abb7f9564-small.png\",\"medium\":\"9c3d94f19ad24132a953344abb7f9564-medium.png\",\"large\":\"9c3d94f19ad24132a953344abb7f9564-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-20 17:29:28.356357"], ["updated_at", "2016-12-20 17:29:28.356357"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-1da1ne2.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1wuyn0d.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1wuyn0d.png => 9c3d94f19ad24132a953344abb7f9564-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-1da1ne2.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-18zer2r.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-18zer2r.png => 9c3d94f19ad24132a953344abb7f9564-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-1da1ne2.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-hmyv2e.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-hmyv2e.png => 9c3d94f19ad24132a953344abb7f9564-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-1da1ne2.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-127shsz.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-127shsz.png => 9c3d94f19ad24132a953344abb7f9564-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-1da1ne2.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-m3ljtd.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-m3ljtd.png => 9c3d94f19ad24132a953344abb7f9564-large.png SQL (0.8ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 4]]  (26.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '9c3d94f19ad24132a953344abb7f9564-large.png' OR old_paths.value = '9c3d94f19ad24132a953344abb7f9564-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '9c3d94f19ad24132a953344abb7f9564-large.png' OR old_paths.value = '9c3d94f19ad24132a953344abb7f9564-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '9c3d94f19ad24132a953344abb7f9564-large.png' OR old_paths.value = '9c3d94f19ad24132a953344abb7f9564-large.png') Deleting 9c3d94f19ad24132a953344abb7f9564-large.png Deleting: 9c3d94f19ad24132a953344abb7f9564-large.png  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '9c3d94f19ad24132a953344abb7f9564-medium.png' OR old_paths.value = '9c3d94f19ad24132a953344abb7f9564-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '9c3d94f19ad24132a953344abb7f9564-medium.png' OR old_paths.value = '9c3d94f19ad24132a953344abb7f9564-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '9c3d94f19ad24132a953344abb7f9564-medium.png' OR old_paths.value = '9c3d94f19ad24132a953344abb7f9564-medium.png') Deleting 9c3d94f19ad24132a953344abb7f9564-medium.png Deleting: 9c3d94f19ad24132a953344abb7f9564-medium.png  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '9c3d94f19ad24132a953344abb7f9564-original.png' OR old_paths.value = '9c3d94f19ad24132a953344abb7f9564-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '9c3d94f19ad24132a953344abb7f9564-original.png' OR old_paths.value = '9c3d94f19ad24132a953344abb7f9564-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '9c3d94f19ad24132a953344abb7f9564-original.png' OR old_paths.value = '9c3d94f19ad24132a953344abb7f9564-original.png') Deleting 9c3d94f19ad24132a953344abb7f9564-original.png Deleting: 9c3d94f19ad24132a953344abb7f9564-original.png  (0.7ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '9c3d94f19ad24132a953344abb7f9564-small.png' OR old_paths.value = '9c3d94f19ad24132a953344abb7f9564-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '9c3d94f19ad24132a953344abb7f9564-small.png' OR old_paths.value = '9c3d94f19ad24132a953344abb7f9564-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '9c3d94f19ad24132a953344abb7f9564-small.png' OR old_paths.value = '9c3d94f19ad24132a953344abb7f9564-small.png') Deleting 9c3d94f19ad24132a953344abb7f9564-small.png Deleting: 9c3d94f19ad24132a953344abb7f9564-small.png  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '9c3d94f19ad24132a953344abb7f9564-tiny.png' OR old_paths.value = '9c3d94f19ad24132a953344abb7f9564-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '9c3d94f19ad24132a953344abb7f9564-tiny.png' OR old_paths.value = '9c3d94f19ad24132a953344abb7f9564-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '9c3d94f19ad24132a953344abb7f9564-tiny.png' OR old_paths.value = '9c3d94f19ad24132a953344abb7f9564-tiny.png') Deleting 9c3d94f19ad24132a953344abb7f9564-tiny.png Deleting: 9c3d94f19ad24132a953344abb7f9564-tiny.png  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c3c4321b6ea04d44b42820869bc48bee-large.png' OR old_paths.value = 'c3c4321b6ea04d44b42820869bc48bee-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c3c4321b6ea04d44b42820869bc48bee-large.png' OR old_paths.value = 'c3c4321b6ea04d44b42820869bc48bee-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c3c4321b6ea04d44b42820869bc48bee-large.png' OR old_paths.value = 'c3c4321b6ea04d44b42820869bc48bee-large.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c3c4321b6ea04d44b42820869bc48bee-medium.png' OR old_paths.value = 'c3c4321b6ea04d44b42820869bc48bee-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c3c4321b6ea04d44b42820869bc48bee-medium.png' OR old_paths.value = 'c3c4321b6ea04d44b42820869bc48bee-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c3c4321b6ea04d44b42820869bc48bee-medium.png' OR old_paths.value = 'c3c4321b6ea04d44b42820869bc48bee-medium.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c3c4321b6ea04d44b42820869bc48bee-original.png' OR old_paths.value = 'c3c4321b6ea04d44b42820869bc48bee-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c3c4321b6ea04d44b42820869bc48bee-original.png' OR old_paths.value = 'c3c4321b6ea04d44b42820869bc48bee-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c3c4321b6ea04d44b42820869bc48bee-original.png' OR old_paths.value = 'c3c4321b6ea04d44b42820869bc48bee-original.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c3c4321b6ea04d44b42820869bc48bee-small.png' OR old_paths.value = 'c3c4321b6ea04d44b42820869bc48bee-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c3c4321b6ea04d44b42820869bc48bee-small.png' OR old_paths.value = 'c3c4321b6ea04d44b42820869bc48bee-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c3c4321b6ea04d44b42820869bc48bee-small.png' OR old_paths.value = 'c3c4321b6ea04d44b42820869bc48bee-small.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c3c4321b6ea04d44b42820869bc48bee-tiny.png' OR old_paths.value = 'c3c4321b6ea04d44b42820869bc48bee-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c3c4321b6ea04d44b42820869bc48bee-tiny.png' OR old_paths.value = 'c3c4321b6ea04d44b42820869bc48bee-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c3c4321b6ea04d44b42820869bc48bee-tiny.png' OR old_paths.value = 'c3c4321b6ea04d44b42820869bc48bee-tiny.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/8e8709a0caee4a6fa58fef5c2f78e7a4-large.png' OR old_paths.value = 'second/8e8709a0caee4a6fa58fef5c2f78e7a4-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/8e8709a0caee4a6fa58fef5c2f78e7a4-large.png' OR old_paths.value = 'second/8e8709a0caee4a6fa58fef5c2f78e7a4-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/8e8709a0caee4a6fa58fef5c2f78e7a4-large.png' OR old_paths.value = 'second/8e8709a0caee4a6fa58fef5c2f78e7a4-large.png') Deleting second/8e8709a0caee4a6fa58fef5c2f78e7a4-large.png Deleting: second/8e8709a0caee4a6fa58fef5c2f78e7a4-large.png  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/8e8709a0caee4a6fa58fef5c2f78e7a4-medium.png' OR old_paths.value = 'second/8e8709a0caee4a6fa58fef5c2f78e7a4-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/8e8709a0caee4a6fa58fef5c2f78e7a4-medium.png' OR old_paths.value = 'second/8e8709a0caee4a6fa58fef5c2f78e7a4-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/8e8709a0caee4a6fa58fef5c2f78e7a4-medium.png' OR old_paths.value = 'second/8e8709a0caee4a6fa58fef5c2f78e7a4-medium.png') Deleting second/8e8709a0caee4a6fa58fef5c2f78e7a4-medium.png Deleting: second/8e8709a0caee4a6fa58fef5c2f78e7a4-medium.png  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/8e8709a0caee4a6fa58fef5c2f78e7a4-original.png' OR old_paths.value = 'second/8e8709a0caee4a6fa58fef5c2f78e7a4-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/8e8709a0caee4a6fa58fef5c2f78e7a4-original.png' OR old_paths.value = 'second/8e8709a0caee4a6fa58fef5c2f78e7a4-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/8e8709a0caee4a6fa58fef5c2f78e7a4-original.png' OR old_paths.value = 'second/8e8709a0caee4a6fa58fef5c2f78e7a4-original.png') Deleting second/8e8709a0caee4a6fa58fef5c2f78e7a4-original.png Deleting: second/8e8709a0caee4a6fa58fef5c2f78e7a4-original.png  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/8e8709a0caee4a6fa58fef5c2f78e7a4-small.png' OR old_paths.value = 'second/8e8709a0caee4a6fa58fef5c2f78e7a4-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/8e8709a0caee4a6fa58fef5c2f78e7a4-small.png' OR old_paths.value = 'second/8e8709a0caee4a6fa58fef5c2f78e7a4-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/8e8709a0caee4a6fa58fef5c2f78e7a4-small.png' OR old_paths.value = 'second/8e8709a0caee4a6fa58fef5c2f78e7a4-small.png') Deleting second/8e8709a0caee4a6fa58fef5c2f78e7a4-small.png Deleting: second/8e8709a0caee4a6fa58fef5c2f78e7a4-small.png  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/8e8709a0caee4a6fa58fef5c2f78e7a4-tiny.png' OR old_paths.value = 'second/8e8709a0caee4a6fa58fef5c2f78e7a4-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/8e8709a0caee4a6fa58fef5c2f78e7a4-tiny.png' OR old_paths.value = 'second/8e8709a0caee4a6fa58fef5c2f78e7a4-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/8e8709a0caee4a6fa58fef5c2f78e7a4-tiny.png' OR old_paths.value = 'second/8e8709a0caee4a6fa58fef5c2f78e7a4-tiny.png') Deleting second/8e8709a0caee4a6fa58fef5c2f78e7a4-tiny.png Deleting: second/8e8709a0caee4a6fa58fef5c2f78e7a4-tiny.png  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c3c4321b6ea04d44b42820869bc48bee-large.png' OR old_paths.value = 'c3c4321b6ea04d44b42820869bc48bee-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c3c4321b6ea04d44b42820869bc48bee-large.png' OR old_paths.value = 'c3c4321b6ea04d44b42820869bc48bee-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c3c4321b6ea04d44b42820869bc48bee-large.png' OR old_paths.value = 'c3c4321b6ea04d44b42820869bc48bee-large.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c3c4321b6ea04d44b42820869bc48bee-medium.png' OR old_paths.value = 'c3c4321b6ea04d44b42820869bc48bee-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c3c4321b6ea04d44b42820869bc48bee-medium.png' OR old_paths.value = 'c3c4321b6ea04d44b42820869bc48bee-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c3c4321b6ea04d44b42820869bc48bee-medium.png' OR old_paths.value = 'c3c4321b6ea04d44b42820869bc48bee-medium.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c3c4321b6ea04d44b42820869bc48bee-original.png' OR old_paths.value = 'c3c4321b6ea04d44b42820869bc48bee-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c3c4321b6ea04d44b42820869bc48bee-original.png' OR old_paths.value = 'c3c4321b6ea04d44b42820869bc48bee-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c3c4321b6ea04d44b42820869bc48bee-original.png' OR old_paths.value = 'c3c4321b6ea04d44b42820869bc48bee-original.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c3c4321b6ea04d44b42820869bc48bee-small.png' OR old_paths.value = 'c3c4321b6ea04d44b42820869bc48bee-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c3c4321b6ea04d44b42820869bc48bee-small.png' OR old_paths.value = 'c3c4321b6ea04d44b42820869bc48bee-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c3c4321b6ea04d44b42820869bc48bee-small.png' OR old_paths.value = 'c3c4321b6ea04d44b42820869bc48bee-small.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c3c4321b6ea04d44b42820869bc48bee-tiny.png' OR old_paths.value = 'c3c4321b6ea04d44b42820869bc48bee-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c3c4321b6ea04d44b42820869bc48bee-tiny.png' OR old_paths.value = 'c3c4321b6ea04d44b42820869bc48bee-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'c3c4321b6ea04d44b42820869bc48bee-tiny.png' OR old_paths.value = 'c3c4321b6ea04d44b42820869bc48bee-tiny.png') [ActiveJob] [Attachs::Jobs::DeleteJob] [4e0b1cee-4304-4fd1-98ec-d7ba2e417780] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["c3c4321b6ea04d44b42820869bc48bee-original.png", "c3c4321b6ea04d44b42820869bc48bee-tiny.png", "c3c4321b6ea04d44b42820869bc48bee-small.png", "c3c4321b6ea04d44b42820869bc48bee-medium.png", "c3c4321b6ea04d44b42820869bc48bee-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [4e0b1cee-4304-4fd1-98ec-d7ba2e417780] Deleting: c3c4321b6ea04d44b42820869bc48bee-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [4e0b1cee-4304-4fd1-98ec-d7ba2e417780] Deleting: c3c4321b6ea04d44b42820869bc48bee-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [4e0b1cee-4304-4fd1-98ec-d7ba2e417780] Deleting: c3c4321b6ea04d44b42820869bc48bee-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [4e0b1cee-4304-4fd1-98ec-d7ba2e417780] Deleting: c3c4321b6ea04d44b42820869bc48bee-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [4e0b1cee-4304-4fd1-98ec-d7ba2e417780] Deleting: c3c4321b6ea04d44b42820869bc48bee-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [4e0b1cee-4304-4fd1-98ec-d7ba2e417780] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2416.0ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 4e0b1cee-4304-4fd1-98ec-d7ba2e417780) to Inline(default) with arguments: ["c3c4321b6ea04d44b42820869bc48bee-original.png", "c3c4321b6ea04d44b42820869bc48bee-tiny.png", "c3c4321b6ea04d44b42820869bc48bee-small.png", "c3c4321b6ea04d44b42820869bc48bee-medium.png", "c3c4321b6ea04d44b42820869bc48bee-large.png"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ TaskTest: test_reprocess ------------------------ Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-1eycq6l.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"49f147e912f6490b9cdea6c7bd5d1694\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T14:29:45.975-03:00\",\"paths\":{\"original\":\"49f147e912f6490b9cdea6c7bd5d1694-original.png\",\"tiny\":\"49f147e912f6490b9cdea6c7bd5d1694-tiny.png\",\"small\":\"49f147e912f6490b9cdea6c7bd5d1694-small.png\",\"medium\":\"49f147e912f6490b9cdea6c7bd5d1694-medium.png\",\"large\":\"49f147e912f6490b9cdea6c7bd5d1694-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-20 17:29:45.976135"], ["updated_at", "2016-12-20 17:29:45.976135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-1eycq6l.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1yze0d9.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1yze0d9.png => 49f147e912f6490b9cdea6c7bd5d1694-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-1eycq6l.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-vsgzfq.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-vsgzfq.png => 49f147e912f6490b9cdea6c7bd5d1694-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-1eycq6l.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1sf1pcz.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1sf1pcz.png => 49f147e912f6490b9cdea6c7bd5d1694-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-1eycq6l.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1763b01.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1763b01.png => 49f147e912f6490b9cdea6c7bd5d1694-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-1eycq6l.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-jarewm.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-jarewm.png => 49f147e912f6490b9cdea6c7bd5d1694-large.png Deleting: 49f147e912f6490b9cdea6c7bd5d1694-tiny.png Deleting: 49f147e912f6490b9cdea6c7bd5d1694-small.png Deleting: 49f147e912f6490b9cdea6c7bd5d1694-medium.png Deleting: 49f147e912f6490b9cdea6c7bd5d1694-large.png Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Reprocessing Shop #5 => logo Regenerating: tiny => 49f147e912f6490b9cdea6c7bd5d1694-tiny.png Regenerating: large => 49f147e912f6490b9cdea6c7bd5d1694-large.png Regenerating: small => 49f147e912f6490b9cdea6c7bd5d1694-small.png Regenerating: medium => 49f147e912f6490b9cdea6c7bd5d1694-medium.png Deleting: 49f147e912f6490b9cdea6c7bd5d1694-original.png Regenerating: original => 49f147e912f6490b9cdea6c7bd5d1694-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1p38hy0.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1p73m49.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1p73m49.png => 49f147e912f6490b9cdea6c7bd5d1694-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1p38hy0.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-a4vw9q.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-a4vw9q.png => 49f147e912f6490b9cdea6c7bd5d1694-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1p38hy0.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1np3hku.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1np3hku.png => 49f147e912f6490b9cdea6c7bd5d1694-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1p38hy0.png' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1bpfdc1.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1bpfdc1.png => 49f147e912f6490b9cdea6c7bd5d1694-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1p38hy0.png' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1a9s9g4.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1a9s9g4.png => 49f147e912f6490b9cdea6c7bd5d1694-large.png SQL (0.9ms) UPDATE "shops" SET "logo" = '{"paths":{"original":"49f147e912f6490b9cdea6c7bd5d1694-original.png","tiny":"49f147e912f6490b9cdea6c7bd5d1694-tiny.png","small":"49f147e912f6490b9cdea6c7bd5d1694-small.png","medium":"49f147e912f6490b9cdea6c7bd5d1694-medium.png","large":"49f147e912f6490b9cdea6c7bd5d1694-large.png"},"old_paths":[],"id":"49f147e912f6490b9cdea6c7bd5d1694","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-20T14:29:45.975-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 5]] RecordTest::Subclass Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Reprocessing Shop #5 => logo Deleting: 49f147e912f6490b9cdea6c7bd5d1694-tiny.png Regenerating: tiny => 49f147e912f6490b9cdea6c7bd5d1694-tiny.png Deleting: 49f147e912f6490b9cdea6c7bd5d1694-large.png Regenerating: large => 49f147e912f6490b9cdea6c7bd5d1694-large.png Deleting: 49f147e912f6490b9cdea6c7bd5d1694-small.png Regenerating: small => 49f147e912f6490b9cdea6c7bd5d1694-small.png Deleting: 49f147e912f6490b9cdea6c7bd5d1694-medium.png Regenerating: medium => 49f147e912f6490b9cdea6c7bd5d1694-medium.png Deleting: 49f147e912f6490b9cdea6c7bd5d1694-original.png Regenerating: original => 49f147e912f6490b9cdea6c7bd5d1694-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-bv83cb.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-ww9j32.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-ww9j32.png => 49f147e912f6490b9cdea6c7bd5d1694-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-bv83cb.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-qd0r6q.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-qd0r6q.png => 49f147e912f6490b9cdea6c7bd5d1694-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-bv83cb.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1r94sla.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1r94sla.png => 49f147e912f6490b9cdea6c7bd5d1694-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-bv83cb.png' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1jsifj7.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1jsifj7.png => 49f147e912f6490b9cdea6c7bd5d1694-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-bv83cb.png' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-bjqb92.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-bjqb92.png => 49f147e912f6490b9cdea6c7bd5d1694-large.png SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"original":"49f147e912f6490b9cdea6c7bd5d1694-original.png","tiny":"49f147e912f6490b9cdea6c7bd5d1694-tiny.png","small":"49f147e912f6490b9cdea6c7bd5d1694-small.png","medium":"49f147e912f6490b9cdea6c7bd5d1694-medium.png","large":"49f147e912f6490b9cdea6c7bd5d1694-large.png"},"old_paths":[],"id":"49f147e912f6490b9cdea6c7bd5d1694","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-20T14:29:45.975-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 5]] RecordTest::Subclass Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Reprocessing Shop #5 => logo Deleting: 49f147e912f6490b9cdea6c7bd5d1694-tiny.png Regenerating: tiny => 49f147e912f6490b9cdea6c7bd5d1694-tiny.png Deleting: 49f147e912f6490b9cdea6c7bd5d1694-large.png Regenerating: large => 49f147e912f6490b9cdea6c7bd5d1694-large.png Deleting: 49f147e912f6490b9cdea6c7bd5d1694-small.png Regenerating: small => 49f147e912f6490b9cdea6c7bd5d1694-small.png Deleting: 49f147e912f6490b9cdea6c7bd5d1694-medium.png Regenerating: medium => 49f147e912f6490b9cdea6c7bd5d1694-medium.png Deleting: 49f147e912f6490b9cdea6c7bd5d1694-original.png Regenerating: original => 49f147e912f6490b9cdea6c7bd5d1694-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1mqti5t.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-19telrm.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-19telrm.png => 49f147e912f6490b9cdea6c7bd5d1694-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1mqti5t.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-vq4oo2.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-vq4oo2.png => 49f147e912f6490b9cdea6c7bd5d1694-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1mqti5t.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-167dngi.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-167dngi.png => 49f147e912f6490b9cdea6c7bd5d1694-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1mqti5t.png' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-10jo16z.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-10jo16z.png => 49f147e912f6490b9cdea6c7bd5d1694-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1mqti5t.png' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1qqho5g.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1qqho5g.png => 49f147e912f6490b9cdea6c7bd5d1694-large.png SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"original":"49f147e912f6490b9cdea6c7bd5d1694-original.png","tiny":"49f147e912f6490b9cdea6c7bd5d1694-tiny.png","small":"49f147e912f6490b9cdea6c7bd5d1694-small.png","medium":"49f147e912f6490b9cdea6c7bd5d1694-medium.png","large":"49f147e912f6490b9cdea6c7bd5d1694-large.png"},"old_paths":[],"id":"49f147e912f6490b9cdea6c7bd5d1694","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-20T14:29:45.975-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 5]] RecordTest::Subclass Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 5]] [ActiveJob] [Attachs::Jobs::DeleteJob] [12c14233-1037-4e64-8bb1-dd33a76aa084] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["49f147e912f6490b9cdea6c7bd5d1694-tiny.png", "49f147e912f6490b9cdea6c7bd5d1694-large.png", "49f147e912f6490b9cdea6c7bd5d1694-small.png", "49f147e912f6490b9cdea6c7bd5d1694-medium.png", "49f147e912f6490b9cdea6c7bd5d1694-original.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [12c14233-1037-4e64-8bb1-dd33a76aa084] Deleting: 49f147e912f6490b9cdea6c7bd5d1694-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [12c14233-1037-4e64-8bb1-dd33a76aa084] Deleting: 49f147e912f6490b9cdea6c7bd5d1694-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [12c14233-1037-4e64-8bb1-dd33a76aa084] Deleting: 49f147e912f6490b9cdea6c7bd5d1694-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [12c14233-1037-4e64-8bb1-dd33a76aa084] Deleting: 49f147e912f6490b9cdea6c7bd5d1694-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [12c14233-1037-4e64-8bb1-dd33a76aa084] Deleting: 49f147e912f6490b9cdea6c7bd5d1694-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [12c14233-1037-4e64-8bb1-dd33a76aa084] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2837.58ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 12c14233-1037-4e64-8bb1-dd33a76aa084) to Inline(default) with arguments: ["49f147e912f6490b9cdea6c7bd5d1694-tiny.png", "49f147e912f6490b9cdea6c7bd5d1694-large.png", "49f147e912f6490b9cdea6c7bd5d1694-small.png", "49f147e912f6490b9cdea6c7bd5d1694-medium.png", "49f147e912f6490b9cdea6c7bd5d1694-original.png"]  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------- TaskTest: test_exist -------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-1sv6z4h.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "logo", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "first"], ["logo", "{\"id\":\"3eecb4cdd9254a2c854dc839adcc4aca\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T14:30:20.055-03:00\",\"paths\":{\"original\":\"first/3eecb4cdd9254a2c854dc839adcc4aca-original.png\",\"tiny\":\"first/3eecb4cdd9254a2c854dc839adcc4aca-tiny.png\",\"small\":\"first/3eecb4cdd9254a2c854dc839adcc4aca-small.png\",\"medium\":\"first/3eecb4cdd9254a2c854dc839adcc4aca-medium.png\",\"large\":\"first/3eecb4cdd9254a2c854dc839adcc4aca-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-20 17:30:20.056366"], ["updated_at", "2016-12-20 17:30:20.056366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-1sv6z4h.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-7srlqt.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-7srlqt.png => first/3eecb4cdd9254a2c854dc839adcc4aca-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-1sv6z4h.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-honmql.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-honmql.png => first/3eecb4cdd9254a2c854dc839adcc4aca-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-1sv6z4h.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1j3d8gc.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1j3d8gc.png => first/3eecb4cdd9254a2c854dc839adcc4aca-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-1sv6z4h.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1udqzhi.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1udqzhi.png => first/3eecb4cdd9254a2c854dc839adcc4aca-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-1sv6z4h.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-qdcy9m.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-qdcy9m.png => first/3eecb4cdd9254a2c854dc839adcc4aca-large.png  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "shops" SET "name" = $1, "updated_at" = $2 WHERE "shops"."id" = $3 [["name", "second"], ["updated_at", "2016-12-20 17:30:24.877179"], ["id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 6]] [ActiveJob] [Attachs::Jobs::UpdateJob] [ab40af5f-6b8e-442c-bc10-ea38106e95a9] Performing Attachs::Jobs::UpdateJob from Inline(default) with arguments: gid://dummy/Shop/6, "logo" [ActiveJob] [Attachs::Jobs::UpdateJob] [ab40af5f-6b8e-442c-bc10-ea38106e95a9] Copying: first/3eecb4cdd9254a2c854dc839adcc4aca-original.png => second/3eecb4cdd9254a2c854dc839adcc4aca-original.png [ActiveJob] [Attachs::Jobs::UpdateJob] [ab40af5f-6b8e-442c-bc10-ea38106e95a9] Copying: first/3eecb4cdd9254a2c854dc839adcc4aca-tiny.png => second/3eecb4cdd9254a2c854dc839adcc4aca-tiny.png [ActiveJob] [Attachs::Jobs::UpdateJob] [ab40af5f-6b8e-442c-bc10-ea38106e95a9] Copying: first/3eecb4cdd9254a2c854dc839adcc4aca-small.png => second/3eecb4cdd9254a2c854dc839adcc4aca-small.png [ActiveJob] [Attachs::Jobs::UpdateJob] [ab40af5f-6b8e-442c-bc10-ea38106e95a9] Copying: first/3eecb4cdd9254a2c854dc839adcc4aca-medium.png => second/3eecb4cdd9254a2c854dc839adcc4aca-medium.png [ActiveJob] [Attachs::Jobs::UpdateJob] [ab40af5f-6b8e-442c-bc10-ea38106e95a9] Copying: first/3eecb4cdd9254a2c854dc839adcc4aca-large.png => second/3eecb4cdd9254a2c854dc839adcc4aca-large.png [ActiveJob] [Attachs::Jobs::UpdateJob] [ab40af5f-6b8e-442c-bc10-ea38106e95a9] SQL (0.2ms) UPDATE "shops" SET "logo" = '{"paths":{"tiny":"second/3eecb4cdd9254a2c854dc839adcc4aca-tiny.png","large":"second/3eecb4cdd9254a2c854dc839adcc4aca-large.png","small":"second/3eecb4cdd9254a2c854dc839adcc4aca-small.png","medium":"second/3eecb4cdd9254a2c854dc839adcc4aca-medium.png","original":"second/3eecb4cdd9254a2c854dc839adcc4aca-original.png"},"old_paths":["first/3eecb4cdd9254a2c854dc839adcc4aca-original.png","first/3eecb4cdd9254a2c854dc839adcc4aca-tiny.png","first/3eecb4cdd9254a2c854dc839adcc4aca-small.png","first/3eecb4cdd9254a2c854dc839adcc4aca-medium.png","first/3eecb4cdd9254a2c854dc839adcc4aca-large.png"],"id":"3eecb4cdd9254a2c854dc839adcc4aca","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-20T14:30:20.055-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 6]] [ActiveJob] [Attachs::Jobs::UpdateJob] [ab40af5f-6b8e-442c-bc10-ea38106e95a9] Performed Attachs::Jobs::UpdateJob from Inline(default) in 2466.18ms [ActiveJob] Enqueued Attachs::Jobs::UpdateJob (Job ID: ab40af5f-6b8e-442c-bc10-ea38106e95a9) to Inline(default) with arguments: gid://dummy/Shop/6, "logo" Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-1czjwqo.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-slzkdz.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"f0b953cec1e848369d6474972cb37d77\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T14:30:27.367-03:00\",\"paths\":{\"original\":\"f0b953cec1e848369d6474972cb37d77-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725},{\"id\":\"0e57a7f8eb094aa5a5f3e02b6f423b9f\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T14:30:27.369-03:00\",\"paths\":{\"original\":\"0e57a7f8eb094aa5a5f3e02b6f423b9f-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-12-20 17:30:27.370801"], ["updated_at", "2016-12-20 17:30:27.370801"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-1czjwqo.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-fcwqsg.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-fcwqsg.jpg => f0b953cec1e848369d6474972cb37d77-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-slzkdz.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-18m7nv6.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-18m7nv6.jpg => 0e57a7f8eb094aa5a5f3e02b6f423b9f-original.jpg  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/3eecb4cdd9254a2c854dc839adcc4aca-original.png' OR old_paths.value = 'first/3eecb4cdd9254a2c854dc839adcc4aca-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/3eecb4cdd9254a2c854dc839adcc4aca-original.png' OR old_paths.value = 'first/3eecb4cdd9254a2c854dc839adcc4aca-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/3eecb4cdd9254a2c854dc839adcc4aca-original.png' OR old_paths.value = 'first/3eecb4cdd9254a2c854dc839adcc4aca-original.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/3eecb4cdd9254a2c854dc839adcc4aca-original.png' OR old_paths.value = 'first/3eecb4cdd9254a2c854dc839adcc4aca-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/3eecb4cdd9254a2c854dc839adcc4aca-original.png' OR old_paths.value = 'first/3eecb4cdd9254a2c854dc839adcc4aca-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/3eecb4cdd9254a2c854dc839adcc4aca-original.png' OR old_paths.value = 'first/3eecb4cdd9254a2c854dc839adcc4aca-original.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'f0b953cec1e848369d6474972cb37d77-original.jpg' OR old_paths.value = 'f0b953cec1e848369d6474972cb37d77-original.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'f0b953cec1e848369d6474972cb37d77-original.jpg' OR old_paths.value = 'f0b953cec1e848369d6474972cb37d77-original.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'f0b953cec1e848369d6474972cb37d77-original.jpg' OR old_paths.value = 'f0b953cec1e848369d6474972cb37d77-original.jpg') [ActiveJob] [Attachs::Jobs::DeleteJob] [75ff85c5-db4c-4736-ab41-cade77329768] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["first/3eecb4cdd9254a2c854dc839adcc4aca-original.png", "first/3eecb4cdd9254a2c854dc839adcc4aca-tiny.png", "first/3eecb4cdd9254a2c854dc839adcc4aca-small.png", "first/3eecb4cdd9254a2c854dc839adcc4aca-medium.png", "first/3eecb4cdd9254a2c854dc839adcc4aca-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [75ff85c5-db4c-4736-ab41-cade77329768] Deleting: first/3eecb4cdd9254a2c854dc839adcc4aca-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [75ff85c5-db4c-4736-ab41-cade77329768] Deleting: first/3eecb4cdd9254a2c854dc839adcc4aca-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [75ff85c5-db4c-4736-ab41-cade77329768] Deleting: first/3eecb4cdd9254a2c854dc839adcc4aca-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [75ff85c5-db4c-4736-ab41-cade77329768] Deleting: first/3eecb4cdd9254a2c854dc839adcc4aca-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [75ff85c5-db4c-4736-ab41-cade77329768] Deleting: first/3eecb4cdd9254a2c854dc839adcc4aca-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [75ff85c5-db4c-4736-ab41-cade77329768] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2035.27ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 75ff85c5-db4c-4736-ab41-cade77329768) to Inline(default) with arguments: ["first/3eecb4cdd9254a2c854dc839adcc4aca-original.png", "first/3eecb4cdd9254a2c854dc839adcc4aca-tiny.png", "first/3eecb4cdd9254a2c854dc839adcc4aca-small.png", "first/3eecb4cdd9254a2c854dc839adcc4aca-medium.png", "first/3eecb4cdd9254a2c854dc839adcc4aca-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [1fc1d8d6-d2c4-4172-b571-6cfa1759d82a] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["f0b953cec1e848369d6474972cb37d77-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [1fc1d8d6-d2c4-4172-b571-6cfa1759d82a] Deleting: f0b953cec1e848369d6474972cb37d77-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [1fc1d8d6-d2c4-4172-b571-6cfa1759d82a] Performed Attachs::Jobs::DeleteJob from Inline(default) in 380.77ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 1fc1d8d6-d2c4-4172-b571-6cfa1759d82a) to Inline(default) with arguments: ["f0b953cec1e848369d6474972cb37d77-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [7cd4e4db-f13d-44f9-bb42-61ee61495eba] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["0e57a7f8eb094aa5a5f3e02b6f423b9f-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [7cd4e4db-f13d-44f9-bb42-61ee61495eba] Deleting: 0e57a7f8eb094aa5a5f3e02b6f423b9f-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [7cd4e4db-f13d-44f9-bb42-61ee61495eba] Performed Attachs::Jobs::DeleteJob from Inline(default) in 487.17ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 7cd4e4db-f13d-44f9-bb42-61ee61495eba) to Inline(default) with arguments: ["0e57a7f8eb094aa5a5f3e02b6f423b9f-original.jpg"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------- UploadTest: test_upload -----------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- CollectionTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-cjkxf7.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-zbpjxt.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"4be3dd21290f4bdc984edf34fddc26f4\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T14:30:31.175-03:00\",\"paths\":{\"original\":\"4be3dd21290f4bdc984edf34fddc26f4-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725},{\"id\":\"fd6cc8113fae4a27b07c85a356be180f\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T14:30:31.177-03:00\",\"paths\":{\"original\":\"fd6cc8113fae4a27b07c85a356be180f-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-12-20 17:30:31.178675"], ["updated_at", "2016-12-20 17:30:31.178675"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-cjkxf7.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1pd8ziy.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1pd8ziy.jpg => 4be3dd21290f4bdc984edf34fddc26f4-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-zbpjxt.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-xli19v.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-xli19v.jpg => fd6cc8113fae4a27b07c85a356be180f-original.jpg Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 2]] [ActiveJob] [Attachs::Jobs::DeleteJob] [b9395ceb-cd06-4838-b2a2-4b1fce814322] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["4be3dd21290f4bdc984edf34fddc26f4-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [b9395ceb-cd06-4838-b2a2-4b1fce814322] Deleting: 4be3dd21290f4bdc984edf34fddc26f4-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [b9395ceb-cd06-4838-b2a2-4b1fce814322] Performed Attachs::Jobs::DeleteJob from Inline(default) in 383.89ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: b9395ceb-cd06-4838-b2a2-4b1fce814322) to Inline(default) with arguments: ["4be3dd21290f4bdc984edf34fddc26f4-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [a4af4116-b911-41dd-b231-a0eb65e08bbb] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["fd6cc8113fae4a27b07c85a356be180f-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [a4af4116-b911-41dd-b231-a0eb65e08bbb] Deleting: fd6cc8113fae4a27b07c85a356be180f-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [a4af4116-b911-41dd-b231-a0eb65e08bbb] Performed Attachs::Jobs::DeleteJob from Inline(default) in 362.83ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: a4af4116-b911-41dd-b231-a0eb65e08bbb) to Inline(default) with arguments: ["fd6cc8113fae4a27b07c85a356be180f-original.jpg"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------- CollectionTest: test_index -------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-186gltk.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-6xyqc6.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"331343e573974d1bb2cc095f62d889ec\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T14:30:32.770-03:00\",\"paths\":{\"original\":\"331343e573974d1bb2cc095f62d889ec-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725,\"position\":0},{\"id\":\"0cfda16a2b6a4fc68da53a26e1db7e6b\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T14:30:32.771-03:00\",\"paths\":{\"original\":\"0cfda16a2b6a4fc68da53a26e1db7e6b-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-12-20 17:30:32.772874"], ["updated_at", "2016-12-20 17:30:32.772874"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 3]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- CollectionTest: test_nested_attributes -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-16w08jb.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-1rg6lzv.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- AttachmentTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-vs0wi7.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"65df05d11b9f4826b5ed0d72e39a5796\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T14:30:32.809-03:00\",\"paths\":{\"original\":\"65df05d11b9f4826b5ed0d72e39a5796-original.png\",\"tiny\":\"65df05d11b9f4826b5ed0d72e39a5796-tiny.png\",\"small\":\"65df05d11b9f4826b5ed0d72e39a5796-small.png\",\"medium\":\"65df05d11b9f4826b5ed0d72e39a5796-medium.png\",\"large\":\"65df05d11b9f4826b5ed0d72e39a5796-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-20 17:30:32.812428"], ["updated_at", "2016-12-20 17:30:32.812428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-vs0wi7.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-13q94k8.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-13q94k8.png => 65df05d11b9f4826b5ed0d72e39a5796-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-vs0wi7.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-ta0r9q.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-ta0r9q.png => 65df05d11b9f4826b5ed0d72e39a5796-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-vs0wi7.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1pw26l6.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1pw26l6.png => 65df05d11b9f4826b5ed0d72e39a5796-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-vs0wi7.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-ks0aaq.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-ks0aaq.png => 65df05d11b9f4826b5ed0d72e39a5796-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-vs0wi7.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1nn3lkh.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1nn3lkh.png => 65df05d11b9f4826b5ed0d72e39a5796-large.png Shop Load (5.5ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 7]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 7]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Attachs::Jobs::DeleteJob] [cc9170e3-fb98-46b5-af1b-8b6c691f7d09] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["65df05d11b9f4826b5ed0d72e39a5796-tiny.png", "65df05d11b9f4826b5ed0d72e39a5796-large.png", "65df05d11b9f4826b5ed0d72e39a5796-small.png", "65df05d11b9f4826b5ed0d72e39a5796-medium.png", "65df05d11b9f4826b5ed0d72e39a5796-original.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [cc9170e3-fb98-46b5-af1b-8b6c691f7d09] Deleting: 65df05d11b9f4826b5ed0d72e39a5796-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [cc9170e3-fb98-46b5-af1b-8b6c691f7d09] Deleting: 65df05d11b9f4826b5ed0d72e39a5796-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [cc9170e3-fb98-46b5-af1b-8b6c691f7d09] Deleting: 65df05d11b9f4826b5ed0d72e39a5796-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [cc9170e3-fb98-46b5-af1b-8b6c691f7d09] Deleting: 65df05d11b9f4826b5ed0d72e39a5796-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [cc9170e3-fb98-46b5-af1b-8b6c691f7d09] Deleting: 65df05d11b9f4826b5ed0d72e39a5796-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [cc9170e3-fb98-46b5-af1b-8b6c691f7d09] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2764.31ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: cc9170e3-fb98-46b5-af1b-8b6c691f7d09) to Inline(default) with arguments: ["65df05d11b9f4826b5ed0d72e39a5796-tiny.png", "65df05d11b9f4826b5ed0d72e39a5796-large.png", "65df05d11b9f4826b5ed0d72e39a5796-small.png", "65df05d11b9f4826b5ed0d72e39a5796-medium.png", "65df05d11b9f4826b5ed0d72e39a5796-original.png"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_renames ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-1exnkil.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("logo", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["logo", "{\"id\":\"77e2c18689bd4a539c0dbbcf53dcdc01\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T14:31:01.832-03:00\",\"paths\":{\"original\":\"anderstons/77e2c18689bd4a539c0dbbcf53dcdc01-original.png\",\"tiny\":\"anderstons/77e2c18689bd4a539c0dbbcf53dcdc01-tiny.png\",\"small\":\"anderstons/77e2c18689bd4a539c0dbbcf53dcdc01-small.png\",\"medium\":\"anderstons/77e2c18689bd4a539c0dbbcf53dcdc01-medium.png\",\"large\":\"anderstons/77e2c18689bd4a539c0dbbcf53dcdc01-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["name", "Anderstons"], ["created_at", "2016-12-20 17:31:01.834032"], ["updated_at", "2016-12-20 17:31:01.834032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-1exnkil.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-hxu25o.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-hxu25o.png => anderstons/77e2c18689bd4a539c0dbbcf53dcdc01-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-1exnkil.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-18nkw0o.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-18nkw0o.png => anderstons/77e2c18689bd4a539c0dbbcf53dcdc01-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-1exnkil.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1mukcik.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1mukcik.png => anderstons/77e2c18689bd4a539c0dbbcf53dcdc01-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-1exnkil.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-18l5jpc.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-18l5jpc.png => anderstons/77e2c18689bd4a539c0dbbcf53dcdc01-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-1exnkil.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1sjch0d.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-1sjch0d.png => anderstons/77e2c18689bd4a539c0dbbcf53dcdc01-large.png  (0.3ms) SAVEPOINT active_record_1 SQL (1.3ms) UPDATE "shops" SET "name" = $1, "updated_at" = $2 WHERE "shops"."id" = $3 [["name", "Musicians Friend"], ["updated_at", "2016-12-20 17:31:11.316313"], ["id", 8]]  (0.3ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 8]] [ActiveJob] [Attachs::Jobs::UpdateJob] [595603f4-bc4c-4388-a353-bf8c23b2bcd8] Performing Attachs::Jobs::UpdateJob from Inline(default) with arguments: gid://dummy/Shop/8, "logo" [ActiveJob] [Attachs::Jobs::UpdateJob] [595603f4-bc4c-4388-a353-bf8c23b2bcd8] Copying: anderstons/77e2c18689bd4a539c0dbbcf53dcdc01-original.png => musicians-friend/77e2c18689bd4a539c0dbbcf53dcdc01-original.png [ActiveJob] [Attachs::Jobs::UpdateJob] [595603f4-bc4c-4388-a353-bf8c23b2bcd8] Copying: anderstons/77e2c18689bd4a539c0dbbcf53dcdc01-tiny.png => musicians-friend/77e2c18689bd4a539c0dbbcf53dcdc01-tiny.png [ActiveJob] [Attachs::Jobs::UpdateJob] [595603f4-bc4c-4388-a353-bf8c23b2bcd8] Copying: anderstons/77e2c18689bd4a539c0dbbcf53dcdc01-small.png => musicians-friend/77e2c18689bd4a539c0dbbcf53dcdc01-small.png [ActiveJob] [Attachs::Jobs::UpdateJob] [595603f4-bc4c-4388-a353-bf8c23b2bcd8] Copying: anderstons/77e2c18689bd4a539c0dbbcf53dcdc01-medium.png => musicians-friend/77e2c18689bd4a539c0dbbcf53dcdc01-medium.png [ActiveJob] [Attachs::Jobs::UpdateJob] [595603f4-bc4c-4388-a353-bf8c23b2bcd8] Copying: anderstons/77e2c18689bd4a539c0dbbcf53dcdc01-large.png => musicians-friend/77e2c18689bd4a539c0dbbcf53dcdc01-large.png [ActiveJob] [Attachs::Jobs::UpdateJob] [595603f4-bc4c-4388-a353-bf8c23b2bcd8] SQL (0.2ms) UPDATE "shops" SET "logo" = '{"paths":{"tiny":"musicians-friend/77e2c18689bd4a539c0dbbcf53dcdc01-tiny.png","large":"musicians-friend/77e2c18689bd4a539c0dbbcf53dcdc01-large.png","small":"musicians-friend/77e2c18689bd4a539c0dbbcf53dcdc01-small.png","medium":"musicians-friend/77e2c18689bd4a539c0dbbcf53dcdc01-medium.png","original":"musicians-friend/77e2c18689bd4a539c0dbbcf53dcdc01-original.png"},"old_paths":["anderstons/77e2c18689bd4a539c0dbbcf53dcdc01-original.png","anderstons/77e2c18689bd4a539c0dbbcf53dcdc01-tiny.png","anderstons/77e2c18689bd4a539c0dbbcf53dcdc01-small.png","anderstons/77e2c18689bd4a539c0dbbcf53dcdc01-medium.png","anderstons/77e2c18689bd4a539c0dbbcf53dcdc01-large.png"],"id":"77e2c18689bd4a539c0dbbcf53dcdc01","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-20T14:31:01.832-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 8]] [ActiveJob] [Attachs::Jobs::UpdateJob] [595603f4-bc4c-4388-a353-bf8c23b2bcd8] Performed Attachs::Jobs::UpdateJob from Inline(default) in 2905.67ms [ActiveJob] Enqueued Attachs::Jobs::UpdateJob (Job ID: 595603f4-bc4c-4388-a353-bf8c23b2bcd8) to Inline(default) with arguments: gid://dummy/Shop/8, "logo" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 8]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 8]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Attachs::Jobs::DeleteJob] [6b3972d0-50b3-42f3-8689-a7a1bda5c37c] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["musicians-friend/77e2c18689bd4a539c0dbbcf53dcdc01-tiny.png", "musicians-friend/77e2c18689bd4a539c0dbbcf53dcdc01-large.png", "musicians-friend/77e2c18689bd4a539c0dbbcf53dcdc01-small.png", "musicians-friend/77e2c18689bd4a539c0dbbcf53dcdc01-medium.png", "musicians-friend/77e2c18689bd4a539c0dbbcf53dcdc01-original.png", "anderstons/77e2c18689bd4a539c0dbbcf53dcdc01-original.png", "anderstons/77e2c18689bd4a539c0dbbcf53dcdc01-tiny.png", "anderstons/77e2c18689bd4a539c0dbbcf53dcdc01-small.png", "anderstons/77e2c18689bd4a539c0dbbcf53dcdc01-medium.png", "anderstons/77e2c18689bd4a539c0dbbcf53dcdc01-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [6b3972d0-50b3-42f3-8689-a7a1bda5c37c] Deleting: musicians-friend/77e2c18689bd4a539c0dbbcf53dcdc01-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [6b3972d0-50b3-42f3-8689-a7a1bda5c37c] Deleting: musicians-friend/77e2c18689bd4a539c0dbbcf53dcdc01-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [6b3972d0-50b3-42f3-8689-a7a1bda5c37c] Deleting: musicians-friend/77e2c18689bd4a539c0dbbcf53dcdc01-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [6b3972d0-50b3-42f3-8689-a7a1bda5c37c] Deleting: musicians-friend/77e2c18689bd4a539c0dbbcf53dcdc01-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [6b3972d0-50b3-42f3-8689-a7a1bda5c37c] Deleting: musicians-friend/77e2c18689bd4a539c0dbbcf53dcdc01-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [6b3972d0-50b3-42f3-8689-a7a1bda5c37c] Deleting: anderstons/77e2c18689bd4a539c0dbbcf53dcdc01-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [6b3972d0-50b3-42f3-8689-a7a1bda5c37c] Deleting: anderstons/77e2c18689bd4a539c0dbbcf53dcdc01-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [6b3972d0-50b3-42f3-8689-a7a1bda5c37c] Deleting: anderstons/77e2c18689bd4a539c0dbbcf53dcdc01-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [6b3972d0-50b3-42f3-8689-a7a1bda5c37c] Deleting: anderstons/77e2c18689bd4a539c0dbbcf53dcdc01-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [6b3972d0-50b3-42f3-8689-a7a1bda5c37c] Deleting: anderstons/77e2c18689bd4a539c0dbbcf53dcdc01-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [6b3972d0-50b3-42f3-8689-a7a1bda5c37c] Performed Attachs::Jobs::DeleteJob from Inline(default) in 4652.07ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 6b3972d0-50b3-42f3-8689-a7a1bda5c37c) to Inline(default) with arguments: ["musicians-friend/77e2c18689bd4a539c0dbbcf53dcdc01-tiny.png", "musicians-friend/77e2c18689bd4a539c0dbbcf53dcdc01-large.png", "musicians-friend/77e2c18689bd4a539c0dbbcf53dcdc01-small.png", "musicians-friend/77e2c18689bd4a539c0dbbcf53dcdc01-medium.png", "musicians-friend/77e2c18689bd4a539c0dbbcf53dcdc01-original.png", "anderstons/77e2c18689bd4a539c0dbbcf53dcdc01-original.png", "anderstons/77e2c18689bd4a539c0dbbcf53dcdc01-tiny.png", "anderstons/77e2c18689bd4a539c0dbbcf53dcdc01-small.png", "anderstons/77e2c18689bd4a539c0dbbcf53dcdc01-medium.png", "anderstons/77e2c18689bd4a539c0dbbcf53dcdc01-large.png"]  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- AttachmentTest: test_nested_attributes --------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_default ----------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- HelperTest: test_fields_for --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-11s5vyy.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"28817255e01d4d809d1a59116a5c6c9f\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T14:31:47.932-03:00\",\"paths\":{\"original\":\"28817255e01d4d809d1a59116a5c6c9f-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-12-20 17:31:47.932878"], ["updated_at", "2016-12-20 17:31:47.932878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73463-11s5vyy.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-f2kij9.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-73463-f2kij9.jpg => 28817255e01d4d809d1a59116a5c6c9f-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [9932f05b-f429-46c8-8c87-e3b1fd597edc] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["28817255e01d4d809d1a59116a5c6c9f-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [9932f05b-f429-46c8-8c87-e3b1fd597edc] Deleting: 28817255e01d4d809d1a59116a5c6c9f-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [9932f05b-f429-46c8-8c87-e3b1fd597edc] Performed Attachs::Jobs::DeleteJob from Inline(default) in 373.03ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 9932f05b-f429-46c8-8c87-e3b1fd597edc) to Inline(default) with arguments: ["28817255e01d4d809d1a59116a5c6c9f-original.jpg"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------- GeneratorTest: test_upload --------------------------  (0.2ms) ROLLBACK  (0.2ms) BEGIN --------------------------- GeneratorTest: test_install ---------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN -------------------------------------- ValidationTest: test_content_type_with -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73764-1s31vfd.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73764-xobdb1.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73764-1viikqj.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- ValidationTest: test_size_within -------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-73764-1gauw7c.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73764-1jub760.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161220-73764-zgq17j.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73764-1b345et.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73764-1k7qrz9.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------- ValidationTest: test_presence -----------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ ValidationTest: test_content_type_in ------------------------------------ Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73764-1036i9g.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73764-102a7id.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidationTest: test_size_greater_than -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161220-73764-x8ze0.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73764-10c0rxv.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73764-1dpbhfo.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- ValidationTest: test_size_less_than ----------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-73764-c5hkcv.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73764-zjv1bv.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73764-dkfukb.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidationTest: test_size_in ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-73764-1mw4c4q.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73764-1621vpb.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161220-73764-gy5q8d.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73764-18940m8.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73764-1janzve.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- ValidationTest: test_content_type_within ---------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73764-ujlwmg.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73764-5lmhxv.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidationTest: test_methods ----------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------------- ValidationTest: test_methods ----------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ ValidationTest: test_content_type_in ------------------------------------ Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73911-1j6ho1m.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73911-pw2b25.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------- ValidationTest: test_presence ----------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73911-i0266y.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidationTest: test_size_greater_than -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161220-73911-1obsfl9.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73911-1gqsjfm.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73911-1cg1slu.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- ValidationTest: test_size_less_than ----------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-73911-e5qx80.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73911-50byon.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73911-104g6s6.jpg'  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------------- ValidationTest: test_size_within -------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-73911-f683cn.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73911-1eeunc4.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161220-73911-175reo4.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73911-s6b7i8.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73911-1efkpfd.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidationTest: test_content_type_with -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73911-e8sq62.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73911-erq3lm.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73911-cb1uax.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidationTest: test_size_in ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-73911-8kb3qw.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73911-k3n3c4.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161220-73911-1vk4zap.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73911-8ebj9l.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73911-d0wc17.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- ValidationTest: test_content_type_within ---------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73911-1bwao87.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73911-xldzzt.jpg'  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------------- ValidationTest: test_size_in ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-73974-1nzra5y.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73974-1ewjlau.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161220-73974-5mj6wj.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73974-1katf7m.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73974-ymannw.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidationTest: test_methods ----------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidationTest: test_size_greater_than -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161220-73974-1otvz1b.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73974-1wpm9wb.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73974-3c1sgy.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- ValidationTest: test_size_less_than ----------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-73974-hfb0bu.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73974-86444f.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73974-glbscp.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- ValidationTest: test_size_within -------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-73974-1n88awz.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73974-1dqmhjs.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161220-73974-3nwi8t.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73974-10zsij0.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73974-1j0djof.jpg'  (1.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------- ValidationTest: test_presence -----------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidationTest: test_content_type_with -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73974-14k5pvp.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73974-39au6w.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73974-9f6fb1.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- ValidationTest: test_content_type_within ---------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73974-r4bv8p.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73974-hve06l.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ ValidationTest: test_content_type_in ------------------------------------ Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73974-1kdyh0j.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-73974-1h8kb0h.jpg'  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN -------------------------------------- ValidationTest: test_size_greater_than -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161220-74021-k286vt.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74021-12ckwvy.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74021-1i9idwm.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- ValidationTest: test_size_less_than ----------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-74021-1iy1bae.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74021-bwi5cm.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74021-1y42eal.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- ValidationTest: test_size_within -------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-74021-1iyqcat.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74021-lgldgt.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161220-74021-1ya8spf.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74021-ma0lne.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74021-1balz53.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidationTest: test_size_in ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-74021-1s41aid.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74021-1lwjvbr.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161220-74021-11bpqhg.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74021-nj4i89.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74021-186hjo0.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------- ValidationTest: test_presence -----------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidationTest: test_content_type_with -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74021-vy32a2.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74021-lgdp6x.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74021-yxp8n0.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ ValidationTest: test_content_type_in ------------------------------------ Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74021-16hb4of.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74021-w9jx80.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidationTest: test_methods ----------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- ValidationTest: test_content_type_within ---------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74021-14mtxhv.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74021-13s7xxw.jpg'  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ----------------------------- ValidationTest: test_presence ----------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74068-c0bcnr.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidationTest: test_size_greater_than -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161220-74068-1t6e1xz.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74068-1g55un7.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74068-m44hln.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidationTest: test_size_in ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-74068-1kb0ypr.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74068-wj1yci.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161220-74068-9r6myl.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74068-1jmru7n.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74068-v4ox84.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidationTest: test_methods ----------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidationTest: test_content_type_with -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74068-gldkr2.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74068-1l7vufg.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74068-1advl1e.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- ValidationTest: test_size_less_than ----------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-74068-1xt5kuo.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74068-19dm5m1.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74068-1i1xpcs.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- ValidationTest: test_size_within -------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-74068-sar2e3.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74068-l0bp4.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161220-74068-bb7u3h.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74068-220ilr.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74068-o95h70.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ ValidationTest: test_content_type_in ------------------------------------ Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74068-1v7jgso.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74068-qa03yr.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- ValidationTest: test_content_type_within ---------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74068-4z2ofb.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74068-1f7llj6.jpg'  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ----------------------------- ValidationTest: test_presence ----------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74130-1yzpuza.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- ValidationTest: test_size_within -------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-74130-1qblaoo.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74130-vn9v1u.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161220-74130-1xwlq6q.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74130-m0sr9x.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74130-4z0qfv.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidationTest: test_size_greater_than -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161220-74130-ztzqy8.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74130-fj0mvq.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74130-4dl2a6.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ ValidationTest: test_content_type_in ------------------------------------ Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74130-1fd5oe1.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74130-1njzvig.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidationTest: test_content_type_with -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74130-1e0ls1.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74130-1fpkvmb.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74130-yi17ox.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- ValidationTest: test_size_less_than ----------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-74130-1fdexvg.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74130-z0jeye.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74130-pji1m0.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- ValidationTest: test_content_type_within ---------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74130-1bjvdus.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74130-1nkduk2.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidationTest: test_methods ----------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidationTest: test_size_in ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-74130-1n14rqw.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74130-1h1521.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161220-74130-f26ncb.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74130-1j0xhvq.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74130-a4fqiq.jpg'  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------ ValidationTest: test_content_type_in ------------------------------------ Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74190-n7n1hd.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74190-ed1zs9.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74190-x7er8b.jpg'  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------- ValidationTest: test_size_less_than ----------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-74190-13tfgm4.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74190-1duo7mq.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74190-1l5rbra.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------- ValidationTest: test_presence ----------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74190-j231w4.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidationTest: test_methods ----------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- ValidationTest: test_size_within -------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-74190-uckye7.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74190-owo86o.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161220-74190-8slbdm.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74190-17exn4d.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74190-tqqdfa.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidationTest: test_size_greater_than -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161220-74190-139bgay.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74190-1o2ucm7.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74190-1e8t04p.jpg'  (0.3ms) ROLLBACK  (0.2ms) BEGIN ---------------------------- ValidationTest: test_size_in ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-74190-13iod6n.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74190-juauy1.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161220-74190-x4mx39.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74190-nacz8g.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74190-1dvnc6y.jpg'  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- ValidationTest: test_content_type_within ---------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74190-1pxyo5k.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74190-ft3it7.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74190-10areyq.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidationTest: test_content_type_with -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74190-br8x5f.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74190-8y0g0p.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74190-xi2lnm.jpg'  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN --------------------------- GeneratorTest: test_install ---------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------- GeneratorTest: test_upload --------------------------  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------- CollectionTest: test_index -------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-v20u5n.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-cqvske.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"cebfa8dc907446cc9f06826185b777c2\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T14:37:00.931-03:00\",\"paths\":{\"original\":\"cebfa8dc907446cc9f06826185b777c2-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725,\"position\":0},{\"id\":\"c3e115c167b54f6ca01534b74b7ddf1c\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T14:37:00.932-03:00\",\"paths\":{\"original\":\"c3e115c167b54f6ca01534b74b7ddf1c-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-12-20 17:37:00.933265"], ["updated_at", "2016-12-20 17:37:00.933265"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 5]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- CollectionTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-6jqrhy.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-12al7oi.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"95a5c60b86e84ce0b58a3f897abe61cd\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T14:37:00.962-03:00\",\"paths\":{\"original\":\"95a5c60b86e84ce0b58a3f897abe61cd-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725},{\"id\":\"ac989f1f61aa42779beac35e7a15aebf\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T14:37:00.963-03:00\",\"paths\":{\"original\":\"ac989f1f61aa42779beac35e7a15aebf-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-12-20 17:37:00.964032"], ["updated_at", "2016-12-20 17:37:00.964032"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-6jqrhy.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-1c455mh.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-1c455mh.jpg => 95a5c60b86e84ce0b58a3f897abe61cd-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-12al7oi.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-ywq3kl.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-ywq3kl.jpg => ac989f1f61aa42779beac35e7a15aebf-original.jpg Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 6]] [ActiveJob] [Attachs::Jobs::DeleteJob] [8d96c007-10f1-45c9-8b06-ecf83e7047fd] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["95a5c60b86e84ce0b58a3f897abe61cd-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [8d96c007-10f1-45c9-8b06-ecf83e7047fd] Deleting: 95a5c60b86e84ce0b58a3f897abe61cd-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [8d96c007-10f1-45c9-8b06-ecf83e7047fd] Performed Attachs::Jobs::DeleteJob from Inline(default) in 776.7ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 8d96c007-10f1-45c9-8b06-ecf83e7047fd) to Inline(default) with arguments: ["95a5c60b86e84ce0b58a3f897abe61cd-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [ef82f21d-2be4-4d0f-b156-d8351187b062] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["ac989f1f61aa42779beac35e7a15aebf-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [ef82f21d-2be4-4d0f-b156-d8351187b062] Deleting: ac989f1f61aa42779beac35e7a15aebf-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [ef82f21d-2be4-4d0f-b156-d8351187b062] Performed Attachs::Jobs::DeleteJob from Inline(default) in 1843.65ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: ef82f21d-2be4-4d0f-b156-d8351187b062) to Inline(default) with arguments: ["ac989f1f61aa42779beac35e7a15aebf-original.jpg"]  (0.3ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------- CollectionTest: test_nested_attributes -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-1a6f7t6.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-r12x03.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- AttachmentTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-ovlmhe.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"f6b706cdeb034041b86e5d09af2994c7\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T14:37:06.192-03:00\",\"paths\":{\"original\":\"f6b706cdeb034041b86e5d09af2994c7-original.png\",\"tiny\":\"f6b706cdeb034041b86e5d09af2994c7-tiny.png\",\"small\":\"f6b706cdeb034041b86e5d09af2994c7-small.png\",\"medium\":\"f6b706cdeb034041b86e5d09af2994c7-medium.png\",\"large\":\"f6b706cdeb034041b86e5d09af2994c7-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-20 17:37:06.193441"], ["updated_at", "2016-12-20 17:37:06.193441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-ovlmhe.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-7vbpg6.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-7vbpg6.png => f6b706cdeb034041b86e5d09af2994c7-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-ovlmhe.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-4fe4q0.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-4fe4q0.png => f6b706cdeb034041b86e5d09af2994c7-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-ovlmhe.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-rrb1fi.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-rrb1fi.png => f6b706cdeb034041b86e5d09af2994c7-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-ovlmhe.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-zbljdx.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-zbljdx.png => f6b706cdeb034041b86e5d09af2994c7-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-ovlmhe.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-1tmaekf.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-1tmaekf.png => f6b706cdeb034041b86e5d09af2994c7-large.png Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 9]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 9]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Attachs::Jobs::DeleteJob] [55ab5395-77ca-4ee3-af1e-12b20599a839] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["f6b706cdeb034041b86e5d09af2994c7-tiny.png", "f6b706cdeb034041b86e5d09af2994c7-large.png", "f6b706cdeb034041b86e5d09af2994c7-small.png", "f6b706cdeb034041b86e5d09af2994c7-medium.png", "f6b706cdeb034041b86e5d09af2994c7-original.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [55ab5395-77ca-4ee3-af1e-12b20599a839] Deleting: f6b706cdeb034041b86e5d09af2994c7-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [55ab5395-77ca-4ee3-af1e-12b20599a839] Deleting: f6b706cdeb034041b86e5d09af2994c7-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [55ab5395-77ca-4ee3-af1e-12b20599a839] Deleting: f6b706cdeb034041b86e5d09af2994c7-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [55ab5395-77ca-4ee3-af1e-12b20599a839] Deleting: f6b706cdeb034041b86e5d09af2994c7-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [55ab5395-77ca-4ee3-af1e-12b20599a839] Deleting: f6b706cdeb034041b86e5d09af2994c7-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [55ab5395-77ca-4ee3-af1e-12b20599a839] Performed Attachs::Jobs::DeleteJob from Inline(default) in 3590.11ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 55ab5395-77ca-4ee3-af1e-12b20599a839) to Inline(default) with arguments: ["f6b706cdeb034041b86e5d09af2994c7-tiny.png", "f6b706cdeb034041b86e5d09af2994c7-large.png", "f6b706cdeb034041b86e5d09af2994c7-small.png", "f6b706cdeb034041b86e5d09af2994c7-medium.png", "f6b706cdeb034041b86e5d09af2994c7-original.png"]  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_default ----------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- AttachmentTest: test_nested_attributes --------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_renames ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-3un85v.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("logo", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["logo", "{\"id\":\"fb89f57266be45d4b34bdf240d9c85da\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T14:37:35.807-03:00\",\"paths\":{\"original\":\"anderstons/fb89f57266be45d4b34bdf240d9c85da-original.png\",\"tiny\":\"anderstons/fb89f57266be45d4b34bdf240d9c85da-tiny.png\",\"small\":\"anderstons/fb89f57266be45d4b34bdf240d9c85da-small.png\",\"medium\":\"anderstons/fb89f57266be45d4b34bdf240d9c85da-medium.png\",\"large\":\"anderstons/fb89f57266be45d4b34bdf240d9c85da-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["name", "Anderstons"], ["created_at", "2016-12-20 17:37:35.808051"], ["updated_at", "2016-12-20 17:37:35.808051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-3un85v.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-m5nfz2.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-m5nfz2.png => anderstons/fb89f57266be45d4b34bdf240d9c85da-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-3un85v.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-6mo80z.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-6mo80z.png => anderstons/fb89f57266be45d4b34bdf240d9c85da-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-3un85v.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-769rg4.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-769rg4.png => anderstons/fb89f57266be45d4b34bdf240d9c85da-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-3un85v.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-1eh4epr.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-1eh4epr.png => anderstons/fb89f57266be45d4b34bdf240d9c85da-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-3un85v.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-171myn7.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-171myn7.png => anderstons/fb89f57266be45d4b34bdf240d9c85da-large.png  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "shops" SET "name" = $1, "updated_at" = $2 WHERE "shops"."id" = $3 [["name", "Musicians Friend"], ["updated_at", "2016-12-20 17:37:45.789922"], ["id", 10]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 10]] [ActiveJob] [Attachs::Jobs::UpdateJob] [193909e0-6093-49a3-86ee-de77c910e727] Performing Attachs::Jobs::UpdateJob from Inline(default) with arguments: gid://dummy/Shop/10, "logo" [ActiveJob] [Attachs::Jobs::UpdateJob] [193909e0-6093-49a3-86ee-de77c910e727] Copying: anderstons/fb89f57266be45d4b34bdf240d9c85da-original.png => musicians-friend/fb89f57266be45d4b34bdf240d9c85da-original.png [ActiveJob] [Attachs::Jobs::UpdateJob] [193909e0-6093-49a3-86ee-de77c910e727] Copying: anderstons/fb89f57266be45d4b34bdf240d9c85da-tiny.png => musicians-friend/fb89f57266be45d4b34bdf240d9c85da-tiny.png [ActiveJob] [Attachs::Jobs::UpdateJob] [193909e0-6093-49a3-86ee-de77c910e727] Copying: anderstons/fb89f57266be45d4b34bdf240d9c85da-small.png => musicians-friend/fb89f57266be45d4b34bdf240d9c85da-small.png [ActiveJob] [Attachs::Jobs::UpdateJob] [193909e0-6093-49a3-86ee-de77c910e727] Copying: anderstons/fb89f57266be45d4b34bdf240d9c85da-medium.png => musicians-friend/fb89f57266be45d4b34bdf240d9c85da-medium.png [ActiveJob] [Attachs::Jobs::UpdateJob] [193909e0-6093-49a3-86ee-de77c910e727] Copying: anderstons/fb89f57266be45d4b34bdf240d9c85da-large.png => musicians-friend/fb89f57266be45d4b34bdf240d9c85da-large.png [ActiveJob] [Attachs::Jobs::UpdateJob] [193909e0-6093-49a3-86ee-de77c910e727] SQL (0.2ms) UPDATE "shops" SET "logo" = '{"paths":{"tiny":"musicians-friend/fb89f57266be45d4b34bdf240d9c85da-tiny.png","large":"musicians-friend/fb89f57266be45d4b34bdf240d9c85da-large.png","small":"musicians-friend/fb89f57266be45d4b34bdf240d9c85da-small.png","medium":"musicians-friend/fb89f57266be45d4b34bdf240d9c85da-medium.png","original":"musicians-friend/fb89f57266be45d4b34bdf240d9c85da-original.png"},"old_paths":["anderstons/fb89f57266be45d4b34bdf240d9c85da-original.png","anderstons/fb89f57266be45d4b34bdf240d9c85da-tiny.png","anderstons/fb89f57266be45d4b34bdf240d9c85da-small.png","anderstons/fb89f57266be45d4b34bdf240d9c85da-medium.png","anderstons/fb89f57266be45d4b34bdf240d9c85da-large.png"],"id":"fb89f57266be45d4b34bdf240d9c85da","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-20T14:37:35.807-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 10]] [ActiveJob] [Attachs::Jobs::UpdateJob] [193909e0-6093-49a3-86ee-de77c910e727] Performed Attachs::Jobs::UpdateJob from Inline(default) in 2697.38ms [ActiveJob] Enqueued Attachs::Jobs::UpdateJob (Job ID: 193909e0-6093-49a3-86ee-de77c910e727) to Inline(default) with arguments: gid://dummy/Shop/10, "logo" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 10]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 10]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Attachs::Jobs::DeleteJob] [943f1f8c-a55e-46f9-8c07-2ca20e361e8b] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["musicians-friend/fb89f57266be45d4b34bdf240d9c85da-tiny.png", "musicians-friend/fb89f57266be45d4b34bdf240d9c85da-large.png", "musicians-friend/fb89f57266be45d4b34bdf240d9c85da-small.png", "musicians-friend/fb89f57266be45d4b34bdf240d9c85da-medium.png", "musicians-friend/fb89f57266be45d4b34bdf240d9c85da-original.png", "anderstons/fb89f57266be45d4b34bdf240d9c85da-original.png", "anderstons/fb89f57266be45d4b34bdf240d9c85da-tiny.png", "anderstons/fb89f57266be45d4b34bdf240d9c85da-small.png", "anderstons/fb89f57266be45d4b34bdf240d9c85da-medium.png", "anderstons/fb89f57266be45d4b34bdf240d9c85da-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [943f1f8c-a55e-46f9-8c07-2ca20e361e8b] Deleting: musicians-friend/fb89f57266be45d4b34bdf240d9c85da-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [943f1f8c-a55e-46f9-8c07-2ca20e361e8b] Deleting: musicians-friend/fb89f57266be45d4b34bdf240d9c85da-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [943f1f8c-a55e-46f9-8c07-2ca20e361e8b] Deleting: musicians-friend/fb89f57266be45d4b34bdf240d9c85da-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [943f1f8c-a55e-46f9-8c07-2ca20e361e8b] Deleting: musicians-friend/fb89f57266be45d4b34bdf240d9c85da-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [943f1f8c-a55e-46f9-8c07-2ca20e361e8b] Deleting: musicians-friend/fb89f57266be45d4b34bdf240d9c85da-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [943f1f8c-a55e-46f9-8c07-2ca20e361e8b] Deleting: anderstons/fb89f57266be45d4b34bdf240d9c85da-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [943f1f8c-a55e-46f9-8c07-2ca20e361e8b] Deleting: anderstons/fb89f57266be45d4b34bdf240d9c85da-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [943f1f8c-a55e-46f9-8c07-2ca20e361e8b] Deleting: anderstons/fb89f57266be45d4b34bdf240d9c85da-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [943f1f8c-a55e-46f9-8c07-2ca20e361e8b] Deleting: anderstons/fb89f57266be45d4b34bdf240d9c85da-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [943f1f8c-a55e-46f9-8c07-2ca20e361e8b] Deleting: anderstons/fb89f57266be45d4b34bdf240d9c85da-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [943f1f8c-a55e-46f9-8c07-2ca20e361e8b] Performed Attachs::Jobs::DeleteJob from Inline(default) in 4397.92ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 943f1f8c-a55e-46f9-8c07-2ca20e361e8b) to Inline(default) with arguments: ["musicians-friend/fb89f57266be45d4b34bdf240d9c85da-tiny.png", "musicians-friend/fb89f57266be45d4b34bdf240d9c85da-large.png", "musicians-friend/fb89f57266be45d4b34bdf240d9c85da-small.png", "musicians-friend/fb89f57266be45d4b34bdf240d9c85da-medium.png", "musicians-friend/fb89f57266be45d4b34bdf240d9c85da-original.png", "anderstons/fb89f57266be45d4b34bdf240d9c85da-original.png", "anderstons/fb89f57266be45d4b34bdf240d9c85da-tiny.png", "anderstons/fb89f57266be45d4b34bdf240d9c85da-small.png", "anderstons/fb89f57266be45d4b34bdf240d9c85da-medium.png", "anderstons/fb89f57266be45d4b34bdf240d9c85da-large.png"]  (0.4ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidationTest: test_methods ----------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ ValidationTest: test_content_type_in ------------------------------------ Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-y1g1vt.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-1ssw18f.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-1jr493c.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------- ValidationTest: test_presence ----------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-la1dsq.jpg'  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------- ValidationTest: test_size_less_than ----------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-74238-1wnn8x2.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-1pslmd4.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-v9x52x.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidationTest: test_content_type_with -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-1rj21pn.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-10qxk2t.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-ygpsu.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- ValidationTest: test_content_type_within ---------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-7hgxux.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-1lknvqb.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-v7mlgl.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidationTest: test_size_greater_than -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161220-74238-1bmlyyl.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-v4x2yd.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-14leysi.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidationTest: test_size_in ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-74238-encenn.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-1a2cktq.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161220-74238-eqvyi8.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-9bpfoy.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-zu8mys.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- ValidationTest: test_size_within -------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-74238-15f3j8q.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-i1ubv.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161220-74238-130gydw.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-16c1lox.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-16tz9lc.jpg'  (0.2ms) ROLLBACK  (0.2ms) BEGIN --------------------------- HelperTest: test_fields_for --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-1imyy37.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"8f9f5f494efc45a2ba75f7a5cf475078\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T14:38:21.945-03:00\",\"paths\":{\"original\":\"8f9f5f494efc45a2ba75f7a5cf475078-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-12-20 17:38:21.946392"], ["updated_at", "2016-12-20 17:38:21.946392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-1imyy37.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-3j93x1.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-3j93x1.jpg => 8f9f5f494efc45a2ba75f7a5cf475078-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [cbfd2a44-ddc5-4a5e-8a28-08363a6ac71e] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["8f9f5f494efc45a2ba75f7a5cf475078-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [cbfd2a44-ddc5-4a5e-8a28-08363a6ac71e] Deleting: 8f9f5f494efc45a2ba75f7a5cf475078-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [cbfd2a44-ddc5-4a5e-8a28-08363a6ac71e] Performed Attachs::Jobs::DeleteJob from Inline(default) in 358.8ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: cbfd2a44-ddc5-4a5e-8a28-08363a6ac71e) to Inline(default) with arguments: ["8f9f5f494efc45a2ba75f7a5cf475078-original.jpg"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------- TaskTest: test_exist -------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-ru3ldu.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "logo", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "first"], ["logo", "{\"id\":\"b9d061effc864928b21e79371e08c7da\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T14:38:23.618-03:00\",\"paths\":{\"original\":\"first/b9d061effc864928b21e79371e08c7da-original.png\",\"tiny\":\"first/b9d061effc864928b21e79371e08c7da-tiny.png\",\"small\":\"first/b9d061effc864928b21e79371e08c7da-small.png\",\"medium\":\"first/b9d061effc864928b21e79371e08c7da-medium.png\",\"large\":\"first/b9d061effc864928b21e79371e08c7da-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-20 17:38:23.619474"], ["updated_at", "2016-12-20 17:38:23.619474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-ru3ldu.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-kw4v3v.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-kw4v3v.png => first/b9d061effc864928b21e79371e08c7da-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-ru3ldu.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-1bu4901.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-1bu4901.png => first/b9d061effc864928b21e79371e08c7da-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-ru3ldu.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-5rncxj.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-5rncxj.png => first/b9d061effc864928b21e79371e08c7da-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-ru3ldu.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-bargn3.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-bargn3.png => first/b9d061effc864928b21e79371e08c7da-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-ru3ldu.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-1pqi25.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-1pqi25.png => first/b9d061effc864928b21e79371e08c7da-large.png  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "shops" SET "name" = $1, "updated_at" = $2 WHERE "shops"."id" = $3 [["name", "second"], ["updated_at", "2016-12-20 17:38:26.944891"], ["id", 11]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 11]] [ActiveJob] [Attachs::Jobs::UpdateJob] [d6349872-65cb-4438-aa4b-6df3d9a81839] Performing Attachs::Jobs::UpdateJob from Inline(default) with arguments: gid://dummy/Shop/11, "logo" [ActiveJob] [Attachs::Jobs::UpdateJob] [d6349872-65cb-4438-aa4b-6df3d9a81839] Copying: first/b9d061effc864928b21e79371e08c7da-original.png => second/b9d061effc864928b21e79371e08c7da-original.png [ActiveJob] [Attachs::Jobs::UpdateJob] [d6349872-65cb-4438-aa4b-6df3d9a81839] Copying: first/b9d061effc864928b21e79371e08c7da-tiny.png => second/b9d061effc864928b21e79371e08c7da-tiny.png [ActiveJob] [Attachs::Jobs::UpdateJob] [d6349872-65cb-4438-aa4b-6df3d9a81839] Copying: first/b9d061effc864928b21e79371e08c7da-small.png => second/b9d061effc864928b21e79371e08c7da-small.png [ActiveJob] [Attachs::Jobs::UpdateJob] [d6349872-65cb-4438-aa4b-6df3d9a81839] Copying: first/b9d061effc864928b21e79371e08c7da-medium.png => second/b9d061effc864928b21e79371e08c7da-medium.png [ActiveJob] [Attachs::Jobs::UpdateJob] [d6349872-65cb-4438-aa4b-6df3d9a81839] Copying: first/b9d061effc864928b21e79371e08c7da-large.png => second/b9d061effc864928b21e79371e08c7da-large.png [ActiveJob] [Attachs::Jobs::UpdateJob] [d6349872-65cb-4438-aa4b-6df3d9a81839] SQL (0.2ms) UPDATE "shops" SET "logo" = '{"paths":{"tiny":"second/b9d061effc864928b21e79371e08c7da-tiny.png","large":"second/b9d061effc864928b21e79371e08c7da-large.png","small":"second/b9d061effc864928b21e79371e08c7da-small.png","medium":"second/b9d061effc864928b21e79371e08c7da-medium.png","original":"second/b9d061effc864928b21e79371e08c7da-original.png"},"old_paths":["first/b9d061effc864928b21e79371e08c7da-original.png","first/b9d061effc864928b21e79371e08c7da-tiny.png","first/b9d061effc864928b21e79371e08c7da-small.png","first/b9d061effc864928b21e79371e08c7da-medium.png","first/b9d061effc864928b21e79371e08c7da-large.png"],"id":"b9d061effc864928b21e79371e08c7da","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-20T14:38:23.618-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 11]] [ActiveJob] [Attachs::Jobs::UpdateJob] [d6349872-65cb-4438-aa4b-6df3d9a81839] Performed Attachs::Jobs::UpdateJob from Inline(default) in 2347.14ms [ActiveJob] Enqueued Attachs::Jobs::UpdateJob (Job ID: d6349872-65cb-4438-aa4b-6df3d9a81839) to Inline(default) with arguments: gid://dummy/Shop/11, "logo" Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-88mhl1.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-1czzss2.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"89e4f947c6474ad99106364e293c69ca\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T14:38:29.319-03:00\",\"paths\":{\"original\":\"89e4f947c6474ad99106364e293c69ca-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725},{\"id\":\"7e85f13b3e1b4707affcf1b98c3808b7\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T14:38:29.320-03:00\",\"paths\":{\"original\":\"7e85f13b3e1b4707affcf1b98c3808b7-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-12-20 17:38:29.321503"], ["updated_at", "2016-12-20 17:38:29.321503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-88mhl1.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-men7y1.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-men7y1.jpg => 89e4f947c6474ad99106364e293c69ca-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-1czzss2.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-u65g2e.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-u65g2e.jpg => 7e85f13b3e1b4707affcf1b98c3808b7-original.jpg  (1.0ms) SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/b9d061effc864928b21e79371e08c7da-original.png' OR old_paths.value = 'first/b9d061effc864928b21e79371e08c7da-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/b9d061effc864928b21e79371e08c7da-original.png' OR old_paths.value = 'first/b9d061effc864928b21e79371e08c7da-original.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/b9d061effc864928b21e79371e08c7da-original.png' OR old_paths.value = 'first/b9d061effc864928b21e79371e08c7da-original.png')  (0.6ms) SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/b9d061effc864928b21e79371e08c7da-original.png' OR old_paths.value = 'first/b9d061effc864928b21e79371e08c7da-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/b9d061effc864928b21e79371e08c7da-original.png' OR old_paths.value = 'first/b9d061effc864928b21e79371e08c7da-original.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/b9d061effc864928b21e79371e08c7da-original.png' OR old_paths.value = 'first/b9d061effc864928b21e79371e08c7da-original.png')  (0.5ms) SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '89e4f947c6474ad99106364e293c69ca-original.jpg' OR old_paths.value = '89e4f947c6474ad99106364e293c69ca-original.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '89e4f947c6474ad99106364e293c69ca-original.jpg' OR old_paths.value = '89e4f947c6474ad99106364e293c69ca-original.jpg') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '89e4f947c6474ad99106364e293c69ca-original.jpg' OR old_paths.value = '89e4f947c6474ad99106364e293c69ca-original.jpg') [ActiveJob] [Attachs::Jobs::DeleteJob] [97822d6e-55a4-41bd-a9af-2c0085cebd62] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["first/b9d061effc864928b21e79371e08c7da-original.png", "first/b9d061effc864928b21e79371e08c7da-tiny.png", "first/b9d061effc864928b21e79371e08c7da-small.png", "first/b9d061effc864928b21e79371e08c7da-medium.png", "first/b9d061effc864928b21e79371e08c7da-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [97822d6e-55a4-41bd-a9af-2c0085cebd62] Deleting: first/b9d061effc864928b21e79371e08c7da-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [97822d6e-55a4-41bd-a9af-2c0085cebd62] Deleting: first/b9d061effc864928b21e79371e08c7da-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [97822d6e-55a4-41bd-a9af-2c0085cebd62] Deleting: first/b9d061effc864928b21e79371e08c7da-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [97822d6e-55a4-41bd-a9af-2c0085cebd62] Deleting: first/b9d061effc864928b21e79371e08c7da-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [97822d6e-55a4-41bd-a9af-2c0085cebd62] Deleting: first/b9d061effc864928b21e79371e08c7da-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [97822d6e-55a4-41bd-a9af-2c0085cebd62] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2185.63ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 97822d6e-55a4-41bd-a9af-2c0085cebd62) to Inline(default) with arguments: ["first/b9d061effc864928b21e79371e08c7da-original.png", "first/b9d061effc864928b21e79371e08c7da-tiny.png", "first/b9d061effc864928b21e79371e08c7da-small.png", "first/b9d061effc864928b21e79371e08c7da-medium.png", "first/b9d061effc864928b21e79371e08c7da-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [7aed106b-87d6-4b1a-9d6f-894c5b03adf5] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["89e4f947c6474ad99106364e293c69ca-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [7aed106b-87d6-4b1a-9d6f-894c5b03adf5] Deleting: 89e4f947c6474ad99106364e293c69ca-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [7aed106b-87d6-4b1a-9d6f-894c5b03adf5] Performed Attachs::Jobs::DeleteJob from Inline(default) in 376.34ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 7aed106b-87d6-4b1a-9d6f-894c5b03adf5) to Inline(default) with arguments: ["89e4f947c6474ad99106364e293c69ca-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [38fa4275-0af2-4adc-9603-9b8bfc68aa09] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["7e85f13b3e1b4707affcf1b98c3808b7-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [38fa4275-0af2-4adc-9603-9b8bfc68aa09] Deleting: 7e85f13b3e1b4707affcf1b98c3808b7-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [38fa4275-0af2-4adc-9603-9b8bfc68aa09] Performed Attachs::Jobs::DeleteJob from Inline(default) in 375.42ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 38fa4275-0af2-4adc-9603-9b8bfc68aa09) to Inline(default) with arguments: ["7e85f13b3e1b4707affcf1b98c3808b7-original.jpg"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- TaskTest: test_fix_missings --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-1vrw1fp.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"118e049cb5cf47e69ccfd4f912cfaafb\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T14:38:33.360-03:00\",\"paths\":{\"original\":\"118e049cb5cf47e69ccfd4f912cfaafb-original.png\",\"tiny\":\"118e049cb5cf47e69ccfd4f912cfaafb-tiny.png\",\"small\":\"118e049cb5cf47e69ccfd4f912cfaafb-small.png\",\"medium\":\"118e049cb5cf47e69ccfd4f912cfaafb-medium.png\",\"large\":\"118e049cb5cf47e69ccfd4f912cfaafb-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-20 17:38:33.360869"], ["updated_at", "2016-12-20 17:38:33.360869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-1vrw1fp.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-e1hxnq.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-e1hxnq.png => 118e049cb5cf47e69ccfd4f912cfaafb-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-1vrw1fp.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-leec5y.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-leec5y.png => 118e049cb5cf47e69ccfd4f912cfaafb-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-1vrw1fp.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-1hg2f4r.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-1hg2f4r.png => 118e049cb5cf47e69ccfd4f912cfaafb-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-1vrw1fp.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-17r4c0e.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-17r4c0e.png => 118e049cb5cf47e69ccfd4f912cfaafb-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-1vrw1fp.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-y7q9m7.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-y7q9m7.png => 118e049cb5cf47e69ccfd4f912cfaafb-large.png Deleting: 118e049cb5cf47e69ccfd4f912cfaafb-tiny.png Deleting: 118e049cb5cf47e69ccfd4f912cfaafb-small.png Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Fix missings of Shop #12 => logo Generating: tiny => 118e049cb5cf47e69ccfd4f912cfaafb-tiny.png Generating: small => 118e049cb5cf47e69ccfd4f912cfaafb-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-zj7mpx.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-16okunu.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-16okunu.png => 118e049cb5cf47e69ccfd4f912cfaafb-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-zj7mpx.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-mgqrz1.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-mgqrz1.png => 118e049cb5cf47e69ccfd4f912cfaafb-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-zj7mpx.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-1ku2b59.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-1ku2b59.png => 118e049cb5cf47e69ccfd4f912cfaafb-small.png Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Fix missings of Shop #12 => logo [ActiveJob] [Attachs::Jobs::DeleteJob] [6c6fa711-d311-4125-a6d5-e20d4129a48d] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["118e049cb5cf47e69ccfd4f912cfaafb-original.png", "118e049cb5cf47e69ccfd4f912cfaafb-tiny.png", "118e049cb5cf47e69ccfd4f912cfaafb-small.png", "118e049cb5cf47e69ccfd4f912cfaafb-medium.png", "118e049cb5cf47e69ccfd4f912cfaafb-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [6c6fa711-d311-4125-a6d5-e20d4129a48d] Deleting: 118e049cb5cf47e69ccfd4f912cfaafb-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [6c6fa711-d311-4125-a6d5-e20d4129a48d] Deleting: 118e049cb5cf47e69ccfd4f912cfaafb-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [6c6fa711-d311-4125-a6d5-e20d4129a48d] Deleting: 118e049cb5cf47e69ccfd4f912cfaafb-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [6c6fa711-d311-4125-a6d5-e20d4129a48d] Deleting: 118e049cb5cf47e69ccfd4f912cfaafb-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [6c6fa711-d311-4125-a6d5-e20d4129a48d] Deleting: 118e049cb5cf47e69ccfd4f912cfaafb-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [6c6fa711-d311-4125-a6d5-e20d4129a48d] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2454.44ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 6c6fa711-d311-4125-a6d5-e20d4129a48d) to Inline(default) with arguments: ["118e049cb5cf47e69ccfd4f912cfaafb-original.png", "118e049cb5cf47e69ccfd4f912cfaafb-tiny.png", "118e049cb5cf47e69ccfd4f912cfaafb-small.png", "118e049cb5cf47e69ccfd4f912cfaafb-medium.png", "118e049cb5cf47e69ccfd4f912cfaafb-large.png"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ TaskTest: test_reprocess ------------------------ Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-16ken1m.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"2c89d73cf2fe47bdbcbd69dc974face8\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T14:38:52.624-03:00\",\"paths\":{\"original\":\"2c89d73cf2fe47bdbcbd69dc974face8-original.png\",\"tiny\":\"2c89d73cf2fe47bdbcbd69dc974face8-tiny.png\",\"small\":\"2c89d73cf2fe47bdbcbd69dc974face8-small.png\",\"medium\":\"2c89d73cf2fe47bdbcbd69dc974face8-medium.png\",\"large\":\"2c89d73cf2fe47bdbcbd69dc974face8-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-20 17:38:52.625497"], ["updated_at", "2016-12-20 17:38:52.625497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-16ken1m.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-n3n2ao.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-n3n2ao.png => 2c89d73cf2fe47bdbcbd69dc974face8-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-16ken1m.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-c2fpnu.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-c2fpnu.png => 2c89d73cf2fe47bdbcbd69dc974face8-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-16ken1m.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-140z46a.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-140z46a.png => 2c89d73cf2fe47bdbcbd69dc974face8-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-16ken1m.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-43zlxg.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-43zlxg.png => 2c89d73cf2fe47bdbcbd69dc974face8-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-16ken1m.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-x48ssz.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-x48ssz.png => 2c89d73cf2fe47bdbcbd69dc974face8-large.png Deleting: 2c89d73cf2fe47bdbcbd69dc974face8-tiny.png Deleting: 2c89d73cf2fe47bdbcbd69dc974face8-small.png Deleting: 2c89d73cf2fe47bdbcbd69dc974face8-medium.png Deleting: 2c89d73cf2fe47bdbcbd69dc974face8-large.png Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Reprocessing Shop #13 => logo Regenerating: tiny => 2c89d73cf2fe47bdbcbd69dc974face8-tiny.png Regenerating: large => 2c89d73cf2fe47bdbcbd69dc974face8-large.png Regenerating: small => 2c89d73cf2fe47bdbcbd69dc974face8-small.png Regenerating: medium => 2c89d73cf2fe47bdbcbd69dc974face8-medium.png Deleting: 2c89d73cf2fe47bdbcbd69dc974face8-original.png Regenerating: original => 2c89d73cf2fe47bdbcbd69dc974face8-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-punv8p.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-jczwaf.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-jczwaf.png => 2c89d73cf2fe47bdbcbd69dc974face8-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-punv8p.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-d9lkb6.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-d9lkb6.png => 2c89d73cf2fe47bdbcbd69dc974face8-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-punv8p.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-1ivk6tm.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-1ivk6tm.png => 2c89d73cf2fe47bdbcbd69dc974face8-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-punv8p.png' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-1mn1dnx.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-1mn1dnx.png => 2c89d73cf2fe47bdbcbd69dc974face8-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-punv8p.png' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-16fvxf2.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-16fvxf2.png => 2c89d73cf2fe47bdbcbd69dc974face8-large.png SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"original":"2c89d73cf2fe47bdbcbd69dc974face8-original.png","tiny":"2c89d73cf2fe47bdbcbd69dc974face8-tiny.png","small":"2c89d73cf2fe47bdbcbd69dc974face8-small.png","medium":"2c89d73cf2fe47bdbcbd69dc974face8-medium.png","large":"2c89d73cf2fe47bdbcbd69dc974face8-large.png"},"old_paths":[],"id":"2c89d73cf2fe47bdbcbd69dc974face8","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-20T14:38:52.624-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 13]] Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Reprocessing Shop #13 => logo Deleting: 2c89d73cf2fe47bdbcbd69dc974face8-tiny.png Regenerating: tiny => 2c89d73cf2fe47bdbcbd69dc974face8-tiny.png Deleting: 2c89d73cf2fe47bdbcbd69dc974face8-large.png Regenerating: large => 2c89d73cf2fe47bdbcbd69dc974face8-large.png Deleting: 2c89d73cf2fe47bdbcbd69dc974face8-small.png Regenerating: small => 2c89d73cf2fe47bdbcbd69dc974face8-small.png Deleting: 2c89d73cf2fe47bdbcbd69dc974face8-medium.png Regenerating: medium => 2c89d73cf2fe47bdbcbd69dc974face8-medium.png Deleting: 2c89d73cf2fe47bdbcbd69dc974face8-original.png Regenerating: original => 2c89d73cf2fe47bdbcbd69dc974face8-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-129bthd.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-16xz7em.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-16xz7em.png => 2c89d73cf2fe47bdbcbd69dc974face8-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-129bthd.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-1q701fx.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-1q701fx.png => 2c89d73cf2fe47bdbcbd69dc974face8-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-129bthd.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-dba5ru.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-dba5ru.png => 2c89d73cf2fe47bdbcbd69dc974face8-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-129bthd.png' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-13t1lew.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-13t1lew.png => 2c89d73cf2fe47bdbcbd69dc974face8-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-129bthd.png' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-r0anqu.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-r0anqu.png => 2c89d73cf2fe47bdbcbd69dc974face8-large.png SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"original":"2c89d73cf2fe47bdbcbd69dc974face8-original.png","tiny":"2c89d73cf2fe47bdbcbd69dc974face8-tiny.png","small":"2c89d73cf2fe47bdbcbd69dc974face8-small.png","medium":"2c89d73cf2fe47bdbcbd69dc974face8-medium.png","large":"2c89d73cf2fe47bdbcbd69dc974face8-large.png"},"old_paths":[],"id":"2c89d73cf2fe47bdbcbd69dc974face8","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-20T14:38:52.624-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 13]] Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Reprocessing Shop #13 => logo Deleting: 2c89d73cf2fe47bdbcbd69dc974face8-tiny.png Regenerating: tiny => 2c89d73cf2fe47bdbcbd69dc974face8-tiny.png Deleting: 2c89d73cf2fe47bdbcbd69dc974face8-large.png Regenerating: large => 2c89d73cf2fe47bdbcbd69dc974face8-large.png Deleting: 2c89d73cf2fe47bdbcbd69dc974face8-small.png Regenerating: small => 2c89d73cf2fe47bdbcbd69dc974face8-small.png Deleting: 2c89d73cf2fe47bdbcbd69dc974face8-medium.png Regenerating: medium => 2c89d73cf2fe47bdbcbd69dc974face8-medium.png Deleting: 2c89d73cf2fe47bdbcbd69dc974face8-original.png Regenerating: original => 2c89d73cf2fe47bdbcbd69dc974face8-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-p40l1j.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-18kg4ox.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-18kg4ox.png => 2c89d73cf2fe47bdbcbd69dc974face8-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-p40l1j.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-19fc958.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-19fc958.png => 2c89d73cf2fe47bdbcbd69dc974face8-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-p40l1j.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-1r4ousm.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-1r4ousm.png => 2c89d73cf2fe47bdbcbd69dc974face8-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-p40l1j.png' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-1910kzq.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-1910kzq.png => 2c89d73cf2fe47bdbcbd69dc974face8-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-p40l1j.png' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-jngy0a.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-jngy0a.png => 2c89d73cf2fe47bdbcbd69dc974face8-large.png SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"original":"2c89d73cf2fe47bdbcbd69dc974face8-original.png","tiny":"2c89d73cf2fe47bdbcbd69dc974face8-tiny.png","small":"2c89d73cf2fe47bdbcbd69dc974face8-small.png","medium":"2c89d73cf2fe47bdbcbd69dc974face8-medium.png","large":"2c89d73cf2fe47bdbcbd69dc974face8-large.png"},"old_paths":[],"id":"2c89d73cf2fe47bdbcbd69dc974face8","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-20T14:38:52.624-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 13]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 13]] [ActiveJob] [Attachs::Jobs::DeleteJob] [0cf40d8d-3d5c-4171-aac1-cf3d27717ec4] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["2c89d73cf2fe47bdbcbd69dc974face8-tiny.png", "2c89d73cf2fe47bdbcbd69dc974face8-large.png", "2c89d73cf2fe47bdbcbd69dc974face8-small.png", "2c89d73cf2fe47bdbcbd69dc974face8-medium.png", "2c89d73cf2fe47bdbcbd69dc974face8-original.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [0cf40d8d-3d5c-4171-aac1-cf3d27717ec4] Deleting: 2c89d73cf2fe47bdbcbd69dc974face8-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [0cf40d8d-3d5c-4171-aac1-cf3d27717ec4] Deleting: 2c89d73cf2fe47bdbcbd69dc974face8-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [0cf40d8d-3d5c-4171-aac1-cf3d27717ec4] Deleting: 2c89d73cf2fe47bdbcbd69dc974face8-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [0cf40d8d-3d5c-4171-aac1-cf3d27717ec4] Deleting: 2c89d73cf2fe47bdbcbd69dc974face8-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [0cf40d8d-3d5c-4171-aac1-cf3d27717ec4] Deleting: 2c89d73cf2fe47bdbcbd69dc974face8-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [0cf40d8d-3d5c-4171-aac1-cf3d27717ec4] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2505.75ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 0cf40d8d-3d5c-4171-aac1-cf3d27717ec4) to Inline(default) with arguments: ["2c89d73cf2fe47bdbcbd69dc974face8-tiny.png", "2c89d73cf2fe47bdbcbd69dc974face8-large.png", "2c89d73cf2fe47bdbcbd69dc974face8-small.png", "2c89d73cf2fe47bdbcbd69dc974face8-medium.png", "2c89d73cf2fe47bdbcbd69dc974face8-original.png"]  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------- TaskTest: test_clear -------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-jxchzl.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"57f5449cd2704cd9a8de58fb9796af7f\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T14:39:26.149-03:00\",\"paths\":{\"original\":\"57f5449cd2704cd9a8de58fb9796af7f-original.png\",\"tiny\":\"57f5449cd2704cd9a8de58fb9796af7f-tiny.png\",\"small\":\"57f5449cd2704cd9a8de58fb9796af7f-small.png\",\"medium\":\"57f5449cd2704cd9a8de58fb9796af7f-medium.png\",\"large\":\"57f5449cd2704cd9a8de58fb9796af7f-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-20 17:39:26.149556"], ["updated_at", "2016-12-20 17:39:26.149556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-jxchzl.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-141syv8.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-141syv8.png => 57f5449cd2704cd9a8de58fb9796af7f-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-jxchzl.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-166v976.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-166v976.png => 57f5449cd2704cd9a8de58fb9796af7f-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-jxchzl.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-js4ygj.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-js4ygj.png => 57f5449cd2704cd9a8de58fb9796af7f-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-jxchzl.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-kgfjvx.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-kgfjvx.png => 57f5449cd2704cd9a8de58fb9796af7f-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-jxchzl.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-eaqseu.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-eaqseu.png => 57f5449cd2704cd9a8de58fb9796af7f-large.png Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-12wutbz.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"ff8b2d0202024d09938dd44a5c76391d\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T14:39:29.458-03:00\",\"paths\":{\"original\":\"ff8b2d0202024d09938dd44a5c76391d-original.png\",\"tiny\":\"ff8b2d0202024d09938dd44a5c76391d-tiny.png\",\"small\":\"ff8b2d0202024d09938dd44a5c76391d-small.png\",\"medium\":\"ff8b2d0202024d09938dd44a5c76391d-medium.png\",\"large\":\"ff8b2d0202024d09938dd44a5c76391d-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-20 17:39:29.458886"], ["updated_at", "2016-12-20 17:39:29.458886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-12wutbz.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-z66lbt.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-z66lbt.png => ff8b2d0202024d09938dd44a5c76391d-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-12wutbz.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-tmh32i.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-tmh32i.png => ff8b2d0202024d09938dd44a5c76391d-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-12wutbz.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-iqalv1.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-iqalv1.png => ff8b2d0202024d09938dd44a5c76391d-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-12wutbz.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-q40b6j.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-q40b6j.png => ff8b2d0202024d09938dd44a5c76391d-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-12wutbz.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-c49sov.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-c49sov.png => ff8b2d0202024d09938dd44a5c76391d-large.png SQL (0.3ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 15]]  (0.6ms) SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-large.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-large.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-large.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-large.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-large.png')  (0.4ms) SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-medium.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-medium.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-medium.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-medium.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-medium.png')  (0.4ms) SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-original.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-original.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-original.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-original.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-original.png')  (0.4ms) SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-small.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-small.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-small.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-small.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-small.png')  (0.4ms) SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-tiny.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-tiny.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-tiny.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-tiny.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-tiny.png')  (0.4ms) SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'ff8b2d0202024d09938dd44a5c76391d-large.png' OR old_paths.value = 'ff8b2d0202024d09938dd44a5c76391d-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'ff8b2d0202024d09938dd44a5c76391d-large.png' OR old_paths.value = 'ff8b2d0202024d09938dd44a5c76391d-large.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'ff8b2d0202024d09938dd44a5c76391d-large.png' OR old_paths.value = 'ff8b2d0202024d09938dd44a5c76391d-large.png') Deleting ff8b2d0202024d09938dd44a5c76391d-large.png Deleting: ff8b2d0202024d09938dd44a5c76391d-large.png  (0.6ms) SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'ff8b2d0202024d09938dd44a5c76391d-medium.png' OR old_paths.value = 'ff8b2d0202024d09938dd44a5c76391d-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'ff8b2d0202024d09938dd44a5c76391d-medium.png' OR old_paths.value = 'ff8b2d0202024d09938dd44a5c76391d-medium.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'ff8b2d0202024d09938dd44a5c76391d-medium.png' OR old_paths.value = 'ff8b2d0202024d09938dd44a5c76391d-medium.png') Deleting ff8b2d0202024d09938dd44a5c76391d-medium.png Deleting: ff8b2d0202024d09938dd44a5c76391d-medium.png  (0.5ms) SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'ff8b2d0202024d09938dd44a5c76391d-original.png' OR old_paths.value = 'ff8b2d0202024d09938dd44a5c76391d-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'ff8b2d0202024d09938dd44a5c76391d-original.png' OR old_paths.value = 'ff8b2d0202024d09938dd44a5c76391d-original.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'ff8b2d0202024d09938dd44a5c76391d-original.png' OR old_paths.value = 'ff8b2d0202024d09938dd44a5c76391d-original.png') Deleting ff8b2d0202024d09938dd44a5c76391d-original.png Deleting: ff8b2d0202024d09938dd44a5c76391d-original.png  (0.5ms) SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'ff8b2d0202024d09938dd44a5c76391d-small.png' OR old_paths.value = 'ff8b2d0202024d09938dd44a5c76391d-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'ff8b2d0202024d09938dd44a5c76391d-small.png' OR old_paths.value = 'ff8b2d0202024d09938dd44a5c76391d-small.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'ff8b2d0202024d09938dd44a5c76391d-small.png' OR old_paths.value = 'ff8b2d0202024d09938dd44a5c76391d-small.png') Deleting ff8b2d0202024d09938dd44a5c76391d-small.png Deleting: ff8b2d0202024d09938dd44a5c76391d-small.png  (0.6ms) SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'ff8b2d0202024d09938dd44a5c76391d-tiny.png' OR old_paths.value = 'ff8b2d0202024d09938dd44a5c76391d-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'ff8b2d0202024d09938dd44a5c76391d-tiny.png' OR old_paths.value = 'ff8b2d0202024d09938dd44a5c76391d-tiny.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'ff8b2d0202024d09938dd44a5c76391d-tiny.png' OR old_paths.value = 'ff8b2d0202024d09938dd44a5c76391d-tiny.png') Deleting ff8b2d0202024d09938dd44a5c76391d-tiny.png Deleting: ff8b2d0202024d09938dd44a5c76391d-tiny.png  (0.5ms) SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/3eecb4cdd9254a2c854dc839adcc4aca-large.png' OR old_paths.value = 'second/3eecb4cdd9254a2c854dc839adcc4aca-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/3eecb4cdd9254a2c854dc839adcc4aca-large.png' OR old_paths.value = 'second/3eecb4cdd9254a2c854dc839adcc4aca-large.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/3eecb4cdd9254a2c854dc839adcc4aca-large.png' OR old_paths.value = 'second/3eecb4cdd9254a2c854dc839adcc4aca-large.png') Deleting second/3eecb4cdd9254a2c854dc839adcc4aca-large.png Deleting: second/3eecb4cdd9254a2c854dc839adcc4aca-large.png  (0.5ms) SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/3eecb4cdd9254a2c854dc839adcc4aca-medium.png' OR old_paths.value = 'second/3eecb4cdd9254a2c854dc839adcc4aca-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/3eecb4cdd9254a2c854dc839adcc4aca-medium.png' OR old_paths.value = 'second/3eecb4cdd9254a2c854dc839adcc4aca-medium.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/3eecb4cdd9254a2c854dc839adcc4aca-medium.png' OR old_paths.value = 'second/3eecb4cdd9254a2c854dc839adcc4aca-medium.png') Deleting second/3eecb4cdd9254a2c854dc839adcc4aca-medium.png Deleting: second/3eecb4cdd9254a2c854dc839adcc4aca-medium.png  (0.5ms) SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/3eecb4cdd9254a2c854dc839adcc4aca-original.png' OR old_paths.value = 'second/3eecb4cdd9254a2c854dc839adcc4aca-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/3eecb4cdd9254a2c854dc839adcc4aca-original.png' OR old_paths.value = 'second/3eecb4cdd9254a2c854dc839adcc4aca-original.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/3eecb4cdd9254a2c854dc839adcc4aca-original.png' OR old_paths.value = 'second/3eecb4cdd9254a2c854dc839adcc4aca-original.png') Deleting second/3eecb4cdd9254a2c854dc839adcc4aca-original.png Deleting: second/3eecb4cdd9254a2c854dc839adcc4aca-original.png  (0.5ms) SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/3eecb4cdd9254a2c854dc839adcc4aca-small.png' OR old_paths.value = 'second/3eecb4cdd9254a2c854dc839adcc4aca-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/3eecb4cdd9254a2c854dc839adcc4aca-small.png' OR old_paths.value = 'second/3eecb4cdd9254a2c854dc839adcc4aca-small.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/3eecb4cdd9254a2c854dc839adcc4aca-small.png' OR old_paths.value = 'second/3eecb4cdd9254a2c854dc839adcc4aca-small.png') Deleting second/3eecb4cdd9254a2c854dc839adcc4aca-small.png Deleting: second/3eecb4cdd9254a2c854dc839adcc4aca-small.png  (0.5ms) SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/3eecb4cdd9254a2c854dc839adcc4aca-tiny.png' OR old_paths.value = 'second/3eecb4cdd9254a2c854dc839adcc4aca-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/3eecb4cdd9254a2c854dc839adcc4aca-tiny.png' OR old_paths.value = 'second/3eecb4cdd9254a2c854dc839adcc4aca-tiny.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/3eecb4cdd9254a2c854dc839adcc4aca-tiny.png' OR old_paths.value = 'second/3eecb4cdd9254a2c854dc839adcc4aca-tiny.png') Deleting second/3eecb4cdd9254a2c854dc839adcc4aca-tiny.png Deleting: second/3eecb4cdd9254a2c854dc839adcc4aca-tiny.png  (0.5ms) SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/b9d061effc864928b21e79371e08c7da-large.png' OR old_paths.value = 'second/b9d061effc864928b21e79371e08c7da-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/b9d061effc864928b21e79371e08c7da-large.png' OR old_paths.value = 'second/b9d061effc864928b21e79371e08c7da-large.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/b9d061effc864928b21e79371e08c7da-large.png' OR old_paths.value = 'second/b9d061effc864928b21e79371e08c7da-large.png') Deleting second/b9d061effc864928b21e79371e08c7da-large.png Deleting: second/b9d061effc864928b21e79371e08c7da-large.png  (0.5ms) SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/b9d061effc864928b21e79371e08c7da-medium.png' OR old_paths.value = 'second/b9d061effc864928b21e79371e08c7da-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/b9d061effc864928b21e79371e08c7da-medium.png' OR old_paths.value = 'second/b9d061effc864928b21e79371e08c7da-medium.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/b9d061effc864928b21e79371e08c7da-medium.png' OR old_paths.value = 'second/b9d061effc864928b21e79371e08c7da-medium.png') Deleting second/b9d061effc864928b21e79371e08c7da-medium.png Deleting: second/b9d061effc864928b21e79371e08c7da-medium.png  (0.5ms) SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/b9d061effc864928b21e79371e08c7da-original.png' OR old_paths.value = 'second/b9d061effc864928b21e79371e08c7da-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/b9d061effc864928b21e79371e08c7da-original.png' OR old_paths.value = 'second/b9d061effc864928b21e79371e08c7da-original.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/b9d061effc864928b21e79371e08c7da-original.png' OR old_paths.value = 'second/b9d061effc864928b21e79371e08c7da-original.png') Deleting second/b9d061effc864928b21e79371e08c7da-original.png Deleting: second/b9d061effc864928b21e79371e08c7da-original.png  (0.6ms) SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/b9d061effc864928b21e79371e08c7da-small.png' OR old_paths.value = 'second/b9d061effc864928b21e79371e08c7da-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/b9d061effc864928b21e79371e08c7da-small.png' OR old_paths.value = 'second/b9d061effc864928b21e79371e08c7da-small.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/b9d061effc864928b21e79371e08c7da-small.png' OR old_paths.value = 'second/b9d061effc864928b21e79371e08c7da-small.png') Deleting second/b9d061effc864928b21e79371e08c7da-small.png Deleting: second/b9d061effc864928b21e79371e08c7da-small.png  (0.5ms) SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/b9d061effc864928b21e79371e08c7da-tiny.png' OR old_paths.value = 'second/b9d061effc864928b21e79371e08c7da-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/b9d061effc864928b21e79371e08c7da-tiny.png' OR old_paths.value = 'second/b9d061effc864928b21e79371e08c7da-tiny.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/b9d061effc864928b21e79371e08c7da-tiny.png' OR old_paths.value = 'second/b9d061effc864928b21e79371e08c7da-tiny.png') Deleting second/b9d061effc864928b21e79371e08c7da-tiny.png Deleting: second/b9d061effc864928b21e79371e08c7da-tiny.png  (0.5ms) SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-large.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-large.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-large.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-large.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-large.png')  (0.4ms) SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-medium.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-medium.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-medium.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-medium.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-medium.png')  (0.4ms) SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-original.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-original.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-original.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-original.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-original.png')  (0.4ms) SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-small.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-small.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-small.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-small.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-small.png')  (0.4ms) SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-tiny.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-tiny.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-tiny.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-tiny.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-tiny.png')  (0.6ms) SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-large.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-large.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-large.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-large.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-large.png')  (0.4ms) SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-medium.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-medium.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-medium.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-medium.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-medium.png')  (0.4ms) SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-original.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-original.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-original.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-original.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-original.png')  (0.4ms) SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-small.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-small.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-small.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-small.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-small.png')  (0.5ms) SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-tiny.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-tiny.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-tiny.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-tiny.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-tiny.png')  (0.5ms) SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-large.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-large.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-large.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-large.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-large.png')  (0.4ms) SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-medium.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-medium.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-medium.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-medium.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-medium.png')  (0.4ms) SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-original.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-original.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-original.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-original.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-original.png')  (0.5ms) SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-small.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-small.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-small.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-small.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-small.png')  (0.5ms) SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-tiny.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-tiny.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-tiny.png') UNION SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '57f5449cd2704cd9a8de58fb9796af7f-tiny.png' OR old_paths.value = '57f5449cd2704cd9a8de58fb9796af7f-tiny.png') [ActiveJob] [Attachs::Jobs::DeleteJob] [01d8578e-9f6a-4a5f-9f34-6bc6ed19b40e] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["57f5449cd2704cd9a8de58fb9796af7f-original.png", "57f5449cd2704cd9a8de58fb9796af7f-tiny.png", "57f5449cd2704cd9a8de58fb9796af7f-small.png", "57f5449cd2704cd9a8de58fb9796af7f-medium.png", "57f5449cd2704cd9a8de58fb9796af7f-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [01d8578e-9f6a-4a5f-9f34-6bc6ed19b40e] Deleting: 57f5449cd2704cd9a8de58fb9796af7f-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [01d8578e-9f6a-4a5f-9f34-6bc6ed19b40e] Deleting: 57f5449cd2704cd9a8de58fb9796af7f-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [01d8578e-9f6a-4a5f-9f34-6bc6ed19b40e] Deleting: 57f5449cd2704cd9a8de58fb9796af7f-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [01d8578e-9f6a-4a5f-9f34-6bc6ed19b40e] Deleting: 57f5449cd2704cd9a8de58fb9796af7f-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [01d8578e-9f6a-4a5f-9f34-6bc6ed19b40e] Deleting: 57f5449cd2704cd9a8de58fb9796af7f-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [01d8578e-9f6a-4a5f-9f34-6bc6ed19b40e] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2714.96ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 01d8578e-9f6a-4a5f-9f34-6bc6ed19b40e) to Inline(default) with arguments: ["57f5449cd2704cd9a8de58fb9796af7f-original.png", "57f5449cd2704cd9a8de58fb9796af7f-tiny.png", "57f5449cd2704cd9a8de58fb9796af7f-small.png", "57f5449cd2704cd9a8de58fb9796af7f-medium.png", "57f5449cd2704cd9a8de58fb9796af7f-large.png"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------- UploadTest: test_upload ----------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-t00nt1.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (7.3ms) INSERT INTO "uploads" ("file", "record_type", "record_attribute", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "{\"id\":\"6bcaa70d880846ea810b8c62cb24ba66\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T14:39:49.294-03:00\",\"paths\":{\"original\":\"uploads/6bcaa70d880846ea810b8c62cb24ba66-original.jpg\",\"tiny\":\"uploads/6bcaa70d880846ea810b8c62cb24ba66-tiny.jpg\",\"small\":\"uploads/6bcaa70d880846ea810b8c62cb24ba66-small.jpg\",\"medium\":\"uploads/6bcaa70d880846ea810b8c62cb24ba66-medium.jpg\",\"large\":\"uploads/6bcaa70d880846ea810b8c62cb24ba66-large.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["record_type", "Shop"], ["record_attribute", "logo"], ["created_at", "2016-12-20 17:39:49.295168"], ["updated_at", "2016-12-20 17:39:49.295168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-t00nt1.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-d372j7.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-d372j7.jpg => uploads/6bcaa70d880846ea810b8c62cb24ba66-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-t00nt1.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-2lp2kt.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-2lp2kt.jpg => uploads/6bcaa70d880846ea810b8c62cb24ba66-tiny.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-t00nt1.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-1e301n9.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-1e301n9.jpg => uploads/6bcaa70d880846ea810b8c62cb24ba66-small.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-t00nt1.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-1ssclfn.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-1ssclfn.jpg => uploads/6bcaa70d880846ea810b8c62cb24ba66-medium.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-t00nt1.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-14nqzg6.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-74238-14nqzg6.jpg => uploads/6bcaa70d880846ea810b8c62cb24ba66-large.jpg  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"3f166bdf32084c77b66dd4b373a48c14\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T14:39:52.814-03:00\",\"paths\":{\"original\":\"3f166bdf32084c77b66dd4b373a48c14-original.png\",\"tiny\":\"3f166bdf32084c77b66dd4b373a48c14-tiny.png\",\"small\":\"3f166bdf32084c77b66dd4b373a48c14-small.png\",\"medium\":\"3f166bdf32084c77b66dd4b373a48c14-medium.png\",\"large\":\"3f166bdf32084c77b66dd4b373a48c14-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-20 17:39:52.815410"], ["updated_at", "2016-12-20 17:39:52.815410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Copying: uploads/6bcaa70d880846ea810b8c62cb24ba66-original.jpg => 3f166bdf32084c77b66dd4b373a48c14-original.png Copying: uploads/6bcaa70d880846ea810b8c62cb24ba66-tiny.jpg => 3f166bdf32084c77b66dd4b373a48c14-tiny.png Copying: uploads/6bcaa70d880846ea810b8c62cb24ba66-small.jpg => 3f166bdf32084c77b66dd4b373a48c14-small.png Copying: uploads/6bcaa70d880846ea810b8c62cb24ba66-medium.jpg => 3f166bdf32084c77b66dd4b373a48c14-medium.png Copying: uploads/6bcaa70d880846ea810b8c62cb24ba66-large.jpg => 3f166bdf32084c77b66dd4b373a48c14-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [08028697-e38b-4c2e-8ca2-96341befe695] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["3f166bdf32084c77b66dd4b373a48c14-original.png", "3f166bdf32084c77b66dd4b373a48c14-tiny.png", "3f166bdf32084c77b66dd4b373a48c14-small.png", "3f166bdf32084c77b66dd4b373a48c14-medium.png", "3f166bdf32084c77b66dd4b373a48c14-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [08028697-e38b-4c2e-8ca2-96341befe695] Deleting: 3f166bdf32084c77b66dd4b373a48c14-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [08028697-e38b-4c2e-8ca2-96341befe695] Deleting: 3f166bdf32084c77b66dd4b373a48c14-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [08028697-e38b-4c2e-8ca2-96341befe695] Deleting: 3f166bdf32084c77b66dd4b373a48c14-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [08028697-e38b-4c2e-8ca2-96341befe695] Deleting: 3f166bdf32084c77b66dd4b373a48c14-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [08028697-e38b-4c2e-8ca2-96341befe695] Deleting: 3f166bdf32084c77b66dd4b373a48c14-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [08028697-e38b-4c2e-8ca2-96341befe695] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2791.07ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 08028697-e38b-4c2e-8ca2-96341befe695) to Inline(default) with arguments: ["3f166bdf32084c77b66dd4b373a48c14-original.png", "3f166bdf32084c77b66dd4b373a48c14-tiny.png", "3f166bdf32084c77b66dd4b373a48c14-small.png", "3f166bdf32084c77b66dd4b373a48c14-medium.png", "3f166bdf32084c77b66dd4b373a48c14-large.png"] Upload Load (0.3ms) SELECT "uploads".* FROM "uploads" WHERE "uploads"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"paths\":{\"original\":\"a6c8202cae2f46ba8970b75b3d0c1b20-original.png\",\"tiny\":\"a6c8202cae2f46ba8970b75b3d0c1b20-tiny.png\",\"small\":\"a6c8202cae2f46ba8970b75b3d0c1b20-small.png\",\"medium\":\"a6c8202cae2f46ba8970b75b3d0c1b20-medium.png\",\"large\":\"a6c8202cae2f46ba8970b75b3d0c1b20-large.png\"},\"old_paths\":[],\"id\":\"a6c8202cae2f46ba8970b75b3d0c1b20\",\"size\":74474,\"ratio\":0.6725,\"width\":400,\"height\":269,\"filename\":\"image.jpg\",\"uploaded_at\":\"2016-12-20T14:40:03.600-03:00\",\"content_type\":\"image/jpeg\"}"], ["created_at", "2016-12-20 17:40:03.601609"], ["updated_at", "2016-12-20 17:40:03.601609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Copying: uploads/6bcaa70d880846ea810b8c62cb24ba66-tiny.jpg => a6c8202cae2f46ba8970b75b3d0c1b20-tiny.png Copying: uploads/6bcaa70d880846ea810b8c62cb24ba66-large.jpg => a6c8202cae2f46ba8970b75b3d0c1b20-large.png Copying: uploads/6bcaa70d880846ea810b8c62cb24ba66-small.jpg => a6c8202cae2f46ba8970b75b3d0c1b20-small.png Copying: uploads/6bcaa70d880846ea810b8c62cb24ba66-medium.jpg => a6c8202cae2f46ba8970b75b3d0c1b20-medium.png Copying: uploads/6bcaa70d880846ea810b8c62cb24ba66-original.jpg => a6c8202cae2f46ba8970b75b3d0c1b20-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [5fe0a1d6-d637-4438-8693-0e6d450b83d1] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["a6c8202cae2f46ba8970b75b3d0c1b20-original.png", "a6c8202cae2f46ba8970b75b3d0c1b20-tiny.png", "a6c8202cae2f46ba8970b75b3d0c1b20-small.png", "a6c8202cae2f46ba8970b75b3d0c1b20-medium.png", "a6c8202cae2f46ba8970b75b3d0c1b20-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [5fe0a1d6-d637-4438-8693-0e6d450b83d1] Deleting: a6c8202cae2f46ba8970b75b3d0c1b20-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [5fe0a1d6-d637-4438-8693-0e6d450b83d1] Deleting: a6c8202cae2f46ba8970b75b3d0c1b20-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [5fe0a1d6-d637-4438-8693-0e6d450b83d1] Deleting: a6c8202cae2f46ba8970b75b3d0c1b20-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [5fe0a1d6-d637-4438-8693-0e6d450b83d1] Deleting: a6c8202cae2f46ba8970b75b3d0c1b20-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [5fe0a1d6-d637-4438-8693-0e6d450b83d1] Deleting: a6c8202cae2f46ba8970b75b3d0c1b20-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [5fe0a1d6-d637-4438-8693-0e6d450b83d1] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2692.95ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 5fe0a1d6-d637-4438-8693-0e6d450b83d1) to Inline(default) with arguments: ["a6c8202cae2f46ba8970b75b3d0c1b20-original.png", "a6c8202cae2f46ba8970b75b3d0c1b20-tiny.png", "a6c8202cae2f46ba8970b75b3d0c1b20-small.png", "a6c8202cae2f46ba8970b75b3d0c1b20-medium.png", "a6c8202cae2f46ba8970b75b3d0c1b20-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [6a7ef71f-c37d-48a7-9154-a81db024cd4c] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["uploads/6bcaa70d880846ea810b8c62cb24ba66-original.jpg", "uploads/6bcaa70d880846ea810b8c62cb24ba66-tiny.jpg", "uploads/6bcaa70d880846ea810b8c62cb24ba66-small.jpg", "uploads/6bcaa70d880846ea810b8c62cb24ba66-medium.jpg", "uploads/6bcaa70d880846ea810b8c62cb24ba66-large.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [6a7ef71f-c37d-48a7-9154-a81db024cd4c] Deleting: uploads/6bcaa70d880846ea810b8c62cb24ba66-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [6a7ef71f-c37d-48a7-9154-a81db024cd4c] Deleting: uploads/6bcaa70d880846ea810b8c62cb24ba66-tiny.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [6a7ef71f-c37d-48a7-9154-a81db024cd4c] Deleting: uploads/6bcaa70d880846ea810b8c62cb24ba66-small.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [6a7ef71f-c37d-48a7-9154-a81db024cd4c] Deleting: uploads/6bcaa70d880846ea810b8c62cb24ba66-medium.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [6a7ef71f-c37d-48a7-9154-a81db024cd4c] Deleting: uploads/6bcaa70d880846ea810b8c62cb24ba66-large.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [6a7ef71f-c37d-48a7-9154-a81db024cd4c] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2200.68ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 6a7ef71f-c37d-48a7-9154-a81db024cd4c) to Inline(default) with arguments: ["uploads/6bcaa70d880846ea810b8c62cb24ba66-original.jpg", "uploads/6bcaa70d880846ea810b8c62cb24ba66-tiny.jpg", "uploads/6bcaa70d880846ea810b8c62cb24ba66-small.jpg", "uploads/6bcaa70d880846ea810b8c62cb24ba66-medium.jpg", "uploads/6bcaa70d880846ea810b8c62cb24ba66-large.jpg"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ RecordTest: test_inherit ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- RecordTest: test_clear_attachments ---------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-1v2eytg.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-74238-hcdri2.jpg'  (0.3ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"72dff07f50e94a81b3256d62e7a7155a\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T14:40:16.735-03:00\",\"paths\":{\"original\":\"72dff07f50e94a81b3256d62e7a7155a-original.png\",\"tiny\":\"72dff07f50e94a81b3256d62e7a7155a-tiny.png\",\"small\":\"72dff07f50e94a81b3256d62e7a7155a-small.png\",\"medium\":\"72dff07f50e94a81b3256d62e7a7155a-medium.png\",\"large\":\"72dff07f50e94a81b3256d62e7a7155a-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-20 17:40:16.736065"], ["updated_at", "2016-12-20 17:40:16.736065"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 18]]  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN -------------------------- GeneratorTest: test_upload --------------------------  (0.2ms) ROLLBACK  (0.2ms) BEGIN --------------------------- GeneratorTest: test_install ---------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- RecordTest: test_clear_attachments ---------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-16y7c5w.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-va1jm6.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"2f8985562be043559bd0fdbafbdab3a7\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T15:48:13.943-03:00\",\"paths\":{\"original\":\"2f8985562be043559bd0fdbafbdab3a7-original.png\",\"tiny\":\"2f8985562be043559bd0fdbafbdab3a7-tiny.png\",\"small\":\"2f8985562be043559bd0fdbafbdab3a7-small.png\",\"medium\":\"2f8985562be043559bd0fdbafbdab3a7-medium.png\",\"large\":\"2f8985562be043559bd0fdbafbdab3a7-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-20 18:48:13.943793"], ["updated_at", "2016-12-20 18:48:13.943793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (6.9ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 19]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ RecordTest: test_inherit ------------------------  (0.2ms) ROLLBACK  (0.2ms) BEGIN ---------------------------- AttachmentTest: test_renames ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-19saklq.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["logo", "{\"id\":\"a7374026be07467fb367be9be7716452\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T15:48:13.975-03:00\",\"paths\":{\"original\":\"anderstons/a7374026be07467fb367be9be7716452-original.png\",\"tiny\":\"anderstons/a7374026be07467fb367be9be7716452-tiny.png\",\"small\":\"anderstons/a7374026be07467fb367be9be7716452-small.png\",\"medium\":\"anderstons/a7374026be07467fb367be9be7716452-medium.png\",\"large\":\"anderstons/a7374026be07467fb367be9be7716452-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["name", "Anderstons"], ["created_at", "2016-12-20 18:48:13.976545"], ["updated_at", "2016-12-20 18:48:13.976545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-19saklq.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-9ufero.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-9ufero.png => anderstons/a7374026be07467fb367be9be7716452-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-19saklq.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-fkt1ej.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-fkt1ej.png => anderstons/a7374026be07467fb367be9be7716452-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-19saklq.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-12qnfll.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-12qnfll.png => anderstons/a7374026be07467fb367be9be7716452-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-19saklq.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-13bglya.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-13bglya.png => anderstons/a7374026be07467fb367be9be7716452-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-19saklq.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-mms72d.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-mms72d.png => anderstons/a7374026be07467fb367be9be7716452-large.png  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "shops" SET "name" = $1, "updated_at" = $2 WHERE "shops"."id" = $3 [["name", "Musicians Friend"], ["updated_at", "2016-12-20 18:48:23.849642"], ["id", 20]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 20]] [ActiveJob] [Attachs::Jobs::UpdateJob] [a908dcc1-b447-498a-931c-8817d9fe4be9] Performing Attachs::Jobs::UpdateJob from Inline(default) with arguments: gid://dummy/Shop/20, "logo" [ActiveJob] [Attachs::Jobs::UpdateJob] [a908dcc1-b447-498a-931c-8817d9fe4be9] Copying: anderstons/a7374026be07467fb367be9be7716452-original.png => musicians-friend/a7374026be07467fb367be9be7716452-original.png [ActiveJob] [Attachs::Jobs::UpdateJob] [a908dcc1-b447-498a-931c-8817d9fe4be9] Copying: anderstons/a7374026be07467fb367be9be7716452-tiny.png => musicians-friend/a7374026be07467fb367be9be7716452-tiny.png [ActiveJob] [Attachs::Jobs::UpdateJob] [a908dcc1-b447-498a-931c-8817d9fe4be9] Copying: anderstons/a7374026be07467fb367be9be7716452-small.png => musicians-friend/a7374026be07467fb367be9be7716452-small.png [ActiveJob] [Attachs::Jobs::UpdateJob] [a908dcc1-b447-498a-931c-8817d9fe4be9] Copying: anderstons/a7374026be07467fb367be9be7716452-medium.png => musicians-friend/a7374026be07467fb367be9be7716452-medium.png [ActiveJob] [Attachs::Jobs::UpdateJob] [a908dcc1-b447-498a-931c-8817d9fe4be9] Copying: anderstons/a7374026be07467fb367be9be7716452-large.png => musicians-friend/a7374026be07467fb367be9be7716452-large.png [ActiveJob] [Attachs::Jobs::UpdateJob] [a908dcc1-b447-498a-931c-8817d9fe4be9] SQL (0.2ms) UPDATE "shops" SET "logo" = '{"paths":{"tiny":"musicians-friend/a7374026be07467fb367be9be7716452-tiny.png","large":"musicians-friend/a7374026be07467fb367be9be7716452-large.png","small":"musicians-friend/a7374026be07467fb367be9be7716452-small.png","medium":"musicians-friend/a7374026be07467fb367be9be7716452-medium.png","original":"musicians-friend/a7374026be07467fb367be9be7716452-original.png"},"old_paths":["anderstons/a7374026be07467fb367be9be7716452-original.png","anderstons/a7374026be07467fb367be9be7716452-tiny.png","anderstons/a7374026be07467fb367be9be7716452-small.png","anderstons/a7374026be07467fb367be9be7716452-medium.png","anderstons/a7374026be07467fb367be9be7716452-large.png"],"id":"a7374026be07467fb367be9be7716452","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-20T15:48:13.975-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 20]] [ActiveJob] [Attachs::Jobs::UpdateJob] [a908dcc1-b447-498a-931c-8817d9fe4be9] Performed Attachs::Jobs::UpdateJob from Inline(default) in 4369.19ms [ActiveJob] Enqueued Attachs::Jobs::UpdateJob (Job ID: a908dcc1-b447-498a-931c-8817d9fe4be9) to Inline(default) with arguments: gid://dummy/Shop/20, "logo" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 20]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 20]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Attachs::Jobs::DeleteJob] [be6557f0-6971-4016-a5a9-8e1ef12d5656] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["musicians-friend/a7374026be07467fb367be9be7716452-tiny.png", "musicians-friend/a7374026be07467fb367be9be7716452-large.png", "musicians-friend/a7374026be07467fb367be9be7716452-small.png", "musicians-friend/a7374026be07467fb367be9be7716452-medium.png", "musicians-friend/a7374026be07467fb367be9be7716452-original.png", "anderstons/a7374026be07467fb367be9be7716452-original.png", "anderstons/a7374026be07467fb367be9be7716452-tiny.png", "anderstons/a7374026be07467fb367be9be7716452-small.png", "anderstons/a7374026be07467fb367be9be7716452-medium.png", "anderstons/a7374026be07467fb367be9be7716452-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [be6557f0-6971-4016-a5a9-8e1ef12d5656] Deleting: musicians-friend/a7374026be07467fb367be9be7716452-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [be6557f0-6971-4016-a5a9-8e1ef12d5656] Deleting: musicians-friend/a7374026be07467fb367be9be7716452-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [be6557f0-6971-4016-a5a9-8e1ef12d5656] Deleting: musicians-friend/a7374026be07467fb367be9be7716452-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [be6557f0-6971-4016-a5a9-8e1ef12d5656] Deleting: musicians-friend/a7374026be07467fb367be9be7716452-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [be6557f0-6971-4016-a5a9-8e1ef12d5656] Deleting: musicians-friend/a7374026be07467fb367be9be7716452-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [be6557f0-6971-4016-a5a9-8e1ef12d5656] Deleting: anderstons/a7374026be07467fb367be9be7716452-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [be6557f0-6971-4016-a5a9-8e1ef12d5656] Deleting: anderstons/a7374026be07467fb367be9be7716452-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [be6557f0-6971-4016-a5a9-8e1ef12d5656] Deleting: anderstons/a7374026be07467fb367be9be7716452-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [be6557f0-6971-4016-a5a9-8e1ef12d5656] Deleting: anderstons/a7374026be07467fb367be9be7716452-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [be6557f0-6971-4016-a5a9-8e1ef12d5656] Deleting: anderstons/a7374026be07467fb367be9be7716452-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [be6557f0-6971-4016-a5a9-8e1ef12d5656] Performed Attachs::Jobs::DeleteJob from Inline(default) in 6665.37ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: be6557f0-6971-4016-a5a9-8e1ef12d5656) to Inline(default) with arguments: ["musicians-friend/a7374026be07467fb367be9be7716452-tiny.png", "musicians-friend/a7374026be07467fb367be9be7716452-large.png", "musicians-friend/a7374026be07467fb367be9be7716452-small.png", "musicians-friend/a7374026be07467fb367be9be7716452-medium.png", "musicians-friend/a7374026be07467fb367be9be7716452-original.png", "anderstons/a7374026be07467fb367be9be7716452-original.png", "anderstons/a7374026be07467fb367be9be7716452-tiny.png", "anderstons/a7374026be07467fb367be9be7716452-small.png", "anderstons/a7374026be07467fb367be9be7716452-medium.png", "anderstons/a7374026be07467fb367be9be7716452-large.png"]  (0.3ms) ROLLBACK  (0.2ms) BEGIN ------------------------------- AttachmentTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-18ant1u.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"9d63e01c45574123bfca978c88af2a98\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T15:49:04.079-03:00\",\"paths\":{\"original\":\"9d63e01c45574123bfca978c88af2a98-original.png\",\"tiny\":\"9d63e01c45574123bfca978c88af2a98-tiny.png\",\"small\":\"9d63e01c45574123bfca978c88af2a98-small.png\",\"medium\":\"9d63e01c45574123bfca978c88af2a98-medium.png\",\"large\":\"9d63e01c45574123bfca978c88af2a98-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-20 18:49:04.080051"], ["updated_at", "2016-12-20 18:49:04.080051"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-18ant1u.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-ycn2du.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-ycn2du.png => 9d63e01c45574123bfca978c88af2a98-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-18ant1u.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-1skt005.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-1skt005.png => 9d63e01c45574123bfca978c88af2a98-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-18ant1u.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-1y4v8mv.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-1y4v8mv.png => 9d63e01c45574123bfca978c88af2a98-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-18ant1u.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-1ubq5bo.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-1ubq5bo.png => 9d63e01c45574123bfca978c88af2a98-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-18ant1u.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-q7a2nn.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-q7a2nn.png => 9d63e01c45574123bfca978c88af2a98-large.png Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 21]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 21]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Attachs::Jobs::DeleteJob] [6f778460-d4ff-4a2c-beed-a88ccdbb5a95] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["9d63e01c45574123bfca978c88af2a98-tiny.png", "9d63e01c45574123bfca978c88af2a98-large.png", "9d63e01c45574123bfca978c88af2a98-small.png", "9d63e01c45574123bfca978c88af2a98-medium.png", "9d63e01c45574123bfca978c88af2a98-original.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [6f778460-d4ff-4a2c-beed-a88ccdbb5a95] Deleting: 9d63e01c45574123bfca978c88af2a98-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [6f778460-d4ff-4a2c-beed-a88ccdbb5a95] Deleting: 9d63e01c45574123bfca978c88af2a98-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [6f778460-d4ff-4a2c-beed-a88ccdbb5a95] Deleting: 9d63e01c45574123bfca978c88af2a98-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [6f778460-d4ff-4a2c-beed-a88ccdbb5a95] Deleting: 9d63e01c45574123bfca978c88af2a98-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [6f778460-d4ff-4a2c-beed-a88ccdbb5a95] Deleting: 9d63e01c45574123bfca978c88af2a98-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [6f778460-d4ff-4a2c-beed-a88ccdbb5a95] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2519.35ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 6f778460-d4ff-4a2c-beed-a88ccdbb5a95) to Inline(default) with arguments: ["9d63e01c45574123bfca978c88af2a98-tiny.png", "9d63e01c45574123bfca978c88af2a98-large.png", "9d63e01c45574123bfca978c88af2a98-small.png", "9d63e01c45574123bfca978c88af2a98-medium.png", "9d63e01c45574123bfca978c88af2a98-original.png"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_default ----------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- AttachmentTest: test_nested_attributes --------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------- CollectionTest: test_index -------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-ksmy03.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-5fl9ml.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"7cfbe6d000a64d618c6ee9d66c08940b\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T15:49:31.657-03:00\",\"paths\":{\"original\":\"7cfbe6d000a64d618c6ee9d66c08940b-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725,\"position\":0},{\"id\":\"a7c6e5df649846ae8994fc2f9916f329\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T15:49:31.658-03:00\",\"paths\":{\"original\":\"a7c6e5df649846ae8994fc2f9916f329-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-12-20 18:49:31.659407"], ["updated_at", "2016-12-20 18:49:31.659407"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 9]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- CollectionTest: test_nested_attributes -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-abmkds.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-17fc7pb.jpg'  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------- CollectionTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-1w1ehen.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-xbqrky.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"6e91fd1a8e144d468c2168054766aceb\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T15:49:31.700-03:00\",\"paths\":{\"original\":\"6e91fd1a8e144d468c2168054766aceb-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725},{\"id\":\"b163afd894b24e95add190023910df3d\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T15:49:31.701-03:00\",\"paths\":{\"original\":\"b163afd894b24e95add190023910df3d-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-12-20 18:49:31.702713"], ["updated_at", "2016-12-20 18:49:31.702713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-1w1ehen.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-tpourq.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-tpourq.jpg => 6e91fd1a8e144d468c2168054766aceb-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-xbqrky.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-1lwzwag.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-1lwzwag.jpg => b163afd894b24e95add190023910df3d-original.jpg Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 10]] [ActiveJob] [Attachs::Jobs::DeleteJob] [24c437ac-9f1c-4125-9d1d-5727886696db] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["6e91fd1a8e144d468c2168054766aceb-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [24c437ac-9f1c-4125-9d1d-5727886696db] Deleting: 6e91fd1a8e144d468c2168054766aceb-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [24c437ac-9f1c-4125-9d1d-5727886696db] Performed Attachs::Jobs::DeleteJob from Inline(default) in 379.32ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 24c437ac-9f1c-4125-9d1d-5727886696db) to Inline(default) with arguments: ["6e91fd1a8e144d468c2168054766aceb-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [7ec6f0a1-6c2e-417c-8bda-8c13ff6c3f53] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["b163afd894b24e95add190023910df3d-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [7ec6f0a1-6c2e-417c-8bda-8c13ff6c3f53] Deleting: b163afd894b24e95add190023910df3d-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [7ec6f0a1-6c2e-417c-8bda-8c13ff6c3f53] Performed Attachs::Jobs::DeleteJob from Inline(default) in 373.33ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 7ec6f0a1-6c2e-417c-8bda-8c13ff6c3f53) to Inline(default) with arguments: ["b163afd894b24e95add190023910df3d-original.jpg"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------- TaskTest: test_exist -------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-12e49di.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "logo", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "first"], ["logo", "{\"id\":\"33693680b8e44311a9dc06606a0bdd99\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T15:49:34.223-03:00\",\"paths\":{\"original\":\"first/33693680b8e44311a9dc06606a0bdd99-original.png\",\"tiny\":\"first/33693680b8e44311a9dc06606a0bdd99-tiny.png\",\"small\":\"first/33693680b8e44311a9dc06606a0bdd99-small.png\",\"medium\":\"first/33693680b8e44311a9dc06606a0bdd99-medium.png\",\"large\":\"first/33693680b8e44311a9dc06606a0bdd99-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-20 18:49:34.224098"], ["updated_at", "2016-12-20 18:49:34.224098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-12e49di.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-2e7924.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-2e7924.png => first/33693680b8e44311a9dc06606a0bdd99-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-12e49di.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-1qafzn4.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-1qafzn4.png => first/33693680b8e44311a9dc06606a0bdd99-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-12e49di.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-2feizk.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-2feizk.png => first/33693680b8e44311a9dc06606a0bdd99-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-12e49di.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-5ltsc8.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-5ltsc8.png => first/33693680b8e44311a9dc06606a0bdd99-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-12e49di.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-dt27k3.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-dt27k3.png => first/33693680b8e44311a9dc06606a0bdd99-large.png  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "shops" SET "name" = $1, "updated_at" = $2 WHERE "shops"."id" = $3 [["name", "second"], ["updated_at", "2016-12-20 18:49:37.688610"], ["id", 22]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 22]] [ActiveJob] [Attachs::Jobs::UpdateJob] [7441fa6e-e3b5-4a75-955d-4c592a69f8bf] Performing Attachs::Jobs::UpdateJob from Inline(default) with arguments: gid://dummy/Shop/22, "logo" [ActiveJob] [Attachs::Jobs::UpdateJob] [7441fa6e-e3b5-4a75-955d-4c592a69f8bf] Copying: first/33693680b8e44311a9dc06606a0bdd99-original.png => second/33693680b8e44311a9dc06606a0bdd99-original.png [ActiveJob] [Attachs::Jobs::UpdateJob] [7441fa6e-e3b5-4a75-955d-4c592a69f8bf] Copying: first/33693680b8e44311a9dc06606a0bdd99-tiny.png => second/33693680b8e44311a9dc06606a0bdd99-tiny.png [ActiveJob] [Attachs::Jobs::UpdateJob] [7441fa6e-e3b5-4a75-955d-4c592a69f8bf] Copying: first/33693680b8e44311a9dc06606a0bdd99-small.png => second/33693680b8e44311a9dc06606a0bdd99-small.png [ActiveJob] [Attachs::Jobs::UpdateJob] [7441fa6e-e3b5-4a75-955d-4c592a69f8bf] Copying: first/33693680b8e44311a9dc06606a0bdd99-medium.png => second/33693680b8e44311a9dc06606a0bdd99-medium.png [ActiveJob] [Attachs::Jobs::UpdateJob] [7441fa6e-e3b5-4a75-955d-4c592a69f8bf] Copying: first/33693680b8e44311a9dc06606a0bdd99-large.png => second/33693680b8e44311a9dc06606a0bdd99-large.png [ActiveJob] [Attachs::Jobs::UpdateJob] [7441fa6e-e3b5-4a75-955d-4c592a69f8bf] SQL (0.2ms) UPDATE "shops" SET "logo" = '{"paths":{"tiny":"second/33693680b8e44311a9dc06606a0bdd99-tiny.png","large":"second/33693680b8e44311a9dc06606a0bdd99-large.png","small":"second/33693680b8e44311a9dc06606a0bdd99-small.png","medium":"second/33693680b8e44311a9dc06606a0bdd99-medium.png","original":"second/33693680b8e44311a9dc06606a0bdd99-original.png"},"old_paths":["first/33693680b8e44311a9dc06606a0bdd99-original.png","first/33693680b8e44311a9dc06606a0bdd99-tiny.png","first/33693680b8e44311a9dc06606a0bdd99-small.png","first/33693680b8e44311a9dc06606a0bdd99-medium.png","first/33693680b8e44311a9dc06606a0bdd99-large.png"],"id":"33693680b8e44311a9dc06606a0bdd99","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-20T15:49:34.223-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 22]] [ActiveJob] [Attachs::Jobs::UpdateJob] [7441fa6e-e3b5-4a75-955d-4c592a69f8bf] Performed Attachs::Jobs::UpdateJob from Inline(default) in 2332.15ms [ActiveJob] Enqueued Attachs::Jobs::UpdateJob (Job ID: 7441fa6e-e3b5-4a75-955d-4c592a69f8bf) to Inline(default) with arguments: gid://dummy/Shop/22, "logo" Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-18ix9da.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-3n59f5.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"f0081b33e9514311a376baeacf2826f1\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T15:49:40.042-03:00\",\"paths\":{\"original\":\"f0081b33e9514311a376baeacf2826f1-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725},{\"id\":\"97773b4de2b94a5eac97960e07292821\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T15:49:40.043-03:00\",\"paths\":{\"original\":\"97773b4de2b94a5eac97960e07292821-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-12-20 18:49:40.044292"], ["updated_at", "2016-12-20 18:49:40.044292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-18ix9da.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-1pkyblj.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-1pkyblj.jpg => f0081b33e9514311a376baeacf2826f1-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-3n59f5.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-p25y5j.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-p25y5j.jpg => 97773b4de2b94a5eac97960e07292821-original.jpg  (1.0ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/33693680b8e44311a9dc06606a0bdd99-original.png' OR old_paths.value = 'first/33693680b8e44311a9dc06606a0bdd99-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/33693680b8e44311a9dc06606a0bdd99-original.png' OR old_paths.value = 'first/33693680b8e44311a9dc06606a0bdd99-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/33693680b8e44311a9dc06606a0bdd99-original.png' OR old_paths.value = 'first/33693680b8e44311a9dc06606a0bdd99-original.png')  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/33693680b8e44311a9dc06606a0bdd99-original.png' OR old_paths.value = 'first/33693680b8e44311a9dc06606a0bdd99-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/33693680b8e44311a9dc06606a0bdd99-original.png' OR old_paths.value = 'first/33693680b8e44311a9dc06606a0bdd99-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/33693680b8e44311a9dc06606a0bdd99-original.png' OR old_paths.value = 'first/33693680b8e44311a9dc06606a0bdd99-original.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'f0081b33e9514311a376baeacf2826f1-original.jpg' OR old_paths.value = 'f0081b33e9514311a376baeacf2826f1-original.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'f0081b33e9514311a376baeacf2826f1-original.jpg' OR old_paths.value = 'f0081b33e9514311a376baeacf2826f1-original.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'f0081b33e9514311a376baeacf2826f1-original.jpg' OR old_paths.value = 'f0081b33e9514311a376baeacf2826f1-original.jpg') [ActiveJob] [Attachs::Jobs::DeleteJob] [5a2fcf19-4368-4509-adcc-5fd2dc4cb4a3] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["first/33693680b8e44311a9dc06606a0bdd99-original.png", "first/33693680b8e44311a9dc06606a0bdd99-tiny.png", "first/33693680b8e44311a9dc06606a0bdd99-small.png", "first/33693680b8e44311a9dc06606a0bdd99-medium.png", "first/33693680b8e44311a9dc06606a0bdd99-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [5a2fcf19-4368-4509-adcc-5fd2dc4cb4a3] Deleting: first/33693680b8e44311a9dc06606a0bdd99-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [5a2fcf19-4368-4509-adcc-5fd2dc4cb4a3] Deleting: first/33693680b8e44311a9dc06606a0bdd99-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [5a2fcf19-4368-4509-adcc-5fd2dc4cb4a3] Deleting: first/33693680b8e44311a9dc06606a0bdd99-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [5a2fcf19-4368-4509-adcc-5fd2dc4cb4a3] Deleting: first/33693680b8e44311a9dc06606a0bdd99-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [5a2fcf19-4368-4509-adcc-5fd2dc4cb4a3] Deleting: first/33693680b8e44311a9dc06606a0bdd99-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [5a2fcf19-4368-4509-adcc-5fd2dc4cb4a3] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2100.84ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 5a2fcf19-4368-4509-adcc-5fd2dc4cb4a3) to Inline(default) with arguments: ["first/33693680b8e44311a9dc06606a0bdd99-original.png", "first/33693680b8e44311a9dc06606a0bdd99-tiny.png", "first/33693680b8e44311a9dc06606a0bdd99-small.png", "first/33693680b8e44311a9dc06606a0bdd99-medium.png", "first/33693680b8e44311a9dc06606a0bdd99-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [5b182abb-0225-4251-8162-b733789b3f8d] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["f0081b33e9514311a376baeacf2826f1-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [5b182abb-0225-4251-8162-b733789b3f8d] Deleting: f0081b33e9514311a376baeacf2826f1-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [5b182abb-0225-4251-8162-b733789b3f8d] Performed Attachs::Jobs::DeleteJob from Inline(default) in 375.25ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 5b182abb-0225-4251-8162-b733789b3f8d) to Inline(default) with arguments: ["f0081b33e9514311a376baeacf2826f1-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [539fd88c-f850-4c39-9298-a851967fcaa8] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["97773b4de2b94a5eac97960e07292821-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [539fd88c-f850-4c39-9298-a851967fcaa8] Deleting: 97773b4de2b94a5eac97960e07292821-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [539fd88c-f850-4c39-9298-a851967fcaa8] Performed Attachs::Jobs::DeleteJob from Inline(default) in 497.46ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 539fd88c-f850-4c39-9298-a851967fcaa8) to Inline(default) with arguments: ["97773b4de2b94a5eac97960e07292821-original.jpg"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- TaskTest: test_fix_missings --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-1upfe6l.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"7c2732144970499ca6e60ff5034e72a5\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T15:49:43.934-03:00\",\"paths\":{\"original\":\"7c2732144970499ca6e60ff5034e72a5-original.png\",\"tiny\":\"7c2732144970499ca6e60ff5034e72a5-tiny.png\",\"small\":\"7c2732144970499ca6e60ff5034e72a5-small.png\",\"medium\":\"7c2732144970499ca6e60ff5034e72a5-medium.png\",\"large\":\"7c2732144970499ca6e60ff5034e72a5-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-20 18:49:43.934714"], ["updated_at", "2016-12-20 18:49:43.934714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-1upfe6l.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-10pdf6q.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-10pdf6q.png => 7c2732144970499ca6e60ff5034e72a5-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-1upfe6l.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-1mmk1ou.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-1mmk1ou.png => 7c2732144970499ca6e60ff5034e72a5-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-1upfe6l.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-19xefl5.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-19xefl5.png => 7c2732144970499ca6e60ff5034e72a5-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-1upfe6l.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-olpws0.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-olpws0.png => 7c2732144970499ca6e60ff5034e72a5-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-1upfe6l.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-18fvift.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-18fvift.png => 7c2732144970499ca6e60ff5034e72a5-large.png Deleting: 7c2732144970499ca6e60ff5034e72a5-tiny.png Deleting: 7c2732144970499ca6e60ff5034e72a5-small.png Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Fix missings of Shop #23 => logo Generating: tiny => 7c2732144970499ca6e60ff5034e72a5-tiny.png Generating: small => 7c2732144970499ca6e60ff5034e72a5-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-t3f5q6.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-8920wo.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-8920wo.png => 7c2732144970499ca6e60ff5034e72a5-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-t3f5q6.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-dtz6t3.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-dtz6t3.png => 7c2732144970499ca6e60ff5034e72a5-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-t3f5q6.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-vhq8du.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-vhq8du.png => 7c2732144970499ca6e60ff5034e72a5-small.png RecordTest::Subclass Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Fix missings of Shop #23 => logo RecordTest::Subclass Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 [ActiveJob] [Attachs::Jobs::DeleteJob] [62e66c5d-9e5d-434e-9831-31e91c4693d9] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["7c2732144970499ca6e60ff5034e72a5-original.png", "7c2732144970499ca6e60ff5034e72a5-tiny.png", "7c2732144970499ca6e60ff5034e72a5-small.png", "7c2732144970499ca6e60ff5034e72a5-medium.png", "7c2732144970499ca6e60ff5034e72a5-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [62e66c5d-9e5d-434e-9831-31e91c4693d9] Deleting: 7c2732144970499ca6e60ff5034e72a5-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [62e66c5d-9e5d-434e-9831-31e91c4693d9] Deleting: 7c2732144970499ca6e60ff5034e72a5-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [62e66c5d-9e5d-434e-9831-31e91c4693d9] Deleting: 7c2732144970499ca6e60ff5034e72a5-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [62e66c5d-9e5d-434e-9831-31e91c4693d9] Deleting: 7c2732144970499ca6e60ff5034e72a5-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [62e66c5d-9e5d-434e-9831-31e91c4693d9] Deleting: 7c2732144970499ca6e60ff5034e72a5-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [62e66c5d-9e5d-434e-9831-31e91c4693d9] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2423.92ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 62e66c5d-9e5d-434e-9831-31e91c4693d9) to Inline(default) with arguments: ["7c2732144970499ca6e60ff5034e72a5-original.png", "7c2732144970499ca6e60ff5034e72a5-tiny.png", "7c2732144970499ca6e60ff5034e72a5-small.png", "7c2732144970499ca6e60ff5034e72a5-medium.png", "7c2732144970499ca6e60ff5034e72a5-large.png"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ TaskTest: test_reprocess ------------------------ Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-glmajp.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"bbf67e1cb844437a87e440110922920f\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T15:50:03.329-03:00\",\"paths\":{\"original\":\"bbf67e1cb844437a87e440110922920f-original.png\",\"tiny\":\"bbf67e1cb844437a87e440110922920f-tiny.png\",\"small\":\"bbf67e1cb844437a87e440110922920f-small.png\",\"medium\":\"bbf67e1cb844437a87e440110922920f-medium.png\",\"large\":\"bbf67e1cb844437a87e440110922920f-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-20 18:50:03.331601"], ["updated_at", "2016-12-20 18:50:03.331601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-glmajp.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-7fpwdn.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-7fpwdn.png => bbf67e1cb844437a87e440110922920f-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-glmajp.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-1gymc8q.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-1gymc8q.png => bbf67e1cb844437a87e440110922920f-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-glmajp.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-11bq2qf.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-11bq2qf.png => bbf67e1cb844437a87e440110922920f-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-glmajp.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-1acs768.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-1acs768.png => bbf67e1cb844437a87e440110922920f-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-glmajp.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-f1evi7.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-f1evi7.png => bbf67e1cb844437a87e440110922920f-large.png Deleting: bbf67e1cb844437a87e440110922920f-tiny.png Deleting: bbf67e1cb844437a87e440110922920f-small.png Deleting: bbf67e1cb844437a87e440110922920f-medium.png Deleting: bbf67e1cb844437a87e440110922920f-large.png Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Reprocessing Shop #24 => logo Regenerating: tiny => bbf67e1cb844437a87e440110922920f-tiny.png Regenerating: large => bbf67e1cb844437a87e440110922920f-large.png Regenerating: small => bbf67e1cb844437a87e440110922920f-small.png Regenerating: medium => bbf67e1cb844437a87e440110922920f-medium.png Deleting: bbf67e1cb844437a87e440110922920f-original.png Regenerating: original => bbf67e1cb844437a87e440110922920f-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-11n1apv.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-ai5ek4.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-ai5ek4.png => bbf67e1cb844437a87e440110922920f-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-11n1apv.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-rnf1rj.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-rnf1rj.png => bbf67e1cb844437a87e440110922920f-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-11n1apv.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-1b5pm9g.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-1b5pm9g.png => bbf67e1cb844437a87e440110922920f-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-11n1apv.png' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-1xhfjk4.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-1xhfjk4.png => bbf67e1cb844437a87e440110922920f-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-11n1apv.png' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-uwuk66.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-uwuk66.png => bbf67e1cb844437a87e440110922920f-large.png SQL (0.2ms) UPDATE "shops" SET "logo" = '{"paths":{"original":"bbf67e1cb844437a87e440110922920f-original.png","tiny":"bbf67e1cb844437a87e440110922920f-tiny.png","small":"bbf67e1cb844437a87e440110922920f-small.png","medium":"bbf67e1cb844437a87e440110922920f-medium.png","large":"bbf67e1cb844437a87e440110922920f-large.png"},"old_paths":[],"id":"bbf67e1cb844437a87e440110922920f","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-20T15:50:03.329-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 24]] RecordTest::Subclass Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Reprocessing Shop #24 => logo Deleting: bbf67e1cb844437a87e440110922920f-tiny.png Regenerating: tiny => bbf67e1cb844437a87e440110922920f-tiny.png Deleting: bbf67e1cb844437a87e440110922920f-large.png Regenerating: large => bbf67e1cb844437a87e440110922920f-large.png Deleting: bbf67e1cb844437a87e440110922920f-small.png Regenerating: small => bbf67e1cb844437a87e440110922920f-small.png Deleting: bbf67e1cb844437a87e440110922920f-medium.png Regenerating: medium => bbf67e1cb844437a87e440110922920f-medium.png Deleting: bbf67e1cb844437a87e440110922920f-original.png Regenerating: original => bbf67e1cb844437a87e440110922920f-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-180cslf.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-qwvund.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-qwvund.png => bbf67e1cb844437a87e440110922920f-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-180cslf.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-1np1pdg.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-1np1pdg.png => bbf67e1cb844437a87e440110922920f-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-180cslf.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-17tkt08.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-17tkt08.png => bbf67e1cb844437a87e440110922920f-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-180cslf.png' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-oplutj.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-oplutj.png => bbf67e1cb844437a87e440110922920f-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-180cslf.png' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-1vxer2.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-1vxer2.png => bbf67e1cb844437a87e440110922920f-large.png SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"original":"bbf67e1cb844437a87e440110922920f-original.png","tiny":"bbf67e1cb844437a87e440110922920f-tiny.png","small":"bbf67e1cb844437a87e440110922920f-small.png","medium":"bbf67e1cb844437a87e440110922920f-medium.png","large":"bbf67e1cb844437a87e440110922920f-large.png"},"old_paths":[],"id":"bbf67e1cb844437a87e440110922920f","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-20T15:50:03.329-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 24]] RecordTest::Subclass Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Reprocessing Shop #24 => logo Deleting: bbf67e1cb844437a87e440110922920f-tiny.png Regenerating: tiny => bbf67e1cb844437a87e440110922920f-tiny.png Deleting: bbf67e1cb844437a87e440110922920f-large.png Regenerating: large => bbf67e1cb844437a87e440110922920f-large.png Deleting: bbf67e1cb844437a87e440110922920f-small.png Regenerating: small => bbf67e1cb844437a87e440110922920f-small.png Deleting: bbf67e1cb844437a87e440110922920f-medium.png Regenerating: medium => bbf67e1cb844437a87e440110922920f-medium.png Deleting: bbf67e1cb844437a87e440110922920f-original.png Regenerating: original => bbf67e1cb844437a87e440110922920f-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-1u3mmu4.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-sjd1cp.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-sjd1cp.png => bbf67e1cb844437a87e440110922920f-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-1u3mmu4.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-yfe99l.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-yfe99l.png => bbf67e1cb844437a87e440110922920f-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-1u3mmu4.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-n3uz92.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-n3uz92.png => bbf67e1cb844437a87e440110922920f-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-1u3mmu4.png' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-3f7ukt.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-3f7ukt.png => bbf67e1cb844437a87e440110922920f-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-1u3mmu4.png' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-1zwbji.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-1zwbji.png => bbf67e1cb844437a87e440110922920f-large.png SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"original":"bbf67e1cb844437a87e440110922920f-original.png","tiny":"bbf67e1cb844437a87e440110922920f-tiny.png","small":"bbf67e1cb844437a87e440110922920f-small.png","medium":"bbf67e1cb844437a87e440110922920f-medium.png","large":"bbf67e1cb844437a87e440110922920f-large.png"},"old_paths":[],"id":"bbf67e1cb844437a87e440110922920f","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-20T15:50:03.329-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 24]] RecordTest::Subclass Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 24]] [ActiveJob] [Attachs::Jobs::DeleteJob] [d3c0401f-b63b-4605-8127-c9174f0a71e7] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["bbf67e1cb844437a87e440110922920f-tiny.png", "bbf67e1cb844437a87e440110922920f-large.png", "bbf67e1cb844437a87e440110922920f-small.png", "bbf67e1cb844437a87e440110922920f-medium.png", "bbf67e1cb844437a87e440110922920f-original.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [d3c0401f-b63b-4605-8127-c9174f0a71e7] Deleting: bbf67e1cb844437a87e440110922920f-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [d3c0401f-b63b-4605-8127-c9174f0a71e7] Deleting: bbf67e1cb844437a87e440110922920f-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [d3c0401f-b63b-4605-8127-c9174f0a71e7] Deleting: bbf67e1cb844437a87e440110922920f-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [d3c0401f-b63b-4605-8127-c9174f0a71e7] Deleting: bbf67e1cb844437a87e440110922920f-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [d3c0401f-b63b-4605-8127-c9174f0a71e7] Deleting: bbf67e1cb844437a87e440110922920f-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [d3c0401f-b63b-4605-8127-c9174f0a71e7] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2689.9ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: d3c0401f-b63b-4605-8127-c9174f0a71e7) to Inline(default) with arguments: ["bbf67e1cb844437a87e440110922920f-tiny.png", "bbf67e1cb844437a87e440110922920f-large.png", "bbf67e1cb844437a87e440110922920f-small.png", "bbf67e1cb844437a87e440110922920f-medium.png", "bbf67e1cb844437a87e440110922920f-original.png"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------- TaskTest: test_clear -------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-yigb4k.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"6df3f00098124982b2985fbb43b202b6\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T15:50:36.055-03:00\",\"paths\":{\"original\":\"6df3f00098124982b2985fbb43b202b6-original.png\",\"tiny\":\"6df3f00098124982b2985fbb43b202b6-tiny.png\",\"small\":\"6df3f00098124982b2985fbb43b202b6-small.png\",\"medium\":\"6df3f00098124982b2985fbb43b202b6-medium.png\",\"large\":\"6df3f00098124982b2985fbb43b202b6-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-20 18:50:36.055668"], ["updated_at", "2016-12-20 18:50:36.055668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-yigb4k.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-1unt65z.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-1unt65z.png => 6df3f00098124982b2985fbb43b202b6-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-yigb4k.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-xbzyik.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-xbzyik.png => 6df3f00098124982b2985fbb43b202b6-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-yigb4k.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-1mo825r.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-1mo825r.png => 6df3f00098124982b2985fbb43b202b6-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-yigb4k.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-12oj1wv.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-12oj1wv.png => 6df3f00098124982b2985fbb43b202b6-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-yigb4k.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-3crqdn.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-3crqdn.png => 6df3f00098124982b2985fbb43b202b6-large.png Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-17dm5ez.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"5adeae5cf8fb4b1e96f5da804e3ccecd\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T15:50:39.412-03:00\",\"paths\":{\"original\":\"5adeae5cf8fb4b1e96f5da804e3ccecd-original.png\",\"tiny\":\"5adeae5cf8fb4b1e96f5da804e3ccecd-tiny.png\",\"small\":\"5adeae5cf8fb4b1e96f5da804e3ccecd-small.png\",\"medium\":\"5adeae5cf8fb4b1e96f5da804e3ccecd-medium.png\",\"large\":\"5adeae5cf8fb4b1e96f5da804e3ccecd-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-20 18:50:39.413157"], ["updated_at", "2016-12-20 18:50:39.413157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-17dm5ez.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-xhiegw.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-xhiegw.png => 5adeae5cf8fb4b1e96f5da804e3ccecd-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-17dm5ez.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-ts0no2.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-ts0no2.png => 5adeae5cf8fb4b1e96f5da804e3ccecd-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-17dm5ez.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-uovclj.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-uovclj.png => 5adeae5cf8fb4b1e96f5da804e3ccecd-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-17dm5ez.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-1c1vhk6.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-1c1vhk6.png => 5adeae5cf8fb4b1e96f5da804e3ccecd-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-17dm5ez.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-4vfzh4.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-4vfzh4.png => 5adeae5cf8fb4b1e96f5da804e3ccecd-large.png SQL (0.3ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 26]]  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '5adeae5cf8fb4b1e96f5da804e3ccecd-large.png' OR old_paths.value = '5adeae5cf8fb4b1e96f5da804e3ccecd-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '5adeae5cf8fb4b1e96f5da804e3ccecd-large.png' OR old_paths.value = '5adeae5cf8fb4b1e96f5da804e3ccecd-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '5adeae5cf8fb4b1e96f5da804e3ccecd-large.png' OR old_paths.value = '5adeae5cf8fb4b1e96f5da804e3ccecd-large.png') Deleting 5adeae5cf8fb4b1e96f5da804e3ccecd-large.png Deleting: 5adeae5cf8fb4b1e96f5da804e3ccecd-large.png  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '5adeae5cf8fb4b1e96f5da804e3ccecd-medium.png' OR old_paths.value = '5adeae5cf8fb4b1e96f5da804e3ccecd-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '5adeae5cf8fb4b1e96f5da804e3ccecd-medium.png' OR old_paths.value = '5adeae5cf8fb4b1e96f5da804e3ccecd-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '5adeae5cf8fb4b1e96f5da804e3ccecd-medium.png' OR old_paths.value = '5adeae5cf8fb4b1e96f5da804e3ccecd-medium.png') Deleting 5adeae5cf8fb4b1e96f5da804e3ccecd-medium.png Deleting: 5adeae5cf8fb4b1e96f5da804e3ccecd-medium.png  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '5adeae5cf8fb4b1e96f5da804e3ccecd-original.png' OR old_paths.value = '5adeae5cf8fb4b1e96f5da804e3ccecd-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '5adeae5cf8fb4b1e96f5da804e3ccecd-original.png' OR old_paths.value = '5adeae5cf8fb4b1e96f5da804e3ccecd-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '5adeae5cf8fb4b1e96f5da804e3ccecd-original.png' OR old_paths.value = '5adeae5cf8fb4b1e96f5da804e3ccecd-original.png') Deleting 5adeae5cf8fb4b1e96f5da804e3ccecd-original.png Deleting: 5adeae5cf8fb4b1e96f5da804e3ccecd-original.png  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '5adeae5cf8fb4b1e96f5da804e3ccecd-small.png' OR old_paths.value = '5adeae5cf8fb4b1e96f5da804e3ccecd-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '5adeae5cf8fb4b1e96f5da804e3ccecd-small.png' OR old_paths.value = '5adeae5cf8fb4b1e96f5da804e3ccecd-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '5adeae5cf8fb4b1e96f5da804e3ccecd-small.png' OR old_paths.value = '5adeae5cf8fb4b1e96f5da804e3ccecd-small.png') Deleting 5adeae5cf8fb4b1e96f5da804e3ccecd-small.png Deleting: 5adeae5cf8fb4b1e96f5da804e3ccecd-small.png  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '5adeae5cf8fb4b1e96f5da804e3ccecd-tiny.png' OR old_paths.value = '5adeae5cf8fb4b1e96f5da804e3ccecd-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '5adeae5cf8fb4b1e96f5da804e3ccecd-tiny.png' OR old_paths.value = '5adeae5cf8fb4b1e96f5da804e3ccecd-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '5adeae5cf8fb4b1e96f5da804e3ccecd-tiny.png' OR old_paths.value = '5adeae5cf8fb4b1e96f5da804e3ccecd-tiny.png') Deleting 5adeae5cf8fb4b1e96f5da804e3ccecd-tiny.png Deleting: 5adeae5cf8fb4b1e96f5da804e3ccecd-tiny.png  (0.9ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-large.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-large.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-large.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-large.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-medium.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-medium.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-medium.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-medium.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-original.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-original.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-original.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-original.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-small.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-small.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-small.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-small.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-tiny.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-tiny.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-tiny.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-tiny.png')  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/33693680b8e44311a9dc06606a0bdd99-large.png' OR old_paths.value = 'second/33693680b8e44311a9dc06606a0bdd99-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/33693680b8e44311a9dc06606a0bdd99-large.png' OR old_paths.value = 'second/33693680b8e44311a9dc06606a0bdd99-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/33693680b8e44311a9dc06606a0bdd99-large.png' OR old_paths.value = 'second/33693680b8e44311a9dc06606a0bdd99-large.png') Deleting second/33693680b8e44311a9dc06606a0bdd99-large.png Deleting: second/33693680b8e44311a9dc06606a0bdd99-large.png  (0.7ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/33693680b8e44311a9dc06606a0bdd99-medium.png' OR old_paths.value = 'second/33693680b8e44311a9dc06606a0bdd99-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/33693680b8e44311a9dc06606a0bdd99-medium.png' OR old_paths.value = 'second/33693680b8e44311a9dc06606a0bdd99-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/33693680b8e44311a9dc06606a0bdd99-medium.png' OR old_paths.value = 'second/33693680b8e44311a9dc06606a0bdd99-medium.png') Deleting second/33693680b8e44311a9dc06606a0bdd99-medium.png Deleting: second/33693680b8e44311a9dc06606a0bdd99-medium.png  (0.7ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/33693680b8e44311a9dc06606a0bdd99-original.png' OR old_paths.value = 'second/33693680b8e44311a9dc06606a0bdd99-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/33693680b8e44311a9dc06606a0bdd99-original.png' OR old_paths.value = 'second/33693680b8e44311a9dc06606a0bdd99-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/33693680b8e44311a9dc06606a0bdd99-original.png' OR old_paths.value = 'second/33693680b8e44311a9dc06606a0bdd99-original.png') Deleting second/33693680b8e44311a9dc06606a0bdd99-original.png Deleting: second/33693680b8e44311a9dc06606a0bdd99-original.png  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/33693680b8e44311a9dc06606a0bdd99-small.png' OR old_paths.value = 'second/33693680b8e44311a9dc06606a0bdd99-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/33693680b8e44311a9dc06606a0bdd99-small.png' OR old_paths.value = 'second/33693680b8e44311a9dc06606a0bdd99-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/33693680b8e44311a9dc06606a0bdd99-small.png' OR old_paths.value = 'second/33693680b8e44311a9dc06606a0bdd99-small.png') Deleting second/33693680b8e44311a9dc06606a0bdd99-small.png Deleting: second/33693680b8e44311a9dc06606a0bdd99-small.png  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/33693680b8e44311a9dc06606a0bdd99-tiny.png' OR old_paths.value = 'second/33693680b8e44311a9dc06606a0bdd99-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/33693680b8e44311a9dc06606a0bdd99-tiny.png' OR old_paths.value = 'second/33693680b8e44311a9dc06606a0bdd99-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/33693680b8e44311a9dc06606a0bdd99-tiny.png' OR old_paths.value = 'second/33693680b8e44311a9dc06606a0bdd99-tiny.png') Deleting second/33693680b8e44311a9dc06606a0bdd99-tiny.png Deleting: second/33693680b8e44311a9dc06606a0bdd99-tiny.png  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-large.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-large.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-large.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-large.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-medium.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-medium.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-medium.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-medium.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-original.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-original.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-original.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-original.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-small.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-small.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-small.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-small.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-tiny.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-tiny.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-tiny.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-tiny.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-large.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-large.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-large.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-large.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-medium.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-medium.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-medium.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-medium.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-original.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-original.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-original.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-original.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-small.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-small.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-small.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-small.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-tiny.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-tiny.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-tiny.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-tiny.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-large.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-large.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-large.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-large.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-medium.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-medium.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-medium.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-medium.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-original.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-original.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-original.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-original.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-small.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-small.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-small.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-small.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-tiny.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-tiny.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '6df3f00098124982b2985fbb43b202b6-tiny.png' OR old_paths.value = '6df3f00098124982b2985fbb43b202b6-tiny.png') [ActiveJob] [Attachs::Jobs::DeleteJob] [e98993d6-43c3-4bf5-9a76-917373cacbdc] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["6df3f00098124982b2985fbb43b202b6-original.png", "6df3f00098124982b2985fbb43b202b6-tiny.png", "6df3f00098124982b2985fbb43b202b6-small.png", "6df3f00098124982b2985fbb43b202b6-medium.png", "6df3f00098124982b2985fbb43b202b6-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [e98993d6-43c3-4bf5-9a76-917373cacbdc] Deleting: 6df3f00098124982b2985fbb43b202b6-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [e98993d6-43c3-4bf5-9a76-917373cacbdc] Deleting: 6df3f00098124982b2985fbb43b202b6-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [e98993d6-43c3-4bf5-9a76-917373cacbdc] Deleting: 6df3f00098124982b2985fbb43b202b6-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [e98993d6-43c3-4bf5-9a76-917373cacbdc] Deleting: 6df3f00098124982b2985fbb43b202b6-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [e98993d6-43c3-4bf5-9a76-917373cacbdc] Deleting: 6df3f00098124982b2985fbb43b202b6-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [e98993d6-43c3-4bf5-9a76-917373cacbdc] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2448.6ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: e98993d6-43c3-4bf5-9a76-917373cacbdc) to Inline(default) with arguments: ["6df3f00098124982b2985fbb43b202b6-original.png", "6df3f00098124982b2985fbb43b202b6-tiny.png", "6df3f00098124982b2985fbb43b202b6-small.png", "6df3f00098124982b2985fbb43b202b6-medium.png", "6df3f00098124982b2985fbb43b202b6-large.png"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ ValidationTest: test_content_type_in ------------------------------------ Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-cvxxqi.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-bssb96.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-199kfud.jpg'  (0.2ms) ROLLBACK  (0.2ms) BEGIN ---------------------------- ValidationTest: test_methods ----------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- ValidationTest: test_size_within -------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-77301-f4lh52.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-kh4r69.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161220-77301-19zjot.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-7pu99r.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-3fhl9h.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- ValidationTest: test_content_type_within ---------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-zilfq6.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-3hhmii.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-1dtecgo.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- ValidationTest: test_size_less_than ----------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-77301-qcq37m.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-1105qn7.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-ksonij.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidationTest: test_size_in ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-77301-dtwkh6.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-y37fw1.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161220-77301-1ltgu67.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-1xlbhzb.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-164zr8.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidationTest: test_content_type_with -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-lewob7.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-12min75.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-1j8wszf.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------- ValidationTest: test_presence ----------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-z344jn.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidationTest: test_size_greater_than -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161220-77301-1a6lwvx.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-1sco0c0.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-1wgb49e.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------- UploadTest: test_upload ----------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-17pbkxn.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "uploads" ("file", "record_type", "record_attribute", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "{\"id\":\"d86e7140921f4a58b9af2c88d78899c7\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T15:50:57.699-03:00\",\"paths\":{\"original\":\"uploads/d86e7140921f4a58b9af2c88d78899c7-original.jpg\",\"tiny\":\"uploads/d86e7140921f4a58b9af2c88d78899c7-tiny.jpg\",\"small\":\"uploads/d86e7140921f4a58b9af2c88d78899c7-small.jpg\",\"medium\":\"uploads/d86e7140921f4a58b9af2c88d78899c7-medium.jpg\",\"large\":\"uploads/d86e7140921f4a58b9af2c88d78899c7-large.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["record_type", "Shop"], ["record_attribute", "logo"], ["created_at", "2016-12-20 18:50:57.700637"], ["updated_at", "2016-12-20 18:50:57.700637"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-17pbkxn.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-1n8k8hg.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-1n8k8hg.jpg => uploads/d86e7140921f4a58b9af2c88d78899c7-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-17pbkxn.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-1r0b26a.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-1r0b26a.jpg => uploads/d86e7140921f4a58b9af2c88d78899c7-tiny.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-17pbkxn.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-18b87w8.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-18b87w8.jpg => uploads/d86e7140921f4a58b9af2c88d78899c7-small.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-17pbkxn.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-kpvaqf.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-kpvaqf.jpg => uploads/d86e7140921f4a58b9af2c88d78899c7-medium.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-17pbkxn.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-1vxmvg4.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-1vxmvg4.jpg => uploads/d86e7140921f4a58b9af2c88d78899c7-large.jpg  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"171f2d7189b2405fbf8087955b25635d\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T15:51:00.040-03:00\",\"paths\":{\"original\":\"171f2d7189b2405fbf8087955b25635d-original.png\",\"tiny\":\"171f2d7189b2405fbf8087955b25635d-tiny.png\",\"small\":\"171f2d7189b2405fbf8087955b25635d-small.png\",\"medium\":\"171f2d7189b2405fbf8087955b25635d-medium.png\",\"large\":\"171f2d7189b2405fbf8087955b25635d-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-20 18:51:00.040916"], ["updated_at", "2016-12-20 18:51:00.040916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Copying: uploads/d86e7140921f4a58b9af2c88d78899c7-original.jpg => 171f2d7189b2405fbf8087955b25635d-original.png Copying: uploads/d86e7140921f4a58b9af2c88d78899c7-tiny.jpg => 171f2d7189b2405fbf8087955b25635d-tiny.png Copying: uploads/d86e7140921f4a58b9af2c88d78899c7-small.jpg => 171f2d7189b2405fbf8087955b25635d-small.png Copying: uploads/d86e7140921f4a58b9af2c88d78899c7-medium.jpg => 171f2d7189b2405fbf8087955b25635d-medium.png Copying: uploads/d86e7140921f4a58b9af2c88d78899c7-large.jpg => 171f2d7189b2405fbf8087955b25635d-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [ee54e045-50a3-4c3b-8380-6a722165d97d] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["171f2d7189b2405fbf8087955b25635d-original.png", "171f2d7189b2405fbf8087955b25635d-tiny.png", "171f2d7189b2405fbf8087955b25635d-small.png", "171f2d7189b2405fbf8087955b25635d-medium.png", "171f2d7189b2405fbf8087955b25635d-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [ee54e045-50a3-4c3b-8380-6a722165d97d] Deleting: 171f2d7189b2405fbf8087955b25635d-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [ee54e045-50a3-4c3b-8380-6a722165d97d] Deleting: 171f2d7189b2405fbf8087955b25635d-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [ee54e045-50a3-4c3b-8380-6a722165d97d] Deleting: 171f2d7189b2405fbf8087955b25635d-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [ee54e045-50a3-4c3b-8380-6a722165d97d] Deleting: 171f2d7189b2405fbf8087955b25635d-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [ee54e045-50a3-4c3b-8380-6a722165d97d] Deleting: 171f2d7189b2405fbf8087955b25635d-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [ee54e045-50a3-4c3b-8380-6a722165d97d] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2544.28ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: ee54e045-50a3-4c3b-8380-6a722165d97d) to Inline(default) with arguments: ["171f2d7189b2405fbf8087955b25635d-original.png", "171f2d7189b2405fbf8087955b25635d-tiny.png", "171f2d7189b2405fbf8087955b25635d-small.png", "171f2d7189b2405fbf8087955b25635d-medium.png", "171f2d7189b2405fbf8087955b25635d-large.png"] Upload Load (0.3ms) SELECT "uploads".* FROM "uploads" WHERE "uploads"."id" = $1 LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"paths\":{\"original\":\"613071ebe4f7490a92e623281028eb88-original.png\",\"tiny\":\"613071ebe4f7490a92e623281028eb88-tiny.png\",\"small\":\"613071ebe4f7490a92e623281028eb88-small.png\",\"medium\":\"613071ebe4f7490a92e623281028eb88-medium.png\",\"large\":\"613071ebe4f7490a92e623281028eb88-large.png\"},\"old_paths\":[],\"id\":\"613071ebe4f7490a92e623281028eb88\",\"size\":74474,\"ratio\":0.6725,\"width\":400,\"height\":269,\"filename\":\"image.jpg\",\"uploaded_at\":\"2016-12-20T15:51:10.955-03:00\",\"content_type\":\"image/jpeg\"}"], ["created_at", "2016-12-20 18:51:10.955711"], ["updated_at", "2016-12-20 18:51:10.955711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Copying: uploads/d86e7140921f4a58b9af2c88d78899c7-tiny.jpg => 613071ebe4f7490a92e623281028eb88-tiny.png Copying: uploads/d86e7140921f4a58b9af2c88d78899c7-large.jpg => 613071ebe4f7490a92e623281028eb88-large.png Copying: uploads/d86e7140921f4a58b9af2c88d78899c7-small.jpg => 613071ebe4f7490a92e623281028eb88-small.png Copying: uploads/d86e7140921f4a58b9af2c88d78899c7-medium.jpg => 613071ebe4f7490a92e623281028eb88-medium.png Copying: uploads/d86e7140921f4a58b9af2c88d78899c7-original.jpg => 613071ebe4f7490a92e623281028eb88-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [45599afe-9d3e-4cfb-8d25-31d999cbee76] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["613071ebe4f7490a92e623281028eb88-original.png", "613071ebe4f7490a92e623281028eb88-tiny.png", "613071ebe4f7490a92e623281028eb88-small.png", "613071ebe4f7490a92e623281028eb88-medium.png", "613071ebe4f7490a92e623281028eb88-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [45599afe-9d3e-4cfb-8d25-31d999cbee76] Deleting: 613071ebe4f7490a92e623281028eb88-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [45599afe-9d3e-4cfb-8d25-31d999cbee76] Deleting: 613071ebe4f7490a92e623281028eb88-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [45599afe-9d3e-4cfb-8d25-31d999cbee76] Deleting: 613071ebe4f7490a92e623281028eb88-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [45599afe-9d3e-4cfb-8d25-31d999cbee76] Deleting: 613071ebe4f7490a92e623281028eb88-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [45599afe-9d3e-4cfb-8d25-31d999cbee76] Deleting: 613071ebe4f7490a92e623281028eb88-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [45599afe-9d3e-4cfb-8d25-31d999cbee76] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2736.11ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 45599afe-9d3e-4cfb-8d25-31d999cbee76) to Inline(default) with arguments: ["613071ebe4f7490a92e623281028eb88-original.png", "613071ebe4f7490a92e623281028eb88-tiny.png", "613071ebe4f7490a92e623281028eb88-small.png", "613071ebe4f7490a92e623281028eb88-medium.png", "613071ebe4f7490a92e623281028eb88-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [1aee1edb-93bd-4b8c-8de5-5821e43bea77] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["uploads/d86e7140921f4a58b9af2c88d78899c7-original.jpg", "uploads/d86e7140921f4a58b9af2c88d78899c7-tiny.jpg", "uploads/d86e7140921f4a58b9af2c88d78899c7-small.jpg", "uploads/d86e7140921f4a58b9af2c88d78899c7-medium.jpg", "uploads/d86e7140921f4a58b9af2c88d78899c7-large.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [1aee1edb-93bd-4b8c-8de5-5821e43bea77] Deleting: uploads/d86e7140921f4a58b9af2c88d78899c7-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [1aee1edb-93bd-4b8c-8de5-5821e43bea77] Deleting: uploads/d86e7140921f4a58b9af2c88d78899c7-tiny.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [1aee1edb-93bd-4b8c-8de5-5821e43bea77] Deleting: uploads/d86e7140921f4a58b9af2c88d78899c7-small.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [1aee1edb-93bd-4b8c-8de5-5821e43bea77] Deleting: uploads/d86e7140921f4a58b9af2c88d78899c7-medium.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [1aee1edb-93bd-4b8c-8de5-5821e43bea77] Deleting: uploads/d86e7140921f4a58b9af2c88d78899c7-large.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [1aee1edb-93bd-4b8c-8de5-5821e43bea77] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2207.46ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 1aee1edb-93bd-4b8c-8de5-5821e43bea77) to Inline(default) with arguments: ["uploads/d86e7140921f4a58b9af2c88d78899c7-original.jpg", "uploads/d86e7140921f4a58b9af2c88d78899c7-tiny.jpg", "uploads/d86e7140921f4a58b9af2c88d78899c7-small.jpg", "uploads/d86e7140921f4a58b9af2c88d78899c7-medium.jpg", "uploads/d86e7140921f4a58b9af2c88d78899c7-large.jpg"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- HelperTest: test_fields_for --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-e0bfmo.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"3def1acad6484f1a901e65c4ab2cbb09\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T15:51:25.628-03:00\",\"paths\":{\"original\":\"3def1acad6484f1a901e65c4ab2cbb09-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-12-20 18:51:25.628695"], ["updated_at", "2016-12-20 18:51:25.628695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77301-e0bfmo.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-1tjqmst.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-77301-1tjqmst.jpg => 3def1acad6484f1a901e65c4ab2cbb09-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [8fcaebba-6abc-4308-b007-984f857734f0] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["3def1acad6484f1a901e65c4ab2cbb09-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [8fcaebba-6abc-4308-b007-984f857734f0] Deleting: 3def1acad6484f1a901e65c4ab2cbb09-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [8fcaebba-6abc-4308-b007-984f857734f0] Performed Attachs::Jobs::DeleteJob from Inline(default) in 385.58ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 8fcaebba-6abc-4308-b007-984f857734f0) to Inline(default) with arguments: ["3def1acad6484f1a901e65c4ab2cbb09-original.jpg"]  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------------------- RecordTest: test_clear_attachments ---------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77758-uawpb3.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ RecordTest: test_inherit ------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- CollectionTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77758-1nhyywu.jpg'  (0.2ms) ROLLBACK  (0.3ms) BEGIN -------------------------------------- CollectionTest: test_nested_attributes -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77758-1k7nm75.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------- CollectionTest: test_index -------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77758-1dnjid3.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77758-1aw9p8l.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- AttachmentTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77758-1qjrui7.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_renames ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77758-1k8tim7.jpg'  (0.2ms) SAVEPOINT active_record_1  (5.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_default ----------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- AttachmentTest: test_nested_attributes --------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------- UploadTest: test_upload ----------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77758-pu6mds.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------- GeneratorTest: test_install ---------------------------  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------- GeneratorTest: test_upload --------------------------  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------- TaskTest: test_clear -------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77758-1k23x20.jpg'  (0.4ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- TaskTest: test_fix_missings --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77758-12jf7c3.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ TaskTest: test_reprocess ------------------------ Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77758-12gx7fo.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------- TaskTest: test_exist -------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77758-h2z1wu.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------- HelperTest: test_fields_for --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77758-15ef5yq.jpg'  (0.3ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidationTest: test_size_greater_than -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161220-77758-1bflqdn.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77758-fegjy9.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ ValidationTest: test_content_type_in ------------------------------------ Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77758-1kvhgij.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77758-1i23y10.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------- ValidationTest: test_presence ----------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77758-1pg1lde.jpg'  (0.2ms) ROLLBACK  (0.2ms) BEGIN ---------------------------- ValidationTest: test_size_in ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-77758-9mto4i.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77758-7v1xww.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- ValidationTest: test_content_type_within ---------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77758-17bpfi6.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77758-6c0fwu.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- ValidationTest: test_size_within -------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-77758-1supezz.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77758-1xibbg0.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidationTest: test_methods ----------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidationTest: test_content_type_with -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77758-152lxh7.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77758-2s4sg8.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- ValidationTest: test_size_less_than ----------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-77758-i57q6f.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77758-dwjemz.jpg'  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------ RecordTest: test_inherit ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- RecordTest: test_clear_attachments ---------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77883-kszgfy.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------- UploadTest: test_upload ----------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77883-16x9znj.jpg'  (0.3ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------- GeneratorTest: test_upload --------------------------  (0.3ms) ROLLBACK  (0.2ms) BEGIN --------------------------- GeneratorTest: test_install ---------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------- TaskTest: test_exist -------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77883-16r3px6.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ TaskTest: test_reprocess ------------------------ Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77883-1qskuw3.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------- TaskTest: test_clear -------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77883-1cvpsul.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------- TaskTest: test_fix_missings --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77883-1qngss2.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- CollectionTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77883-uw19zf.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------- CollectionTest: test_index -------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77883-16tuxr0.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77883-153z18a.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- CollectionTest: test_nested_attributes -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77883-1xgn218.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- AttachmentTest: test_nested_attributes --------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_default ----------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- AttachmentTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77883-1hj3q4p.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_renames ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77883-jpt6hz.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidationTest: test_content_type_with -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77883-14sglak.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77883-13xae6r.jpg'  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------------- ValidationTest: test_size_within -------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-77883-vnbf3i.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77883-1ukqi4e.jpg'  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------------- ValidationTest: test_presence ----------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77883-3ddgz1.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidationTest: test_size_greater_than -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161220-77883-1ntyc3t.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77883-m61uaf.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ ValidationTest: test_content_type_in ------------------------------------ Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77883-8zlq3x.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77883-pkox8l.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- ValidationTest: test_content_type_within ---------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77883-zcxu1z.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77883-1onay2m.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidationTest: test_methods ----------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- ValidationTest: test_size_less_than ----------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-77883-oq6g62.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77883-113k0pj.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidationTest: test_size_in ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-77883-e6lg1t.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77883-1lap6up.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- HelperTest: test_fields_for --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77883-9rdkf4.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ----------------------- UploadTest: test_upload ----------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77980-1imzu96.jpg'  (0.3ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- CollectionTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77980-1j0hqp9.jpg'  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------- CollectionTest: test_index -------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77980-10hbgfl.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77980-1atm1du.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- CollectionTest: test_nested_attributes -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77980-wyzmnz.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------- ValidationTest: test_presence ----------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77980-1jb2z0i.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidationTest: test_size_in ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-77980-1wwrs3o.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77980-1a3ucgu.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- ValidationTest: test_size_within -------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-77980-fig4nh.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77980-1dzgodd.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidationTest: test_methods ----------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidationTest: test_size_greater_than -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161220-77980-1oj1df2.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77980-17qxiwa.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ ValidationTest: test_content_type_in ------------------------------------ Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77980-hawzwb.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77980-1casiqu.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- ValidationTest: test_size_less_than ----------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-77980-ymogds.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77980-17jt1t1.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidationTest: test_content_type_with -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77980-1x8vxsf.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77980-1y2aq0z.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- ValidationTest: test_content_type_within ---------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77980-1ep2gzw.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77980-nvhnnb.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- AttachmentTest: test_nested_attributes --------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_renames ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77980-1bh0kqk.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------- AttachmentTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77980-gjiqyq.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_default ----------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- TaskTest: test_fix_missings --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77980-17i2005.jpg'  (0.3ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ TaskTest: test_reprocess ------------------------ Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77980-tnuzh6.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------- TaskTest: test_clear -------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77980-3a5wef.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------- TaskTest: test_exist -------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77980-4xkuqk.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------- HelperTest: test_fields_for --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77980-zve7wd.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- RecordTest: test_clear_attachments ---------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-77980-1njvyzk.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ RecordTest: test_inherit ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------- GeneratorTest: test_upload --------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- GeneratorTest: test_install ---------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------------- ValidationTest: test_size_in ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-78036-1ivqh1c.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78036-15jcbw3.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- ValidationTest: test_content_type_within ---------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78036-x08kyz.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78036-oloh22.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidationTest: test_methods ----------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- ValidationTest: test_size_less_than ----------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-78036-1qicnbr.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78036-1klayrs.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidationTest: test_content_type_with -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78036-e9an2d.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78036-k4yqku.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidationTest: test_size_greater_than -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161220-78036-r1qioc.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78036-1nze8n0.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ ValidationTest: test_content_type_in ------------------------------------ Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78036-1btpr4a.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78036-dnp7r7.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- ValidationTest: test_size_within -------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-78036-1edoery.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78036-m7dtuu.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------- ValidationTest: test_presence ----------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78036-x1citn.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_renames ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78036-il6u80.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_default ----------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- AttachmentTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78036-j4puho.jpg'  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------- AttachmentTest: test_nested_attributes --------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------- GeneratorTest: test_upload --------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- GeneratorTest: test_install ---------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------- UploadTest: test_upload ----------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78036-1jkty9c.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------- HelperTest: test_fields_for --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78036-pkdm2m.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ RecordTest: test_inherit ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- RecordTest: test_clear_attachments ---------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78036-1tlr126.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- CollectionTest: test_nested_attributes -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78036-5c20kn.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------- CollectionTest: test_index -------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78036-wnkcxz.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78036-11noyzl.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- CollectionTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78036-1960ae2.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------- TaskTest: test_clear -------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78036-gp9gve.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------- TaskTest: test_exist -------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78036-hkdit4.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN --------------------------- TaskTest: test_fix_missings --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78036-gzlxgb.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ TaskTest: test_reprocess ------------------------ Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78036-11q792x.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN -------------------------------------- ValidationTest: test_content_type_with -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78116-1g9amrd.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78116-form9n.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- ValidationTest: test_size_less_than ----------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-78116-1bh98ui.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78116-1pf1taw.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- ValidationTest: test_size_within -------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-78116-11fv0j7.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78116-1rc3q07.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------- ValidationTest: test_presence -----------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidationTest: test_size_in ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-78116-7r7662.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78116-1eno0sj.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- ValidationTest: test_content_type_within ---------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78116-dqbat2.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78116-1wnsvg7.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidationTest: test_size_greater_than -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161220-78116-7kwae0.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78116-l83g12.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidationTest: test_methods ----------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ ValidationTest: test_content_type_in ------------------------------------ Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78116-1iwgshh.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78116-cvjprv.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN --------------------------- HelperTest: test_fields_for --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78116-5k8wj8.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- RecordTest: test_clear_attachments ---------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78116-1qr4e91.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ RecordTest: test_inherit ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------- CollectionTest: test_index -------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78116-1ngq39q.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78116-1r5c7c6.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- CollectionTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78116-5ha89v.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- CollectionTest: test_nested_attributes -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78116-1fw1tq.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------- TaskTest: test_clear -------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78116-1tl5l9s.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------- TaskTest: test_exist -------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78116-qmup6z.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------- TaskTest: test_fix_missings --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78116-bvnehr.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ TaskTest: test_reprocess ------------------------ Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78116-1gw043g.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_default ----------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- AttachmentTest: test_attributes -------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- AttachmentTest: test_nested_attributes --------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_renames ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78116-1ll4bkq.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------- UploadTest: test_upload ----------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78116-lv4bkc.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------- GeneratorTest: test_install ---------------------------  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------- GeneratorTest: test_upload --------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------------------- RecordTest: test_clear_attachments ---------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78182-mn911s.jpg'  (1.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------ RecordTest: test_inherit ------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ ValidationTest: test_content_type_in ------------------------------------ Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78182-5pakrv.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78182-uytfw6.jpg'  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------- ValidationTest: test_content_type_with -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78182-1ht5gkw.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78182-g6585b.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- ValidationTest: test_size_less_than ----------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-78182-fkgfik.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78182-1mcbuyy.jpg'  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------------- ValidationTest: test_size_within -------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-78182-hk2um3.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78182-43irf3.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- ValidationTest: test_content_type_within ---------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78182-4rhu0a.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78182-jijh48.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidationTest: test_size_in ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-78182-f7c7kw.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78182-jt4cd4.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidationTest: test_size_greater_than -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161220-78182-1shbbnc.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78182-1k53ahu.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------- ValidationTest: test_presence ----------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78182-lfhcno.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidationTest: test_methods ----------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_default ----------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_renames ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78182-g6ipx5.jpg'  (0.2ms) SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------- AttachmentTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78300-zni3rz.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_renames ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78300-qdcg0j.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- AttachmentTest: test_nested_attributes --------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_default ----------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- RecordTest: test_clear_attachments ---------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78300-1wkgr03.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ RecordTest: test_inherit ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------- TaskTest: test_clear -------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78300-1ot432n.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------- TaskTest: test_exist -------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78300-1p05kmo.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------- TaskTest: test_fix_missings --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78300-vnm14y.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN ------------------------ TaskTest: test_reprocess ------------------------ Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78300-gezzrx.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.3ms) BEGIN --------------------------- GeneratorTest: test_install ---------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------- GeneratorTest: test_upload --------------------------  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- CollectionTest: test_nested_attributes -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78300-150c0ri.jpg'  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------- CollectionTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78300-1ykm258.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------- CollectionTest: test_index -------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78300-4md5ep.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78300-1v0ists.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------- UploadTest: test_upload ----------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78300-xtmq1p.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- ValidationTest: test_size_less_than ----------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-78300-1l39v3q.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78300-9r4tga.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- ValidationTest: test_content_type_within ---------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78300-f3dq0a.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78300-6dqla6.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidationTest: test_methods ----------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ ValidationTest: test_content_type_in ------------------------------------ Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78300-1aduwub.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78300-rigrj4.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------- ValidationTest: test_presence ----------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78300-1tkw8k0.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- ValidationTest: test_size_within -------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-78300-kki3s9.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78300-1o7u6fi.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidationTest: test_size_greater_than -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161220-78300-lht1ag.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78300-1djzrqm.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidationTest: test_size_in ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-78300-ab9ps2.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78300-15wssm3.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidationTest: test_content_type_with -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78300-13jgamk.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78300-3tj121.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN --------------------------- HelperTest: test_fields_for --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78300-11n9ykn.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ----------------------- UploadTest: test_upload ----------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78351-q4m3et.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidationTest: test_size_greater_than -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161220-78351-th77oo.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78351-14d5jvt.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- ValidationTest: test_size_less_than ----------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-78351-6cmgi.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78351-1dms2ni.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- ValidationTest: test_size_within -------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-78351-uafe2m.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78351-1o0u71i.jpg'  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidationTest: test_size_in ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-78351-k0dog1.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78351-okae9v.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- ValidationTest: test_content_type_within ---------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78351-1dpmty3.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78351-1misinn.jpg'  (1.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidationTest: test_methods ----------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------- ValidationTest: test_presence ----------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78351-1kclnh5.jpg'  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------- ValidationTest: test_content_type_with -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78351-53fkjc.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78351-kpkr7l.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ ValidationTest: test_content_type_in ------------------------------------ Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78351-1kvef8v.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78351-1gn6p5z.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- RecordTest: test_clear_attachments ---------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78351-mjhbnh.jpg'  (0.3ms) ROLLBACK  (0.2ms) BEGIN ------------------------ RecordTest: test_inherit ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------- TaskTest: test_clear -------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78351-fp3dun.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ TaskTest: test_reprocess ------------------------ Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78351-8swym0.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------- TaskTest: test_exist -------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78351-1n13m0d.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------- TaskTest: test_fix_missings --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78351-1jqcqd3.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- AttachmentTest: test_nested_attributes --------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- AttachmentTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78351-7zhwk2.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_renames ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78351-13z9la4.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_default ----------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- GeneratorTest: test_install ---------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------- GeneratorTest: test_upload --------------------------  (0.3ms) ROLLBACK  (0.2ms) BEGIN --------------------------- HelperTest: test_fields_for --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78351-tsdylx.jpg'  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------- CollectionTest: test_index -------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78351-fwmneb.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78351-jywxsv.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- CollectionTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78351-a541ax.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- CollectionTest: test_nested_attributes -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78351-qb65g5.jpg'  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN --------------------------- TaskTest: test_fix_missings --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-ch6ikw.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"78e806af258848b581198bfea534a8fe\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T16:05:20.736-03:00\",\"paths\":{\"original\":\"78e806af258848b581198bfea534a8fe-original.png\",\"tiny\":\"78e806af258848b581198bfea534a8fe-tiny.png\",\"small\":\"78e806af258848b581198bfea534a8fe-small.png\",\"medium\":\"78e806af258848b581198bfea534a8fe-medium.png\",\"large\":\"78e806af258848b581198bfea534a8fe-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-20 19:05:20.736647"], ["updated_at", "2016-12-20 19:05:20.736647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-ch6ikw.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-isl515.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-isl515.png => 78e806af258848b581198bfea534a8fe-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-ch6ikw.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-o3lp3r.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-o3lp3r.png => 78e806af258848b581198bfea534a8fe-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-ch6ikw.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1iyq97y.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1iyq97y.png => 78e806af258848b581198bfea534a8fe-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-ch6ikw.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1lztusk.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1lztusk.png => 78e806af258848b581198bfea534a8fe-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-ch6ikw.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-qptv1z.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-qptv1z.png => 78e806af258848b581198bfea534a8fe-large.png Deleting: 78e806af258848b581198bfea534a8fe-tiny.png Deleting: 78e806af258848b581198bfea534a8fe-small.png Shop Load (0.6ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Fix missings of Shop #29 => logo Generating: tiny => 78e806af258848b581198bfea534a8fe-tiny.png Generating: small => 78e806af258848b581198bfea534a8fe-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1oen1m6.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1vcuf8o.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1vcuf8o.png => 78e806af258848b581198bfea534a8fe-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1oen1m6.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1eudwba.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1eudwba.png => 78e806af258848b581198bfea534a8fe-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1oen1m6.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-vvw1su.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-vvw1su.png => 78e806af258848b581198bfea534a8fe-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [993dd56b-7dcf-4f2d-8b06-be64e27c1201] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["78e806af258848b581198bfea534a8fe-original.png", "78e806af258848b581198bfea534a8fe-tiny.png", "78e806af258848b581198bfea534a8fe-small.png", "78e806af258848b581198bfea534a8fe-medium.png", "78e806af258848b581198bfea534a8fe-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [993dd56b-7dcf-4f2d-8b06-be64e27c1201] Deleting: 78e806af258848b581198bfea534a8fe-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [993dd56b-7dcf-4f2d-8b06-be64e27c1201] Deleting: 78e806af258848b581198bfea534a8fe-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [993dd56b-7dcf-4f2d-8b06-be64e27c1201] Deleting: 78e806af258848b581198bfea534a8fe-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [993dd56b-7dcf-4f2d-8b06-be64e27c1201] Deleting: 78e806af258848b581198bfea534a8fe-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [993dd56b-7dcf-4f2d-8b06-be64e27c1201] Deleting: 78e806af258848b581198bfea534a8fe-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [993dd56b-7dcf-4f2d-8b06-be64e27c1201] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2513.3ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 993dd56b-7dcf-4f2d-8b06-be64e27c1201) to Inline(default) with arguments: ["78e806af258848b581198bfea534a8fe-original.png", "78e806af258848b581198bfea534a8fe-tiny.png", "78e806af258848b581198bfea534a8fe-small.png", "78e806af258848b581198bfea534a8fe-medium.png", "78e806af258848b581198bfea534a8fe-large.png"]  (0.3ms) ROLLBACK  (0.2ms) BEGIN -------------------- TaskTest: test_exist -------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-1o8w01t.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("name", "logo", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "first"], ["logo", "{\"id\":\"366955cc4ea64f96a634af4558cc9b5d\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T16:05:37.646-03:00\",\"paths\":{\"original\":\"first/366955cc4ea64f96a634af4558cc9b5d-original.png\",\"tiny\":\"first/366955cc4ea64f96a634af4558cc9b5d-tiny.png\",\"small\":\"first/366955cc4ea64f96a634af4558cc9b5d-small.png\",\"medium\":\"first/366955cc4ea64f96a634af4558cc9b5d-medium.png\",\"large\":\"first/366955cc4ea64f96a634af4558cc9b5d-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-20 19:05:37.647583"], ["updated_at", "2016-12-20 19:05:37.647583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-1o8w01t.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-20joxz.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-20joxz.png => first/366955cc4ea64f96a634af4558cc9b5d-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-1o8w01t.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1f0y1w4.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1f0y1w4.png => first/366955cc4ea64f96a634af4558cc9b5d-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-1o8w01t.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-17eugkf.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-17eugkf.png => first/366955cc4ea64f96a634af4558cc9b5d-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-1o8w01t.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1ihfsmu.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1ihfsmu.png => first/366955cc4ea64f96a634af4558cc9b5d-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-1o8w01t.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1d3xe2n.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1d3xe2n.png => first/366955cc4ea64f96a634af4558cc9b5d-large.png  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "shops" SET "name" = $1, "updated_at" = $2 WHERE "shops"."id" = $3 [["name", "second"], ["updated_at", "2016-12-20 19:05:40.867823"], ["id", 30]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 30]] [ActiveJob] [Attachs::Jobs::UpdateJob] [13794251-e0d6-45f8-8f8d-224b3d54fd01] Performing Attachs::Jobs::UpdateJob from Inline(default) with arguments: gid://dummy/Shop/30, "logo" [ActiveJob] [Attachs::Jobs::UpdateJob] [13794251-e0d6-45f8-8f8d-224b3d54fd01] Copying: first/366955cc4ea64f96a634af4558cc9b5d-original.png => second/366955cc4ea64f96a634af4558cc9b5d-original.png [ActiveJob] [Attachs::Jobs::UpdateJob] [13794251-e0d6-45f8-8f8d-224b3d54fd01] Copying: first/366955cc4ea64f96a634af4558cc9b5d-tiny.png => second/366955cc4ea64f96a634af4558cc9b5d-tiny.png [ActiveJob] [Attachs::Jobs::UpdateJob] [13794251-e0d6-45f8-8f8d-224b3d54fd01] Copying: first/366955cc4ea64f96a634af4558cc9b5d-small.png => second/366955cc4ea64f96a634af4558cc9b5d-small.png [ActiveJob] [Attachs::Jobs::UpdateJob] [13794251-e0d6-45f8-8f8d-224b3d54fd01] Copying: first/366955cc4ea64f96a634af4558cc9b5d-medium.png => second/366955cc4ea64f96a634af4558cc9b5d-medium.png [ActiveJob] [Attachs::Jobs::UpdateJob] [13794251-e0d6-45f8-8f8d-224b3d54fd01] Copying: first/366955cc4ea64f96a634af4558cc9b5d-large.png => second/366955cc4ea64f96a634af4558cc9b5d-large.png [ActiveJob] [Attachs::Jobs::UpdateJob] [13794251-e0d6-45f8-8f8d-224b3d54fd01] SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"tiny":"second/366955cc4ea64f96a634af4558cc9b5d-tiny.png","large":"second/366955cc4ea64f96a634af4558cc9b5d-large.png","small":"second/366955cc4ea64f96a634af4558cc9b5d-small.png","medium":"second/366955cc4ea64f96a634af4558cc9b5d-medium.png","original":"second/366955cc4ea64f96a634af4558cc9b5d-original.png"},"old_paths":["first/366955cc4ea64f96a634af4558cc9b5d-original.png","first/366955cc4ea64f96a634af4558cc9b5d-tiny.png","first/366955cc4ea64f96a634af4558cc9b5d-small.png","first/366955cc4ea64f96a634af4558cc9b5d-medium.png","first/366955cc4ea64f96a634af4558cc9b5d-large.png"],"id":"366955cc4ea64f96a634af4558cc9b5d","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-20T16:05:37.646-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 30]] [ActiveJob] [Attachs::Jobs::UpdateJob] [13794251-e0d6-45f8-8f8d-224b3d54fd01] Performed Attachs::Jobs::UpdateJob from Inline(default) in 2300.74ms [ActiveJob] Enqueued Attachs::Jobs::UpdateJob (Job ID: 13794251-e0d6-45f8-8f8d-224b3d54fd01) to Inline(default) with arguments: gid://dummy/Shop/30, "logo" Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-wb2fwh.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-1pq9b0m.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"2c16f6ed6806408d996431b22bb1fd38\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T16:05:43.212-03:00\",\"paths\":{\"original\":\"2c16f6ed6806408d996431b22bb1fd38-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725},{\"id\":\"56cde6b14dbb428589d59b1aeb535eb2\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T16:05:43.213-03:00\",\"paths\":{\"original\":\"56cde6b14dbb428589d59b1aeb535eb2-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-12-20 19:05:43.214382"], ["updated_at", "2016-12-20 19:05:43.214382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-wb2fwh.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-180fytu.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-180fytu.jpg => 2c16f6ed6806408d996431b22bb1fd38-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-1pq9b0m.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-pow7ie.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-pow7ie.jpg => 56cde6b14dbb428589d59b1aeb535eb2-original.jpg  (0.9ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/366955cc4ea64f96a634af4558cc9b5d-original.png' OR old_paths.value = 'first/366955cc4ea64f96a634af4558cc9b5d-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/366955cc4ea64f96a634af4558cc9b5d-original.png' OR old_paths.value = 'first/366955cc4ea64f96a634af4558cc9b5d-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/366955cc4ea64f96a634af4558cc9b5d-original.png' OR old_paths.value = 'first/366955cc4ea64f96a634af4558cc9b5d-original.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/366955cc4ea64f96a634af4558cc9b5d-original.png' OR old_paths.value = 'first/366955cc4ea64f96a634af4558cc9b5d-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/366955cc4ea64f96a634af4558cc9b5d-original.png' OR old_paths.value = 'first/366955cc4ea64f96a634af4558cc9b5d-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'first/366955cc4ea64f96a634af4558cc9b5d-original.png' OR old_paths.value = 'first/366955cc4ea64f96a634af4558cc9b5d-original.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '2c16f6ed6806408d996431b22bb1fd38-original.jpg' OR old_paths.value = '2c16f6ed6806408d996431b22bb1fd38-original.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '2c16f6ed6806408d996431b22bb1fd38-original.jpg' OR old_paths.value = '2c16f6ed6806408d996431b22bb1fd38-original.jpg') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '2c16f6ed6806408d996431b22bb1fd38-original.jpg' OR old_paths.value = '2c16f6ed6806408d996431b22bb1fd38-original.jpg') [ActiveJob] [Attachs::Jobs::DeleteJob] [b9b8fb3c-d5be-4c54-8870-6c6659cd24b5] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["first/366955cc4ea64f96a634af4558cc9b5d-original.png", "first/366955cc4ea64f96a634af4558cc9b5d-tiny.png", "first/366955cc4ea64f96a634af4558cc9b5d-small.png", "first/366955cc4ea64f96a634af4558cc9b5d-medium.png", "first/366955cc4ea64f96a634af4558cc9b5d-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [b9b8fb3c-d5be-4c54-8870-6c6659cd24b5] Deleting: first/366955cc4ea64f96a634af4558cc9b5d-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [b9b8fb3c-d5be-4c54-8870-6c6659cd24b5] Deleting: first/366955cc4ea64f96a634af4558cc9b5d-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [b9b8fb3c-d5be-4c54-8870-6c6659cd24b5] Deleting: first/366955cc4ea64f96a634af4558cc9b5d-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [b9b8fb3c-d5be-4c54-8870-6c6659cd24b5] Deleting: first/366955cc4ea64f96a634af4558cc9b5d-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [b9b8fb3c-d5be-4c54-8870-6c6659cd24b5] Deleting: first/366955cc4ea64f96a634af4558cc9b5d-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [b9b8fb3c-d5be-4c54-8870-6c6659cd24b5] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2847.81ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: b9b8fb3c-d5be-4c54-8870-6c6659cd24b5) to Inline(default) with arguments: ["first/366955cc4ea64f96a634af4558cc9b5d-original.png", "first/366955cc4ea64f96a634af4558cc9b5d-tiny.png", "first/366955cc4ea64f96a634af4558cc9b5d-small.png", "first/366955cc4ea64f96a634af4558cc9b5d-medium.png", "first/366955cc4ea64f96a634af4558cc9b5d-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [820e487b-666c-47b6-842e-6e3d38d459e4] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["2c16f6ed6806408d996431b22bb1fd38-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [820e487b-666c-47b6-842e-6e3d38d459e4] Deleting: 2c16f6ed6806408d996431b22bb1fd38-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [820e487b-666c-47b6-842e-6e3d38d459e4] Performed Attachs::Jobs::DeleteJob from Inline(default) in 355.28ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 820e487b-666c-47b6-842e-6e3d38d459e4) to Inline(default) with arguments: ["2c16f6ed6806408d996431b22bb1fd38-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [af6e9588-e52d-470e-97fd-4f517eeb3031] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["56cde6b14dbb428589d59b1aeb535eb2-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [af6e9588-e52d-470e-97fd-4f517eeb3031] Deleting: 56cde6b14dbb428589d59b1aeb535eb2-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [af6e9588-e52d-470e-97fd-4f517eeb3031] Performed Attachs::Jobs::DeleteJob from Inline(default) in 356.26ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: af6e9588-e52d-470e-97fd-4f517eeb3031) to Inline(default) with arguments: ["56cde6b14dbb428589d59b1aeb535eb2-original.jpg"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------- TaskTest: test_clear -------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-15m7gch.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"4b119d6c5ec843c09b4fd6d2380b9175\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T16:05:47.629-03:00\",\"paths\":{\"original\":\"4b119d6c5ec843c09b4fd6d2380b9175-original.png\",\"tiny\":\"4b119d6c5ec843c09b4fd6d2380b9175-tiny.png\",\"small\":\"4b119d6c5ec843c09b4fd6d2380b9175-small.png\",\"medium\":\"4b119d6c5ec843c09b4fd6d2380b9175-medium.png\",\"large\":\"4b119d6c5ec843c09b4fd6d2380b9175-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-20 19:05:47.634538"], ["updated_at", "2016-12-20 19:05:47.634538"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-15m7gch.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1vaj4se.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1vaj4se.png => 4b119d6c5ec843c09b4fd6d2380b9175-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-15m7gch.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-w0o4ie.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-w0o4ie.png => 4b119d6c5ec843c09b4fd6d2380b9175-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-15m7gch.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-6buyed.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-6buyed.png => 4b119d6c5ec843c09b4fd6d2380b9175-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-15m7gch.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-d3g9t2.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-d3g9t2.png => 4b119d6c5ec843c09b4fd6d2380b9175-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-15m7gch.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-ch5ilf.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-ch5ilf.png => 4b119d6c5ec843c09b4fd6d2380b9175-large.png Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-1t62thx.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"6713a4049c184f069fdc96290f09d84b\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T16:05:52.723-03:00\",\"paths\":{\"original\":\"6713a4049c184f069fdc96290f09d84b-original.png\",\"tiny\":\"6713a4049c184f069fdc96290f09d84b-tiny.png\",\"small\":\"6713a4049c184f069fdc96290f09d84b-small.png\",\"medium\":\"6713a4049c184f069fdc96290f09d84b-medium.png\",\"large\":\"6713a4049c184f069fdc96290f09d84b-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-20 19:05:52.724414"], ["updated_at", "2016-12-20 19:05:52.724414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-1t62thx.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-npvvgv.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-npvvgv.png => 6713a4049c184f069fdc96290f09d84b-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-1t62thx.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1r74yjk.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1r74yjk.png => 6713a4049c184f069fdc96290f09d84b-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-1t62thx.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-vp6zts.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-vp6zts.png => 6713a4049c184f069fdc96290f09d84b-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-1t62thx.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1i66bpi.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1i66bpi.png => 6713a4049c184f069fdc96290f09d84b-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-1t62thx.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-12gdgnc.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-12gdgnc.png => 6713a4049c184f069fdc96290f09d84b-large.png SQL (0.2ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 32]]  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-large.png' OR old_paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-large.png' OR old_paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-large.png' OR old_paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-large.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-medium.png' OR old_paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-medium.png' OR old_paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-medium.png' OR old_paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-medium.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-original.png' OR old_paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-original.png' OR old_paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-original.png' OR old_paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-original.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-small.png' OR old_paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-small.png' OR old_paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-small.png' OR old_paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-small.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-tiny.png' OR old_paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-tiny.png' OR old_paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-tiny.png' OR old_paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-tiny.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '6713a4049c184f069fdc96290f09d84b-large.png' OR old_paths.value = '6713a4049c184f069fdc96290f09d84b-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '6713a4049c184f069fdc96290f09d84b-large.png' OR old_paths.value = '6713a4049c184f069fdc96290f09d84b-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '6713a4049c184f069fdc96290f09d84b-large.png' OR old_paths.value = '6713a4049c184f069fdc96290f09d84b-large.png') Deleting 6713a4049c184f069fdc96290f09d84b-large.png Deleting: 6713a4049c184f069fdc96290f09d84b-large.png  (0.6ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '6713a4049c184f069fdc96290f09d84b-medium.png' OR old_paths.value = '6713a4049c184f069fdc96290f09d84b-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '6713a4049c184f069fdc96290f09d84b-medium.png' OR old_paths.value = '6713a4049c184f069fdc96290f09d84b-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '6713a4049c184f069fdc96290f09d84b-medium.png' OR old_paths.value = '6713a4049c184f069fdc96290f09d84b-medium.png') Deleting 6713a4049c184f069fdc96290f09d84b-medium.png Deleting: 6713a4049c184f069fdc96290f09d84b-medium.png  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '6713a4049c184f069fdc96290f09d84b-original.png' OR old_paths.value = '6713a4049c184f069fdc96290f09d84b-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '6713a4049c184f069fdc96290f09d84b-original.png' OR old_paths.value = '6713a4049c184f069fdc96290f09d84b-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '6713a4049c184f069fdc96290f09d84b-original.png' OR old_paths.value = '6713a4049c184f069fdc96290f09d84b-original.png') Deleting 6713a4049c184f069fdc96290f09d84b-original.png Deleting: 6713a4049c184f069fdc96290f09d84b-original.png  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '6713a4049c184f069fdc96290f09d84b-small.png' OR old_paths.value = '6713a4049c184f069fdc96290f09d84b-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '6713a4049c184f069fdc96290f09d84b-small.png' OR old_paths.value = '6713a4049c184f069fdc96290f09d84b-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '6713a4049c184f069fdc96290f09d84b-small.png' OR old_paths.value = '6713a4049c184f069fdc96290f09d84b-small.png') Deleting 6713a4049c184f069fdc96290f09d84b-small.png Deleting: 6713a4049c184f069fdc96290f09d84b-small.png  (0.7ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '6713a4049c184f069fdc96290f09d84b-tiny.png' OR old_paths.value = '6713a4049c184f069fdc96290f09d84b-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '6713a4049c184f069fdc96290f09d84b-tiny.png' OR old_paths.value = '6713a4049c184f069fdc96290f09d84b-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '6713a4049c184f069fdc96290f09d84b-tiny.png' OR old_paths.value = '6713a4049c184f069fdc96290f09d84b-tiny.png') Deleting 6713a4049c184f069fdc96290f09d84b-tiny.png Deleting: 6713a4049c184f069fdc96290f09d84b-tiny.png  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/366955cc4ea64f96a634af4558cc9b5d-large.png' OR old_paths.value = 'second/366955cc4ea64f96a634af4558cc9b5d-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/366955cc4ea64f96a634af4558cc9b5d-large.png' OR old_paths.value = 'second/366955cc4ea64f96a634af4558cc9b5d-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/366955cc4ea64f96a634af4558cc9b5d-large.png' OR old_paths.value = 'second/366955cc4ea64f96a634af4558cc9b5d-large.png') Deleting second/366955cc4ea64f96a634af4558cc9b5d-large.png Deleting: second/366955cc4ea64f96a634af4558cc9b5d-large.png  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/366955cc4ea64f96a634af4558cc9b5d-medium.png' OR old_paths.value = 'second/366955cc4ea64f96a634af4558cc9b5d-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/366955cc4ea64f96a634af4558cc9b5d-medium.png' OR old_paths.value = 'second/366955cc4ea64f96a634af4558cc9b5d-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/366955cc4ea64f96a634af4558cc9b5d-medium.png' OR old_paths.value = 'second/366955cc4ea64f96a634af4558cc9b5d-medium.png') Deleting second/366955cc4ea64f96a634af4558cc9b5d-medium.png Deleting: second/366955cc4ea64f96a634af4558cc9b5d-medium.png  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/366955cc4ea64f96a634af4558cc9b5d-original.png' OR old_paths.value = 'second/366955cc4ea64f96a634af4558cc9b5d-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/366955cc4ea64f96a634af4558cc9b5d-original.png' OR old_paths.value = 'second/366955cc4ea64f96a634af4558cc9b5d-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/366955cc4ea64f96a634af4558cc9b5d-original.png' OR old_paths.value = 'second/366955cc4ea64f96a634af4558cc9b5d-original.png') Deleting second/366955cc4ea64f96a634af4558cc9b5d-original.png Deleting: second/366955cc4ea64f96a634af4558cc9b5d-original.png  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/366955cc4ea64f96a634af4558cc9b5d-small.png' OR old_paths.value = 'second/366955cc4ea64f96a634af4558cc9b5d-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/366955cc4ea64f96a634af4558cc9b5d-small.png' OR old_paths.value = 'second/366955cc4ea64f96a634af4558cc9b5d-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/366955cc4ea64f96a634af4558cc9b5d-small.png' OR old_paths.value = 'second/366955cc4ea64f96a634af4558cc9b5d-small.png') Deleting second/366955cc4ea64f96a634af4558cc9b5d-small.png Deleting: second/366955cc4ea64f96a634af4558cc9b5d-small.png  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/366955cc4ea64f96a634af4558cc9b5d-tiny.png' OR old_paths.value = 'second/366955cc4ea64f96a634af4558cc9b5d-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/366955cc4ea64f96a634af4558cc9b5d-tiny.png' OR old_paths.value = 'second/366955cc4ea64f96a634af4558cc9b5d-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = 'second/366955cc4ea64f96a634af4558cc9b5d-tiny.png' OR old_paths.value = 'second/366955cc4ea64f96a634af4558cc9b5d-tiny.png') Deleting second/366955cc4ea64f96a634af4558cc9b5d-tiny.png Deleting: second/366955cc4ea64f96a634af4558cc9b5d-tiny.png  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-large.png' OR old_paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-large.png' OR old_paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-large.png' OR old_paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-large.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-medium.png' OR old_paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-medium.png' OR old_paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-medium.png' OR old_paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-medium.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-original.png' OR old_paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-original.png' OR old_paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-original.png' OR old_paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-original.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-small.png' OR old_paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-small.png' OR old_paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-small.png' OR old_paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-small.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-tiny.png' OR old_paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-tiny.png' OR old_paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-tiny.png' OR old_paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-tiny.png')  (0.5ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-large.png' OR old_paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-large.png' OR old_paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-large.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-large.png' OR old_paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-large.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-medium.png' OR old_paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-medium.png' OR old_paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-medium.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-medium.png' OR old_paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-medium.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-original.png' OR old_paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-original.png' OR old_paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-original.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-original.png' OR old_paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-original.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-small.png' OR old_paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-small.png' OR old_paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-small.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-small.png' OR old_paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-small.png')  (0.4ms) SELECT 1 AS one FROM shops LEFT JOIN JSONB_EACH_TEXT(shops.logo->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(shops.logo->'old_paths') old_paths ON TRUE WHERE (paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-tiny.png' OR old_paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_ARRAY_ELEMENTS(products.pictures) attachments ON TRUE LEFT JOIN JSONB_EACH_TEXT(attachments->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(attachments->'old_paths') old_paths ON TRUE WHERE (paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-tiny.png' OR old_paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-tiny.png') UNION SELECT 1 AS one FROM products LEFT JOIN JSONB_EACH_TEXT(products.brief->'paths') paths ON TRUE LEFT JOIN JSONB_ARRAY_ELEMENTS_TEXT(products.brief->'old_paths') old_paths ON TRUE WHERE (paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-tiny.png' OR old_paths.value = '4b119d6c5ec843c09b4fd6d2380b9175-tiny.png') [ActiveJob] [Attachs::Jobs::DeleteJob] [20eea056-7f1f-496c-8ffa-0708a578a59c] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["4b119d6c5ec843c09b4fd6d2380b9175-original.png", "4b119d6c5ec843c09b4fd6d2380b9175-tiny.png", "4b119d6c5ec843c09b4fd6d2380b9175-small.png", "4b119d6c5ec843c09b4fd6d2380b9175-medium.png", "4b119d6c5ec843c09b4fd6d2380b9175-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [20eea056-7f1f-496c-8ffa-0708a578a59c] Deleting: 4b119d6c5ec843c09b4fd6d2380b9175-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [20eea056-7f1f-496c-8ffa-0708a578a59c] Deleting: 4b119d6c5ec843c09b4fd6d2380b9175-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [20eea056-7f1f-496c-8ffa-0708a578a59c] Deleting: 4b119d6c5ec843c09b4fd6d2380b9175-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [20eea056-7f1f-496c-8ffa-0708a578a59c] Deleting: 4b119d6c5ec843c09b4fd6d2380b9175-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [20eea056-7f1f-496c-8ffa-0708a578a59c] Deleting: 4b119d6c5ec843c09b4fd6d2380b9175-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [20eea056-7f1f-496c-8ffa-0708a578a59c] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2406.31ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 20eea056-7f1f-496c-8ffa-0708a578a59c) to Inline(default) with arguments: ["4b119d6c5ec843c09b4fd6d2380b9175-original.png", "4b119d6c5ec843c09b4fd6d2380b9175-tiny.png", "4b119d6c5ec843c09b4fd6d2380b9175-small.png", "4b119d6c5ec843c09b4fd6d2380b9175-medium.png", "4b119d6c5ec843c09b4fd6d2380b9175-large.png"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ TaskTest: test_reprocess ------------------------ Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-1ngmsn5.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"8bbfa6a86b074f5babbf9ac456815317\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T16:06:08.497-03:00\",\"paths\":{\"original\":\"8bbfa6a86b074f5babbf9ac456815317-original.png\",\"tiny\":\"8bbfa6a86b074f5babbf9ac456815317-tiny.png\",\"small\":\"8bbfa6a86b074f5babbf9ac456815317-small.png\",\"medium\":\"8bbfa6a86b074f5babbf9ac456815317-medium.png\",\"large\":\"8bbfa6a86b074f5babbf9ac456815317-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-20 19:06:08.497943"], ["updated_at", "2016-12-20 19:06:08.497943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-1ngmsn5.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1mbqtkd.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1mbqtkd.png => 8bbfa6a86b074f5babbf9ac456815317-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-1ngmsn5.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-15c2hs3.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-15c2hs3.png => 8bbfa6a86b074f5babbf9ac456815317-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-1ngmsn5.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-qe9dpk.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-qe9dpk.png => 8bbfa6a86b074f5babbf9ac456815317-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-1ngmsn5.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1ecdxnk.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1ecdxnk.png => 8bbfa6a86b074f5babbf9ac456815317-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-1ngmsn5.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-10lmm0l.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-10lmm0l.png => 8bbfa6a86b074f5babbf9ac456815317-large.png Deleting: 8bbfa6a86b074f5babbf9ac456815317-tiny.png Deleting: 8bbfa6a86b074f5babbf9ac456815317-small.png Deleting: 8bbfa6a86b074f5babbf9ac456815317-medium.png Deleting: 8bbfa6a86b074f5babbf9ac456815317-large.png Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Reprocessing Shop #33 => logo Regenerating: tiny => 8bbfa6a86b074f5babbf9ac456815317-tiny.png Regenerating: large => 8bbfa6a86b074f5babbf9ac456815317-large.png Regenerating: small => 8bbfa6a86b074f5babbf9ac456815317-small.png Regenerating: medium => 8bbfa6a86b074f5babbf9ac456815317-medium.png Deleting: 8bbfa6a86b074f5babbf9ac456815317-original.png Regenerating: original => 8bbfa6a86b074f5babbf9ac456815317-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-q914jj.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-90ivi8.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-90ivi8.png => 8bbfa6a86b074f5babbf9ac456815317-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-q914jj.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1j3lbb5.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1j3lbb5.png => 8bbfa6a86b074f5babbf9ac456815317-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-q914jj.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1as84n4.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1as84n4.png => 8bbfa6a86b074f5babbf9ac456815317-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-q914jj.png' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-7nzf0y.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-7nzf0y.png => 8bbfa6a86b074f5babbf9ac456815317-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-q914jj.png' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-i4ntfh.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-i4ntfh.png => 8bbfa6a86b074f5babbf9ac456815317-large.png SQL (0.2ms) UPDATE "shops" SET "logo" = '{"paths":{"original":"8bbfa6a86b074f5babbf9ac456815317-original.png","tiny":"8bbfa6a86b074f5babbf9ac456815317-tiny.png","small":"8bbfa6a86b074f5babbf9ac456815317-small.png","medium":"8bbfa6a86b074f5babbf9ac456815317-medium.png","large":"8bbfa6a86b074f5babbf9ac456815317-large.png"},"old_paths":[],"id":"8bbfa6a86b074f5babbf9ac456815317","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-20T16:06:08.497-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 33]] Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Reprocessing Shop #33 => logo Deleting: 8bbfa6a86b074f5babbf9ac456815317-tiny.png Regenerating: tiny => 8bbfa6a86b074f5babbf9ac456815317-tiny.png Deleting: 8bbfa6a86b074f5babbf9ac456815317-large.png Regenerating: large => 8bbfa6a86b074f5babbf9ac456815317-large.png Deleting: 8bbfa6a86b074f5babbf9ac456815317-small.png Regenerating: small => 8bbfa6a86b074f5babbf9ac456815317-small.png Deleting: 8bbfa6a86b074f5babbf9ac456815317-medium.png Regenerating: medium => 8bbfa6a86b074f5babbf9ac456815317-medium.png Deleting: 8bbfa6a86b074f5babbf9ac456815317-original.png Regenerating: original => 8bbfa6a86b074f5babbf9ac456815317-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1r4k6hg.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1boq2b6.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1boq2b6.png => 8bbfa6a86b074f5babbf9ac456815317-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1r4k6hg.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1qwvyrs.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1qwvyrs.png => 8bbfa6a86b074f5babbf9ac456815317-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1r4k6hg.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-13yra73.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-13yra73.png => 8bbfa6a86b074f5babbf9ac456815317-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1r4k6hg.png' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-uxtylj.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-uxtylj.png => 8bbfa6a86b074f5babbf9ac456815317-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1r4k6hg.png' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-h08ppt.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-h08ppt.png => 8bbfa6a86b074f5babbf9ac456815317-large.png SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"original":"8bbfa6a86b074f5babbf9ac456815317-original.png","tiny":"8bbfa6a86b074f5babbf9ac456815317-tiny.png","small":"8bbfa6a86b074f5babbf9ac456815317-small.png","medium":"8bbfa6a86b074f5babbf9ac456815317-medium.png","large":"8bbfa6a86b074f5babbf9ac456815317-large.png"},"old_paths":[],"id":"8bbfa6a86b074f5babbf9ac456815317","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-20T16:06:08.497-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 33]] Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Reprocessing Shop #33 => logo Deleting: 8bbfa6a86b074f5babbf9ac456815317-tiny.png Regenerating: tiny => 8bbfa6a86b074f5babbf9ac456815317-tiny.png Deleting: 8bbfa6a86b074f5babbf9ac456815317-large.png Regenerating: large => 8bbfa6a86b074f5babbf9ac456815317-large.png Deleting: 8bbfa6a86b074f5babbf9ac456815317-small.png Regenerating: small => 8bbfa6a86b074f5babbf9ac456815317-small.png Deleting: 8bbfa6a86b074f5babbf9ac456815317-medium.png Regenerating: medium => 8bbfa6a86b074f5babbf9ac456815317-medium.png Deleting: 8bbfa6a86b074f5babbf9ac456815317-original.png Regenerating: original => 8bbfa6a86b074f5babbf9ac456815317-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-ztlla0.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1m63xik.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1m63xik.png => 8bbfa6a86b074f5babbf9ac456815317-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-ztlla0.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-dadpip.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-dadpip.png => 8bbfa6a86b074f5babbf9ac456815317-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-ztlla0.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1h29n3a.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1h29n3a.png => 8bbfa6a86b074f5babbf9ac456815317-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-ztlla0.png' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1vti9lh.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1vti9lh.png => 8bbfa6a86b074f5babbf9ac456815317-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-ztlla0.png' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-5pqsd9.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-5pqsd9.png => 8bbfa6a86b074f5babbf9ac456815317-large.png SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"original":"8bbfa6a86b074f5babbf9ac456815317-original.png","tiny":"8bbfa6a86b074f5babbf9ac456815317-tiny.png","small":"8bbfa6a86b074f5babbf9ac456815317-small.png","medium":"8bbfa6a86b074f5babbf9ac456815317-medium.png","large":"8bbfa6a86b074f5babbf9ac456815317-large.png"},"old_paths":[],"id":"8bbfa6a86b074f5babbf9ac456815317","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-20T16:06:08.497-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 33]] Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000 Reprocessing Shop #33 => logo Deleting: 8bbfa6a86b074f5babbf9ac456815317-tiny.png Regenerating: tiny => 8bbfa6a86b074f5babbf9ac456815317-tiny.png Deleting: 8bbfa6a86b074f5babbf9ac456815317-large.png Regenerating: large => 8bbfa6a86b074f5babbf9ac456815317-large.png Deleting: 8bbfa6a86b074f5babbf9ac456815317-small.png Regenerating: small => 8bbfa6a86b074f5babbf9ac456815317-small.png Deleting: 8bbfa6a86b074f5babbf9ac456815317-medium.png Regenerating: medium => 8bbfa6a86b074f5babbf9ac456815317-medium.png Deleting: 8bbfa6a86b074f5babbf9ac456815317-original.png Regenerating: original => 8bbfa6a86b074f5babbf9ac456815317-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-y8ry2w.png' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-21ciiu.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-21ciiu.png => 8bbfa6a86b074f5babbf9ac456815317-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-y8ry2w.png' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-rptdyv.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-rptdyv.png => 8bbfa6a86b074f5babbf9ac456815317-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-y8ry2w.png' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-17rw17p.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-17rw17p.png => 8bbfa6a86b074f5babbf9ac456815317-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-y8ry2w.png' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-4q93fn.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-4q93fn.png => 8bbfa6a86b074f5babbf9ac456815317-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-y8ry2w.png' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-4h07q0.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-4h07q0.png => 8bbfa6a86b074f5babbf9ac456815317-large.png SQL (0.3ms) UPDATE "shops" SET "logo" = '{"paths":{"original":"8bbfa6a86b074f5babbf9ac456815317-original.png","tiny":"8bbfa6a86b074f5babbf9ac456815317-tiny.png","small":"8bbfa6a86b074f5babbf9ac456815317-small.png","medium":"8bbfa6a86b074f5babbf9ac456815317-medium.png","large":"8bbfa6a86b074f5babbf9ac456815317-large.png"},"old_paths":[],"id":"8bbfa6a86b074f5babbf9ac456815317","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-20T16:06:08.497-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 33]] Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000 Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 33]] [ActiveJob] [Attachs::Jobs::DeleteJob] [77eab06b-260b-4e06-bfa4-0a94f942ea33] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["8bbfa6a86b074f5babbf9ac456815317-tiny.png", "8bbfa6a86b074f5babbf9ac456815317-large.png", "8bbfa6a86b074f5babbf9ac456815317-small.png", "8bbfa6a86b074f5babbf9ac456815317-medium.png", "8bbfa6a86b074f5babbf9ac456815317-original.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [77eab06b-260b-4e06-bfa4-0a94f942ea33] Deleting: 8bbfa6a86b074f5babbf9ac456815317-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [77eab06b-260b-4e06-bfa4-0a94f942ea33] Deleting: 8bbfa6a86b074f5babbf9ac456815317-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [77eab06b-260b-4e06-bfa4-0a94f942ea33] Deleting: 8bbfa6a86b074f5babbf9ac456815317-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [77eab06b-260b-4e06-bfa4-0a94f942ea33] Deleting: 8bbfa6a86b074f5babbf9ac456815317-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [77eab06b-260b-4e06-bfa4-0a94f942ea33] Deleting: 8bbfa6a86b074f5babbf9ac456815317-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [77eab06b-260b-4e06-bfa4-0a94f942ea33] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2672.74ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 77eab06b-260b-4e06-bfa4-0a94f942ea33) to Inline(default) with arguments: ["8bbfa6a86b074f5babbf9ac456815317-tiny.png", "8bbfa6a86b074f5babbf9ac456815317-large.png", "8bbfa6a86b074f5babbf9ac456815317-small.png", "8bbfa6a86b074f5babbf9ac456815317-medium.png", "8bbfa6a86b074f5babbf9ac456815317-original.png"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_renames ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-1amuy7r.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("logo", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["logo", "{\"id\":\"657f7dd2295f4a10af1274ccfb259bf4\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T16:06:48.547-03:00\",\"paths\":{\"original\":\"anderstons/657f7dd2295f4a10af1274ccfb259bf4-original.png\",\"tiny\":\"anderstons/657f7dd2295f4a10af1274ccfb259bf4-tiny.png\",\"small\":\"anderstons/657f7dd2295f4a10af1274ccfb259bf4-small.png\",\"medium\":\"anderstons/657f7dd2295f4a10af1274ccfb259bf4-medium.png\",\"large\":\"anderstons/657f7dd2295f4a10af1274ccfb259bf4-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["name", "Anderstons"], ["created_at", "2016-12-20 19:06:48.549152"], ["updated_at", "2016-12-20 19:06:48.549152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-1amuy7r.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1cmbgz5.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1cmbgz5.png => anderstons/657f7dd2295f4a10af1274ccfb259bf4-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-1amuy7r.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1vl3now.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1vl3now.png => anderstons/657f7dd2295f4a10af1274ccfb259bf4-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-1amuy7r.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-19vnmhq.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-19vnmhq.png => anderstons/657f7dd2295f4a10af1274ccfb259bf4-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-1amuy7r.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1svfzuj.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1svfzuj.png => anderstons/657f7dd2295f4a10af1274ccfb259bf4-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-1amuy7r.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-mtdlwb.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-mtdlwb.png => anderstons/657f7dd2295f4a10af1274ccfb259bf4-large.png  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "shops" SET "name" = $1, "updated_at" = $2 WHERE "shops"."id" = $3 [["name", "Musicians Friend"], ["updated_at", "2016-12-20 19:06:57.699845"], ["id", 34]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 34]] [ActiveJob] [Attachs::Jobs::UpdateJob] [b50a3f69-1969-4c25-8b0a-07378125bbf8] Performing Attachs::Jobs::UpdateJob from Inline(default) with arguments: gid://dummy/Shop/34, "logo" [ActiveJob] [Attachs::Jobs::UpdateJob] [b50a3f69-1969-4c25-8b0a-07378125bbf8] Copying: anderstons/657f7dd2295f4a10af1274ccfb259bf4-original.png => musicians-friend/657f7dd2295f4a10af1274ccfb259bf4-original.png [ActiveJob] [Attachs::Jobs::UpdateJob] [b50a3f69-1969-4c25-8b0a-07378125bbf8] Copying: anderstons/657f7dd2295f4a10af1274ccfb259bf4-tiny.png => musicians-friend/657f7dd2295f4a10af1274ccfb259bf4-tiny.png [ActiveJob] [Attachs::Jobs::UpdateJob] [b50a3f69-1969-4c25-8b0a-07378125bbf8] Copying: anderstons/657f7dd2295f4a10af1274ccfb259bf4-small.png => musicians-friend/657f7dd2295f4a10af1274ccfb259bf4-small.png [ActiveJob] [Attachs::Jobs::UpdateJob] [b50a3f69-1969-4c25-8b0a-07378125bbf8] Copying: anderstons/657f7dd2295f4a10af1274ccfb259bf4-medium.png => musicians-friend/657f7dd2295f4a10af1274ccfb259bf4-medium.png [ActiveJob] [Attachs::Jobs::UpdateJob] [b50a3f69-1969-4c25-8b0a-07378125bbf8] Copying: anderstons/657f7dd2295f4a10af1274ccfb259bf4-large.png => musicians-friend/657f7dd2295f4a10af1274ccfb259bf4-large.png [ActiveJob] [Attachs::Jobs::UpdateJob] [b50a3f69-1969-4c25-8b0a-07378125bbf8] SQL (0.2ms) UPDATE "shops" SET "logo" = '{"paths":{"tiny":"musicians-friend/657f7dd2295f4a10af1274ccfb259bf4-tiny.png","large":"musicians-friend/657f7dd2295f4a10af1274ccfb259bf4-large.png","small":"musicians-friend/657f7dd2295f4a10af1274ccfb259bf4-small.png","medium":"musicians-friend/657f7dd2295f4a10af1274ccfb259bf4-medium.png","original":"musicians-friend/657f7dd2295f4a10af1274ccfb259bf4-original.png"},"old_paths":["anderstons/657f7dd2295f4a10af1274ccfb259bf4-original.png","anderstons/657f7dd2295f4a10af1274ccfb259bf4-tiny.png","anderstons/657f7dd2295f4a10af1274ccfb259bf4-small.png","anderstons/657f7dd2295f4a10af1274ccfb259bf4-medium.png","anderstons/657f7dd2295f4a10af1274ccfb259bf4-large.png"],"id":"657f7dd2295f4a10af1274ccfb259bf4","size":74474,"ratio":0.6725,"width":400,"height":269,"filename":"image.jpg","uploaded_at":"2016-12-20T16:06:48.547-03:00","content_type":"image/jpeg"}' WHERE "shops"."id" = $1 [["id", 34]] [ActiveJob] [Attachs::Jobs::UpdateJob] [b50a3f69-1969-4c25-8b0a-07378125bbf8] Performed Attachs::Jobs::UpdateJob from Inline(default) in 3072.39ms [ActiveJob] Enqueued Attachs::Jobs::UpdateJob (Job ID: b50a3f69-1969-4c25-8b0a-07378125bbf8) to Inline(default) with arguments: gid://dummy/Shop/34, "logo" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 34]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 34]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Attachs::Jobs::DeleteJob] [e254112c-507d-455e-a77d-99642e66f901] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["musicians-friend/657f7dd2295f4a10af1274ccfb259bf4-tiny.png", "musicians-friend/657f7dd2295f4a10af1274ccfb259bf4-large.png", "musicians-friend/657f7dd2295f4a10af1274ccfb259bf4-small.png", "musicians-friend/657f7dd2295f4a10af1274ccfb259bf4-medium.png", "musicians-friend/657f7dd2295f4a10af1274ccfb259bf4-original.png", "anderstons/657f7dd2295f4a10af1274ccfb259bf4-original.png", "anderstons/657f7dd2295f4a10af1274ccfb259bf4-tiny.png", "anderstons/657f7dd2295f4a10af1274ccfb259bf4-small.png", "anderstons/657f7dd2295f4a10af1274ccfb259bf4-medium.png", "anderstons/657f7dd2295f4a10af1274ccfb259bf4-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [e254112c-507d-455e-a77d-99642e66f901] Deleting: musicians-friend/657f7dd2295f4a10af1274ccfb259bf4-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [e254112c-507d-455e-a77d-99642e66f901] Deleting: musicians-friend/657f7dd2295f4a10af1274ccfb259bf4-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [e254112c-507d-455e-a77d-99642e66f901] Deleting: musicians-friend/657f7dd2295f4a10af1274ccfb259bf4-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [e254112c-507d-455e-a77d-99642e66f901] Deleting: musicians-friend/657f7dd2295f4a10af1274ccfb259bf4-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [e254112c-507d-455e-a77d-99642e66f901] Deleting: musicians-friend/657f7dd2295f4a10af1274ccfb259bf4-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [e254112c-507d-455e-a77d-99642e66f901] Deleting: anderstons/657f7dd2295f4a10af1274ccfb259bf4-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [e254112c-507d-455e-a77d-99642e66f901] Deleting: anderstons/657f7dd2295f4a10af1274ccfb259bf4-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [e254112c-507d-455e-a77d-99642e66f901] Deleting: anderstons/657f7dd2295f4a10af1274ccfb259bf4-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [e254112c-507d-455e-a77d-99642e66f901] Deleting: anderstons/657f7dd2295f4a10af1274ccfb259bf4-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [e254112c-507d-455e-a77d-99642e66f901] Deleting: anderstons/657f7dd2295f4a10af1274ccfb259bf4-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [e254112c-507d-455e-a77d-99642e66f901] Performed Attachs::Jobs::DeleteJob from Inline(default) in 4694.04ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: e254112c-507d-455e-a77d-99642e66f901) to Inline(default) with arguments: ["musicians-friend/657f7dd2295f4a10af1274ccfb259bf4-tiny.png", "musicians-friend/657f7dd2295f4a10af1274ccfb259bf4-large.png", "musicians-friend/657f7dd2295f4a10af1274ccfb259bf4-small.png", "musicians-friend/657f7dd2295f4a10af1274ccfb259bf4-medium.png", "musicians-friend/657f7dd2295f4a10af1274ccfb259bf4-original.png", "anderstons/657f7dd2295f4a10af1274ccfb259bf4-original.png", "anderstons/657f7dd2295f4a10af1274ccfb259bf4-tiny.png", "anderstons/657f7dd2295f4a10af1274ccfb259bf4-small.png", "anderstons/657f7dd2295f4a10af1274ccfb259bf4-medium.png", "anderstons/657f7dd2295f4a10af1274ccfb259bf4-large.png"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- AttachmentTest: test_default ----------------------------  (0.1ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------- AttachmentTest: test_nested_attributes --------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- AttachmentTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-19oled7.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"0c26539d3b31439ea616698c187fdd75\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T16:07:34.090-03:00\",\"paths\":{\"original\":\"0c26539d3b31439ea616698c187fdd75-original.png\",\"tiny\":\"0c26539d3b31439ea616698c187fdd75-tiny.png\",\"small\":\"0c26539d3b31439ea616698c187fdd75-small.png\",\"medium\":\"0c26539d3b31439ea616698c187fdd75-medium.png\",\"large\":\"0c26539d3b31439ea616698c187fdd75-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-20 19:07:34.091626"], ["updated_at", "2016-12-20 19:07:34.091626"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-19oled7.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-17wer26.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-17wer26.png => 0c26539d3b31439ea616698c187fdd75-original.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-19oled7.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-pf7xfs.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-pf7xfs.png => 0c26539d3b31439ea616698c187fdd75-tiny.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-19oled7.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-r4q62i.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-r4q62i.png => 0c26539d3b31439ea616698c187fdd75-small.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-19oled7.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-19ib3ff.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-19ib3ff.png => 0c26539d3b31439ea616698c187fdd75-medium.png Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-19oled7.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-9f8mdt.png' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-9f8mdt.png => 0c26539d3b31439ea616698c187fdd75-large.png Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 35]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "shops" WHERE "shops"."id" = $1 [["id", 35]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Attachs::Jobs::DeleteJob] [1bda8e5f-2d88-4608-94bf-91b175eaf6db] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["0c26539d3b31439ea616698c187fdd75-tiny.png", "0c26539d3b31439ea616698c187fdd75-large.png", "0c26539d3b31439ea616698c187fdd75-small.png", "0c26539d3b31439ea616698c187fdd75-medium.png", "0c26539d3b31439ea616698c187fdd75-original.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [1bda8e5f-2d88-4608-94bf-91b175eaf6db] Deleting: 0c26539d3b31439ea616698c187fdd75-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [1bda8e5f-2d88-4608-94bf-91b175eaf6db] Deleting: 0c26539d3b31439ea616698c187fdd75-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [1bda8e5f-2d88-4608-94bf-91b175eaf6db] Deleting: 0c26539d3b31439ea616698c187fdd75-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [1bda8e5f-2d88-4608-94bf-91b175eaf6db] Deleting: 0c26539d3b31439ea616698c187fdd75-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [1bda8e5f-2d88-4608-94bf-91b175eaf6db] Deleting: 0c26539d3b31439ea616698c187fdd75-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [1bda8e5f-2d88-4608-94bf-91b175eaf6db] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2608.35ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 1bda8e5f-2d88-4608-94bf-91b175eaf6db) to Inline(default) with arguments: ["0c26539d3b31439ea616698c187fdd75-tiny.png", "0c26539d3b31439ea616698c187fdd75-large.png", "0c26539d3b31439ea616698c187fdd75-small.png", "0c26539d3b31439ea616698c187fdd75-medium.png", "0c26539d3b31439ea616698c187fdd75-original.png"]  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- RecordTest: test_clear_attachments ---------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-13nafqh.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-18ncoki.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"9018504a2a6e401f9479bdb862a3a811\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T16:08:00.349-03:00\",\"paths\":{\"original\":\"9018504a2a6e401f9479bdb862a3a811-original.png\",\"tiny\":\"9018504a2a6e401f9479bdb862a3a811-tiny.png\",\"small\":\"9018504a2a6e401f9479bdb862a3a811-small.png\",\"medium\":\"9018504a2a6e401f9479bdb862a3a811-medium.png\",\"large\":\"9018504a2a6e401f9479bdb862a3a811-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-20 19:08:00.351017"], ["updated_at", "2016-12-20 19:08:00.351017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 36]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN ------------------------ RecordTest: test_inherit ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------- HelperTest: test_fields_for --------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-1v586hh.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"b14e5b5de4d4430482c0a0fc787ca7fe\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T16:08:00.367-03:00\",\"paths\":{\"original\":\"b14e5b5de4d4430482c0a0fc787ca7fe-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-12-20 19:08:00.368649"], ["updated_at", "2016-12-20 19:08:00.368649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-1v586hh.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-541n3x.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-541n3x.jpg => b14e5b5de4d4430482c0a0fc787ca7fe-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [57242d06-b487-4d69-8f3e-39d6ef91a435] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["b14e5b5de4d4430482c0a0fc787ca7fe-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [57242d06-b487-4d69-8f3e-39d6ef91a435] Deleting: b14e5b5de4d4430482c0a0fc787ca7fe-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [57242d06-b487-4d69-8f3e-39d6ef91a435] Performed Attachs::Jobs::DeleteJob from Inline(default) in 427.56ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 57242d06-b487-4d69-8f3e-39d6ef91a435) to Inline(default) with arguments: ["b14e5b5de4d4430482c0a0fc787ca7fe-original.jpg"]  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------- UploadTest: test_upload ----------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-orl56.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "uploads" ("file", "record_type", "record_attribute", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "{\"id\":\"8c28a7299ab74f0a911fa488128cad18\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T16:08:02.275-03:00\",\"paths\":{\"original\":\"uploads/8c28a7299ab74f0a911fa488128cad18-original.jpg\",\"tiny\":\"uploads/8c28a7299ab74f0a911fa488128cad18-tiny.jpg\",\"small\":\"uploads/8c28a7299ab74f0a911fa488128cad18-small.jpg\",\"medium\":\"uploads/8c28a7299ab74f0a911fa488128cad18-medium.jpg\",\"large\":\"uploads/8c28a7299ab74f0a911fa488128cad18-large.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["record_type", "Shop"], ["record_attribute", "logo"], ["created_at", "2016-12-20 19:08:02.276397"], ["updated_at", "2016-12-20 19:08:02.276397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-orl56.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1jvfegq.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1jvfegq.jpg => uploads/8c28a7299ab74f0a911fa488128cad18-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-orl56.jpg' -strip -quality 82 -resize 25x25 '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-nbzchj.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-nbzchj.jpg => uploads/8c28a7299ab74f0a911fa488128cad18-tiny.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-orl56.jpg' -strip -quality 82 -resize 150x150^ -gravity center -crop 150x150+0+0 +repage '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-he5hi1.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-he5hi1.jpg => uploads/8c28a7299ab74f0a911fa488128cad18-small.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-orl56.jpg' -strip -quality 82 -resize 300x300! '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-a73chs.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-a73chs.jpg => uploads/8c28a7299ab74f0a911fa488128cad18-medium.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-orl56.jpg' -strip -quality 82 -resize 600x '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-yol7ek.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-yol7ek.jpg => uploads/8c28a7299ab74f0a911fa488128cad18-large.jpg  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"id\":\"c2d725f9ef4e43eab0b116f0028ee421\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T16:08:04.561-03:00\",\"paths\":{\"original\":\"c2d725f9ef4e43eab0b116f0028ee421-original.png\",\"tiny\":\"c2d725f9ef4e43eab0b116f0028ee421-tiny.png\",\"small\":\"c2d725f9ef4e43eab0b116f0028ee421-small.png\",\"medium\":\"c2d725f9ef4e43eab0b116f0028ee421-medium.png\",\"large\":\"c2d725f9ef4e43eab0b116f0028ee421-large.png\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}"], ["created_at", "2016-12-20 19:08:04.562224"], ["updated_at", "2016-12-20 19:08:04.562224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Copying: uploads/8c28a7299ab74f0a911fa488128cad18-original.jpg => c2d725f9ef4e43eab0b116f0028ee421-original.png Copying: uploads/8c28a7299ab74f0a911fa488128cad18-tiny.jpg => c2d725f9ef4e43eab0b116f0028ee421-tiny.png Copying: uploads/8c28a7299ab74f0a911fa488128cad18-small.jpg => c2d725f9ef4e43eab0b116f0028ee421-small.png Copying: uploads/8c28a7299ab74f0a911fa488128cad18-medium.jpg => c2d725f9ef4e43eab0b116f0028ee421-medium.png Copying: uploads/8c28a7299ab74f0a911fa488128cad18-large.jpg => c2d725f9ef4e43eab0b116f0028ee421-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [459a27cf-1a0c-4559-a184-83e14bc8300c] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["c2d725f9ef4e43eab0b116f0028ee421-original.png", "c2d725f9ef4e43eab0b116f0028ee421-tiny.png", "c2d725f9ef4e43eab0b116f0028ee421-small.png", "c2d725f9ef4e43eab0b116f0028ee421-medium.png", "c2d725f9ef4e43eab0b116f0028ee421-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [459a27cf-1a0c-4559-a184-83e14bc8300c] Deleting: c2d725f9ef4e43eab0b116f0028ee421-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [459a27cf-1a0c-4559-a184-83e14bc8300c] Deleting: c2d725f9ef4e43eab0b116f0028ee421-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [459a27cf-1a0c-4559-a184-83e14bc8300c] Deleting: c2d725f9ef4e43eab0b116f0028ee421-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [459a27cf-1a0c-4559-a184-83e14bc8300c] Deleting: c2d725f9ef4e43eab0b116f0028ee421-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [459a27cf-1a0c-4559-a184-83e14bc8300c] Deleting: c2d725f9ef4e43eab0b116f0028ee421-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [459a27cf-1a0c-4559-a184-83e14bc8300c] Performed Attachs::Jobs::DeleteJob from Inline(default) in 3987.6ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 459a27cf-1a0c-4559-a184-83e14bc8300c) to Inline(default) with arguments: ["c2d725f9ef4e43eab0b116f0028ee421-original.png", "c2d725f9ef4e43eab0b116f0028ee421-tiny.png", "c2d725f9ef4e43eab0b116f0028ee421-small.png", "c2d725f9ef4e43eab0b116f0028ee421-medium.png", "c2d725f9ef4e43eab0b116f0028ee421-large.png"] Upload Load (0.3ms) SELECT "uploads".* FROM "uploads" WHERE "uploads"."id" = $1 LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "shops" ("logo", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logo", "{\"paths\":{\"original\":\"2d6ea65748f840e486db1bb862a8c0a1-original.png\",\"tiny\":\"2d6ea65748f840e486db1bb862a8c0a1-tiny.png\",\"small\":\"2d6ea65748f840e486db1bb862a8c0a1-small.png\",\"medium\":\"2d6ea65748f840e486db1bb862a8c0a1-medium.png\",\"large\":\"2d6ea65748f840e486db1bb862a8c0a1-large.png\"},\"old_paths\":[],\"id\":\"2d6ea65748f840e486db1bb862a8c0a1\",\"size\":74474,\"ratio\":0.6725,\"width\":400,\"height\":269,\"filename\":\"image.jpg\",\"uploaded_at\":\"2016-12-20T16:08:17.157-03:00\",\"content_type\":\"image/jpeg\"}"], ["created_at", "2016-12-20 19:08:17.157550"], ["updated_at", "2016-12-20 19:08:17.157550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Copying: uploads/8c28a7299ab74f0a911fa488128cad18-tiny.jpg => 2d6ea65748f840e486db1bb862a8c0a1-tiny.png Copying: uploads/8c28a7299ab74f0a911fa488128cad18-large.jpg => 2d6ea65748f840e486db1bb862a8c0a1-large.png Copying: uploads/8c28a7299ab74f0a911fa488128cad18-small.jpg => 2d6ea65748f840e486db1bb862a8c0a1-small.png Copying: uploads/8c28a7299ab74f0a911fa488128cad18-medium.jpg => 2d6ea65748f840e486db1bb862a8c0a1-medium.png Copying: uploads/8c28a7299ab74f0a911fa488128cad18-original.jpg => 2d6ea65748f840e486db1bb862a8c0a1-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [3bd51ebe-919e-4073-9324-7e57c282cd81] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["2d6ea65748f840e486db1bb862a8c0a1-original.png", "2d6ea65748f840e486db1bb862a8c0a1-tiny.png", "2d6ea65748f840e486db1bb862a8c0a1-small.png", "2d6ea65748f840e486db1bb862a8c0a1-medium.png", "2d6ea65748f840e486db1bb862a8c0a1-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [3bd51ebe-919e-4073-9324-7e57c282cd81] Deleting: 2d6ea65748f840e486db1bb862a8c0a1-original.png [ActiveJob] [Attachs::Jobs::DeleteJob] [3bd51ebe-919e-4073-9324-7e57c282cd81] Deleting: 2d6ea65748f840e486db1bb862a8c0a1-tiny.png [ActiveJob] [Attachs::Jobs::DeleteJob] [3bd51ebe-919e-4073-9324-7e57c282cd81] Deleting: 2d6ea65748f840e486db1bb862a8c0a1-small.png [ActiveJob] [Attachs::Jobs::DeleteJob] [3bd51ebe-919e-4073-9324-7e57c282cd81] Deleting: 2d6ea65748f840e486db1bb862a8c0a1-medium.png [ActiveJob] [Attachs::Jobs::DeleteJob] [3bd51ebe-919e-4073-9324-7e57c282cd81] Deleting: 2d6ea65748f840e486db1bb862a8c0a1-large.png [ActiveJob] [Attachs::Jobs::DeleteJob] [3bd51ebe-919e-4073-9324-7e57c282cd81] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2549.97ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 3bd51ebe-919e-4073-9324-7e57c282cd81) to Inline(default) with arguments: ["2d6ea65748f840e486db1bb862a8c0a1-original.png", "2d6ea65748f840e486db1bb862a8c0a1-tiny.png", "2d6ea65748f840e486db1bb862a8c0a1-small.png", "2d6ea65748f840e486db1bb862a8c0a1-medium.png", "2d6ea65748f840e486db1bb862a8c0a1-large.png"] [ActiveJob] [Attachs::Jobs::DeleteJob] [c72086c3-6cd9-4e0d-833b-9c71234ae98c] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["uploads/8c28a7299ab74f0a911fa488128cad18-original.jpg", "uploads/8c28a7299ab74f0a911fa488128cad18-tiny.jpg", "uploads/8c28a7299ab74f0a911fa488128cad18-small.jpg", "uploads/8c28a7299ab74f0a911fa488128cad18-medium.jpg", "uploads/8c28a7299ab74f0a911fa488128cad18-large.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [c72086c3-6cd9-4e0d-833b-9c71234ae98c] Deleting: uploads/8c28a7299ab74f0a911fa488128cad18-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [c72086c3-6cd9-4e0d-833b-9c71234ae98c] Deleting: uploads/8c28a7299ab74f0a911fa488128cad18-tiny.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [c72086c3-6cd9-4e0d-833b-9c71234ae98c] Deleting: uploads/8c28a7299ab74f0a911fa488128cad18-small.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [c72086c3-6cd9-4e0d-833b-9c71234ae98c] Deleting: uploads/8c28a7299ab74f0a911fa488128cad18-medium.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [c72086c3-6cd9-4e0d-833b-9c71234ae98c] Deleting: uploads/8c28a7299ab74f0a911fa488128cad18-large.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [c72086c3-6cd9-4e0d-833b-9c71234ae98c] Performed Attachs::Jobs::DeleteJob from Inline(default) in 2189.49ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: c72086c3-6cd9-4e0d-833b-9c71234ae98c) to Inline(default) with arguments: ["uploads/8c28a7299ab74f0a911fa488128cad18-original.jpg", "uploads/8c28a7299ab74f0a911fa488128cad18-tiny.jpg", "uploads/8c28a7299ab74f0a911fa488128cad18-small.jpg", "uploads/8c28a7299ab74f0a911fa488128cad18-medium.jpg", "uploads/8c28a7299ab74f0a911fa488128cad18-large.jpg"]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- CollectionTest: test_attributes ------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-s5qsnz.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-13l8894.jpg'  (0.9ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"9665e9a942c64130b18d5ea9275c9c06\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T16:08:29.878-03:00\",\"paths\":{\"original\":\"9665e9a942c64130b18d5ea9275c9c06-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725},{\"id\":\"93f44ceb8c424e68bbe71ab781904858\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T16:08:29.880-03:00\",\"paths\":{\"original\":\"93f44ceb8c424e68bbe71ab781904858-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-12-20 19:08:29.882723"], ["updated_at", "2016-12-20 19:08:29.882723"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-s5qsnz.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-gj6n6i.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-gj6n6i.jpg => 9665e9a942c64130b18d5ea9275c9c06-original.jpg Running: gm convert '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-13l8894.jpg' '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1k3g8fw.jpg' Uploading: /var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/s320161220-78425-1k3g8fw.jpg => 93f44ceb8c424e68bbe71ab781904858-original.jpg Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 15]] [ActiveJob] [Attachs::Jobs::DeleteJob] [d662f7ed-6a0b-4eb5-b661-94354e7564b8] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["9665e9a942c64130b18d5ea9275c9c06-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [d662f7ed-6a0b-4eb5-b661-94354e7564b8] Deleting: 9665e9a942c64130b18d5ea9275c9c06-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [d662f7ed-6a0b-4eb5-b661-94354e7564b8] Performed Attachs::Jobs::DeleteJob from Inline(default) in 379.53ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: d662f7ed-6a0b-4eb5-b661-94354e7564b8) to Inline(default) with arguments: ["9665e9a942c64130b18d5ea9275c9c06-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [98b65adf-0ee8-4bc7-88c6-f7572fb23502] Performing Attachs::Jobs::DeleteJob from Inline(default) with arguments: ["93f44ceb8c424e68bbe71ab781904858-original.jpg"] [ActiveJob] [Attachs::Jobs::DeleteJob] [98b65adf-0ee8-4bc7-88c6-f7572fb23502] Deleting: 93f44ceb8c424e68bbe71ab781904858-original.jpg [ActiveJob] [Attachs::Jobs::DeleteJob] [98b65adf-0ee8-4bc7-88c6-f7572fb23502] Performed Attachs::Jobs::DeleteJob from Inline(default) in 417.92ms [ActiveJob] Enqueued Attachs::Jobs::DeleteJob (Job ID: 98b65adf-0ee8-4bc7-88c6-f7572fb23502) to Inline(default) with arguments: ["93f44ceb8c424e68bbe71ab781904858-original.jpg"]  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------- CollectionTest: test_index -------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-7rkvs4.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-1sha45o.jpg'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "products" ("pictures", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["pictures", "[{\"id\":\"9848af2fb88c44d6865ff99c80a62280\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T16:08:31.574-03:00\",\"paths\":{\"original\":\"9848af2fb88c44d6865ff99c80a62280-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725,\"position\":0},{\"id\":\"480f3b24dcb04b28878b48e2a3ff25ce\",\"filename\":\"image.jpg\",\"content_type\":\"image/jpeg\",\"size\":74474,\"uploaded_at\":\"2016-12-20T16:08:31.575-03:00\",\"paths\":{\"original\":\"480f3b24dcb04b28878b48e2a3ff25ce-original.jpg\"},\"old_paths\":[],\"width\":400,\"height\":269,\"ratio\":0.6725}]"], ["created_at", "2016-12-20 19:08:31.577175"], ["updated_at", "2016-12-20 19:08:31.577175"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 16]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- CollectionTest: test_nested_attributes -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-1bk3tf3.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-kbsn64.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------- GeneratorTest: test_upload --------------------------  (0.2ms) ROLLBACK  (0.2ms) BEGIN --------------------------- GeneratorTest: test_install ---------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------- ValidationTest: test_presence ----------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-1edv7a9.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- ValidationTest: test_content_type_within ---------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-1a20og3.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-14mqie9.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-1jz22qm.jpg'  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------- ValidationTest: test_size_less_than ----------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-78425-dfznmx.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-g0jlsk.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-zuicdf.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidationTest: test_size_in ---------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-78425-fi84vr.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-167ivy5.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161220-78425-1pl9a7w.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-1crs773.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-1wymcwq.jpg'  (0.3ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------ ValidationTest: test_content_type_in ------------------------------------ Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-1qqqpgx.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-1exderb.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-11d6991.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- ValidationTest: test_methods ----------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidationTest: test_content_type_with -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-122zzle.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-1bnyuu4.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-1ojuiau.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- ValidationTest: test_size_within -------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/big_image.jpg20161220-78425-1a8n058.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-1mijiku.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161220-78425-1lvnhbv.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-9zr9fk.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-m421xf.jpg'  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- ValidationTest: test_size_greater_than -------------------------------------- Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/small_image.jpg20161220-78425-hwli5a.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-vztega.jpg' Running: gm identify -format %wx%h '/var/folders/yr/1tykgll17wx595440k2grgcw0000gn/T/image.jpg20161220-78425-pff1gu.jpg'  (0.2ms) ROLLBACK