(1.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreatePushTypeUsers (20150108182218)  (0.1ms) BEGIN SQL (1.8ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"  (2.9ms) CREATE TABLE "push_type_users" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "name" character varying(255), "email" character varying(255), "field_store" json, "created_at" timestamp, "updated_at" timestamp) SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150108182218"]]  (0.7ms) COMMIT Migrating to CreatePushTypeNodes (20150108182219)  (0.1ms) BEGIN  (2.0ms) CREATE TABLE "push_type_nodes" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "type" character varying(255), "title" character varying(255), "slug" character varying(255), "field_store" json, "parent_id" uuid, "sort_order" integer, "status" integer, "published_at" timestamp, "published_to" timestamp, "creator_id" uuid, "updater_id" uuid, "created_at" timestamp, "updated_at" timestamp, "deleted_at" timestamp) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150108182219"]]  (0.4ms) COMMIT Migrating to CreatePushTypeNodeHierarchies (20150108182220)  (0.1ms) BEGIN  (0.5ms) CREATE TABLE "push_type_node_hierarchies" ("ancestor_id" uuid NOT NULL, "descendant_id" uuid NOT NULL, "generations" integer NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "anc_desc_idx" ON "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations")  (0.7ms) CREATE INDEX "desc_idx" ON "push_type_node_hierarchies" ("descendant_id") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150108182220"]]  (0.5ms) COMMIT Migrating to CreatePushTypeAssets (20150108182221)  (0.1ms) BEGIN  (1.8ms) CREATE TABLE "push_type_assets" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "file_uid" character varying(255), "file_name" character varying(255), "file_size" integer, "file_ext" character varying(255), "mime_type" character varying(255), "description" character varying(255), "uploader_id" uuid, "created_at" timestamp, "updated_at" timestamp, "deleted_at" timestamp) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150108182221"]]  (0.3ms) COMMIT ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (113.7ms) DROP DATABASE IF EXISTS "dummy_test"  (238.3ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode' SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" SQL (2.9ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"  (3.3ms) CREATE TABLE "push_type_assets" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "file_uid" character varying(255), "file_name" character varying(255), "file_size" integer, "file_ext" character varying(255), "mime_type" character varying(255), "description" character varying(255), "uploader_id" uuid, "created_at" timestamp, "updated_at" timestamp, "deleted_at" timestamp)  (0.7ms) CREATE TABLE "push_type_node_hierarchies" ("ancestor_id" uuid NOT NULL, "descendant_id" uuid NOT NULL, "generations" integer NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "anc_desc_idx" ON "push_type_node_hierarchies" USING btree ("ancestor_id", "descendant_id", "generations")  (1.3ms) CREATE INDEX "desc_idx" ON "push_type_node_hierarchies" USING btree ("descendant_id")  (2.3ms) CREATE TABLE "push_type_nodes" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "type" character varying(255), "title" character varying(255), "slug" character varying(255), "field_store" json, "parent_id" uuid, "sort_order" integer, "status" integer, "published_at" timestamp, "published_to" timestamp, "creator_id" uuid, "updater_id" uuid, "created_at" timestamp, "updated_at" timestamp, "deleted_at" timestamp)  (2.1ms) CREATE TABLE "push_type_users" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "name" character varying(255), "email" character varying(255), "field_store" json, "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20150108182221')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20141117170533')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20141117204630')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20141117210644')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20141127151930') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dummy_test'  (5.7ms) TRUNCATE TABLE "push_type_assets", "push_type_node_hierarchies", "push_type_nodes", "push_type_users" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN PushType::Node Exists (0.4ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-1' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-01-08 18:22:22.581771"], ["slug", "foo-bar-1"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2015-01-08 18:22:22.581771"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t80d8a9617a813aad19923a44cf04eb1c SQL (0.5ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "14f63f01-5dfe-4c12-b50c-f0ff118444cc"], ["descendant_id", "14f63f01-5dfe-4c12-b50c-f0ff118444cc"], ["generations", 0]]  (0.6ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "14f63f01-5dfe-4c12-b50c-f0ff118444cc"]] PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "14f63f01-5dfe-4c12-b50c-f0ff118444cc"]]  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t33b48ddcb5d4e0f4a4b47a6a3a86fad8  (0.4ms) COMMIT  (0.1ms) BEGIN -------------------------------------------------------------------------- FrontEndController::GET #node::when node is published: test_0001_anonymous --------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-2' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "push_type_nodes" ("created_at", "published_at", "slug", "status", "title", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-01-08 18:22:22.608357"], ["published_at", "2015-01-08 18:22:22.608223"], ["slug", "foo-bar-2"], ["status", 1], ["title", "Foo bar"], ["type", "Page"], ["updated_at", "2015-01-08 18:22:22.608357"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tfa67ffb8e00596200bc78f4fa40134f6 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "1f8fa1ca-3bac-4c20-9953-0e60da7306b3"], ["descendant_id", "1f8fa1ca-3bac-4c20-9953-0e60da7306b3"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  Page Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "1f8fa1ca-3bac-4c20-9953-0e60da7306b3"]] PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "1f8fa1ca-3bac-4c20-9953-0e60da7306b3"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t36ffd1bb8217e04284b0f469ef37d446  (0.1ms) RELEASE SAVEPOINT active_record_2 PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" INNER JOIN "push_type_node_hierarchies" ON "push_type_nodes"."id" = "push_type_node_hierarchies"."ancestor_id" WHERE "push_type_node_hierarchies"."descendant_id" = $1 ORDER BY "push_type_node_hierarchies".generations asc [["descendant_id", "1f8fa1ca-3bac-4c20-9953-0e60da7306b3"]] Processing by FrontEndController#node as HTML Parameters: {"permalink"=>"foo-bar-2"} PushType::Node Load (0.5ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."deleted_at" IS NULL AND (push_type_nodes.status = 1 AND push_type_nodes.published_at <= '2015-01-08 18:22:22.627449') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2015-01-08 18:22:22.627578') AND "push_type_nodes"."slug" = 'foo-bar-2' AND "push_type_nodes"."parent_id" IS NULL ORDER BY "push_type_nodes"."id" ASC LIMIT 1 Rendered nodes/page.html.erb within layouts/application (0.9ms) Completed 200 OK in 13ms (Views: 9.2ms | ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------- FrontEndController::GET #node::when node is published: test_0002_anonymous --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-3' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("created_at", "published_at", "slug", "status", "title", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-01-08 18:22:22.642454"], ["published_at", "2015-01-08 18:22:22.642351"], ["slug", "foo-bar-3"], ["status", 1], ["title", "Foo bar"], ["type", "Page"], ["updated_at", "2015-01-08 18:22:22.642454"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t0495694aeb2681154c82aed410f03e6f SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "783a35fc-0b1d-4198-9a58-26df53afb671"], ["descendant_id", "783a35fc-0b1d-4198-9a58-26df53afb671"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  Page Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "783a35fc-0b1d-4198-9a58-26df53afb671"]] PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "783a35fc-0b1d-4198-9a58-26df53afb671"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tc1cf9580a34e686db5664413fe78705c  (0.1ms) RELEASE SAVEPOINT active_record_2 PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" INNER JOIN "push_type_node_hierarchies" ON "push_type_nodes"."id" = "push_type_node_hierarchies"."ancestor_id" WHERE "push_type_node_hierarchies"."descendant_id" = $1 ORDER BY "push_type_node_hierarchies".generations asc [["descendant_id", "783a35fc-0b1d-4198-9a58-26df53afb671"]] Processing by FrontEndController#node as HTML Parameters: {"permalink"=>"foo-bar-3"} PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."deleted_at" IS NULL AND (push_type_nodes.status = 1 AND push_type_nodes.published_at <= '2015-01-08 18:22:22.649305') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2015-01-08 18:22:22.649424') AND "push_type_nodes"."slug" = 'foo-bar-3' AND "push_type_nodes"."parent_id" IS NULL ORDER BY "push_type_nodes"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------- FrontEndController::GET #node::when node is published: test_0003_anonymous --------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-4' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "push_type_nodes" ("created_at", "published_at", "slug", "status", "title", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-01-08 18:22:22.654569"], ["published_at", "2015-01-08 18:22:22.654477"], ["slug", "foo-bar-4"], ["status", 1], ["title", "Foo bar"], ["type", "Page"], ["updated_at", "2015-01-08 18:22:22.654569"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tc880d874f9452d6e0837b0cff85c8150 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "d9b22712-cbd0-4fbc-aef4-8a73c6ca25fb"], ["descendant_id", "d9b22712-cbd0-4fbc-aef4-8a73c6ca25fb"], ["generations", 0]]  (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  Page Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "d9b22712-cbd0-4fbc-aef4-8a73c6ca25fb"]] PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "d9b22712-cbd0-4fbc-aef4-8a73c6ca25fb"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS td868a068b6c8c57ec07a361be6ee31ee  (0.1ms) RELEASE SAVEPOINT active_record_2 PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" INNER JOIN "push_type_node_hierarchies" ON "push_type_nodes"."id" = "push_type_node_hierarchies"."ancestor_id" WHERE "push_type_node_hierarchies"."descendant_id" = $1 ORDER BY "push_type_node_hierarchies".generations asc [["descendant_id", "d9b22712-cbd0-4fbc-aef4-8a73c6ca25fb"]] Processing by FrontEndController#node as HTML Parameters: {"permalink"=>"foo-bar-4"} PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."deleted_at" IS NULL AND (push_type_nodes.status = 1 AND push_type_nodes.published_at <= '2015-01-08 18:22:22.681469') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2015-01-08 18:22:22.681582') AND "push_type_nodes"."slug" = 'foo-bar-4' AND "push_type_nodes"."parent_id" IS NULL ORDER BY "push_type_nodes"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------- FrontEndController::GET #node::when node does not exist: test_0001_anonymous ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Processing by FrontEndController#node as HTML Parameters: {"permalink"=>"does/not/exist"} PushType::Node Load (0.4ms) SELECT "push_type_nodes".* FROM "push_type_nodes" INNER JOIN "push_type_nodes" AS p0 ON p0."id" = "push_type_nodes"."parent_id" INNER JOIN "push_type_nodes" AS p1 ON p1."id" = "p0"."parent_id" WHERE "push_type_nodes"."deleted_at" IS NULL AND (push_type_nodes.status = 1 AND push_type_nodes.published_at <= '2015-01-08 18:22:22.686896') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2015-01-08 18:22:22.686976') AND "push_type_nodes"."slug" = 'exist' AND "p0"."slug" = 'not' AND "p1"."slug" = 'does' AND "p1"."parent_id" IS NULL ORDER BY "push_type_nodes"."id" ASC LIMIT 1 Completed 404 Not Found in 2ms  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN ---------------------------------------- #set_default_status: test_0001_anonymous ----------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ PushType::Asset: test_0001_anonymous ------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ PushType::Asset: test_0002_anonymous ------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ PushType::Asset: test_0003_anonymous ------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN ------------------------------------ PushType::Asset: test_0004_anonymous ------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------- PushType::Asset: test_0005_should be valid with required attributes -------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- PushType::User::#initials: test_0001_anonymous ----------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- PushType::User::#initials: test_0002_anonymous ----------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- PushType::User::#initials: test_0003_anonymous ----------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PushType::User: test_0001_anonymous -----------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN ------------------------------------------------------------------ PushType::User: test_0002_should be valid with required attributes ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-1@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------- PushType::Asset::#media::with a non existing style: test_0001_anonymous -----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-01-08 18:22:22.725902"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "1"], ["mime_type", "image/png"], ["updated_at", "2015-01-08 18:22:22.725902"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------- PushType::Asset::#media::with a non existing style: test_0002_anonymous -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-01-08 18:22:22.729753"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "2"], ["mime_type", "image/png"], ["updated_at", "2015-01-08 18:22:22.729753"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN ----------------------------------------------------------------------- PushType::Asset::#media::with a non existing style: test_0003_anonymous -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-01-08 18:22:22.733538"], ["file_ext", "pdf"], ["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "3"], ["mime_type", "application/pdf"], ["updated_at", "2015-01-08 18:22:22.733538"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-5' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("created_at", "deleted_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-01-08 18:22:22.736851"], ["deleted_at", "2015-01-08 18:22:22.735224"], ["slug", "foo-bar-5"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2015-01-08 18:22:22.736851"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS taf5c98922051cc2816800de36fbf0a58 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "ec5fd82a-ebd9-4744-bca6-fc7c34de316a"], ["descendant_id", "ec5fd82a-ebd9-4744-bca6-fc7c34de316a"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "ec5fd82a-ebd9-4744-bca6-fc7c34de316a"]] PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "ec5fd82a-ebd9-4744-bca6-fc7c34de316a"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tfd5cb5b666068901b66b433e6fabc0d2  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) UPDATE "push_type_nodes" SET "deleted_at" = $1, "updated_at" = $2 WHERE "push_type_nodes"."id" = 'ec5fd82a-ebd9-4744-bca6-fc7c34de316a' [["deleted_at", nil], ["updated_at", "2015-01-08 18:22:22.742058"]]  (0.4ms) COMMIT  (0.1ms) BEGIN -------------------------------------------------------------------- .published::with published_at dates in the past: test_0001_anonymous --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."deleted_at" IS NULL AND (push_type_nodes.status = 1 AND push_type_nodes.published_at <= '2015-01-08 18:22:22.744723') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2015-01-08 18:22:22.744810')  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."deleted_at" IS NULL AND (push_type_nodes.status = 1 AND push_type_nodes.published_at <= '2015-01-08 18:22:22.744723') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2015-01-08 18:22:22.744810')  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-6' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("created_at", "published_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-01-08 18:22:22.747195"], ["published_at", "2015-01-06 18:22:22.745880"], ["slug", "foo-bar-6"], ["status", 1], ["title", "Foo bar"], ["updated_at", "2015-01-08 18:22:22.747195"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tc900af269617dd7b730b3e8cd8aed1e7 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "aa9b53f7-e6d4-435a-bb50-2c65187d4e93"], ["descendant_id", "aa9b53f7-e6d4-435a-bb50-2c65187d4e93"], ["generations", 0]]  (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "aa9b53f7-e6d4-435a-bb50-2c65187d4e93"]] PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "aa9b53f7-e6d4-435a-bb50-2c65187d4e93"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t23c03d4b22db60b3d74632f1319a3ec8  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."deleted_at" IS NULL AND (push_type_nodes.status = 1 AND push_type_nodes.published_at <= '2015-01-08 18:22:22.744723') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2015-01-08 18:22:22.744810')  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------- .published::with published_to dates in the past: test_0001_anonymous --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."deleted_at" IS NULL AND (push_type_nodes.status = 1 AND push_type_nodes.published_at <= '2015-01-08 18:22:22.753104') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2015-01-08 18:22:22.753178')  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."deleted_at" IS NULL AND (push_type_nodes.status = 1 AND push_type_nodes.published_at <= '2015-01-08 18:22:22.753104') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2015-01-08 18:22:22.753178')  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-7' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "push_type_nodes" ("created_at", "published_at", "published_to", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-01-08 18:22:22.755312"], ["published_at", "2015-01-06 18:22:22.754101"], ["published_to", "2015-01-07 18:22:22.754148"], ["slug", "foo-bar-7"], ["status", 1], ["title", "Foo bar"], ["updated_at", "2015-01-08 18:22:22.755312"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t5cdacf7f50bf66f4e80bbb0159aa2a46 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "b2026105-b557-4ede-81bb-5e336d6104c0"], ["descendant_id", "b2026105-b557-4ede-81bb-5e336d6104c0"], ["generations", 0]]  (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "b2026105-b557-4ede-81bb-5e336d6104c0"]] PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "b2026105-b557-4ede-81bb-5e336d6104c0"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t2d32e0c9806b5693d5fee7ebf4b50278  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."deleted_at" IS NULL AND (push_type_nodes.status = 1 AND push_type_nodes.published_at <= '2015-01-08 18:22:22.753104') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2015-01-08 18:22:22.753178')  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- .published::with published_at dates in the future: test_0001_anonymous ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."deleted_at" IS NULL AND (push_type_nodes.status = 1 AND push_type_nodes.published_at <= '2015-01-08 18:22:22.762230') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2015-01-08 18:22:22.762316')  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."deleted_at" IS NULL AND (push_type_nodes.status = 1 AND push_type_nodes.published_at <= '2015-01-08 18:22:22.762230') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2015-01-08 18:22:22.762316')  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-8' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("created_at", "published_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-01-08 18:22:22.764521"], ["published_at", "2015-01-09 18:22:22.763318"], ["slug", "foo-bar-8"], ["status", 1], ["title", "Foo bar"], ["updated_at", "2015-01-08 18:22:22.764521"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t0ae50c928e66bc0dbee709d004bf71e3 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "25f43e35-d214-4e62-829f-7d884107176b"], ["descendant_id", "25f43e35-d214-4e62-829f-7d884107176b"], ["generations", 0]]  (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "25f43e35-d214-4e62-829f-7d884107176b"]] PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "25f43e35-d214-4e62-829f-7d884107176b"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t38982773666134dde6708d417db1ca6b  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."deleted_at" IS NULL AND (push_type_nodes.status = 1 AND push_type_nodes.published_at <= '2015-01-08 18:22:22.762230') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2015-01-08 18:22:22.762316')  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------- .published::without published status: test_0001_anonymous ---------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."deleted_at" IS NULL AND (push_type_nodes.status = 1 AND push_type_nodes.published_at <= '2015-01-08 18:22:22.771501') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2015-01-08 18:22:22.771584')  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."deleted_at" IS NULL AND (push_type_nodes.status = 1 AND push_type_nodes.published_at <= '2015-01-08 18:22:22.771501') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2015-01-08 18:22:22.771584')  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-9' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-01-08 18:22:22.773704"], ["slug", "foo-bar-9"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2015-01-08 18:22:22.773704"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t8d611e94c3681cf974bc0908ebdae919 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "90c94999-becf-4dab-8dc4-f4021c731b4b"], ["descendant_id", "90c94999-becf-4dab-8dc4-f4021c731b4b"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "90c94999-becf-4dab-8dc4-f4021c731b4b"]] PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "90c94999-becf-4dab-8dc4-f4021c731b4b"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tded0143473d4fe23f93ad9e977908855  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."deleted_at" IS NULL AND (push_type_nodes.status = 1 AND push_type_nodes.published_at <= '2015-01-08 18:22:22.771501') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2015-01-08 18:22:22.771584')  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN ----------------------------------- PushType::Node: test_0001_anonymous -----------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" IS NULL AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------ PushType::Node: test_0002_should be valid with required attributes ------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-10' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- PushType::Asset::#set_mime_type: test_0001_anonymous ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-01-08 18:22:22.794022"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "4"], ["mime_type", "image/png"], ["updated_at", "2015-01-08 18:22:22.794022"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- PushType::Asset::#set_mime_type: test_0002_anonymous ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-01-08 18:22:22.797648"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "5"], ["mime_type", "image/png"], ["updated_at", "2015-01-08 18:22:22.797648"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PushType::Asset::#preview_thumb_url: test_0001_anonymous --------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-01-08 18:22:22.802006"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "6"], ["mime_type", "image/png"], ["updated_at", "2015-01-08 18:22:22.802006"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PushType::Asset::#preview_thumb_url: test_0002_anonymous --------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-01-08 18:22:22.807294"], ["file_ext", "pdf"], ["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "7"], ["mime_type", "application/pdf"], ["updated_at", "2015-01-08 18:22:22.807294"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- #set_published_at::when publishing: test_0001_anonymous -------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-11' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-01-08 18:22:22.812617"], ["slug", "foo-bar-11"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2015-01-08 18:22:22.812617"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t046ccd385f21db4b18953c93992d2326 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "728e0697-eba7-4bd1-bc1d-8932b704360a"], ["descendant_id", "728e0697-eba7-4bd1-bc1d-8932b704360a"], ["generations", 0]]  (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "728e0697-eba7-4bd1-bc1d-8932b704360a"]] PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "728e0697-eba7-4bd1-bc1d-8932b704360a"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t56b43ba6f32f2478da6dd1bc972271d5  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SQL (0.1ms) UPDATE "push_type_nodes" SET "published_at" = $1, "status" = $2, "updated_at" = $3 WHERE "push_type_nodes"."id" = '728e0697-eba7-4bd1-bc1d-8932b704360a' [["published_at", "2015-01-08 18:22:22.816521"], ["status", 1], ["updated_at", "2015-01-08 18:22:22.816598"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- PushType::NodeGenerator: test_0001_anonymous --------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN -------------------------------------------- PushType::NodeGenerator: test_0002_anonymous --------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- .published::with published_to dates in the future: test_0001_anonymous ----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."deleted_at" IS NULL AND (push_type_nodes.status = 1 AND push_type_nodes.published_at <= '2015-01-08 18:22:22.830692') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2015-01-08 18:22:22.830813')  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."deleted_at" IS NULL AND (push_type_nodes.status = 1 AND push_type_nodes.published_at <= '2015-01-08 18:22:22.830692') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2015-01-08 18:22:22.830813')  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-12' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "push_type_nodes" ("created_at", "published_at", "published_to", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-01-08 18:22:22.833396"], ["published_at", "2015-01-06 18:22:22.831948"], ["published_to", "2015-01-09 18:22:22.832010"], ["slug", "foo-bar-12"], ["status", 1], ["title", "Foo bar"], ["updated_at", "2015-01-08 18:22:22.833396"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS ta32a95f916b9905ef24ff32ccb3e5478 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "c3b2b894-0f0c-43e1-97b3-d07910f75307"], ["descendant_id", "c3b2b894-0f0c-43e1-97b3-d07910f75307"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "c3b2b894-0f0c-43e1-97b3-d07910f75307"]] PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "c3b2b894-0f0c-43e1-97b3-d07910f75307"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t2e3f967263880ec8d249355d7f3414f5  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."deleted_at" IS NULL AND (push_type_nodes.status = 1 AND push_type_nodes.published_at <= '2015-01-08 18:22:22.830692') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2015-01-08 18:22:22.830813')  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- #set_published_at::when publishing: test_0001_anonymous -------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-13' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("created_at", "published_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-01-08 18:22:22.843170"], ["published_at", "2015-01-08 18:22:22.843060"], ["slug", "foo-bar-13"], ["status", 1], ["title", "Foo bar"], ["updated_at", "2015-01-08 18:22:22.843170"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t18da2203048b8f40803d5742ab8c0d18 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "569ff382-239f-457b-8475-7e971e537876"], ["descendant_id", "569ff382-239f-457b-8475-7e971e537876"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "569ff382-239f-457b-8475-7e971e537876"]] PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "569ff382-239f-457b-8475-7e971e537876"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tbd0fb676ffd35f965b9e870eec35a99e  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) UPDATE "push_type_nodes" SET "published_at" = $1, "status" = $2, "updated_at" = $3 WHERE "push_type_nodes"."id" = '569ff382-239f-457b-8475-7e971e537876' [["published_at", nil], ["status", 0], ["updated_at", "2015-01-08 18:22:22.847764"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------- PushType::Asset::#media::with a geometry string: test_0001_anonymous --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-01-08 18:22:22.852737"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "8"], ["mime_type", "image/png"], ["updated_at", "2015-01-08 18:22:22.852737"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------- PushType::Asset::#media::with a geometry string: test_0002_anonymous --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-01-08 18:22:22.856459"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "9"], ["mime_type", "image/png"], ["updated_at", "2015-01-08 18:22:22.856459"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 DRAGONFLY: shell command: 'convert' '/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150108-14099-2jci2h' '-resize' '48x56^^' '-gravity' 'Center' '-crop' '48x56+0+0' '+repage' '/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/dragonfly20150108-14099-q3gozv.png' DRAGONFLY: shell command: 'identify' '-ping' '-format' '%m %w %h' '/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/dragonfly20150108-14099-q3gozv.png'  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------- PushType::Asset::#media::with a geometry string: test_0003_anonymous --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-01-08 18:22:22.887283"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "10"], ["mime_type", "image/png"], ["updated_at", "2015-01-08 18:22:22.887283"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 DRAGONFLY: shell command: 'convert' '/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150108-14099-r9ogxn' '-resize' '48x56^^' '-gravity' 'Center' '-crop' '48x56+0+0' '+repage' '/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/dragonfly20150108-14099-15swj9d.png' DRAGONFLY: shell command: 'identify' '-ping' '-format' '%m %w %h' '/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/dragonfly20150108-14099-15swj9d.png'  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN -------------------------------------------------------------------- PushType::Asset::#media::with a geometry string: test_0004_anonymous --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-01-08 18:22:22.910176"], ["file_ext", "pdf"], ["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "11"], ["mime_type", "application/pdf"], ["updated_at", "2015-01-08 18:22:22.910176"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------- PushType::Asset::#media::with original style: test_0001_anonymous -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-01-08 18:22:22.914759"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "12"], ["mime_type", "image/png"], ["updated_at", "2015-01-08 18:22:22.914759"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN ----------------------------------------------------------------- PushType::Asset::#media::with original style: test_0002_anonymous -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-01-08 18:22:22.918230"], ["file_ext", "pdf"], ["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "13"], ["mime_type", "application/pdf"], ["updated_at", "2015-01-08 18:22:22.918230"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- PushType::InstallGenerator: test_0001_anonymous -----------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- PushType::InstallGenerator: test_0002_anonymous -----------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-14' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "push_type_nodes" ("created_at", "deleted_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-01-08 18:22:24.620261"], ["deleted_at", "2015-01-08 18:22:24.618021"], ["slug", "foo-bar-14"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2015-01-08 18:22:24.620261"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS te861494ed63f49924503a4c558b19873 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "fccc2b40-527d-4581-bc23-459f5d76e421"], ["descendant_id", "fccc2b40-527d-4581-bc23-459f5d76e421"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "fccc2b40-527d-4581-bc23-459f5d76e421"]] PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "fccc2b40-527d-4581-bc23-459f5d76e421"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tbb1a485d6c9055669489e46acd2e3643  (0.5ms) COMMIT  (0.1ms) BEGIN --------------------------------------------------------------- PushType::Asset::#description_or_file_name: test_0001_anonymous ---------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-01-08 18:22:24.630059"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "14"], ["mime_type", "image/png"], ["updated_at", "2015-01-08 18:22:24.630059"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------------------------- PushType::Asset::#description_or_file_name: test_0002_should return description when present --------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-01-08 18:22:24.633886"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "15"], ["mime_type", "image/png"], ["updated_at", "2015-01-08 18:22:24.633886"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- #status: test_0001_anonymous ----------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-15' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-01-08 18:22:24.637886"], ["slug", "foo-bar-15"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2015-01-08 18:22:24.637886"]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t42bb1c2d646c8e92cd1237efab04bfda SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "8ef334aa-db8c-464c-b054-163bf9cc95fa"], ["descendant_id", "8ef334aa-db8c-464c-b054-163bf9cc95fa"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "8ef334aa-db8c-464c-b054-163bf9cc95fa"]] PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "8ef334aa-db8c-464c-b054-163bf9cc95fa"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t0b42c9883f957ece6ade1fc9ee4c2446  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- #status: test_0002_anonymous ----------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-16' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-01-08 18:22:24.645177"], ["slug", "foo-bar-16"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2015-01-08 18:22:24.645177"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t0a2fd98ff3b848bd36707d22174079fb SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "82e8a238-4c9a-4ea9-b3d7-64826fed692f"], ["descendant_id", "82e8a238-4c9a-4ea9-b3d7-64826fed692f"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "82e8a238-4c9a-4ea9-b3d7-64826fed692f"]] PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "82e8a238-4c9a-4ea9-b3d7-64826fed692f"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t5dff9604c50df73d7745c174d0dbe1f2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- #status: test_0003_anonymous ----------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-17' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-01-08 18:22:24.659027"], ["slug", "foo-bar-17"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2015-01-08 18:22:24.659027"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t57356e400e8de38779e511b3155fba78 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "a88b1af8-f090-405b-8d0b-7bf8118a32f0"], ["descendant_id", "a88b1af8-f090-405b-8d0b-7bf8118a32f0"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "a88b1af8-f090-405b-8d0b-7bf8118a32f0"]] PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "a88b1af8-f090-405b-8d0b-7bf8118a32f0"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t02d6530500534140a8a5bdeda313e8ba  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- #status: test_0004_anonymous ----------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-18' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-01-08 18:22:24.665428"], ["slug", "foo-bar-18"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2015-01-08 18:22:24.665428"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t6b44c5ea47daf2858a0c450bac270f7c SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "fa79e991-dcc2-493e-9589-c1e98d85d4ee"], ["descendant_id", "fa79e991-dcc2-493e-9589-c1e98d85d4ee"], ["generations", 0]]  (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "fa79e991-dcc2-493e-9589-c1e98d85d4ee"]] PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "fa79e991-dcc2-493e-9589-c1e98d85d4ee"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS ta0454ddeef64dabba9516fa4bef14510  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- #status: test_0005_anonymous ----------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-19' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "push_type_nodes" ("created_at", "published_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-01-08 18:22:24.671450"], ["published_at", "2015-01-08 18:22:24.671357"], ["slug", "foo-bar-19"], ["status", 1], ["title", "Foo bar"], ["updated_at", "2015-01-08 18:22:24.671450"]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS tac101a532ef1fc37dd43db6e07f20e33 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "79aaf10c-9164-4f79-a220-ebd837e832a5"], ["descendant_id", "79aaf10c-9164-4f79-a220-ebd837e832a5"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "79aaf10c-9164-4f79-a220-ebd837e832a5"]] PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "79aaf10c-9164-4f79-a220-ebd837e832a5"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tb5f0a2cca9a0ddf1d9ca31fcb57da9ce  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- #status: test_0006_anonymous ----------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-20' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "push_type_nodes" ("created_at", "published_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-01-08 18:22:24.678327"], ["published_at", "2015-01-08 18:22:24.678223"], ["slug", "foo-bar-20"], ["status", 1], ["title", "Foo bar"], ["updated_at", "2015-01-08 18:22:24.678327"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t12528155c069cf41b367b7f817b3ef60 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "3e2b23e7-c4c2-486e-baf3-cf749f3766a6"], ["descendant_id", "3e2b23e7-c4c2-486e-baf3-cf749f3766a6"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "3e2b23e7-c4c2-486e-baf3-cf749f3766a6"]] PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "3e2b23e7-c4c2-486e-baf3-cf749f3766a6"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS ta567552492bbbe974b5e1ded1e5e9383  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- #status: test_0007_anonymous ----------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-21' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "push_type_nodes" ("created_at", "published_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-01-08 18:22:24.684836"], ["published_at", "2015-01-08 18:22:24.684758"], ["slug", "foo-bar-21"], ["status", 1], ["title", "Foo bar"], ["updated_at", "2015-01-08 18:22:24.684836"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tcb9449a05edc9fa53fea67b9790e9cff SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "9e085329-ef57-4f08-a238-0a6409b91853"], ["descendant_id", "9e085329-ef57-4f08-a238-0a6409b91853"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "9e085329-ef57-4f08-a238-0a6409b91853"]] PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "9e085329-ef57-4f08-a238-0a6409b91853"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tbec61ae6f6c6be51ac2db0c48c0e4f88  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- #status: test_0008_anonymous ----------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-22' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("created_at", "published_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-01-08 18:22:24.691508"], ["published_at", "2015-01-08 18:22:24.691423"], ["slug", "foo-bar-22"], ["status", 1], ["title", "Foo bar"], ["updated_at", "2015-01-08 18:22:24.691508"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t76a50a34af0f00c36b42d7b932e89895 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "70d766f9-b105-4458-ab1f-f89b172c00be"], ["descendant_id", "70d766f9-b105-4458-ab1f-f89b172c00be"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "70d766f9-b105-4458-ab1f-f89b172c00be"]] PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "70d766f9-b105-4458-ab1f-f89b172c00be"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t1f739aa642994db5c9c047e027c92265  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- #status: test_0009_anonymous ----------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-23' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("created_at", "published_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-01-08 18:22:24.698102"], ["published_at", "2015-01-09 18:22:24.696626"], ["slug", "foo-bar-23"], ["status", 1], ["title", "Foo bar"], ["updated_at", "2015-01-08 18:22:24.698102"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t1f6d1713d006626a1acc7a6c145078f0 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "5f770aa6-a0b5-4289-918d-f5f4006a31ff"], ["descendant_id", "5f770aa6-a0b5-4289-918d-f5f4006a31ff"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "5f770aa6-a0b5-4289-918d-f5f4006a31ff"]] PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "5f770aa6-a0b5-4289-918d-f5f4006a31ff"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS ta4964cf80668e065b8590de8dd12d225  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- #status: test_0010_anonymous ----------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-24' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("created_at", "published_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-01-08 18:22:24.705051"], ["published_at", "2015-01-09 18:22:24.703771"], ["slug", "foo-bar-24"], ["status", 1], ["title", "Foo bar"], ["updated_at", "2015-01-08 18:22:24.705051"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tb28dbbb6acd7b51d6a69f2cf24f44275 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "a4f1eb9c-46a7-4557-a42d-42a07627cb87"], ["descendant_id", "a4f1eb9c-46a7-4557-a42d-42a07627cb87"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "a4f1eb9c-46a7-4557-a42d-42a07627cb87"]] PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "a4f1eb9c-46a7-4557-a42d-42a07627cb87"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tea22bc34589b61f120cea2189f7425b3  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN ---------------------------- #status: test_0011_anonymous ----------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-25' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("created_at", "published_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-01-08 18:22:24.711875"], ["published_at", "2015-01-09 18:22:24.710373"], ["slug", "foo-bar-25"], ["status", 1], ["title", "Foo bar"], ["updated_at", "2015-01-08 18:22:24.711875"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tba70c4fe9056dac9618b3b50ab202fff SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "c5f98e27-ab8f-40a3-9ab5-1aef596ce28b"], ["descendant_id", "c5f98e27-ab8f-40a3-9ab5-1aef596ce28b"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "c5f98e27-ab8f-40a3-9ab5-1aef596ce28b"]] PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "c5f98e27-ab8f-40a3-9ab5-1aef596ce28b"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tcea1fe1936b136c796d8a9eb176cdc48  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- #status: test_0012_anonymous ----------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-26' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "push_type_nodes" ("created_at", "published_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-01-08 18:22:24.718606"], ["published_at", "2015-01-09 18:22:24.717313"], ["slug", "foo-bar-26"], ["status", 1], ["title", "Foo bar"], ["updated_at", "2015-01-08 18:22:24.718606"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tb23f8b193046c9480f5522367e6ba477 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "302dc825-3e09-4a0f-bd1f-769b3c887123"], ["descendant_id", "302dc825-3e09-4a0f-bd1f-769b3c887123"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "302dc825-3e09-4a0f-bd1f-769b3c887123"]] PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "302dc825-3e09-4a0f-bd1f-769b3c887123"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tc8046beb6b4a9b85441e22f0ccc33505  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- #status: test_0013_anonymous ----------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-27' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("created_at", "published_at", "published_to", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-01-08 18:22:24.725546"], ["published_at", "2015-01-06 18:22:24.723846"], ["published_to", "2015-01-07 18:22:24.723913"], ["slug", "foo-bar-27"], ["status", 1], ["title", "Foo bar"], ["updated_at", "2015-01-08 18:22:24.725546"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t698a2956df7e97f4d5d2d6b02a92d486 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "0fe090b3-e74d-4783-96ad-8faab87426f7"], ["descendant_id", "0fe090b3-e74d-4783-96ad-8faab87426f7"], ["generations", 0]]  (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "0fe090b3-e74d-4783-96ad-8faab87426f7"]] PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "0fe090b3-e74d-4783-96ad-8faab87426f7"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t32902d9d568c4b26d83b7b0cf53842a8  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- #status: test_0014_anonymous ----------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-28' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("created_at", "published_at", "published_to", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-01-08 18:22:24.732359"], ["published_at", "2015-01-06 18:22:24.730957"], ["published_to", "2015-01-07 18:22:24.731058"], ["slug", "foo-bar-28"], ["status", 1], ["title", "Foo bar"], ["updated_at", "2015-01-08 18:22:24.732359"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tc3b1aecdcd172204676032fc2e477c34 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "faa7d9c8-617b-4f99-98b8-5f488c0d93e6"], ["descendant_id", "faa7d9c8-617b-4f99-98b8-5f488c0d93e6"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "faa7d9c8-617b-4f99-98b8-5f488c0d93e6"]] PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "faa7d9c8-617b-4f99-98b8-5f488c0d93e6"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t353a5cfdfea207c3cec2ef2146eedd17  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- #status: test_0015_anonymous ----------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-29' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("created_at", "published_at", "published_to", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-01-08 18:22:24.739261"], ["published_at", "2015-01-06 18:22:24.737907"], ["published_to", "2015-01-07 18:22:24.737953"], ["slug", "foo-bar-29"], ["status", 1], ["title", "Foo bar"], ["updated_at", "2015-01-08 18:22:24.739261"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t18d0080d758e87522a8ad5f7312a7059 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "24d7aa9d-ae9e-4fb9-8607-31b8ce220845"], ["descendant_id", "24d7aa9d-ae9e-4fb9-8607-31b8ce220845"], ["generations", 0]]  (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "24d7aa9d-ae9e-4fb9-8607-31b8ce220845"]] PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "24d7aa9d-ae9e-4fb9-8607-31b8ce220845"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS te3ae61d3d5642d0f780d076de1cfd6c5  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- #status: test_0016_anonymous ----------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-30' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("created_at", "published_at", "published_to", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-01-08 18:22:24.745493"], ["published_at", "2015-01-06 18:22:24.744269"], ["published_to", "2015-01-07 18:22:24.744315"], ["slug", "foo-bar-30"], ["status", 1], ["title", "Foo bar"], ["updated_at", "2015-01-08 18:22:24.745493"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tbb0106f9ef47c9f762d12b4a6e1dbf4d SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "87301472-32f2-4029-8bf3-db062c3775aa"], ["descendant_id", "87301472-32f2-4029-8bf3-db062c3775aa"], ["generations", 0]]  (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "87301472-32f2-4029-8bf3-db062c3775aa"]] PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "87301472-32f2-4029-8bf3-db062c3775aa"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS ta17e334c27db851184f2558bed751acf  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-31' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-01-08 18:22:24.751243"], ["slug", "foo-bar-31"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2015-01-08 18:22:24.751243"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tbcd34689145a1c3d59e012baff333de8 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "1df724bf-aefb-4390-87e9-f29cb5cc3d16"], ["descendant_id", "1df724bf-aefb-4390-87e9-f29cb5cc3d16"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "1df724bf-aefb-4390-87e9-f29cb5cc3d16"]] PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "1df724bf-aefb-4390-87e9-f29cb5cc3d16"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tc9cf35c12bf62a236b41ce6510359b3e  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) UPDATE "push_type_nodes" SET "deleted_at" = $1, "updated_at" = $2 WHERE "push_type_nodes"."id" = '1df724bf-aefb-4390-87e9-f29cb5cc3d16' [["deleted_at", "2015-01-08 18:22:24.755315"], ["updated_at", "2015-01-08 18:22:24.755644"]]  (0.3ms) COMMIT  (0.1ms) BEGIN ---------------------------------------------------------- PushType::Asset::#media::with no args: test_0001_anonymous ----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-01-08 18:22:24.759479"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "16"], ["mime_type", "image/png"], ["updated_at", "2015-01-08 18:22:24.759479"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PushType::Asset::#media::with no args: test_0002_anonymous ----------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-01-08 18:22:24.762894"], ["file_ext", "pdf"], ["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "17"], ["mime_type", "application/pdf"], ["updated_at", "2015-01-08 18:22:24.762894"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN ------------------------------------------- PushType::Asset::#kind: test_0001_anonymous -------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-01-08 18:22:24.766510"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "18"], ["mime_type", "image/png"], ["updated_at", "2015-01-08 18:22:24.766510"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PushType::Asset::#kind: test_0002_anonymous -------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-01-08 18:22:24.769681"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "19"], ["mime_type", "image/png"], ["updated_at", "2015-01-08 18:22:24.769681"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PushType::Asset::#kind: test_0003_anonymous -------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-01-08 18:22:24.773292"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "20"], ["mime_type", "image/png"], ["updated_at", "2015-01-08 18:22:24.773292"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PushType::Asset::#kind: test_0004_anonymous -------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-01-08 18:22:24.776614"], ["file_ext", "png"], ["file_name", "image.png"], ["file_size", 2643], ["file_uid", "21"], ["mime_type", "image/png"], ["updated_at", "2015-01-08 18:22:24.776614"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PushType::Asset::#kind: test_0005_anonymous -------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-01-08 18:22:24.779990"], ["file_ext", "m3u"], ["file_name", "audio.m3u"], ["file_size", 64], ["file_uid", "22"], ["mime_type", "audio/x-mpegurl"], ["updated_at", "2015-01-08 18:22:24.779990"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PushType::Asset::#kind: test_0006_anonymous -------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-01-08 18:22:24.783529"], ["file_ext", "m3u"], ["file_name", "audio.m3u"], ["file_size", 64], ["file_uid", "23"], ["mime_type", "audio/x-mpegurl"], ["updated_at", "2015-01-08 18:22:24.783529"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PushType::Asset::#kind: test_0007_anonymous -------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-01-08 18:22:24.786795"], ["file_ext", "m3u"], ["file_name", "audio.m3u"], ["file_size", 64], ["file_uid", "24"], ["mime_type", "audio/x-mpegurl"], ["updated_at", "2015-01-08 18:22:24.786795"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PushType::Asset::#kind: test_0008_anonymous -------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-01-08 18:22:24.790570"], ["file_ext", "m3u"], ["file_name", "audio.m3u"], ["file_size", 64], ["file_uid", "25"], ["mime_type", "audio/x-mpegurl"], ["updated_at", "2015-01-08 18:22:24.790570"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PushType::Asset::#kind: test_0009_anonymous -------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-01-08 18:22:24.795842"], ["file_ext", "mp4"], ["file_name", "video.mp4"], ["file_size", 424925], ["file_uid", "26"], ["mime_type", "video/mp4"], ["updated_at", "2015-01-08 18:22:24.795842"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PushType::Asset::#kind: test_0010_anonymous -------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-01-08 18:22:24.801041"], ["file_ext", "mp4"], ["file_name", "video.mp4"], ["file_size", 424925], ["file_uid", "27"], ["mime_type", "video/mp4"], ["updated_at", "2015-01-08 18:22:24.801041"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PushType::Asset::#kind: test_0011_anonymous -------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-01-08 18:22:24.806672"], ["file_ext", "mp4"], ["file_name", "video.mp4"], ["file_size", 424925], ["file_uid", "28"], ["mime_type", "video/mp4"], ["updated_at", "2015-01-08 18:22:24.806672"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN ------------------------------------------- PushType::Asset::#kind: test_0012_anonymous -------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-01-08 18:22:24.812053"], ["file_ext", "mp4"], ["file_name", "video.mp4"], ["file_size", 424925], ["file_uid", "29"], ["mime_type", "video/mp4"], ["updated_at", "2015-01-08 18:22:24.812053"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PushType::Asset::#kind: test_0013_anonymous -------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-01-08 18:22:24.815710"], ["file_ext", "pdf"], ["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "30"], ["mime_type", "application/pdf"], ["updated_at", "2015-01-08 18:22:24.815710"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN ------------------------------------------- PushType::Asset::#kind: test_0014_anonymous -------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-01-08 18:22:24.819312"], ["file_ext", "pdf"], ["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "31"], ["mime_type", "application/pdf"], ["updated_at", "2015-01-08 18:22:24.819312"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PushType::Asset::#kind: test_0015_anonymous -------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-01-08 18:22:24.823164"], ["file_ext", "pdf"], ["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "32"], ["mime_type", "application/pdf"], ["updated_at", "2015-01-08 18:22:24.823164"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN ------------------------------------------- PushType::Asset::#kind: test_0016_anonymous -------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("created_at", "file_ext", "file_name", "file_size", "file_uid", "mime_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-01-08 18:22:24.826971"], ["file_ext", "pdf"], ["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "33"], ["mime_type", "application/pdf"], ["updated_at", "2015-01-08 18:22:24.826971"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- PushType::Node::#permalink: test_0001_anonymous -----------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'one' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-01-08 18:22:24.831643"], ["slug", "one"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2015-01-08 18:22:24.831643"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t299a834dfadeffea82847398fdb92f89 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "9a4615ea-63be-42be-88c1-d958e0eb0d37"], ["descendant_id", "9a4615ea-63be-42be-88c1-d958e0eb0d37"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "9a4615ea-63be-42be-88c1-d958e0eb0d37"]] PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "9a4615ea-63be-42be-88c1-d958e0eb0d37"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t60134e38d5604af2a54acc33f3120fa6  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'two' AND "push_type_nodes"."parent_id" = '9a4615ea-63be-42be-88c1-d958e0eb0d37') LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("created_at", "parent_id", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-01-08 18:22:24.836661"], ["parent_id", "9a4615ea-63be-42be-88c1-d958e0eb0d37"], ["slug", "two"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2015-01-08 18:22:24.836661"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS ta0eb38ee4cd435d8f791ae5dd80b7208 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "0d1ed356-5bfc-49eb-8324-05ff387b9e4a"], ["descendant_id", "0d1ed356-5bfc-49eb-8324-05ff387b9e4a"], ["generations", 0]]  (0.2ms) INSERT INTO "push_type_node_hierarchies" (ancestor_id, descendant_id, generations) SELECT x.ancestor_id, '0d1ed356-5bfc-49eb-8324-05ff387b9e4a', x.generations + 1 FROM "push_type_node_hierarchies" x WHERE x.descendant_id = '9a4615ea-63be-42be-88c1-d958e0eb0d37'  (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" = '9a4615ea-63be-42be-88c1-d958e0eb0d37' ) AS t WHERE "push_type_nodes"."id" = t.id  PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "0d1ed356-5bfc-49eb-8324-05ff387b9e4a"]] PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "0d1ed356-5bfc-49eb-8324-05ff387b9e4a"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t562928a5c3db195b8793da3d34de8d20  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'three' AND "push_type_nodes"."parent_id" = '0d1ed356-5bfc-49eb-8324-05ff387b9e4a') LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("created_at", "parent_id", "slug", "status", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-01-08 18:22:24.841680"], ["parent_id", "0d1ed356-5bfc-49eb-8324-05ff387b9e4a"], ["slug", "three"], ["status", 0], ["title", "Foo bar"], ["updated_at", "2015-01-08 18:22:24.841680"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t72cda888a398d443fc2ba3c433192599 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "f875f57b-52c2-4740-b55d-484f711ed070"], ["descendant_id", "f875f57b-52c2-4740-b55d-484f711ed070"], ["generations", 0]]  (0.1ms) INSERT INTO "push_type_node_hierarchies" (ancestor_id, descendant_id, generations) SELECT x.ancestor_id, 'f875f57b-52c2-4740-b55d-484f711ed070', x.generations + 1 FROM "push_type_node_hierarchies" x WHERE x.descendant_id = '0d1ed356-5bfc-49eb-8324-05ff387b9e4a'   (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" = '0d1ed356-5bfc-49eb-8324-05ff387b9e4a' ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "f875f57b-52c2-4740-b55d-484f711ed070"]] PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "f875f57b-52c2-4740-b55d-484f711ed070"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t61f7e41212d73f7cab282d402738ca13  (0.1ms) RELEASE SAVEPOINT active_record_2 PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" INNER JOIN "push_type_node_hierarchies" ON "push_type_nodes"."id" = "push_type_node_hierarchies"."ancestor_id" WHERE "push_type_node_hierarchies"."descendant_id" = $1 ORDER BY "push_type_node_hierarchies".generations asc [["descendant_id", "f875f57b-52c2-4740-b55d-484f711ed070"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------- FrontEndController::GET #node::when node not published: test_0001_anonymous ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-32' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("created_at", "slug", "status", "title", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-01-08 18:22:24.851371"], ["slug", "foo-bar-32"], ["status", 0], ["title", "Foo bar"], ["type", "Page"], ["updated_at", "2015-01-08 18:22:24.851371"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS ta260a486eef422283b30a46912dee874 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "bf86146c-0631-40ca-896d-dd47fda75316"], ["descendant_id", "bf86146c-0631-40ca-896d-dd47fda75316"], ["generations", 0]]  (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  Page Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "bf86146c-0631-40ca-896d-dd47fda75316"]] PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "bf86146c-0631-40ca-896d-dd47fda75316"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t1fe4fa65c2b75fad17bc159da5b799b3  (0.1ms) RELEASE SAVEPOINT active_record_2 PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" INNER JOIN "push_type_node_hierarchies" ON "push_type_nodes"."id" = "push_type_node_hierarchies"."ancestor_id" WHERE "push_type_node_hierarchies"."descendant_id" = $1 ORDER BY "push_type_node_hierarchies".generations asc [["descendant_id", "bf86146c-0631-40ca-896d-dd47fda75316"]] Processing by FrontEndController#node as HTML Parameters: {"permalink"=>"foo-bar-32"} PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."deleted_at" IS NULL AND (push_type_nodes.status = 1 AND push_type_nodes.published_at <= '2015-01-08 18:22:24.858173') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2015-01-08 18:22:24.858311') AND "push_type_nodes"."slug" = 'foo-bar-32' AND "push_type_nodes"."parent_id" IS NULL ORDER BY "push_type_nodes"."id" ASC LIMIT 1 Completed 404 Not Found in 1ms  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK