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