ActiveRecord::InternalMetadata Load (1.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2016-10-16 14:40:38 UTC], ["updated_at", 2016-10-16 14:40:38 UTC]]  (6.3ms) COMMIT ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", :environment]] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", :environment]] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", :environment]]  (192.4ms) DROP DATABASE IF EXISTS "dummy_test"  (800.5ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'  (19.4ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)  (2.2ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.1ms) SELECT pg_try_advisory_lock(2735718569030447490); ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreatePushTypeUsers (20161016144043)  (0.1ms) BEGIN SQL (15.2ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"  (3.1ms) CREATE TABLE "push_type_users" ("id" uuid DEFAULT uuid_generate_v4() PRIMARY KEY, "name" character varying, "email" character varying, "field_store" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161016144043"]]  (0.6ms) COMMIT Migrating to CreatePushTypeNodes (20161016144044)  (0.1ms) BEGIN  (2.0ms) CREATE TABLE "push_type_nodes" ("id" uuid DEFAULT uuid_generate_v4() PRIMARY KEY, "type" character varying, "title" character varying, "slug" character varying, "field_store" jsonb, "parent_id" uuid, "sort_order" integer, "status" integer, "published_at" timestamp, "published_to" timestamp, "creator_id" uuid, "updater_id" uuid, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "deleted_at" timestamp) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161016144044"]]  (0.5ms) COMMIT Migrating to CreatePushTypeNodeHierarchies (20161016144045)  (0.1ms) BEGIN  (0.6ms) CREATE TABLE "push_type_node_hierarchies" ("ancestor_id" uuid NOT NULL, "descendant_id" uuid NOT NULL, "generations" integer NOT NULL)  (1.2ms) CREATE UNIQUE INDEX "node_anc_desc_idx" ON "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations")  (0.6ms) CREATE INDEX "node_desc_idx" ON "push_type_node_hierarchies" ("descendant_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161016144045"]]  (0.5ms) COMMIT Migrating to CreatePushTypeAssets (20161016144046)  (0.1ms) BEGIN  (1.8ms) CREATE TABLE "push_type_assets" ("id" uuid DEFAULT uuid_generate_v4() PRIMARY KEY, "file_uid" character varying, "file_name" character varying, "file_size" integer, "file_ext" character varying, "mime_type" character varying, "description" character varying, "uploader_id" uuid, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "deleted_at" timestamp) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161016144046"]]  (0.4ms) COMMIT Migrating to AddFieldStoreDefaultValues (20161016144047)  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "push_type_nodes" ALTER COLUMN "field_store" TYPE jsonb  (0.2ms) ALTER TABLE "push_type_nodes" ALTER COLUMN "field_store" SET DEFAULT '{}'  (0.2ms) UPDATE "push_type_nodes" SET "field_store"='{}' WHERE "field_store" IS NULL  (0.1ms) ALTER TABLE "push_type_nodes" ALTER "field_store" SET NOT NULL  (0.3ms) ALTER TABLE "push_type_users" ALTER COLUMN "field_store" TYPE jsonb  (0.2ms) ALTER TABLE "push_type_users" ALTER COLUMN "field_store" SET DEFAULT '{}'  (0.2ms) UPDATE "push_type_users" SET "field_store"='{}' WHERE "field_store" IS NULL  (0.2ms) ALTER TABLE "push_type_users" ALTER "field_store" SET NOT NULL SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161016144047"]]  (0.4ms) COMMIT Migrating to DropLegacyPushTypeTaxonomies (20161016144048)  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161016144048"]]  (0.4ms) COMMIT ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2016-10-16 14:40:45 UTC], ["updated_at", 2016-10-16 14:40:45 UTC]]  (0.4ms) COMMIT  (0.1ms) SELECT pg_advisory_unlock(2735718569030447490) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.8ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'push_type_assets' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (1.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'push_type_node_hierarchies' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (1.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'push_type_nodes' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (1.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'push_type_users' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method PushType::Node.published.  (0.1ms) BEGIN  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.9ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.0ms) select table_name from information_schema.views where table_schema = 'dummy_test'  (26.2ms) TRUNCATE TABLE "public"."ar_internal_metadata", "public"."push_type_users", "public"."push_type_nodes", "public"."push_type_node_hierarchies", "public"."push_type_assets" RESTART IDENTITY CASCADE;  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ------------------------------------------------------------------------ PushType::NestableTest::.has_child_nodes::when none: test_0003_anonymous ------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------ PushType::NestableTest::.has_child_nodes::when none: test_0001_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::NestableTest::.has_child_nodes::when none: 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::FieldGeneratorTest: 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.0ms) BEGIN ------------------------------------------------------------------------------ PushType::NestableTest::.has_child_nodes::without options: test_0002_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.1ms) BEGIN ------------------------------------------------------------------------------ PushType::NestableTest::.has_child_nodes::without options: 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::NestableTest::.has_child_nodes::without options: test_0004_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.9ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------ PushType::NestableTest::.has_child_nodes::without options: test_0003_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::PresentableTest::class methods: 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::PresentableTest::class methods: 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.0ms) BEGIN ------------------------------------------------------------- PushType::PresentableTest::class methods: test_0003_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::InstallGeneratorTest: test_0001_anonymous ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------- PushType::InstallGeneratorTest: 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 ---------------------------------------------------------------------------- PushType::NestableTest::.has_child_nodes::when specific: test_0003_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::NestableTest::.has_child_nodes::when specific: 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::NestableTest::.has_child_nodes::when specific: test_0002_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::NestableTest::.has_child_nodes::defaults: 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::NestableTest::.has_child_nodes::defaults: test_0003_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::NestableTest::.has_child_nodes::defaults: test_0002_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.0ms) BEGIN ---------------------------------------------------------- PushType::FieldTypeTest::with options: test_0006_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 PushType::Node Exists (0.6ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-1"], ["LIMIT", 1]] SQL (2.4ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-1"], ["status", 0], ["created_at", 2016-10-16 14:40:52 UTC], ["updated_at", 2016-10-16 14:40:52 UTC]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t61cf481f2e4456ceae58296f22605f98 SQL (0.4ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "959f36e0-22ee-40c8-b367-5e7b3f35cc22"], ["descendant_id", "959f36e0-22ee-40c8-b367-5e7b3f35cc22"], ["generations", 0]]  (14.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.4ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT $2 [["id", "959f36e0-22ee-40c8-b367-5e7b3f35cc22"], ["LIMIT", 1]] 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", "959f36e0-22ee-40c8-b367-5e7b3f35cc22"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t9982d500e59ca13f1d29868fa7e83b33  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PushType::FieldTypeTest::with options: test_0001_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.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-2"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-2"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t6472d1f967bed7a54d7d691a2b883855 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "dad05673-14b7-4274-9027-89a4526df383"], ["descendant_id", "dad05673-14b7-4274-9027-89a4526df383"], ["generations", 0]]  (0.4ms) 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 $2 [["id", "dad05673-14b7-4274-9027-89a4526df383"], ["LIMIT", 1]] 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", "dad05673-14b7-4274-9027-89a4526df383"]]  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS tfa855c77d8ca6d583d04d294a0b62a0a  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PushType::FieldTypeTest::with options: 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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-3"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-3"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tbab35679fcd22a109f5eb30f3f0574d1 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "0eff4b5f-bff9-4e6a-ac13-29d42eb1a4c2"], ["descendant_id", "0eff4b5f-bff9-4e6a-ac13-29d42eb1a4c2"], ["generations", 0]]  (0.4ms) 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.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT $2 [["id", "0eff4b5f-bff9-4e6a-ac13-29d42eb1a4c2"], ["LIMIT", 1]] 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", "0eff4b5f-bff9-4e6a-ac13-29d42eb1a4c2"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tc664fd55102d6ac8f0e95a78040580e4  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PushType::FieldTypeTest::with options: test_0004_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-4"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-4"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t1240dc8f4f32448b68d7c9f4e9d5be75 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "6400be8e-c711-4475-b6c1-cb432daf6ad5"], ["descendant_id", "6400be8e-c711-4475-b6c1-cb432daf6ad5"], ["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 $2 [["id", "6400be8e-c711-4475-b6c1-cb432daf6ad5"], ["LIMIT", 1]] PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "6400be8e-c711-4475-b6c1-cb432daf6ad5"]]  (0.3ms) SELECT pg_advisory_unlock(1213021721,0) AS t0a4a9dc255d4dba1b7842cca65ed5fc7  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PushType::FieldTypeTest::with options: test_0002_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-5"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-5"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tc8b9199f4cfed90568348b854b4a1e5e SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "8f3493ad-2890-48bc-9009-31d1b87d5a5f"], ["descendant_id", "8f3493ad-2890-48bc-9009-31d1b87d5a5f"], ["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 $2 [["id", "8f3493ad-2890-48bc-9009-31d1b87d5a5f"], ["LIMIT", 1]] 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", "8f3493ad-2890-48bc-9009-31d1b87d5a5f"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t6af91fa57a6748da278888f43ca59f36  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PushType::FieldTypeTest::with options: 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 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-6"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-6"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tfa64b1721bb9288e2b75070b0350b429 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "e5afb405-2ea4-453f-8cee-12d719ea86ba"], ["descendant_id", "e5afb405-2ea4-453f-8cee-12d719ea86ba"], ["generations", 0]]  (0.4ms) 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 $2 [["id", "e5afb405-2ea4-453f-8cee-12d719ea86ba"], ["LIMIT", 1]] 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", "e5afb405-2ea4-453f-8cee-12d719ea86ba"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tde4d339b6f8b554f7f93caa9328a7450  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN ------------------------------------------------- PushType::NodeTest::#orphan?: 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.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-7"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-7"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t5a409534f61a26d8aa766a59754769bd SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "115fb07c-83a1-4e4b-8fb7-0d1b5fa129b0"], ["descendant_id", "115fb07c-83a1-4e4b-8fb7-0d1b5fa129b0"], ["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 $2 [["id", "115fb07c-83a1-4e4b-8fb7-0d1b5fa129b0"], ["LIMIT", 1]] 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", "115fb07c-83a1-4e4b-8fb7-0d1b5fa129b0"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t928aa1fb99b341187b66b594241404b9  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" = $2 LIMIT $3 [["slug", "foo-bar-8"], ["parent_id", "115fb07c-83a1-4e4b-8fb7-0d1b5fa129b0"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "push_type_nodes" ("title", "slug", "parent_id", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-8"], ["parent_id", "115fb07c-83a1-4e4b-8fb7-0d1b5fa129b0"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS tea4e6e1f16d392b43cf954fd9f0174fb SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "9b602046-9e37-4c21-90dc-ed395c2f0a88"], ["descendant_id", "9b602046-9e37-4c21-90dc-ed395c2f0a88"], ["generations", 0]]  (0.3ms) INSERT INTO "push_type_node_hierarchies" (ancestor_id, descendant_id, generations) SELECT x.ancestor_id, '9b602046-9e37-4c21-90dc-ed395c2f0a88', x.generations + 1 FROM "push_type_node_hierarchies" x WHERE x.descendant_id = '115fb07c-83a1-4e4b-8fb7-0d1b5fa129b0'   (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" = '115fb07c-83a1-4e4b-8fb7-0d1b5fa129b0' ) 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 $2 [["id", "9b602046-9e37-4c21-90dc-ed395c2f0a88"], ["LIMIT", 1]] 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", "9b602046-9e37-4c21-90dc-ed395c2f0a88"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t80e3bef663b7e39f16235c9ee8686caf  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SQL (0.2ms) UPDATE "push_type_nodes" SET "updated_at" = $1, "deleted_at" = $2 WHERE "push_type_nodes"."id" = $3 [["updated_at", 2016-10-16 14:40:53 UTC], ["deleted_at", 2016-10-16 14:40:53 UTC], ["id", "115fb07c-83a1-4e4b-8fb7-0d1b5fa129b0"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 SQL (0.6ms) UPDATE "push_type_nodes" SET "deleted_at" = '2016-10-16 14:40:53.084768' WHERE "push_type_nodes"."id" IN (SELECT "push_type_nodes"."id" FROM "push_type_nodes" INNER JOIN "push_type_node_hierarchies" ON "push_type_nodes"."id" = "push_type_node_hierarchies"."descendant_id" WHERE "push_type_node_hierarchies"."ancestor_id" = $1 AND ("push_type_nodes"."id" != '115fb07c-83a1-4e4b-8fb7-0d1b5fa129b0') ORDER BY "push_type_node_hierarchies".generations asc, sort_order) [["ancestor_id", "115fb07c-83a1-4e4b-8fb7-0d1b5fa129b0"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------- PushType::NodeTest::#orphan?: 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 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-9"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-9"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t98e293fa853e0005a96308b242affb04 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "871952b2-b3fa-4862-85a7-cf12afb07420"], ["descendant_id", "871952b2-b3fa-4862-85a7-cf12afb07420"], ["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 $2 [["id", "871952b2-b3fa-4862-85a7-cf12afb07420"], ["LIMIT", 1]] 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", "871952b2-b3fa-4862-85a7-cf12afb07420"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t2ea7f180f8311cb0afdd6f5f77a3cf7b  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" = $2 LIMIT $3 [["slug", "foo-bar-10"], ["parent_id", "871952b2-b3fa-4862-85a7-cf12afb07420"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("title", "slug", "parent_id", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-10"], ["parent_id", "871952b2-b3fa-4862-85a7-cf12afb07420"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t0bc6f1c08ebfd75c0777b08049db87b7 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "b72b7651-a8a7-49f1-bf3e-0f34488c374f"], ["descendant_id", "b72b7651-a8a7-49f1-bf3e-0f34488c374f"], ["generations", 0]]  (0.2ms) INSERT INTO "push_type_node_hierarchies" (ancestor_id, descendant_id, generations) SELECT x.ancestor_id, 'b72b7651-a8a7-49f1-bf3e-0f34488c374f', x.generations + 1 FROM "push_type_node_hierarchies" x WHERE x.descendant_id = '871952b2-b3fa-4862-85a7-cf12afb07420'   (0.7ms) 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" = '871952b2-b3fa-4862-85a7-cf12afb07420' ) 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 $2 [["id", "b72b7651-a8a7-49f1-bf3e-0f34488c374f"], ["LIMIT", 1]] 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", "b72b7651-a8a7-49f1-bf3e-0f34488c374f"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t7133d4055ffb30ea1b50bee23f60aece  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) UPDATE "push_type_nodes" SET "updated_at" = $1, "deleted_at" = $2 WHERE "push_type_nodes"."id" = $3 [["updated_at", 2016-10-16 14:40:53 UTC], ["deleted_at", 2016-10-16 14:40:53 UTC], ["id", "871952b2-b3fa-4862-85a7-cf12afb07420"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 SQL (0.4ms) UPDATE "push_type_nodes" SET "deleted_at" = '2016-10-16 14:40:53.108606' WHERE "push_type_nodes"."id" IN (SELECT "push_type_nodes"."id" FROM "push_type_nodes" INNER JOIN "push_type_node_hierarchies" ON "push_type_nodes"."id" = "push_type_node_hierarchies"."descendant_id" WHERE "push_type_node_hierarchies"."ancestor_id" = $1 AND ("push_type_nodes"."id" != '871952b2-b3fa-4862-85a7-cf12afb07420') ORDER BY "push_type_node_hierarchies".generations asc, sort_order) [["ancestor_id", "871952b2-b3fa-4862-85a7-cf12afb07420"]] PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT $2 [["id", "871952b2-b3fa-4862-85a7-cf12afb07420"], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- PushType::AssetTest::#kind: test_0009_anonymous -----------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_2 SQL (0.4ms) INSERT INTO "push_type_assets" ("file_uid", "file_name", "file_size", "file_ext", "mime_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_uid", "1"], ["file_name", "video.mp4"], ["file_size", 424925], ["file_ext", "mp4"], ["mime_type", "video/mp4"], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- PushType::AssetTest::#kind: test_0001_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.2ms) INSERT INTO "push_type_assets" ("file_uid", "file_name", "file_size", "file_ext", "mime_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_uid", "2"], ["file_name", "image.png"], ["file_size", 2643], ["file_ext", "png"], ["mime_type", "image/png"], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- PushType::AssetTest::#kind: test_0013_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" ("file_uid", "file_name", "file_size", "file_ext", "mime_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_uid", "3"], ["file_name", "document.pdf"], ["file_size", 15356], ["file_ext", "pdf"], ["mime_type", "application/pdf"], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- PushType::AssetTest::#kind: test_0015_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.4ms) INSERT INTO "push_type_assets" ("file_uid", "file_name", "file_size", "file_ext", "mime_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_uid", "4"], ["file_name", "document.pdf"], ["file_size", 15356], ["file_ext", "pdf"], ["mime_type", "application/pdf"], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- PushType::AssetTest::#kind: test_0010_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" ("file_uid", "file_name", "file_size", "file_ext", "mime_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_uid", "5"], ["file_name", "video.mp4"], ["file_size", 424925], ["file_ext", "mp4"], ["mime_type", "video/mp4"], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- PushType::AssetTest::#kind: test_0008_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" ("file_uid", "file_name", "file_size", "file_ext", "mime_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_uid", "6"], ["file_name", "audio.m3u"], ["file_size", 64], ["file_ext", "m3u"], ["mime_type", "audio/x-mpegurl"], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- PushType::AssetTest::#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.2ms) INSERT INTO "push_type_assets" ("file_uid", "file_name", "file_size", "file_ext", "mime_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_uid", "7"], ["file_name", "image.png"], ["file_size", 2643], ["file_ext", "png"], ["mime_type", "image/png"], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- PushType::AssetTest::#kind: test_0012_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.3ms) INSERT INTO "push_type_assets" ("file_uid", "file_name", "file_size", "file_ext", "mime_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_uid", "8"], ["file_name", "video.mp4"], ["file_size", 424925], ["file_ext", "mp4"], ["mime_type", "video/mp4"], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- PushType::AssetTest::#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.3ms) INSERT INTO "push_type_assets" ("file_uid", "file_name", "file_size", "file_ext", "mime_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_uid", "9"], ["file_name", "audio.m3u"], ["file_size", 64], ["file_ext", "m3u"], ["mime_type", "audio/x-mpegurl"], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- PushType::AssetTest::#kind: test_0011_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" ("file_uid", "file_name", "file_size", "file_ext", "mime_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_uid", "10"], ["file_name", "video.mp4"], ["file_size", 424925], ["file_ext", "mp4"], ["mime_type", "video/mp4"], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- PushType::AssetTest::#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.3ms) INSERT INTO "push_type_assets" ("file_uid", "file_name", "file_size", "file_ext", "mime_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_uid", "11"], ["file_name", "image.png"], ["file_size", 2643], ["file_ext", "png"], ["mime_type", "image/png"], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- PushType::AssetTest::#kind: test_0014_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" ("file_uid", "file_name", "file_size", "file_ext", "mime_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_uid", "12"], ["file_name", "document.pdf"], ["file_size", 15356], ["file_ext", "pdf"], ["mime_type", "application/pdf"], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- PushType::AssetTest::#kind: test_0005_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.2ms) INSERT INTO "push_type_assets" ("file_uid", "file_name", "file_size", "file_ext", "mime_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_uid", "13"], ["file_name", "audio.m3u"], ["file_size", 64], ["file_ext", "m3u"], ["mime_type", "audio/x-mpegurl"], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- PushType::AssetTest::#kind: test_0016_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.2ms) INSERT INTO "push_type_assets" ("file_uid", "file_name", "file_size", "file_ext", "mime_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_uid", "14"], ["file_name", "document.pdf"], ["file_size", 15356], ["file_ext", "pdf"], ["mime_type", "application/pdf"], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- PushType::AssetTest::#kind: test_0007_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.3ms) INSERT INTO "push_type_assets" ("file_uid", "file_name", "file_size", "file_ext", "mime_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_uid", "15"], ["file_name", "audio.m3u"], ["file_size", 64], ["file_ext", "m3u"], ["mime_type", "audio/x-mpegurl"], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- PushType::AssetTest::#kind: test_0004_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" ("file_uid", "file_name", "file_size", "file_ext", "mime_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_uid", "16"], ["file_name", "image.png"], ["file_size", 2643], ["file_ext", "png"], ["mime_type", "image/png"], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN ---------------------------------------------------------------------------------------- PushType::PushTypeTest::.unexposed_nodes: test_0001_should return empty array by default ----------------------------------------------------------------------------------------  (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::NestableTest::.has_child_nodes::with template: test_0002_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::NestableTest::.has_child_nodes::with template: test_0004_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::NestableTest::.has_child_nodes::with template: test_0003_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::NestableTest::.has_child_nodes::with template: 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::MenuBuilder::MenuItemTest: test_0008_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::MenuBuilder::MenuItemTest: test_0002_anonymous --------------------------------------------------------  (0.2ms) 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::MenuBuilder::MenuItemTest: test_0005_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::MenuBuilder::MenuItemTest: test_0007_anonymous --------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) 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::MenuBuilder::MenuItemTest: test_0006_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::MenuBuilder::MenuItemTest: test_0003_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::MenuBuilder::MenuItemTest: 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::MenuBuilder::MenuItemTest: test_0001_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::PushTypeTest::.subclasses_from_list::scoped by :node::searching for :all: 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::CustomizableTest::.field: test_0006_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::CustomizableTest::.field: test_0004_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::CustomizableTest::.field: test_0005_anonymous -------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- PushType::CustomizableTest::.field: test_0001_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.0ms) BEGIN ------------------------------------------------------- PushType::CustomizableTest::.field: test_0002_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.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- PushType::CustomizableTest::.field: test_0003_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.0ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- PushType::TagListFieldTest: test_0002_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-11"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-11"], ["field_store", "{\"tags\":[\"a\",\"b\",\"c\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t7bdc1ee1660f7896dd0b6b006853302f SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "67cf81a2-b18b-481e-a4b1-8278be27d68c"], ["descendant_id", "67cf81a2-b18b-481e-a4b1-8278be27d68c"], ["generations", 0]]  (0.4ms) 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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "67cf81a2-b18b-481e-a4b1-8278be27d68c"], ["LIMIT", 1]] PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "67cf81a2-b18b-481e-a4b1-8278be27d68c"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS ta63cfd11cd15a079603bac4bcf382016  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- PushType::TagListFieldTest: test_0007_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-12"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-12"], ["field_store", "{\"tags\":[\"a\",\"b\",\"c\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS ta721836dc00cbf79c50a21c263722eb1 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "2c4af5f0-34e5-427d-bba6-cb4424535c7c"], ["descendant_id", "2c4af5f0-34e5-427d-bba6-cb4424535c7c"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "2c4af5f0-34e5-427d-bba6-cb4424535c7c"], ["LIMIT", 1]] 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", "2c4af5f0-34e5-427d-bba6-cb4424535c7c"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t3339bcb0c467acd9ffd61439119870c1  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- PushType::TagListFieldTest: test_0006_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 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-13"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-13"], ["field_store", "{\"tags\":[\"a\",\"b\",\"c\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS tfd6f0825e6fa460db04d0efcef23cf5b SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "3b50de51-c9ed-4fb2-87ef-8b2464675945"], ["descendant_id", "3b50de51-c9ed-4fb2-87ef-8b2464675945"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "3b50de51-c9ed-4fb2-87ef-8b2464675945"], ["LIMIT", 1]] 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", "3b50de51-c9ed-4fb2-87ef-8b2464675945"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t5b12df33118fc1a2a865f11d2ebef290  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- PushType::TagListFieldTest: 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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-14"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-14"], ["field_store", "{\"tags\":[\"a\",\"b\",\"c\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS td951167b1b64427613eed03cd7182ed7 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "134dfbf2-ba4d-4dda-9606-9e0f010a1a58"], ["descendant_id", "134dfbf2-ba4d-4dda-9606-9e0f010a1a58"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "134dfbf2-ba4d-4dda-9606-9e0f010a1a58"], ["LIMIT", 1]] PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "134dfbf2-ba4d-4dda-9606-9e0f010a1a58"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tcf70f640c1ca4c08b3e502225ea0cdb5  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- PushType::TagListFieldTest: 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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-15"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-15"], ["field_store", "{\"tags\":[\"a\",\"b\",\"c\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t7688a0690e1baa1d86307c4ef5cb3e4f SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "73aad23d-4f7f-4897-a6ca-f8d5565c13ed"], ["descendant_id", "73aad23d-4f7f-4897-a6ca-f8d5565c13ed"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "73aad23d-4f7f-4897-a6ca-f8d5565c13ed"], ["LIMIT", 1]] 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", "73aad23d-4f7f-4897-a6ca-f8d5565c13ed"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t08fc50a415068af5084238b88a523a09  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- PushType::TagListFieldTest: test_0005_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-16"], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-16"], ["field_store", "{\"tags\":[\"a\",\"b\",\"c\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t2f326ca0826de310ede3545200d76846 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "aff1d869-ff9e-4efd-8969-20698fafa098"], ["descendant_id", "aff1d869-ff9e-4efd-8969-20698fafa098"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "aff1d869-ff9e-4efd-8969-20698fafa098"], ["LIMIT", 1]] 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", "aff1d869-ff9e-4efd-8969-20698fafa098"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t5416d98c2af611763848ffb582473090  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- PushType::TagListFieldTest: 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 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-17"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-17"], ["field_store", "{\"tags\":[\"a\",\"b\",\"c\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t4fc083464389da605ef27d6720c0d1c1 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "2b03f34b-05aa-44d3-b473-27e8be18ed29"], ["descendant_id", "2b03f34b-05aa-44d3-b473-27e8be18ed29"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "2b03f34b-05aa-44d3-b473-27e8be18ed29"], ["LIMIT", 1]] PushType::Node Load (0.4ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "2b03f34b-05aa-44d3-b473-27e8be18ed29"]]  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t6e58418011b17a3ac01e723dac486995  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- PushType::TagListFieldTest: test_0008_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-18"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-18"], ["field_store", "{\"tags\":[\"a\",\"b\",\"c\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t7e7f03e656484e22a366cb52dadd63e7 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "ea7b4471-2e4a-4d18-8d38-ec666a914b44"], ["descendant_id", "ea7b4471-2e4a-4d18-8d38-ec666a914b44"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "ea7b4471-2e4a-4d18-8d38-ec666a914b44"], ["LIMIT", 1]] 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", "ea7b4471-2e4a-4d18-8d38-ec666a914b44"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tcf7b96bb2f19e5a336dad99c6d9eeeb8  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------- PushType::AssetTest::#kind::spreadsheets: test_0001_should detect modern excel docs -----------------------------------------------------------------------------------  (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::AssetTest::#kind::spreadsheets: test_0002_should detect modern legacy excel docs ------------------------------------------------------------------------------------------  (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.0ms) BEGIN --------------------------------------------------------------------------------- PushType::PushTypeTest::.root_nodes: test_0001_should return all nodes by default ---------------------------------------------------------------------------------  (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.0ms) BEGIN --------------------------------------------------------------------------------- PushType::TemplatableTest::.template::set template with args: test_0001_anonymous ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.4ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- PushType::TemplatableTest::.template::set template with args: test_0002_anonymous ---------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- PushType::CustomizableTest: test_0002_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.1ms) BEGIN ----------------------------------------------- PushType::CustomizableTest: test_0001_anonymous -----------------------------------------------  (0.0ms) 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.0ms) BEGIN ---------------------------------------- PushType::AssetTest: test_0002_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.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PushType::AssetTest: test_0003_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.0ms) BEGIN ---------------------------------------- PushType::AssetTest: 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::AssetTest: test_0004_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::AssetTest: test_0005_should be valid with required attributes -----------------------------------------------------------------------  (0.3ms) 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.0ms) BEGIN ----------------------------------------------------- PushType::PushTypeTest::.version: test_0001_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::PublishableTest::.published::with published_to 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  (1.9ms) 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 <= '2016-10-16 14:40:53.395251') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2016-10-16 14:40:53.395426')  (0.2ms) SAVEPOINT active_record_2 PushType::Node Exists (0.4ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-19"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "published_at", "published_to", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-19"], ["status", 1], ["published_at", 2016-10-14 14:40:53 UTC], ["published_to", 2016-10-17 14:40:53 UTC], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS ta7db425d18c7f638c750fa796ffa69c3 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "122016de-10d4-405b-8217-d470fdc989dc"], ["descendant_id", "122016de-10d4-405b-8217-d470fdc989dc"], ["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 $2 [["id", "122016de-10d4-405b-8217-d470fdc989dc"], ["LIMIT", 1]] 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", "122016de-10d4-405b-8217-d470fdc989dc"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t3ff68e4419f12317696f7429da1b500b  (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 <= '2016-10-16 14:40:53.395251') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2016-10-16 14:40:53.395426')  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN --------------------------------------------------------------------------------------- PushType::MenuBuilder::MenuTest::#insert_at: test_0001_should insert at the given index ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN ----------------------------------------------------- PushType::FieldTypeTest::default: 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.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-20"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-20"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t86557b4e22b8262b439b87880a3c8dc7 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "386b57a3-e5a3-4f02-b6e5-6d1b1ce2c4dd"], ["descendant_id", "386b57a3-e5a3-4f02-b6e5-6d1b1ce2c4dd"], ["generations", 0]]  (0.5ms) 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 $2 [["id", "386b57a3-e5a3-4f02-b6e5-6d1b1ce2c4dd"], ["LIMIT", 1]] 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", "386b57a3-e5a3-4f02-b6e5-6d1b1ce2c4dd"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t8394c8027bc6b5aea96368ea4b3a43aa  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- PushType::FieldTypeTest::default: test_0004_anonymous -----------------------------------------------------  (0.0ms) 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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-21"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-21"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t34aa2909ed08211b859d8c1c515e46fe SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "3631a35e-fe60-4246-a11b-8a218975a16f"], ["descendant_id", "3631a35e-fe60-4246-a11b-8a218975a16f"], ["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 $2 [["id", "3631a35e-fe60-4246-a11b-8a218975a16f"], ["LIMIT", 1]] PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "3631a35e-fe60-4246-a11b-8a218975a16f"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t4d3af32fdd6de15588969784ff443422  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- PushType::FieldTypeTest::default: test_0006_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-22"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-22"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tdb782b2460c5eb5ded2d13c32afbbe4a SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "cb1b2ead-b123-427b-af3f-6bba76f6bac4"], ["descendant_id", "cb1b2ead-b123-427b-af3f-6bba76f6bac4"], ["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 $2 [["id", "cb1b2ead-b123-427b-af3f-6bba76f6bac4"], ["LIMIT", 1]] 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", "cb1b2ead-b123-427b-af3f-6bba76f6bac4"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t0f25bed7a15b466de9d8ced7ddeda94a  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- PushType::FieldTypeTest::default: 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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-23"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-23"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t4f47da141ce7e8e7ccfb7a54fbc197be SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "5527a144-27d0-4aa5-b9f0-8737db88f644"], ["descendant_id", "5527a144-27d0-4aa5-b9f0-8737db88f644"], ["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 $2 [["id", "5527a144-27d0-4aa5-b9f0-8737db88f644"], ["LIMIT", 1]] PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "5527a144-27d0-4aa5-b9f0-8737db88f644"]]  (0.3ms) SELECT pg_advisory_unlock(1213021721,0) AS t6b0cf6038759def1a9e88f4b87d88125  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- PushType::FieldTypeTest::default: 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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-24"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-24"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t399e1c432f76ce54ad797b9e1e70ba61 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "e7e9ef80-f542-4162-b802-6b658b573996"], ["descendant_id", "e7e9ef80-f542-4162-b802-6b658b573996"], ["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 $2 [["id", "e7e9ef80-f542-4162-b802-6b658b573996"], ["LIMIT", 1]] 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", "e7e9ef80-f542-4162-b802-6b658b573996"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tdf7e4e49f1780ebc80d27654898879f2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- PushType::FieldTypeTest::default: test_0007_anonymous -----------------------------------------------------  (0.0ms) 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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-25"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-25"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS ta7df6c9b7bcfce9348aa586e84d17420 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "b7e46e40-8aab-4b4f-b7e4-632c35a53c9c"], ["descendant_id", "b7e46e40-8aab-4b4f-b7e4-632c35a53c9c"], ["generations", 0]]  (0.4ms) 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 $2 [["id", "b7e46e40-8aab-4b4f-b7e4-632c35a53c9c"], ["LIMIT", 1]] 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", "b7e46e40-8aab-4b4f-b7e4-632c35a53c9c"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tfa1df6fdc197abfe2d78a0b434a990f9  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- PushType::FieldTypeTest::default: 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 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-26"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-26"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t762197520cf0a786e642b71d0c71326b SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "ce87a1ef-9e68-4329-a537-a017ddba15af"], ["descendant_id", "ce87a1ef-9e68-4329-a537-a017ddba15af"], ["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 $2 [["id", "ce87a1ef-9e68-4329-a537-a017ddba15af"], ["LIMIT", 1]] 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", "ce87a1ef-9e68-4329-a537-a017ddba15af"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t5a91c02c6fdcb2906bd8161a7a24f563  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- PushType::FieldTypeTest::default: 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.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-27"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-27"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t09eeacf25e9d1d3fd125b75e7fff806b SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "01ad61e3-8e20-41f5-b228-2692fa7b5d04"], ["descendant_id", "01ad61e3-8e20-41f5-b228-2692fa7b5d04"], ["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 $2 [["id", "01ad61e3-8e20-41f5-b228-2692fa7b5d04"], ["LIMIT", 1]] 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", "01ad61e3-8e20-41f5-b228-2692fa7b5d04"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t9be476488b06c61cc028067cd92adf20  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- PushType::FieldTypeTest::default: test_0010_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-28"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-28"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tad15761d63a57b57af9b20a3f7f96bfe SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "5f5d717e-f150-4567-bc08-ec45d6b3d9db"], ["descendant_id", "5f5d717e-f150-4567-bc08-ec45d6b3d9db"], ["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 $2 [["id", "5f5d717e-f150-4567-bc08-ec45d6b3d9db"], ["LIMIT", 1]] 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", "5f5d717e-f150-4567-bc08-ec45d6b3d9db"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t1935d329482d8f2865b3d4825b025364  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- PushType::FieldTypeTest::default: test_0011_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-29"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-29"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS te035ab05d3ebdc3343f3ef30bab66cb3 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "f57989a3-f466-447d-88fe-ac03856d54ff"], ["descendant_id", "f57989a3-f466-447d-88fe-ac03856d54ff"], ["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 $2 [["id", "f57989a3-f466-447d-88fe-ac03856d54ff"], ["LIMIT", 1]] 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", "f57989a3-f466-447d-88fe-ac03856d54ff"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t506f20f88debc0d42a038980c6bcef05  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN ----------------------------------------------------- PushType::FieldTypeTest::default: test_0009_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-30"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-30"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t2613b45c99c716edbbdb7f2bfcfa61e4 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "6c3ba692-ee1a-4bca-83e6-e0b45e6ce74a"], ["descendant_id", "6c3ba692-ee1a-4bca-83e6-e0b45e6ce74a"], ["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 $2 [["id", "6c3ba692-ee1a-4bca-83e6-e0b45e6ce74a"], ["LIMIT", 1]] 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", "6c3ba692-ee1a-4bca-83e6-e0b45e6ce74a"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tb1a8911a53f6ac345fe8b1cbe35e73d9  (0.4ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------- PushType::TemplatableTest::.template::set template: 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 -------------------------------------------------------------------------------- FrontEndControllerTest::GET #show::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#show as HTML Parameters: {"permalink"=>"does/not/exist"} PushType::Node Load (0.8ms) 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 <= '2016-10-16 14:40:53.563917') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2016-10-16 14:40:53.564114') AND "push_type_nodes"."slug" = $1 AND "p0"."slug" = $2 AND "p1"."slug" = $3 AND "p1"."parent_id" IS NULL ORDER BY "push_type_nodes"."id" ASC LIMIT $4 [["slug", "exist"], ["slug", "not"], ["slug", "does"], ["LIMIT", 1]] Completed 404 Not Found in 30ms (ActiveRecord: 0.8ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PushType::AssetTest::#preview_thumb: test_0002_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.3ms) INSERT INTO "push_type_assets" ("file_uid", "file_name", "file_size", "file_ext", "mime_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_uid", "17"], ["file_name", "document.pdf"], ["file_size", 15356], ["file_ext", "pdf"], ["mime_type", "application/pdf"], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PushType::AssetTest::#preview_thumb: 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.3ms) INSERT INTO "push_type_assets" ("file_uid", "file_name", "file_size", "file_ext", "mime_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_uid", "18"], ["file_name", "image.png"], ["file_size", 2643], ["file_ext", "png"], ["mime_type", "image/png"], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_2 DRAGONFLY: shell command: 'identify' '-ping' '-format' '%m %w %h' '/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20161016-37545-xqe3x4'  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------- PushType::NodeTest::#permalink: 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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "one"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Foo bar"], ["slug", "one"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t91ae5cba00e4b918cd83c0443736caed SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "3f34a215-286b-44b9-b63a-7e29c4b07b04"], ["descendant_id", "3f34a215-286b-44b9-b63a-7e29c4b07b04"], ["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 $2 [["id", "3f34a215-286b-44b9-b63a-7e29c4b07b04"], ["LIMIT", 1]] 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", "3f34a215-286b-44b9-b63a-7e29c4b07b04"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS ta2c750795b08a0267468dd5f0abf7437  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" = $2 LIMIT $3 [["slug", "two"], ["parent_id", "3f34a215-286b-44b9-b63a-7e29c4b07b04"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("title", "slug", "parent_id", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Foo bar"], ["slug", "two"], ["parent_id", "3f34a215-286b-44b9-b63a-7e29c4b07b04"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t50b96a89ee51e255f6e0db1b3fce44e4 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "4eb11247-19da-49d5-a4b3-121ea41e047c"], ["descendant_id", "4eb11247-19da-49d5-a4b3-121ea41e047c"], ["generations", 0]]  (0.2ms) INSERT INTO "push_type_node_hierarchies" (ancestor_id, descendant_id, generations) SELECT x.ancestor_id, '4eb11247-19da-49d5-a4b3-121ea41e047c', x.generations + 1 FROM "push_type_node_hierarchies" x WHERE x.descendant_id = '3f34a215-286b-44b9-b63a-7e29c4b07b04'   (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" = '3f34a215-286b-44b9-b63a-7e29c4b07b04' ) 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 $2 [["id", "4eb11247-19da-49d5-a4b3-121ea41e047c"], ["LIMIT", 1]] PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "4eb11247-19da-49d5-a4b3-121ea41e047c"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t3fa1ba7d9f285166efcad6507b391604  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" = $2 LIMIT $3 [["slug", "three"], ["parent_id", "4eb11247-19da-49d5-a4b3-121ea41e047c"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "push_type_nodes" ("title", "slug", "parent_id", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Foo bar"], ["slug", "three"], ["parent_id", "4eb11247-19da-49d5-a4b3-121ea41e047c"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t8f995cb631dd1b47a959418eb186a15d SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "2f0a6c10-e1e2-4895-a17a-720f739186ac"], ["descendant_id", "2f0a6c10-e1e2-4895-a17a-720f739186ac"], ["generations", 0]]  (0.2ms) INSERT INTO "push_type_node_hierarchies" (ancestor_id, descendant_id, generations) SELECT x.ancestor_id, '2f0a6c10-e1e2-4895-a17a-720f739186ac', x.generations + 1 FROM "push_type_node_hierarchies" x WHERE x.descendant_id = '4eb11247-19da-49d5-a4b3-121ea41e047c'   (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" = '4eb11247-19da-49d5-a4b3-121ea41e047c' ) 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 $2 [["id", "2f0a6c10-e1e2-4895-a17a-720f739186ac"], ["LIMIT", 1]] 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", "2f0a6c10-e1e2-4895-a17a-720f739186ac"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS ta72beca7221900eb5e08eb70b8a45184  (0.1ms) RELEASE SAVEPOINT active_record_2 PushType::Node Load (0.4ms) 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", "2f0a6c10-e1e2-4895-a17a-720f739186ac"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------ PushType::RelationFieldTest::with missing relations: 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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-31"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-31"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tec920cacb8788425a1bcb23cee317496 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "5ef12ac1-85fd-4422-9d0c-74254f14ba00"], ["descendant_id", "5ef12ac1-85fd-4422-9d0c-74254f14ba00"], ["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 $2 [["id", "5ef12ac1-85fd-4422-9d0c-74254f14ba00"], ["LIMIT", 1]] 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", "5ef12ac1-85fd-4422-9d0c-74254f14ba00"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tc9b579e4c7f72a6620c543c49777c246  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-32"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-32"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tae94396951d066ebd8f5ba59d478ebfd SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "f7ddee48-5cda-497a-a8a4-4f6d0858a46f"], ["descendant_id", "f7ddee48-5cda-497a-a8a4-4f6d0858a46f"], ["generations", 0]]  (0.4ms) 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 $2 [["id", "f7ddee48-5cda-497a-a8a4-4f6d0858a46f"], ["LIMIT", 1]] 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", "f7ddee48-5cda-497a-a8a4-4f6d0858a46f"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t91216c698455dc58973725203373fcfa  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-33"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-33"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t5468955bd70c1ecc2de02eee366d049f SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "c57aa381-41c3-4851-a957-f333904b8cf7"], ["descendant_id", "c57aa381-41c3-4851-a957-f333904b8cf7"], ["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 $2 [["id", "c57aa381-41c3-4851-a957-f333904b8cf7"], ["LIMIT", 1]] 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", "c57aa381-41c3-4851-a957-f333904b8cf7"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t5736148ad689f9525791203ef220d1c1  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-34"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-34"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t451e8411d0f62dcfbc213e1e3adc0480 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "fb9fef0c-6562-43ef-8643-55bae0a40fec"], ["descendant_id", "fb9fef0c-6562-43ef-8643-55bae0a40fec"], ["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 $2 [["id", "fb9fef0c-6562-43ef-8643-55bae0a40fec"], ["LIMIT", 1]] 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", "fb9fef0c-6562-43ef-8643-55bae0a40fec"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tbda2c59e9ea817c1bf6bf9e33002b743  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-35"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-35"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tb2f6c811f0a0e34c629ea36f232faae9 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "4352867b-c61c-44ad-82de-4189002b8fb0"], ["descendant_id", "4352867b-c61c-44ad-82de-4189002b8fb0"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "4352867b-c61c-44ad-82de-4189002b8fb0"], ["LIMIT", 1]] 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", "4352867b-c61c-44ad-82de-4189002b8fb0"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t574e37315f2eec4170941d4e8c81f0dc  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-36"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-36"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t8f7200e4026427207d7534757484f97e SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "39a6ccec-617b-417e-b445-4396bc57036a"], ["descendant_id", "39a6ccec-617b-417e-b445-4396bc57036a"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "39a6ccec-617b-417e-b445-4396bc57036a"], ["LIMIT", 1]] 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", "39a6ccec-617b-417e-b445-4396bc57036a"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t8ed169ba6a8534fc8c549fe7d55b0792  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tc63633d06086e3bab19fe2fece08b8e8  (0.3ms) DELETE FROM "push_type_node_hierarchies" WHERE descendant_id IN ( SELECT DISTINCT descendant_id FROM (SELECT descendant_id FROM "push_type_node_hierarchies" WHERE ancestor_id = '5ef12ac1-85fd-4422-9d0c-74254f14ba00' OR descendant_id = '5ef12ac1-85fd-4422-9d0c-74254f14ba00' ) AS x )   (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t1c1aa02c5ecc8f78ccf60824610881c0 SQL (0.1ms) DELETE FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 [["id", "5ef12ac1-85fd-4422-9d0c-74254f14ba00"]]  (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   (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t9015cd4601fe686e9e908bfb6cf68648  (0.2ms) DELETE FROM "push_type_node_hierarchies" WHERE descendant_id IN ( SELECT DISTINCT descendant_id FROM (SELECT descendant_id FROM "push_type_node_hierarchies" WHERE ancestor_id = '4352867b-c61c-44ad-82de-4189002b8fb0' OR descendant_id = '4352867b-c61c-44ad-82de-4189002b8fb0' ) AS x )   (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t54b44dfc25ed7e44adf35e7e46fb1f3c SQL (0.1ms) DELETE FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 [["id", "4352867b-c61c-44ad-82de-4189002b8fb0"]]  (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   (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-37"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-37"], ["field_store", "{\"page_id\":\"5ef12ac1-85fd-4422-9d0c-74254f14ba00\",\"bar_ids\":[\"4352867b-c61c-44ad-82de-4189002b8fb0\",\"39a6ccec-617b-417e-b445-4396bc57036a\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t124de0d831f3f3d666103a359768e488 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "febbf11f-52d9-4b66-b43e-a09ee8383f7d"], ["descendant_id", "febbf11f-52d9-4b66-b43e-a09ee8383f7d"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "febbf11f-52d9-4b66-b43e-a09ee8383f7d"], ["LIMIT", 1]] 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", "febbf11f-52d9-4b66-b43e-a09ee8383f7d"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t3e7c251fefed9cbc2a91b75b16f6fa09  (0.1ms) RELEASE SAVEPOINT active_record_2 Page Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "5ef12ac1-85fd-4422-9d0c-74254f14ba00"], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------ PushType::RelationFieldTest::with missing relations: 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 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-38"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-38"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tcf1d2c8370c5829f8137b94e05efa42b SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "6a65a4f6-8458-402c-9dd5-033347abd384"], ["descendant_id", "6a65a4f6-8458-402c-9dd5-033347abd384"], ["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 $2 [["id", "6a65a4f6-8458-402c-9dd5-033347abd384"], ["LIMIT", 1]] 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", "6a65a4f6-8458-402c-9dd5-033347abd384"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tabfe2086c18200bdc1964c6c4c61fd7d  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-39"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-39"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t7eae8c942a00a69ad55ec692899fb8e4 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "f5899148-923a-4166-82a1-c0e883f44097"], ["descendant_id", "f5899148-923a-4166-82a1-c0e883f44097"], ["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 $2 [["id", "f5899148-923a-4166-82a1-c0e883f44097"], ["LIMIT", 1]] 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", "f5899148-923a-4166-82a1-c0e883f44097"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t12cbb3690f7b3ec1f3d08edd96692b74  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-40"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-40"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t8b9166b1220136c102960df288ab33e5 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "43c9984c-24c2-48c7-b4c7-600ed6355e1b"], ["descendant_id", "43c9984c-24c2-48c7-b4c7-600ed6355e1b"], ["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 $2 [["id", "43c9984c-24c2-48c7-b4c7-600ed6355e1b"], ["LIMIT", 1]] 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", "43c9984c-24c2-48c7-b4c7-600ed6355e1b"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t0cec3213ad2ed180f4345b9ba2254015  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-41"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-41"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t3597b6b7592cf366deecf74f1c0b2ce3 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "ba8e886a-75b7-4eed-8f29-e798a3cab6f6"], ["descendant_id", "ba8e886a-75b7-4eed-8f29-e798a3cab6f6"], ["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 $2 [["id", "ba8e886a-75b7-4eed-8f29-e798a3cab6f6"], ["LIMIT", 1]] 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", "ba8e886a-75b7-4eed-8f29-e798a3cab6f6"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t1fec3f0b17fec08bf0c1c98df4dabe8a  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-42"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-42"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tf89e3e2bd0d172007e7c2eff590b46b2 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "9cb2a6a2-31d9-4a30-89e5-afacc938ebf4"], ["descendant_id", "9cb2a6a2-31d9-4a30-89e5-afacc938ebf4"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "9cb2a6a2-31d9-4a30-89e5-afacc938ebf4"], ["LIMIT", 1]] 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", "9cb2a6a2-31d9-4a30-89e5-afacc938ebf4"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t35c32d330053110fbbf92369e8c09d6c  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-43"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-43"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t87930e656afa603f1a77ad48b27ec59e SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "e436f3a9-30de-43e8-8a90-ab681d425a4e"], ["descendant_id", "e436f3a9-30de-43e8-8a90-ab681d425a4e"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "e436f3a9-30de-43e8-8a90-ab681d425a4e"], ["LIMIT", 1]] 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", "e436f3a9-30de-43e8-8a90-ab681d425a4e"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t84f1342d9a002d605ec40205da5aab27  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tfd1d8a2117fd1b9d854ef0253e16b643  (0.3ms) DELETE FROM "push_type_node_hierarchies" WHERE descendant_id IN ( SELECT DISTINCT descendant_id FROM (SELECT descendant_id FROM "push_type_node_hierarchies" WHERE ancestor_id = '6a65a4f6-8458-402c-9dd5-033347abd384' OR descendant_id = '6a65a4f6-8458-402c-9dd5-033347abd384' ) AS x )   (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t67ac96bb50e6f8df8cca39821374a5d8 SQL (0.2ms) DELETE FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 [["id", "6a65a4f6-8458-402c-9dd5-033347abd384"]]  (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   (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t5c0b7d6c57b260a466ac178a5d6474ff  (0.3ms) DELETE FROM "push_type_node_hierarchies" WHERE descendant_id IN ( SELECT DISTINCT descendant_id FROM (SELECT descendant_id FROM "push_type_node_hierarchies" WHERE ancestor_id = '9cb2a6a2-31d9-4a30-89e5-afacc938ebf4' OR descendant_id = '9cb2a6a2-31d9-4a30-89e5-afacc938ebf4' ) AS x )   (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t0f2d5386088c450dd9d5fe0d9866ac55 SQL (0.1ms) DELETE FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 [["id", "9cb2a6a2-31d9-4a30-89e5-afacc938ebf4"]]  (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   (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-44"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-44"], ["field_store", "{\"page_id\":\"6a65a4f6-8458-402c-9dd5-033347abd384\",\"bar_ids\":[\"9cb2a6a2-31d9-4a30-89e5-afacc938ebf4\",\"e436f3a9-30de-43e8-8a90-ab681d425a4e\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tc3c33987d6f920fe074010141eb1b2a7 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "98331340-9f53-4e45-8cfd-0f31510545a9"], ["descendant_id", "98331340-9f53-4e45-8cfd-0f31510545a9"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "98331340-9f53-4e45-8cfd-0f31510545a9"], ["LIMIT", 1]] 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", "98331340-9f53-4e45-8cfd-0f31510545a9"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t1cb74ee48e0e872bdee4684b96730832  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."id" IN ('9cb2a6a2-31d9-4a30-89e5-afacc938ebf4', 'e436f3a9-30de-43e8-8a90-ab681d425a4e')  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- PushType::NumberFieldTest: 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 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-45"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::NumberFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-45"], ["field_store", "{\"foo\":1,\"bar\":1.234}"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t7c031250cc2bb64f23653afe2392e870 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "15863945-9817-4512-8baf-54a9509df75b"], ["descendant_id", "15863945-9817-4512-8baf-54a9509df75b"], ["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::NumberFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::NumberFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "15863945-9817-4512-8baf-54a9509df75b"], ["LIMIT", 1]] 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", "15863945-9817-4512-8baf-54a9509df75b"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t27ea7de0dc9dcd463d3594d9ba256a24  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- PushType::NumberFieldTest: 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 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-46"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::NumberFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-46"], ["field_store", "{\"foo\":1,\"bar\":1.234}"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t2bab37c797d81f8c782ad24cc22b7260 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "48ff82cf-0632-4279-933e-79a2d3589422"], ["descendant_id", "48ff82cf-0632-4279-933e-79a2d3589422"], ["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::NumberFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::NumberFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "48ff82cf-0632-4279-933e-79a2d3589422"], ["LIMIT", 1]] 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", "48ff82cf-0632-4279-933e-79a2d3589422"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tc4f558721a7f0f04df0acc9c877ea6b8  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- PushType::NumberFieldTest: 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 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-47"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::NumberFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-47"], ["field_store", "{\"foo\":1,\"bar\":1.234}"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t21841257b8401bb0493e46c2480eb25c SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "0bdd8811-c469-4ba0-a009-d94a37701c21"], ["descendant_id", "0bdd8811-c469-4ba0-a009-d94a37701c21"], ["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::NumberFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::NumberFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "0bdd8811-c469-4ba0-a009-d94a37701c21"], ["LIMIT", 1]] 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", "0bdd8811-c469-4ba0-a009-d94a37701c21"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tdfd17199dc9b6bca519decde82a5041e  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- PushType::NumberFieldTest: 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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-48"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::NumberFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-48"], ["field_store", "{\"foo\":1,\"bar\":1.234}"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t9f37c5cc943b71195f973c441ccc08ad SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "fa40729d-295d-4f93-bebb-68e845a7a39d"], ["descendant_id", "fa40729d-295d-4f93-bebb-68e845a7a39d"], ["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::NumberFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::NumberFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "fa40729d-295d-4f93-bebb-68e845a7a39d"], ["LIMIT", 1]] 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", "fa40729d-295d-4f93-bebb-68e845a7a39d"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tc608f667be8dbeb1b00308b2328a496d  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- PushType::NumberFieldTest: 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 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-49"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::NumberFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-49"], ["field_store", "{\"foo\":1,\"bar\":1.234}"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t29ad7eae03fe102c3f8ad813a7026b5a SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "8b75540c-fcdc-4b71-b103-7a2dab5780b0"], ["descendant_id", "8b75540c-fcdc-4b71-b103-7a2dab5780b0"], ["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::NumberFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::NumberFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "8b75540c-fcdc-4b71-b103-7a2dab5780b0"], ["LIMIT", 1]] 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", "8b75540c-fcdc-4b71-b103-7a2dab5780b0"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t9a32f192a4b60747fa87d4b681b9ce3f  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- PushType::NumberFieldTest: test_0004_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.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-50"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::NumberFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-50"], ["field_store", "{\"foo\":1,\"bar\":1.234}"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t4ea9cd436b55be9cacfe522fcac14daf SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "f5793222-7676-4f5d-a3e7-2349df384068"], ["descendant_id", "f5793222-7676-4f5d-a3e7-2349df384068"], ["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::NumberFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::NumberFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "f5793222-7676-4f5d-a3e7-2349df384068"], ["LIMIT", 1]] 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", "f5793222-7676-4f5d-a3e7-2349df384068"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t5a799dbe5b33da01c63104064a8be70c  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN ---------------------------------------------- PushType::NumberFieldTest: test_0007_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-51"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::NumberFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-51"], ["field_store", "{\"foo\":1,\"bar\":1.234}"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tf80cfa390546987e8b470a04d7dcafcb SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "d9868144-5fec-458b-b339-558a859cac56"], ["descendant_id", "d9868144-5fec-458b-b339-558a859cac56"], ["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::NumberFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::NumberFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "d9868144-5fec-458b-b339-558a859cac56"], ["LIMIT", 1]] 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", "d9868144-5fec-458b-b339-558a859cac56"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t262c8029f682468988e23d48f415b490  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- PushType::NumberFieldTest: 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 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-52"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::NumberFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-52"], ["field_store", "{\"foo\":1,\"bar\":1.234}"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS te1f5d34481c87926b26c6ddb1045f0c6 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "0c88da28-e4f9-49c9-92db-8a5bdb7e52f1"], ["descendant_id", "0c88da28-e4f9-49c9-92db-8a5bdb7e52f1"], ["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::NumberFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::NumberFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "0c88da28-e4f9-49c9-92db-8a5bdb7e52f1"], ["LIMIT", 1]] 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", "0c88da28-e4f9-49c9-92db-8a5bdb7e52f1"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tcae9041eebd1ca8efed3279e00b5f4f9  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN ---------------------------------------------------------- PushType::TrashableTest::query scopes: test_0001_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::TrashableTest::query scopes: test_0002_anonymous ----------------------------------------------------------  (0.0ms) 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.0ms) BEGIN -------------------------------------------- PushType::TimeFieldTest: 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 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-53"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TimeFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-53"], ["field_store", "{\"foo\":\"15:00\"}"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t4860ef311d03547e9f0a2c91dc40a7d8 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "a2744f78-c80a-4ed4-93a6-3623d1707735"], ["descendant_id", "a2744f78-c80a-4ed4-93a6-3623d1707735"], ["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::TimeFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TimeFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "a2744f78-c80a-4ed4-93a6-3623d1707735"], ["LIMIT", 1]] 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", "a2744f78-c80a-4ed4-93a6-3623d1707735"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS teba38abbb7208fce60e41688a895bd50  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- PushType::TimeFieldTest: test_0005_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-54"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TimeFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-54"], ["field_store", "{\"foo\":\"15:00\"}"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tca54a5257fb1ba39718e207ecbffc450 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "b760351f-3976-46e2-bde3-f8ddc8a31226"], ["descendant_id", "b760351f-3976-46e2-bde3-f8ddc8a31226"], ["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::TimeFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TimeFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "b760351f-3976-46e2-bde3-f8ddc8a31226"], ["LIMIT", 1]] 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", "b760351f-3976-46e2-bde3-f8ddc8a31226"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t9ede402370f01b49fdcff67472a10f97  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- PushType::TimeFieldTest: 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 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-55"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TimeFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-55"], ["field_store", "{\"foo\":\"15:00\"}"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tb582cc2962b5628e63f48a79cafc960d SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "ff3c6cd5-4947-4bfc-bec2-75ea1d9e42fd"], ["descendant_id", "ff3c6cd5-4947-4bfc-bec2-75ea1d9e42fd"], ["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::TimeFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TimeFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "ff3c6cd5-4947-4bfc-bec2-75ea1d9e42fd"], ["LIMIT", 1]] 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", "ff3c6cd5-4947-4bfc-bec2-75ea1d9e42fd"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tdb56853064fc3259c50aa230639054b4  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- PushType::TimeFieldTest: test_0006_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-56"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TimeFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-56"], ["field_store", "{\"foo\":\"15:00\"}"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t167ffc02b9bc764cd9c78fc8a8aebdc2 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "a60753ad-6ca8-492b-b985-8942762a51c8"], ["descendant_id", "a60753ad-6ca8-492b-b985-8942762a51c8"], ["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::TimeFieldTest::TestPage Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TimeFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "a60753ad-6ca8-492b-b985-8942762a51c8"], ["LIMIT", 1]] 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", "a60753ad-6ca8-492b-b985-8942762a51c8"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tb069f3f44b0d16dbfe168fe94b10b34a  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- PushType::TimeFieldTest: test_0002_anonymous --------------------------------------------  (0.0ms) 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.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-57"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TimeFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-57"], ["field_store", "{\"foo\":\"15:00\"}"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS taacc7c63a5f7018d85d8bd80b949663f SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "ba61fc52-982e-49c7-ba40-fcb3e81fa690"], ["descendant_id", "ba61fc52-982e-49c7-ba40-fcb3e81fa690"], ["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::TimeFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TimeFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "ba61fc52-982e-49c7-ba40-fcb3e81fa690"], ["LIMIT", 1]] 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", "ba61fc52-982e-49c7-ba40-fcb3e81fa690"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t6298ce8551fce0e1af247378694e415d  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- PushType::TimeFieldTest: 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 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-58"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TimeFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-58"], ["field_store", "{\"foo\":\"15:00\"}"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t7d90bd9220f5d7929e1a7d55e6b631f8 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "65c4272f-d720-4318-928b-0e08f177c6b9"], ["descendant_id", "65c4272f-d720-4318-928b-0e08f177c6b9"], ["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::TimeFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TimeFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "65c4272f-d720-4318-928b-0e08f177c6b9"], ["LIMIT", 1]] 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", "65c4272f-d720-4318-928b-0e08f177c6b9"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tf10f801af2fb5308cc9ce8123e27a40e  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------- PushType::MenuBuilder::Dsl::MenuTest::.build: test_0001_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::MenuBuilder::Dsl::MenuTest::.build: test_0002_anonymous -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------- PushType::MenuBuilder::Dsl::MenuTest::.build: 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::TextFieldTest: 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.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-59"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TextFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-59"], ["field_store", "{\"foo\":\"abc\"}"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tdd36f4de753eda21ee4ec0edcccd8120 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "9d10cf01-d56e-4a67-81fe-aa267bacc872"], ["descendant_id", "9d10cf01-d56e-4a67-81fe-aa267bacc872"], ["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::TextFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TextFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "9d10cf01-d56e-4a67-81fe-aa267bacc872"], ["LIMIT", 1]] 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", "9d10cf01-d56e-4a67-81fe-aa267bacc872"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t25ef4043a72177d6272f762c4c78289d  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- PushType::TextFieldTest: 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 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-60"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TextFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-60"], ["field_store", "{\"foo\":\"abc\"}"], ["status", 0], ["created_at", 2016-10-16 14:40:53 UTC], ["updated_at", 2016-10-16 14:40:53 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t6fa04b91f2acb0e3c553e161e0161395 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "8543ceb7-4997-47ac-b1fd-86fa490b8a8f"], ["descendant_id", "8543ceb7-4997-47ac-b1fd-86fa490b8a8f"], ["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::TextFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TextFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "8543ceb7-4997-47ac-b1fd-86fa490b8a8f"], ["LIMIT", 1]] 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", "8543ceb7-4997-47ac-b1fd-86fa490b8a8f"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t491cd154af9a077bf9277fa207ef9d64  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- PushType::TextFieldTest: test_0004_anonymous --------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-61"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TextFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-61"], ["field_store", "{\"foo\":\"abc\"}"], ["status", 0], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t1c220f05714f7885b5a1f250a17fa22c SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "befd69df-e158-436f-b068-8ed564e54d28"], ["descendant_id", "befd69df-e158-436f-b068-8ed564e54d28"], ["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::TextFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TextFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "befd69df-e158-436f-b068-8ed564e54d28"], ["LIMIT", 1]] 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", "befd69df-e158-436f-b068-8ed564e54d28"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t1ed06d97b7392ca762399eefba6e327c  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- PushType::TextFieldTest: 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.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-62"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TextFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-62"], ["field_store", "{\"foo\":\"abc\"}"], ["status", 0], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tf809d3d781c06202ebe5bb890cdbdf70 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "7e6a603d-1661-483f-b2e3-5048a25d7b25"], ["descendant_id", "7e6a603d-1661-483f-b2e3-5048a25d7b25"], ["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::TextFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TextFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "7e6a603d-1661-483f-b2e3-5048a25d7b25"], ["LIMIT", 1]] 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", "7e6a603d-1661-483f-b2e3-5048a25d7b25"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t92ab4873e8da05fe5bf6367cab9a1629  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN --------------------------------------- PushType::NodeTest: 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 [["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- PushType::NodeTest: test_0002_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 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-63"], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN ---------------------------------------------------------------------------------- PushType::PublishableTest::#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.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-64"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-64"], ["status", 1], ["published_at", 2016-10-16 14:40:54 UTC], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tff46c36ccc04eb9d68479c580d88cf76 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "ed48b9b8-9992-48cb-af7b-a2c146332f15"], ["descendant_id", "ed48b9b8-9992-48cb-af7b-a2c146332f15"], ["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 $2 [["id", "ed48b9b8-9992-48cb-af7b-a2c146332f15"], ["LIMIT", 1]] 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", "ed48b9b8-9992-48cb-af7b-a2c146332f15"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t0dfdf80c60e3442bdc61de5a8f107382  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) UPDATE "push_type_nodes" SET "status" = $1, "published_at" = $2, "updated_at" = $3 WHERE "push_type_nodes"."id" = $4 [["status", 0], ["published_at", nil], ["updated_at", 2016-10-16 14:40:54 UTC], ["id", "ed48b9b8-9992-48cb-af7b-a2c146332f15"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------- PushType::AssetTest::#description_or_file_name: test_0001_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.2ms) INSERT INTO "push_type_assets" ("file_uid", "file_name", "file_size", "file_ext", "mime_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_uid", "19"], ["file_name", "image.png"], ["file_size", 2643], ["file_ext", "png"], ["mime_type", "image/png"], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------------ PushType::AssetTest::#description_or_file_name: test_0002_should return description when present ------------------------------------------------------------------------------------------------  (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" ("file_uid", "file_name", "file_size", "file_ext", "mime_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_uid", "20"], ["file_name", "image.png"], ["file_size", 2643], ["file_ext", "png"], ["mime_type", "image/png"], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN ---------------------------------------------------------------- PushType::PresentableTest::instance methods: test_0004_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::PresentableTest::instance methods: 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.1ms) BEGIN ---------------------------------------------------------------- PushType::PresentableTest::instance methods: 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 ---------------------------------------------------------------- PushType::PresentableTest::instance methods: test_0003_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::AssetTest::#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.2ms) INSERT INTO "push_type_assets" ("file_uid", "file_name", "file_size", "file_ext", "mime_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_uid", "21"], ["file_name", "image.png"], ["file_size", 2643], ["file_ext", "png"], ["mime_type", "image/png"], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PushType::AssetTest::#media::with no args: 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" ("file_uid", "file_name", "file_size", "file_ext", "mime_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_uid", "22"], ["file_name", "document.pdf"], ["file_size", 15356], ["file_ext", "pdf"], ["mime_type", "application/pdf"], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PushType::AssetTest::#kind::code: test_0003_should detect xml -------------------------------------------------------------  (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::AssetTest::#kind::code: test_0002_should detect javascript --------------------------------------------------------------------  (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::AssetTest::#kind::code: test_0001_should detect html --------------------------------------------------------------  (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::MenuBuilder::MenuItemTest::#submenu: test_0001_should create a new menu ---------------------------------------------------------------------------------  (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::MenuBuilder::MenuItemTest::#submenu: test_0002_should use existing submenu if present -----------------------------------------------------------------------------------------------  (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::MatrixFieldTest: test_0008_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-69"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::MatrixFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-69"], ["field_store", "{\"foo\":[{\"key\":\"a\",\"val\":\"b\"},{\"key\":\"x\",\"val\":\"y\"}],\"bar\":[{\"key\":\"123\"}]}"], ["status", 0], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t2fc7c8bead100892723c6397b33c72ab SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "69c7434d-152a-4135-83cc-0f3bb9ab1988"], ["descendant_id", "69c7434d-152a-4135-83cc-0f3bb9ab1988"], ["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::MatrixFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::MatrixFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "69c7434d-152a-4135-83cc-0f3bb9ab1988"], ["LIMIT", 1]] 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", "69c7434d-152a-4135-83cc-0f3bb9ab1988"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t958a778e7544d682688c060d570f99df  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- PushType::MatrixFieldTest: 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 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-70"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::MatrixFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-70"], ["field_store", "{\"foo\":[{\"key\":\"a\",\"val\":\"b\"},{\"key\":\"x\",\"val\":\"y\"}],\"bar\":[{\"key\":\"123\"}]}"], ["status", 0], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS taa96a26fd78b7f5c78c3ee5589f9a45d SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "7e46088c-fb79-4393-a2b5-480ee399d2f2"], ["descendant_id", "7e46088c-fb79-4393-a2b5-480ee399d2f2"], ["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::MatrixFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::MatrixFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "7e46088c-fb79-4393-a2b5-480ee399d2f2"], ["LIMIT", 1]] 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", "7e46088c-fb79-4393-a2b5-480ee399d2f2"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tf1affdf5c99e2c614a07afc1230f207b  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- PushType::MatrixFieldTest: 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 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-71"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::MatrixFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-71"], ["field_store", "{\"foo\":[{\"key\":\"a\",\"val\":\"b\"},{\"key\":\"x\",\"val\":\"y\"}],\"bar\":[{\"key\":\"123\"}]}"], ["status", 0], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tf077f64701fb5fa619d7bd1dd6402d2c SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "25826c78-3227-49ce-a21f-fc9b815c6978"], ["descendant_id", "25826c78-3227-49ce-a21f-fc9b815c6978"], ["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::MatrixFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::MatrixFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "25826c78-3227-49ce-a21f-fc9b815c6978"], ["LIMIT", 1]] 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", "25826c78-3227-49ce-a21f-fc9b815c6978"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tc19224bc3516fa89f50f71bdc4b3a28c  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- PushType::MatrixFieldTest: test_0004_anonymous ----------------------------------------------  (0.0ms) 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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-72"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::MatrixFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-72"], ["field_store", "{\"foo\":[{\"key\":\"a\",\"val\":\"b\"},{\"key\":\"x\",\"val\":\"y\"}],\"bar\":[{\"key\":\"123\"}]}"], ["status", 0], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t97b60c0522454ee098e88da91ff1c025 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "1e085935-45ac-4967-b107-3ecf2d316e70"], ["descendant_id", "1e085935-45ac-4967-b107-3ecf2d316e70"], ["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::MatrixFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::MatrixFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "1e085935-45ac-4967-b107-3ecf2d316e70"], ["LIMIT", 1]] 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", "1e085935-45ac-4967-b107-3ecf2d316e70"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t1b03b3f79715c1141b04c744185d514b  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN ---------------------------------------------- PushType::MatrixFieldTest: 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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-73"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::MatrixFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-73"], ["field_store", "{\"foo\":[{\"key\":\"a\",\"val\":\"b\"},{\"key\":\"x\",\"val\":\"y\"}],\"bar\":[{\"key\":\"123\"}]}"], ["status", 0], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS td84f0daad64ad4788d209b9b19346372 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "2a9f109d-ff99-475b-9c4a-9c7cf52c56c4"], ["descendant_id", "2a9f109d-ff99-475b-9c4a-9c7cf52c56c4"], ["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::MatrixFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::MatrixFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "2a9f109d-ff99-475b-9c4a-9c7cf52c56c4"], ["LIMIT", 1]] 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", "2a9f109d-ff99-475b-9c4a-9c7cf52c56c4"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t2da233866bbc3ac18a09057f1f386096  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- PushType::MatrixFieldTest: test_0007_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-74"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::MatrixFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-74"], ["field_store", "{\"foo\":[{\"key\":\"a\",\"val\":\"b\"},{\"key\":\"x\",\"val\":\"y\"}],\"bar\":[{\"key\":\"123\"}]}"], ["status", 0], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t9d4e3810ad1bde6c924979ec7fb8f897 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "e0adadaf-47f5-4040-9cda-bdd5770608ee"], ["descendant_id", "e0adadaf-47f5-4040-9cda-bdd5770608ee"], ["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::MatrixFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::MatrixFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "e0adadaf-47f5-4040-9cda-bdd5770608ee"], ["LIMIT", 1]] 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", "e0adadaf-47f5-4040-9cda-bdd5770608ee"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t5918953a1876cb433101ee22a6d7de24  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- PushType::MatrixFieldTest: test_0005_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-75"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::MatrixFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-75"], ["field_store", "{\"foo\":[{\"key\":\"a\",\"val\":\"b\"},{\"key\":\"x\",\"val\":\"y\"}],\"bar\":[{\"key\":\"123\"}]}"], ["status", 0], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t5f02507437b7897ea2d9a25b16b8b105 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "99378d27-a0cd-4bfc-bea3-3920b36088c7"], ["descendant_id", "99378d27-a0cd-4bfc-bea3-3920b36088c7"], ["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::MatrixFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::MatrixFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "99378d27-a0cd-4bfc-bea3-3920b36088c7"], ["LIMIT", 1]] 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", "99378d27-a0cd-4bfc-bea3-3920b36088c7"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS ta2c1077aea14b57d5374cbd649bc9c95  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- PushType::MatrixFieldTest: 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 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-76"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::MatrixFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-76"], ["field_store", "{\"foo\":[{\"key\":\"a\",\"val\":\"b\"},{\"key\":\"x\",\"val\":\"y\"}],\"bar\":[{\"key\":\"123\"}]}"], ["status", 0], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t3633a7a1096297834af9fac2e4884c06 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "6d29e9e0-04e9-44d0-900b-b5e6c68beadb"], ["descendant_id", "6d29e9e0-04e9-44d0-900b-b5e6c68beadb"], ["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::MatrixFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::MatrixFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "6d29e9e0-04e9-44d0-900b-b5e6c68beadb"], ["LIMIT", 1]] 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", "6d29e9e0-04e9-44d0-900b-b5e6c68beadb"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t94c5868b8ce9e671253b7351b26c1725  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- PushType::MatrixFieldTest: test_0006_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.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-77"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::MatrixFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-77"], ["field_store", "{\"foo\":[{\"key\":\"a\",\"val\":\"b\"},{\"key\":\"x\",\"val\":\"y\"}],\"bar\":[{\"key\":\"123\"}]}"], ["status", 0], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t5ed52120e69fee08923eeec5aaed300b SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "5dd611b6-cc5b-475c-a924-18f77844e16c"], ["descendant_id", "5dd611b6-cc5b-475c-a924-18f77844e16c"], ["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::MatrixFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::MatrixFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "5dd611b6-cc5b-475c-a924-18f77844e16c"], ["LIMIT", 1]] 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", "5dd611b6-cc5b-475c-a924-18f77844e16c"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS td2fe03755a091b029b5a1c7d0ee88da6  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- PushType::MatrixFieldTest: test_0011_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-78"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::MatrixFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-78"], ["field_store", "{\"foo\":[{\"key\":\"a\",\"val\":\"b\"},{\"key\":\"x\",\"val\":\"y\"}],\"bar\":[{\"key\":\"123\"}]}"], ["status", 0], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tcf900459fbd95c76ef6a7a509db6141a SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "b7f36053-f0f8-447e-bb1e-2f3bd428ae9e"], ["descendant_id", "b7f36053-f0f8-447e-bb1e-2f3bd428ae9e"], ["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::MatrixFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::MatrixFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "b7f36053-f0f8-447e-bb1e-2f3bd428ae9e"], ["LIMIT", 1]] 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", "b7f36053-f0f8-447e-bb1e-2f3bd428ae9e"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tfa40aa898356423692c4ebc46a53d6e8  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- PushType::MatrixFieldTest: 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 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-79"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::MatrixFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-79"], ["field_store", "{\"foo\":[{\"key\":\"a\",\"val\":\"b\"},{\"key\":\"x\",\"val\":\"y\"}],\"bar\":[{\"key\":\"123\"}]}"], ["status", 0], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t36a312bfca186114d6032ed85a12909f SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "cfd274df-db09-4f57-b838-139262102f19"], ["descendant_id", "cfd274df-db09-4f57-b838-139262102f19"], ["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::MatrixFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::MatrixFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "cfd274df-db09-4f57-b838-139262102f19"], ["LIMIT", 1]] 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", "cfd274df-db09-4f57-b838-139262102f19"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t6305fa61c28eb7e059100cef561a9f92  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- PushType::MatrixFieldTest: test_0001_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 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-80"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::MatrixFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-80"], ["field_store", "{\"foo\":[{\"key\":\"a\",\"val\":\"b\"},{\"key\":\"x\",\"val\":\"y\"}],\"bar\":[{\"key\":\"123\"}]}"], ["status", 0], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t88d44a4b901e9f5e8683097a6a8c05bd SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "54ebc01f-4fd0-4547-805a-d2631e07dc5f"], ["descendant_id", "54ebc01f-4fd0-4547-805a-d2631e07dc5f"], ["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::MatrixFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::MatrixFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "54ebc01f-4fd0-4547-805a-d2631e07dc5f"], ["LIMIT", 1]] 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", "54ebc01f-4fd0-4547-805a-d2631e07dc5f"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t8d94e404ae2c17e509d3da864d8bb630  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------- PushType::MenuBuilder::MenuRendererTest::#render_menu: 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::MenuBuilder::MenuRendererTest::#render_menu: test_0002_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.0ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------- PushType::StructureFieldTest: test_0006_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-81"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::StructureFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-81"], ["field_store", "{\"foo\":{\"key\":\"a\",\"val\":\"b\"}}"], ["status", 0], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t9a9048b1f4149d04fb0ba614712b9345 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "c8c63a11-c093-4703-873e-9a706a982665"], ["descendant_id", "c8c63a11-c093-4703-873e-9a706a982665"], ["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::StructureFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::StructureFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "c8c63a11-c093-4703-873e-9a706a982665"], ["LIMIT", 1]] 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", "c8c63a11-c093-4703-873e-9a706a982665"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t8878ef8b8ab84687b2cc1f21293625db  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------- PushType::StructureFieldTest: 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.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-82"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::StructureFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-82"], ["field_store", "{\"foo\":{\"key\":\"a\",\"val\":\"b\"}}"], ["status", 0], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t5f59d8c028476553fc39c57e96470d19 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "6dd8ce78-74a9-4b31-b2a5-060bb601adfc"], ["descendant_id", "6dd8ce78-74a9-4b31-b2a5-060bb601adfc"], ["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::StructureFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::StructureFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "6dd8ce78-74a9-4b31-b2a5-060bb601adfc"], ["LIMIT", 1]] 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", "6dd8ce78-74a9-4b31-b2a5-060bb601adfc"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t5f08a70f9783e3178f627e9cc9bfe758  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN ------------------------------------------------- PushType::StructureFieldTest: 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 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-83"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::StructureFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-83"], ["field_store", "{\"foo\":{\"key\":\"a\",\"val\":\"b\"}}"], ["status", 0], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tc2e782b2994923f45b11452534b49bbb SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "ec6ef901-8395-4724-a97c-a2b3bc13abf7"], ["descendant_id", "ec6ef901-8395-4724-a97c-a2b3bc13abf7"], ["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::StructureFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::StructureFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "ec6ef901-8395-4724-a97c-a2b3bc13abf7"], ["LIMIT", 1]] 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", "ec6ef901-8395-4724-a97c-a2b3bc13abf7"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS ted8a2301761afa3b645a507f591b16d7  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------- PushType::StructureFieldTest: test_0005_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.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-84"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::StructureFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-84"], ["field_store", "{\"foo\":{\"key\":\"a\",\"val\":\"b\"}}"], ["status", 0], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t0f8a4e2e898671cda27abda829ea806c SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "274c9388-6427-4581-8fe0-d28af49e6030"], ["descendant_id", "274c9388-6427-4581-8fe0-d28af49e6030"], ["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::StructureFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::StructureFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "274c9388-6427-4581-8fe0-d28af49e6030"], ["LIMIT", 1]] PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "274c9388-6427-4581-8fe0-d28af49e6030"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tb72dd45d399faf31b7e5bb40ff4c10c5  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------- PushType::StructureFieldTest: test_0013_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-85"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::StructureFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-85"], ["field_store", "{\"foo\":{\"key\":\"a\",\"val\":\"b\"}}"], ["status", 0], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t6c1f80acbb08504b3117d12800036f04 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "5ccb3917-0f54-492e-8409-ba7d6d0239e9"], ["descendant_id", "5ccb3917-0f54-492e-8409-ba7d6d0239e9"], ["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::StructureFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::StructureFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "5ccb3917-0f54-492e-8409-ba7d6d0239e9"], ["LIMIT", 1]] 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", "5ccb3917-0f54-492e-8409-ba7d6d0239e9"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS te47bf2b8638ab230252a6a6a2bc4af9a  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------- PushType::StructureFieldTest: test_0004_anonymous -------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) 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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-86"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::StructureFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-86"], ["field_store", "{\"foo\":{\"key\":\"a\",\"val\":\"b\"}}"], ["status", 0], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t012aa87af209f0144a3b36f8d0aa38f0 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "94cded27-457e-420c-a75a-2567f782c599"], ["descendant_id", "94cded27-457e-420c-a75a-2567f782c599"], ["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::StructureFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::StructureFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "94cded27-457e-420c-a75a-2567f782c599"], ["LIMIT", 1]] 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", "94cded27-457e-420c-a75a-2567f782c599"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t796d82a4959259c3de6b79d150a42de7  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------- PushType::StructureFieldTest: test_0007_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.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-87"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::StructureFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-87"], ["field_store", "{\"foo\":{\"key\":\"a\",\"val\":\"b\"}}"], ["status", 0], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tdc160eba46adc6687b85205ac8bca18c SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "d5466560-a219-4b7b-8556-23b6b77778f0"], ["descendant_id", "d5466560-a219-4b7b-8556-23b6b77778f0"], ["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::StructureFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::StructureFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "d5466560-a219-4b7b-8556-23b6b77778f0"], ["LIMIT", 1]] 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", "d5466560-a219-4b7b-8556-23b6b77778f0"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t465aa69c30dbab36f0c88aabf48d3da1  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------- PushType::StructureFieldTest: 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 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-88"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::StructureFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-88"], ["field_store", "{\"foo\":{\"key\":\"a\",\"val\":\"b\"}}"], ["status", 0], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t7febb00e19c1de176f84f13f4de57d48 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "ded908be-694d-409e-bd6f-6c88edd6e1ea"], ["descendant_id", "ded908be-694d-409e-bd6f-6c88edd6e1ea"], ["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::StructureFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::StructureFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "ded908be-694d-409e-bd6f-6c88edd6e1ea"], ["LIMIT", 1]] 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", "ded908be-694d-409e-bd6f-6c88edd6e1ea"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tde5d72d2690bdd3b1ba3d57d2ecf9cc1  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------- PushType::StructureFieldTest: 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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-89"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::StructureFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-89"], ["field_store", "{\"foo\":{\"key\":\"a\",\"val\":\"b\"}}"], ["status", 0], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t39feb1118e21b0ca3508ef2d7f62682f SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "386698a4-52f0-4505-993b-76908e1f5640"], ["descendant_id", "386698a4-52f0-4505-993b-76908e1f5640"], ["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::StructureFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::StructureFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "386698a4-52f0-4505-993b-76908e1f5640"], ["LIMIT", 1]] 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", "386698a4-52f0-4505-993b-76908e1f5640"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t6c1ec77e84e208e68fb79d1dfa8d3758  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------- PushType::StructureFieldTest: test_0009_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-90"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::StructureFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-90"], ["field_store", "{\"foo\":{\"key\":\"a\",\"val\":\"b\"}}"], ["status", 0], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t74fffe6551b8761d7970bb81339c6576 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "3569b52c-06bf-43ea-a082-0da0366e4d4b"], ["descendant_id", "3569b52c-06bf-43ea-a082-0da0366e4d4b"], ["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::StructureFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::StructureFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "3569b52c-06bf-43ea-a082-0da0366e4d4b"], ["LIMIT", 1]] 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", "3569b52c-06bf-43ea-a082-0da0366e4d4b"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS ta7b6ca7e30dab57844980f8966d5b4a3  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------- PushType::StructureFieldTest: 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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-91"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::StructureFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-91"], ["field_store", "{\"foo\":{\"key\":\"a\",\"val\":\"b\"}}"], ["status", 0], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t3431857e54f57affabb1437f2606f6fa SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "03e9860d-03e6-4829-8dd4-61702e83f837"], ["descendant_id", "03e9860d-03e6-4829-8dd4-61702e83f837"], ["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::StructureFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::StructureFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "03e9860d-03e6-4829-8dd4-61702e83f837"], ["LIMIT", 1]] 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", "03e9860d-03e6-4829-8dd4-61702e83f837"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t24e0a80db390357cbe4fe205d0c8c9b0  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------- PushType::StructureFieldTest: test_0012_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-92"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::StructureFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-92"], ["field_store", "{\"foo\":{\"key\":\"a\",\"val\":\"b\"}}"], ["status", 0], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tb64cd140ce1c9bc7c8f17bc6d84af0df SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "403ba2d3-7285-46ea-aa64-6653ca38ecd3"], ["descendant_id", "403ba2d3-7285-46ea-aa64-6653ca38ecd3"], ["generations", 0]]  (0.4ms) 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::StructureFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::StructureFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "403ba2d3-7285-46ea-aa64-6653ca38ecd3"], ["LIMIT", 1]] 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", "403ba2d3-7285-46ea-aa64-6653ca38ecd3"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tbff2843a1cbf4090233a7c8cf32b1545  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------- PushType::StructureFieldTest: test_0001_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 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-93"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::StructureFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-93"], ["field_store", "{\"foo\":{\"key\":\"a\",\"val\":\"b\"}}"], ["status", 0], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t4f4d6d0a7aa6c386b4492086e8579fcc SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "3e091112-a83d-470a-b1fd-2195a71ba66f"], ["descendant_id", "3e091112-a83d-470a-b1fd-2195a71ba66f"], ["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::StructureFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::StructureFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "3e091112-a83d-470a-b1fd-2195a71ba66f"], ["LIMIT", 1]] 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", "3e091112-a83d-470a-b1fd-2195a71ba66f"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tfa13627dd55cd0fcce058c353350419b  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN -------------------------------------------------------------------------------------------------------------- PushType::PushTypeTest::.subclasses_from_list::scoped by :node::searching for single 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) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- PushType::AssetTest::#media::with original 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.2ms) INSERT INTO "push_type_assets" ("file_uid", "file_name", "file_size", "file_ext", "mime_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_uid", "23"], ["file_name", "image.png"], ["file_size", 2643], ["file_ext", "png"], ["mime_type", "image/png"], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- PushType::AssetTest::#media::with original style: 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.2ms) INSERT INTO "push_type_assets" ("file_uid", "file_name", "file_size", "file_ext", "mime_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_uid", "24"], ["file_name", "document.pdf"], ["file_size", 15356], ["file_ext", "pdf"], ["mime_type", "application/pdf"], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------- PushType::PrimitivesTest::ObjectType: test_0001_anonymous ---------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------- PushType::PrimitivesTest::ObjectType: test_0002_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::UserTest: test_0001_anonymous ---------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 PushType::User Exists (0.4ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" IS NULL LIMIT $1 [["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- PushType::UserTest: 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::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = $1 LIMIT $2 [["email", "joe-1@example.com"], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN ---------------------------------------------------------------------------- PushType::NestableTest::.has_child_nodes::when nonsense: test_0003_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::NestableTest::.has_child_nodes::when nonsense: 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::NestableTest::.has_child_nodes::when nonsense: 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 -------------------------------------------------------------------------- PushType::MenuBuilder::MenuRendererTest::#render_item: 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::MenuBuilder::MenuRendererTest::#render_item: test_0002_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.0ms) BEGIN --------------------------------------------------------- FrontEndControllerTest::node filters: test_0001_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 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-94"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-94"], ["status", 1], ["published_at", 2016-10-16 14:40:54 UTC], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t625375f4a992e41c0f210318c319c5ed SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "4ab77a69-0bf3-4b6a-a7a2-2c1ac741612b"], ["descendant_id", "4ab77a69-0bf3-4b6a-a7a2-2c1ac741612b"], ["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 $2 [["id", "4ab77a69-0bf3-4b6a-a7a2-2c1ac741612b"], ["LIMIT", 1]] 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", "4ab77a69-0bf3-4b6a-a7a2-2c1ac741612b"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t6d48ad7401cc50a43c10b01906b17e33  (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", "4ab77a69-0bf3-4b6a-a7a2-2c1ac741612b"]] Processing by FrontEndController#show as HTML Parameters: {"permalink"=>"foo-bar-94"} PushType::Node Load (0.4ms) 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 <= '2016-10-16 14:40:54.447808') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2016-10-16 14:40:54.447983') AND "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL ORDER BY "push_type_nodes"."id" ASC LIMIT $2 [["slug", "foo-bar-94"], ["LIMIT", 1]] Rendering nodes/page.html.erb within layouts/application Rendered nodes/page.html.erb within layouts/application (0.4ms) Completed 200 OK in 180ms (Views: 158.6ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------- FrontEndControllerTest::node filters: test_0005_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-95"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-95"], ["status", 1], ["published_at", 2016-10-16 14:40:54 UTC], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS td059ef0de5bd17f63e669e2f7bd49997 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "8647c44d-e43c-49ae-b9e4-70155495806d"], ["descendant_id", "8647c44d-e43c-49ae-b9e4-70155495806d"], ["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 $2 [["id", "8647c44d-e43c-49ae-b9e4-70155495806d"], ["LIMIT", 1]] 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", "8647c44d-e43c-49ae-b9e4-70155495806d"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t3a8cf9ced51e5172b0d38e2ad291e1db  (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", "8647c44d-e43c-49ae-b9e4-70155495806d"]] Processing by FrontEndController#show as HTML Parameters: {"permalink"=>"foo-bar-95"} PushType::Node Load (0.4ms) 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 <= '2016-10-16 14:40:54.641795') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2016-10-16 14:40:54.641954') AND "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL ORDER BY "push_type_nodes"."id" ASC LIMIT $2 [["slug", "foo-bar-95"], ["LIMIT", 1]] Rendering nodes/page.html.erb within layouts/application Rendered nodes/page.html.erb within layouts/application (0.1ms) Completed 200 OK in 21ms (Views: 0.9ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------- FrontEndControllerTest::node filters: test_0008_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-96"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-96"], ["status", 1], ["published_at", 2016-10-16 14:40:54 UTC], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t04480d476ba7ec4a974b387d2369ec0b SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "091e667c-82a7-49f3-bdf0-e396d1bd1b32"], ["descendant_id", "091e667c-82a7-49f3-bdf0-e396d1bd1b32"], ["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 $2 [["id", "091e667c-82a7-49f3-bdf0-e396d1bd1b32"], ["LIMIT", 1]] 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", "091e667c-82a7-49f3-bdf0-e396d1bd1b32"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t2d4d35dd95232bdcd63987091ea124df  (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", "091e667c-82a7-49f3-bdf0-e396d1bd1b32"]] Processing by FrontEndController#show as HTML Parameters: {"permalink"=>"foo-bar-96"} PushType::Node Load (0.4ms) 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 <= '2016-10-16 14:40:54.676937') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2016-10-16 14:40:54.677127') AND "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL ORDER BY "push_type_nodes"."id" ASC LIMIT $2 [["slug", "foo-bar-96"], ["LIMIT", 1]] Rendering nodes/page.html.erb within layouts/application Rendered nodes/page.html.erb within layouts/application (0.1ms) Completed 200 OK in 23ms (Views: 1.0ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------- FrontEndControllerTest::node filters: 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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-97"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-97"], ["status", 1], ["published_at", 2016-10-16 14:40:54 UTC], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS td8a04aaa2b5067c493dfbd8fd01d572b SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "23158e89-2c62-40b7-ad07-d6e6226f5c65"], ["descendant_id", "23158e89-2c62-40b7-ad07-d6e6226f5c65"], ["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 $2 [["id", "23158e89-2c62-40b7-ad07-d6e6226f5c65"], ["LIMIT", 1]] 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", "23158e89-2c62-40b7-ad07-d6e6226f5c65"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t8aa7673fdd04a34ed79bfb8f20c01b14  (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", "23158e89-2c62-40b7-ad07-d6e6226f5c65"]] Processing by FrontEndController#show as HTML Parameters: {"permalink"=>"foo-bar-97"} PushType::Node Load (0.4ms) 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 <= '2016-10-16 14:40:54.734642') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2016-10-16 14:40:54.734830') AND "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL ORDER BY "push_type_nodes"."id" ASC LIMIT $2 [["slug", "foo-bar-97"], ["LIMIT", 1]] Rendering nodes/page.html.erb within layouts/application Rendered nodes/page.html.erb within layouts/application (0.1ms) Completed 200 OK in 19ms (Views: 0.8ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------- FrontEndControllerTest::node filters: test_0006_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-98"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-98"], ["status", 1], ["published_at", 2016-10-16 14:40:54 UTC], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t3a52bc4cff11457435a9b2f7311366ab SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "b9b49505-02cd-45b7-8f80-20fe97b6fd6d"], ["descendant_id", "b9b49505-02cd-45b7-8f80-20fe97b6fd6d"], ["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 $2 [["id", "b9b49505-02cd-45b7-8f80-20fe97b6fd6d"], ["LIMIT", 1]] 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", "b9b49505-02cd-45b7-8f80-20fe97b6fd6d"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t27cc45c8528302d2ab90f7a03ae20e49  (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", "b9b49505-02cd-45b7-8f80-20fe97b6fd6d"]] Processing by FrontEndController#show as HTML Parameters: {"permalink"=>"foo-bar-98"} 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 <= '2016-10-16 14:40:54.763979') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2016-10-16 14:40:54.764146') AND "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL ORDER BY "push_type_nodes"."id" ASC LIMIT $2 [["slug", "foo-bar-98"], ["LIMIT", 1]] Rendering nodes/page.html.erb within layouts/application Rendered nodes/page.html.erb within layouts/application (0.1ms) Completed 200 OK in 18ms (Views: 0.7ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------- FrontEndControllerTest::node filters: test_0003_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-99"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-99"], ["status", 1], ["published_at", 2016-10-16 14:40:54 UTC], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t6220dc2351c8e8bce9b1c3d9e9066a47 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "f898d4a7-fa33-4568-a61d-65e2a3812fa4"], ["descendant_id", "f898d4a7-fa33-4568-a61d-65e2a3812fa4"], ["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 $2 [["id", "f898d4a7-fa33-4568-a61d-65e2a3812fa4"], ["LIMIT", 1]] PushType::Node Load (0.4ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "f898d4a7-fa33-4568-a61d-65e2a3812fa4"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS teba240951b264c944d7bb3a8d9f078ab  (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", "f898d4a7-fa33-4568-a61d-65e2a3812fa4"]] Processing by FrontEndController#show as HTML Parameters: {"permalink"=>"foo-bar-99"} 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 <= '2016-10-16 14:40:54.794265') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2016-10-16 14:40:54.794410') AND "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL ORDER BY "push_type_nodes"."id" ASC LIMIT $2 [["slug", "foo-bar-99"], ["LIMIT", 1]] Rendering nodes/page.html.erb within layouts/application Rendered nodes/page.html.erb within layouts/application (0.1ms) Completed 200 OK in 18ms (Views: 0.7ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------- FrontEndControllerTest::node filters: 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 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-100"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-100"], ["status", 1], ["published_at", 2016-10-16 14:40:54 UTC], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS te24ef6879306412ce4443b8ef7d2d7a4 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "6b6b8dfb-8bef-4b0f-8c10-a5551d61981b"], ["descendant_id", "6b6b8dfb-8bef-4b0f-8c10-a5551d61981b"], ["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 $2 [["id", "6b6b8dfb-8bef-4b0f-8c10-a5551d61981b"], ["LIMIT", 1]] 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", "6b6b8dfb-8bef-4b0f-8c10-a5551d61981b"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tdb20df1eadd30b5646367f638b30a8af  (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", "6b6b8dfb-8bef-4b0f-8c10-a5551d61981b"]] Processing by FrontEndController#show as HTML Parameters: {"permalink"=>"foo-bar-100"} PushType::Node Load (0.4ms) 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 <= '2016-10-16 14:40:54.823647') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2016-10-16 14:40:54.823792') AND "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL ORDER BY "push_type_nodes"."id" ASC LIMIT $2 [["slug", "foo-bar-100"], ["LIMIT", 1]] Rendering nodes/page.html.erb within layouts/application Rendered nodes/page.html.erb within layouts/application (0.1ms) Completed 200 OK in 19ms (Views: 0.8ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------- FrontEndControllerTest::node filters: test_0007_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-101"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-101"], ["status", 1], ["published_at", 2016-10-16 14:40:54 UTC], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t536a003ca7a8d187eb373c2b7947b1e1 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "f721e991-2677-4fb0-9b6e-36dad9788f62"], ["descendant_id", "f721e991-2677-4fb0-9b6e-36dad9788f62"], ["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 $2 [["id", "f721e991-2677-4fb0-9b6e-36dad9788f62"], ["LIMIT", 1]] 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", "f721e991-2677-4fb0-9b6e-36dad9788f62"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t9e8fbf854c18d4b423e9c802887504eb  (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", "f721e991-2677-4fb0-9b6e-36dad9788f62"]] Processing by FrontEndController#show as HTML Parameters: {"permalink"=>"foo-bar-101"} 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 <= '2016-10-16 14:40:54.853925') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2016-10-16 14:40:54.854075') AND "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL ORDER BY "push_type_nodes"."id" ASC LIMIT $2 [["slug", "foo-bar-101"], ["LIMIT", 1]] Rendering nodes/page.html.erb within layouts/application Rendered nodes/page.html.erb within layouts/application (0.1ms) Completed 200 OK in 19ms (Views: 0.8ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------------- PushType::MenuBuilder::MenuItemTest::#validate!::with all attributes: test_0001_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::TemplatableTest::.template::defaults: test_0002_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.1ms) BEGIN ------------------------------------------------------------------- PushType::TemplatableTest::.template::defaults: test_0001_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::PublishableTest::#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.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN ------------------------------------------------------------------- PushType::TrashableTest::#trashed?::when trash: 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.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-102"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "created_at", "updated_at", "deleted_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-102"], ["status", 0], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC], ["deleted_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS ta6c5aa34d46a1784ff3c97de204adb2e SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "56fea1d7-8477-4e6f-a37e-628b639ac427"], ["descendant_id", "56fea1d7-8477-4e6f-a37e-628b639ac427"], ["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 $2 [["id", "56fea1d7-8477-4e6f-a37e-628b639ac427"], ["LIMIT", 1]] 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", "56fea1d7-8477-4e6f-a37e-628b639ac427"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t06310daf2e63d3b5035869c5a6d3e8c5  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN ----------------------------------------------- PushType::WysiwygFieldTest: 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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-103"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::WysiwygFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-103"], ["field_store", "{\"foo\":\"abc\"}"], ["status", 0], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tfeedd971d1ecc6028ff23c1b93ad3718 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "5f8dc2cc-e486-49a2-a00c-c72e0f426990"], ["descendant_id", "5f8dc2cc-e486-49a2-a00c-c72e0f426990"], ["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::WysiwygFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::WysiwygFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "5f8dc2cc-e486-49a2-a00c-c72e0f426990"], ["LIMIT", 1]] 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", "5f8dc2cc-e486-49a2-a00c-c72e0f426990"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS td09d36ebd4df8c77b311dd33299e7b6f  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- PushType::WysiwygFieldTest: 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 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-104"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::WysiwygFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-104"], ["field_store", "{\"foo\":\"abc\"}"], ["status", 0], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t265747bb24225b54866c0c02d8be3c48 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "7698aac3-6bfb-4e2e-80e6-1d8e3d5c4eb9"], ["descendant_id", "7698aac3-6bfb-4e2e-80e6-1d8e3d5c4eb9"], ["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::WysiwygFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::WysiwygFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "7698aac3-6bfb-4e2e-80e6-1d8e3d5c4eb9"], ["LIMIT", 1]] 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", "7698aac3-6bfb-4e2e-80e6-1d8e3d5c4eb9"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t80d93ec8ae422da55a77b9e5e462e259  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- PushType::WysiwygFieldTest: test_0005_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-105"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::WysiwygFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-105"], ["field_store", "{\"foo\":\"abc\"}"], ["status", 0], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t99b00c4afc73f41ade9121f422f55ffb SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "f9620ad5-5982-4595-a75c-439bfd076d26"], ["descendant_id", "f9620ad5-5982-4595-a75c-439bfd076d26"], ["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::WysiwygFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::WysiwygFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "f9620ad5-5982-4595-a75c-439bfd076d26"], ["LIMIT", 1]] 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", "f9620ad5-5982-4595-a75c-439bfd076d26"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t2e5349bb44b3b4b7f0a3eabcd70c93ae  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- PushType::WysiwygFieldTest: 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 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-106"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::WysiwygFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-106"], ["field_store", "{\"foo\":\"abc\"}"], ["status", 0], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS td06a5b76ab5a7347efe884483c323c29 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "747de2b3-a7f6-49ee-8a5f-3fd90a11fffc"], ["descendant_id", "747de2b3-a7f6-49ee-8a5f-3fd90a11fffc"], ["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::WysiwygFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::WysiwygFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "747de2b3-a7f6-49ee-8a5f-3fd90a11fffc"], ["LIMIT", 1]] 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", "747de2b3-a7f6-49ee-8a5f-3fd90a11fffc"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t153a123304d65c4a6ad09c2823863fcc  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- PushType::WysiwygFieldTest: 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 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-107"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::WysiwygFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-107"], ["field_store", "{\"foo\":\"abc\"}"], ["status", 0], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t6447125b20ea4607d5d14656fb47b4ff SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "757146ae-d071-4497-9bcd-de6cc86902bb"], ["descendant_id", "757146ae-d071-4497-9bcd-de6cc86902bb"], ["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::WysiwygFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::WysiwygFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "757146ae-d071-4497-9bcd-de6cc86902bb"], ["LIMIT", 1]] 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", "757146ae-d071-4497-9bcd-de6cc86902bb"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t29b316060b969b32d161c4d0068637b9  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- PushType::WysiwygFieldTest: test_0006_anonymous -----------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) 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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-108"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::WysiwygFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-108"], ["field_store", "{\"foo\":\"abc\"}"], ["status", 0], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS te57ad9a4a97a213bb0c61bc6607fb2b8 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "b849521f-8316-4fee-bda0-da9d4d4ebdc0"], ["descendant_id", "b849521f-8316-4fee-bda0-da9d4d4ebdc0"], ["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::WysiwygFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::WysiwygFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "b849521f-8316-4fee-bda0-da9d4d4ebdc0"], ["LIMIT", 1]] 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", "b849521f-8316-4fee-bda0-da9d4d4ebdc0"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t96de8ddbc39a6e7b50c9e6f23429f55b  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN ----------------------------------------------------------------------------- PushType::UnexposableTest::.exposed: test_0001_should scope all exposed nodes -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "push_type_nodes"  (0.2ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-109"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-109"], ["status", 0], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t6f0c31533d3333eb915a72b4fe22d153 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "48c9ca66-41ab-49f4-a20f-af4ee6c104f2"], ["descendant_id", "48c9ca66-41ab-49f4-a20f-af4ee6c104f2"], ["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  TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "48c9ca66-41ab-49f4-a20f-af4ee6c104f2"], ["LIMIT", 1]] 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", "48c9ca66-41ab-49f4-a20f-af4ee6c104f2"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t1f211a28754d4273364d355ca74c3944  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM "push_type_nodes"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------ PushType::UnexposableTest::.exposed: test_0002_should omit any unexposed nodes ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE ("push_type_nodes"."type" != 'TestPage')  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-110"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-110"], ["status", 0], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t77d221625cf1e9e39507c4a2d0cfa1db SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "fdf3f74b-6986-462e-9046-edfbadb636c6"], ["descendant_id", "fdf3f74b-6986-462e-9046-edfbadb636c6"], ["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  TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "fdf3f74b-6986-462e-9046-edfbadb636c6"], ["LIMIT", 1]] 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", "fdf3f74b-6986-462e-9046-edfbadb636c6"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t2527073f0def30ce034b3c9776838562  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE ("push_type_nodes"."type" != 'TestPage')  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------------------------- PushType::MenuBuilder::MenuItemTest::#validate!::without all attributes: test_0001_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.1ms) ROLLBACK  (0.0ms) BEGIN --------------------------------------------------------------- PushType::PresenterTest::with view context: 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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-111"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-111"], ["status", 0], ["created_at", 2016-10-16 14:40:54 UTC], ["updated_at", 2016-10-16 14:40:54 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t43b96dd4e3ada838a448bcf1e59b6472 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "ccbdaa9f-e420-4889-b028-898d1ca92812"], ["descendant_id", "ccbdaa9f-e420-4889-b028-898d1ca92812"], ["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 $2 [["id", "ccbdaa9f-e420-4889-b028-898d1ca92812"], ["LIMIT", 1]] 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", "ccbdaa9f-e420-4889-b028-898d1ca92812"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t545a79f75d9b9a66848eda6a5529072a  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- PushType::StructureGeneratorTest: 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 ----------------------------------------------------- PushType::StructureGeneratorTest: 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.1ms) BEGIN ----------------------------------------------------- PushType::StructureGeneratorTest: test_0003_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.0ms) BEGIN ------------------------------------------------------------------------------------ PushType::TagListFieldTest::initialized on node::#with_any_tags: test_0001_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.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-112"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-112"], ["field_store", "{\"tags\":[\"foo\",\"bar\",\"foo\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS te9e51ade06cf62d933407525e8f58732 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "54d06cac-a047-4321-82ee-2f7ba30fb8bf"], ["descendant_id", "54d06cac-a047-4321-82ee-2f7ba30fb8bf"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "54d06cac-a047-4321-82ee-2f7ba30fb8bf"], ["LIMIT", 1]] 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", "54d06cac-a047-4321-82ee-2f7ba30fb8bf"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t1c372e468aab614bb7a81a8e15bcb23a  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-113"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-113"], ["field_store", "{\"tags\":[\"baz\",\"bar\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS teb28c354114be861498b481d0f9b19d0 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "a6576773-5454-4b68-a8f5-8c722f7a7ead"], ["descendant_id", "a6576773-5454-4b68-a8f5-8c722f7a7ead"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "a6576773-5454-4b68-a8f5-8c722f7a7ead"], ["LIMIT", 1]] 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", "a6576773-5454-4b68-a8f5-8c722f7a7ead"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t297ad53ceb9644b1079e71b627ae61c8  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-114"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-114"], ["field_store", "{\"tags\":[\"qux\"]}"], ["status", 1], ["published_at", 2016-10-16 14:40:55 UTC], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t0c96907d5b42ace700a45a5052eaec3d SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "61efffc8-780d-4a95-9356-62a38cc2f6c6"], ["descendant_id", "61efffc8-780d-4a95-9356-62a38cc2f6c6"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "61efffc8-780d-4a95-9356-62a38cc2f6c6"], ["LIMIT", 1]] 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", "61efffc8-780d-4a95-9356-62a38cc2f6c6"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t5e6760cd9ca7a7690381f16fb9b6768f  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-115"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-115"], ["field_store", "{\"tags\":[\"foo\",\"bar\",\"qux\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t87118780d0cfaede306acaccefde6bcc SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "d2b71b2d-050f-4e0e-8618-18a802b1d924"], ["descendant_id", "d2b71b2d-050f-4e0e-8618-18a802b1d924"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "d2b71b2d-050f-4e0e-8618-18a802b1d924"], ["LIMIT", 1]] 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", "d2b71b2d-050f-4e0e-8618-18a802b1d924"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t04ae70398653de4ecc0cfbaacb4af95f  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-116"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-116"], ["status", 1], ["published_at", 2016-10-16 14:40:55 UTC], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS td81c6cb2d4be598dba8d33c6792ec8a9 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "ebd0266e-f52a-4456-9fa0-42ee5b2d1414"], ["descendant_id", "ebd0266e-f52a-4456-9fa0-42ee5b2d1414"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "ebd0266e-f52a-4456-9fa0-42ee5b2d1414"], ["LIMIT", 1]] 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", "ebd0266e-f52a-4456-9fa0-42ee5b2d1414"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t001f8cec8d35ed42b98e0069836c5bfb  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------ PushType::TagListFieldTest::initialized on node::#with_any_tags: 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.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-117"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-117"], ["field_store", "{\"tags\":[\"foo\",\"bar\",\"foo\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t7e1ee8e3deffcfd2d926cc20b4608085 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "d668cde8-1fc9-4cde-958a-3d7efc36127b"], ["descendant_id", "d668cde8-1fc9-4cde-958a-3d7efc36127b"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "d668cde8-1fc9-4cde-958a-3d7efc36127b"], ["LIMIT", 1]] 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", "d668cde8-1fc9-4cde-958a-3d7efc36127b"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tfa96309964145c8283b7d14f9d14386b  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-118"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-118"], ["field_store", "{\"tags\":[\"baz\",\"bar\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t0edf3f9433063a4b5297535a9e752c6a SQL (0.4ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "81082441-b8b6-4813-93eb-132ab363ecd3"], ["descendant_id", "81082441-b8b6-4813-93eb-132ab363ecd3"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "81082441-b8b6-4813-93eb-132ab363ecd3"], ["LIMIT", 1]] 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", "81082441-b8b6-4813-93eb-132ab363ecd3"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tbd31f3129065df1a8cfdb0cfd8c58569  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-119"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-119"], ["field_store", "{\"tags\":[\"qux\"]}"], ["status", 1], ["published_at", 2016-10-16 14:40:55 UTC], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t6541f4773f534e9cbf7779be16613cc5 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "4691a5cb-1977-46c1-bfc3-34c83459776c"], ["descendant_id", "4691a5cb-1977-46c1-bfc3-34c83459776c"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "4691a5cb-1977-46c1-bfc3-34c83459776c"], ["LIMIT", 1]] 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", "4691a5cb-1977-46c1-bfc3-34c83459776c"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t1ab11efc95d91a242ecc48f3f92acce1  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-120"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-120"], ["field_store", "{\"tags\":[\"foo\",\"bar\",\"qux\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t449b3ef1541a7927105caf5ff0b5bade SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "dd0f08fe-b649-4d85-a4a2-9ee9dcdab46e"], ["descendant_id", "dd0f08fe-b649-4d85-a4a2-9ee9dcdab46e"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "dd0f08fe-b649-4d85-a4a2-9ee9dcdab46e"], ["LIMIT", 1]] 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", "dd0f08fe-b649-4d85-a4a2-9ee9dcdab46e"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t048788868ca70f6275e7cbbe51d57799  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-121"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-121"], ["status", 1], ["published_at", 2016-10-16 14:40:55 UTC], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t4a8561feec659891c9e9a611faeb5ebb SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "fc281448-7aef-419a-a6ba-6ecc22fc9525"], ["descendant_id", "fc281448-7aef-419a-a6ba-6ecc22fc9525"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "fc281448-7aef-419a-a6ba-6ecc22fc9525"], ["LIMIT", 1]] 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", "fc281448-7aef-419a-a6ba-6ecc22fc9525"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS td254fae1551f14c8991a4e58ac2fbb07  (0.1ms) RELEASE SAVEPOINT active_record_2 PushType::TagListFieldTest::TestPage Load (0.7ms) SELECT "t".* FROM (SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND (field_store->'tags' ?| ARRAY['foo','foo','bar','qux'])) t , LATERAL (SELECT COUNT(DISTINCT e) AS ct FROM jsonb_array_elements_text(t.field_store->'tags') e WHERE e = ANY(ARRAY['foo', 'foo', 'bar', 'qux'])) ct ORDER BY "ct"."ct" DESC  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------ PushType::TagListFieldTest::initialized on node::#with_any_tags: 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 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-122"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-122"], ["field_store", "{\"tags\":[\"foo\",\"bar\",\"foo\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t787231c25160f9c42f2b583483040b2c SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "c838237e-eb72-4378-b9ae-c4666b5b097d"], ["descendant_id", "c838237e-eb72-4378-b9ae-c4666b5b097d"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "c838237e-eb72-4378-b9ae-c4666b5b097d"], ["LIMIT", 1]] 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", "c838237e-eb72-4378-b9ae-c4666b5b097d"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t98e8530230f85e0caa6882d41d6e25bf  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-123"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-123"], ["field_store", "{\"tags\":[\"baz\",\"bar\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t57482de3b21c128084c00454ce53c741 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "013a6722-66bf-473a-af96-302de44c85ee"], ["descendant_id", "013a6722-66bf-473a-af96-302de44c85ee"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "013a6722-66bf-473a-af96-302de44c85ee"], ["LIMIT", 1]] 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", "013a6722-66bf-473a-af96-302de44c85ee"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t364d9d727f8ab1b9052dd3e9257c0678  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-124"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-124"], ["field_store", "{\"tags\":[\"qux\"]}"], ["status", 1], ["published_at", 2016-10-16 14:40:55 UTC], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tc4aded3d14d01c7fef3ce30c9b8772d2 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "aebccb37-6a4f-4eed-9c40-44074d9a2e4e"], ["descendant_id", "aebccb37-6a4f-4eed-9c40-44074d9a2e4e"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "aebccb37-6a4f-4eed-9c40-44074d9a2e4e"], ["LIMIT", 1]] 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", "aebccb37-6a4f-4eed-9c40-44074d9a2e4e"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t3635e55c99b6d5b5ebd9f1a031de480d  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-125"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-125"], ["field_store", "{\"tags\":[\"foo\",\"bar\",\"qux\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t8d15cd5f3049948adec1c747b8e91fbc SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "3de68e9b-ce12-42aa-8788-61ad5c8eecd5"], ["descendant_id", "3de68e9b-ce12-42aa-8788-61ad5c8eecd5"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "3de68e9b-ce12-42aa-8788-61ad5c8eecd5"], ["LIMIT", 1]] 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", "3de68e9b-ce12-42aa-8788-61ad5c8eecd5"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t881da399a3201b2e472e63e946a7f551  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-126"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-126"], ["status", 1], ["published_at", 2016-10-16 14:40:55 UTC], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS ta6b61b90335f30e07d3bb09580ac3461 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "a5b4b4e9-5b76-440e-82d5-36170b7ae205"], ["descendant_id", "a5b4b4e9-5b76-440e-82d5-36170b7ae205"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "a5b4b4e9-5b76-440e-82d5-36170b7ae205"], ["LIMIT", 1]] 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", "a5b4b4e9-5b76-440e-82d5-36170b7ae205"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t9b09903d108fc868e5b10030ccdee5e4  (0.1ms) RELEASE SAVEPOINT active_record_2 PushType::TagListFieldTest::TestPage Load (0.3ms) SELECT "t".* FROM (SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."deleted_at" IS NULL AND (push_type_nodes.status = 1 AND push_type_nodes.published_at <= '2016-10-16 14:40:55.128450') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2016-10-16 14:40:55.128570') AND (field_store->'tags' ?| ARRAY['foo','foo','bar','qux'])) t , LATERAL (SELECT COUNT(DISTINCT e) AS ct FROM jsonb_array_elements_text(t.field_store->'tags') e WHERE e = ANY(ARRAY['foo', 'foo', 'bar', 'qux'])) ct ORDER BY "ct"."ct" DESC  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------ PushType::TagListFieldTest::initialized on node::#with_any_tags: test_0003_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.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-127"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-127"], ["field_store", "{\"tags\":[\"foo\",\"bar\",\"foo\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t467e9723d34d1ea3da2e09147aecdf8e SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "2f14c5d5-2b45-4c16-ad7d-8b3f217893e1"], ["descendant_id", "2f14c5d5-2b45-4c16-ad7d-8b3f217893e1"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "2f14c5d5-2b45-4c16-ad7d-8b3f217893e1"], ["LIMIT", 1]] PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "2f14c5d5-2b45-4c16-ad7d-8b3f217893e1"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t1d1e6f1d39ac61d05bbc45cfa6e3c023  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-128"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-128"], ["field_store", "{\"tags\":[\"baz\",\"bar\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tb1ed015bbdc2abe257a0cf68f8581cca SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "5e636856-84f2-45ca-b374-511a13c84168"], ["descendant_id", "5e636856-84f2-45ca-b374-511a13c84168"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "5e636856-84f2-45ca-b374-511a13c84168"], ["LIMIT", 1]] 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", "5e636856-84f2-45ca-b374-511a13c84168"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t23066ed57293df49cb486ccc6c1f58c8  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-129"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-129"], ["field_store", "{\"tags\":[\"qux\"]}"], ["status", 1], ["published_at", 2016-10-16 14:40:55 UTC], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t06d157fc24e9daeadd38ed67f3785a2b SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "0de17f58-5269-4727-a160-9ac7d557a767"], ["descendant_id", "0de17f58-5269-4727-a160-9ac7d557a767"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "0de17f58-5269-4727-a160-9ac7d557a767"], ["LIMIT", 1]] 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", "0de17f58-5269-4727-a160-9ac7d557a767"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t8723fa3dc715e7af464f55dc268982a1  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-130"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-130"], ["field_store", "{\"tags\":[\"foo\",\"bar\",\"qux\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t2203a9caeec1a98348a370d186f7fe1a SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "39e2cbcf-467e-4a5e-867b-5e218353e44a"], ["descendant_id", "39e2cbcf-467e-4a5e-867b-5e218353e44a"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "39e2cbcf-467e-4a5e-867b-5e218353e44a"], ["LIMIT", 1]] PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "39e2cbcf-467e-4a5e-867b-5e218353e44a"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t6d2113b1b1ef6fb224d242cd1b41e936  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-131"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-131"], ["status", 1], ["published_at", 2016-10-16 14:40:55 UTC], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t58ebcc86d37101d11fc90b88eedaf913 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "399e52f5-c203-479e-9891-afc3f1e93921"], ["descendant_id", "399e52f5-c203-479e-9891-afc3f1e93921"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "399e52f5-c203-479e-9891-afc3f1e93921"], ["LIMIT", 1]] 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", "399e52f5-c203-479e-9891-afc3f1e93921"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t6ebeb29753f6e1ebeb622715b7237aa5  (0.1ms) RELEASE SAVEPOINT active_record_2 PushType::TagListFieldTest::TestPage Load (0.4ms) SELECT "t".* FROM (SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND (field_store->'tags' ?| ARRAY['foo','foo','bar','qux'])) t , LATERAL (SELECT COUNT(DISTINCT e) AS ct FROM jsonb_array_elements_text(t.field_store->'tags') e WHERE e = ANY(ARRAY['foo', 'foo', 'bar', 'qux'])) ct ORDER BY "ct"."ct" DESC  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------ PushType::TagListFieldTest::initialized on node::#with_any_tags: test_0004_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-132"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-132"], ["field_store", "{\"tags\":[\"foo\",\"bar\",\"foo\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t18bce2c73189f1a9ec35fd82f6b6f456 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "0f289a52-307e-48b5-826e-ee2731926d4c"], ["descendant_id", "0f289a52-307e-48b5-826e-ee2731926d4c"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "0f289a52-307e-48b5-826e-ee2731926d4c"], ["LIMIT", 1]] 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", "0f289a52-307e-48b5-826e-ee2731926d4c"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t271d5ee1f2a5216a33db6535f846a6c3  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-133"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-133"], ["field_store", "{\"tags\":[\"baz\",\"bar\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t5d3e408a23e38f762a1a0fc61cad067b SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "836ee37b-bed2-498c-9f80-e28f638bdc4f"], ["descendant_id", "836ee37b-bed2-498c-9f80-e28f638bdc4f"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "836ee37b-bed2-498c-9f80-e28f638bdc4f"], ["LIMIT", 1]] 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", "836ee37b-bed2-498c-9f80-e28f638bdc4f"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t21d34b12a3826d00569430ba57163dff  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-134"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-134"], ["field_store", "{\"tags\":[\"qux\"]}"], ["status", 1], ["published_at", 2016-10-16 14:40:55 UTC], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t560a1370c33f8f3d74f8373a505dac24 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "b52b7796-fbfd-40c0-b0b8-f9a9ef2f6402"], ["descendant_id", "b52b7796-fbfd-40c0-b0b8-f9a9ef2f6402"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "b52b7796-fbfd-40c0-b0b8-f9a9ef2f6402"], ["LIMIT", 1]] 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", "b52b7796-fbfd-40c0-b0b8-f9a9ef2f6402"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS ta86a3a06807f66d5c9f42a2205cea233  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-135"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-135"], ["field_store", "{\"tags\":[\"foo\",\"bar\",\"qux\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tb08e43e6c5f26d25fa231c42cf1648fa SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "811a0ec8-e4b9-45c4-b0d9-ed51470e6ee6"], ["descendant_id", "811a0ec8-e4b9-45c4-b0d9-ed51470e6ee6"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "811a0ec8-e4b9-45c4-b0d9-ed51470e6ee6"], ["LIMIT", 1]] 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", "811a0ec8-e4b9-45c4-b0d9-ed51470e6ee6"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t311b9bdde520a3f39dde869acb90111a  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-136"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-136"], ["status", 1], ["published_at", 2016-10-16 14:40:55 UTC], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t8db4c189cf87eaa246528320ab0d525b SQL (0.3ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "a020801e-b08a-4bba-8cf8-fe50050b40ed"], ["descendant_id", "a020801e-b08a-4bba-8cf8-fe50050b40ed"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "a020801e-b08a-4bba-8cf8-fe50050b40ed"], ["LIMIT", 1]] 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", "a020801e-b08a-4bba-8cf8-fe50050b40ed"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t7c11a9380aa5a1e53068fcaef3970c60  (0.1ms) RELEASE SAVEPOINT active_record_2 PushType::TagListFieldTest::TestPage Load (0.4ms) SELECT "t".* FROM (SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND (field_store->'tags' ?| ARRAY['foo','foo','bar','qux'])) t , LATERAL (SELECT COUNT(DISTINCT e) AS ct FROM jsonb_array_elements_text(t.field_store->'tags') e WHERE e = ANY(ARRAY['foo', 'foo', 'bar', 'qux'])) ct ORDER BY "ct"."ct" DESC  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN --------------------------------------------------------- PushType::PrimitivesTest::StringType: test_0001_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.1ms) ROLLBACK  (0.0ms) BEGIN ------------------------------------------------------------------------------ FrontEndControllerTest::GET #show::when node is published: 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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-137"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-137"], ["status", 1], ["published_at", 2016-10-16 14:40:55 UTC], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t401ca0250da8f7ee38308a1301a8fd56 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "e5ff6a58-f021-41e4-932a-d8c32c654c31"], ["descendant_id", "e5ff6a58-f021-41e4-932a-d8c32c654c31"], ["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 $2 [["id", "e5ff6a58-f021-41e4-932a-d8c32c654c31"], ["LIMIT", 1]] 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", "e5ff6a58-f021-41e4-932a-d8c32c654c31"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t2a58c638f4603abc3a7c42d074573bb8  (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", "e5ff6a58-f021-41e4-932a-d8c32c654c31"]] Processing by FrontEndController#show as HTML Parameters: {"permalink"=>"foo-bar-137"} PushType::Node Load (0.4ms) 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 <= '2016-10-16 14:40:55.257708') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2016-10-16 14:40:55.257886') AND "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL ORDER BY "push_type_nodes"."id" ASC LIMIT $2 [["slug", "foo-bar-137"], ["LIMIT", 1]] Rendering nodes/page.html.erb within layouts/application Rendered nodes/page.html.erb within layouts/application (0.1ms) Completed 200 OK in 25ms (Views: 0.9ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------ FrontEndControllerTest::GET #show::when node is published: test_0002_anonymous ------------------------------------------------------------------------------  (0.0ms) 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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-138"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-138"], ["status", 1], ["published_at", 2016-10-16 14:40:55 UTC], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t8b3daa7a75a76a842f62d27f2acc18af SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "92bbcd32-9582-4193-a532-a36fd562fd34"], ["descendant_id", "92bbcd32-9582-4193-a532-a36fd562fd34"], ["generations", 0]]  (0.4ms) 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 $2 [["id", "92bbcd32-9582-4193-a532-a36fd562fd34"], ["LIMIT", 1]] 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", "92bbcd32-9582-4193-a532-a36fd562fd34"]]  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t7d6a0946f7d223981ad2be241face552  (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", "92bbcd32-9582-4193-a532-a36fd562fd34"]] Processing by FrontEndController#show as HTML Parameters: {"permalink"=>"foo-bar-138"} PushType::Node Load (0.4ms) 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 <= '2016-10-16 14:40:55.288902') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2016-10-16 14:40:55.289043') AND "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL ORDER BY "push_type_nodes"."id" ASC LIMIT $2 [["slug", "foo-bar-138"], ["LIMIT", 1]] Rendering nodes/page.html.erb within layouts/application Rendered nodes/page.html.erb within layouts/application (0.1ms) Completed 200 OK in 19ms (Views: 0.8ms | ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------ FrontEndControllerTest::GET #show::when node is published: test_0004_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-139"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-139"], ["status", 1], ["published_at", 2016-10-16 14:40:55 UTC], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t93065ce4866a427097f54c82512881e9 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "6c79a374-7e92-4258-b5cd-af00390aa8af"], ["descendant_id", "6c79a374-7e92-4258-b5cd-af00390aa8af"], ["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 $2 [["id", "6c79a374-7e92-4258-b5cd-af00390aa8af"], ["LIMIT", 1]] 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", "6c79a374-7e92-4258-b5cd-af00390aa8af"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t8f5b4940d5be5acd218026b1269323f1  (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", "6c79a374-7e92-4258-b5cd-af00390aa8af"]] Processing by FrontEndController#show as HTML Parameters: {"permalink"=>"foo-bar-139"} PushType::Node Load (0.4ms) 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 <= '2016-10-16 14:40:55.321522') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2016-10-16 14:40:55.321826') AND "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL ORDER BY "push_type_nodes"."id" ASC LIMIT $2 [["slug", "foo-bar-139"], ["LIMIT", 1]] Rendering nodes/page.html.erb within layouts/application Rendered nodes/page.html.erb within layouts/application (0.1ms) Completed 200 OK in 21ms (Views: 0.9ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------ FrontEndControllerTest::GET #show::when node is published: 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 PushType::Node Exists (0.4ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-140"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-140"], ["status", 1], ["published_at", 2016-10-16 14:40:55 UTC], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t9247a817525d5a0098ae64a181c558cf SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "f37f1a6d-84cc-4702-9da8-721c04f37fc9"], ["descendant_id", "f37f1a6d-84cc-4702-9da8-721c04f37fc9"], ["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.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "f37f1a6d-84cc-4702-9da8-721c04f37fc9"], ["LIMIT", 1]] PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "f37f1a6d-84cc-4702-9da8-721c04f37fc9"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t022d7b595bdf31b198dee6c640981eb7  (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", "f37f1a6d-84cc-4702-9da8-721c04f37fc9"]] Processing by FrontEndController#show as HTML Parameters: {"permalink"=>"foo-bar-140"} PushType::Node Load (0.4ms) 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 <= '2016-10-16 14:40:55.356712') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2016-10-16 14:40:55.356865') AND "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL ORDER BY "push_type_nodes"."id" ASC LIMIT $2 [["slug", "foo-bar-140"], ["LIMIT", 1]] Rendering nodes/page.html.erb within layouts/application Rendered nodes/page.html.erb within layouts/application (0.1ms) Completed 200 OK in 19ms (Views: 0.8ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------- PushType::TrashableTest::#trashed?::when not trash: test_0001_anonymous -----------------------------------------------------------------------  (0.2ms) 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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-141"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-141"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t07a70454a0290aa8d126833dd6b094eb SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "5359b455-29a4-4741-a503-149ce7e99d24"], ["descendant_id", "5359b455-29a4-4741-a503-149ce7e99d24"], ["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 $2 [["id", "5359b455-29a4-4741-a503-149ce7e99d24"], ["LIMIT", 1]] PushType::Node Load (0.4ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "5359b455-29a4-4741-a503-149ce7e99d24"]]  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS te81a0148c07977d8eed23023736580de  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN ----------------------------------------------------------------------------------------------- PushType::PublishableTest::.published::with published_to 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 <= '2016-10-16 14:40:55.372873') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2016-10-16 14:40:55.372990')  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-142"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "published_at", "published_to", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-142"], ["status", 1], ["published_at", 2016-10-14 14:40:55 UTC], ["published_to", 2016-10-15 14:40:55 UTC], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t133b1c0e0d5b0d91d2fc3ed7ddce8dc4 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "8ccfa663-f646-4ddc-a8ce-47e04a7c475d"], ["descendant_id", "8ccfa663-f646-4ddc-a8ce-47e04a7c475d"], ["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 $2 [["id", "8ccfa663-f646-4ddc-a8ce-47e04a7c475d"], ["LIMIT", 1]] 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", "8ccfa663-f646-4ddc-a8ce-47e04a7c475d"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t0bb7123770d40a7e4ccb54a2891372e8  (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 <= '2016-10-16 14:40:55.372873') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2016-10-16 14:40:55.372990')  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------------------------------------------- PushType::PushTypeTest::.subclasses_from_list::scoped by :node::searching for array with nonexisting types: test_0001_anonymous -------------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) 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::AssetTest::#media::with a non existing style: test_0001_anonymous ---------------------------------------------------------------------------  (0.1ms) 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.3ms) INSERT INTO "push_type_assets" ("file_uid", "file_name", "file_size", "file_ext", "mime_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_uid", "25"], ["file_name", "image.png"], ["file_size", 2643], ["file_ext", "png"], ["mime_type", "image/png"], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------- PushType::AssetTest::#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" ("file_uid", "file_name", "file_size", "file_ext", "mime_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_uid", "26"], ["file_name", "document.pdf"], ["file_size", 15356], ["file_ext", "pdf"], ["mime_type", "application/pdf"], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------- PushType::AssetTest::#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.1ms) INSERT INTO "push_type_assets" ("file_uid", "file_name", "file_size", "file_ext", "mime_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_uid", "27"], ["file_name", "image.png"], ["file_size", 2643], ["file_ext", "png"], ["mime_type", "image/png"], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN ------------------------------------------------------------------ PushType::PresenterTest::without view context: test_0003_anonymous ------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) 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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-143"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-143"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t2626dd5b75384352dd7ebef889ac646d SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "6d234bb4-4290-418e-b774-32c6bfa57d3f"], ["descendant_id", "6d234bb4-4290-418e-b774-32c6bfa57d3f"], ["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.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "6d234bb4-4290-418e-b774-32c6bfa57d3f"], ["LIMIT", 1]] 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", "6d234bb4-4290-418e-b774-32c6bfa57d3f"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t1e3cb268917dae6675a7701e9925ec07  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------ PushType::PresenterTest::without view context: test_0004_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-144"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-144"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t9c54b634920a20945e8c5d626e24781c SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "c9503051-3d35-497d-adca-df8b468444f8"], ["descendant_id", "c9503051-3d35-497d-adca-df8b468444f8"], ["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 $2 [["id", "c9503051-3d35-497d-adca-df8b468444f8"], ["LIMIT", 1]] 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", "c9503051-3d35-497d-adca-df8b468444f8"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t2c4d362a72d6811be468457d7e657670  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------ PushType::PresenterTest::without view context: test_0001_anonymous ------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) 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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-145"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-145"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t248a88f2f47e4ac6d820f15331ea8180 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "5b2a30c3-6f8a-416e-badf-7dfa09fed96a"], ["descendant_id", "5b2a30c3-6f8a-416e-badf-7dfa09fed96a"], ["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 $2 [["id", "5b2a30c3-6f8a-416e-badf-7dfa09fed96a"], ["LIMIT", 1]] 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", "5b2a30c3-6f8a-416e-badf-7dfa09fed96a"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tdcfa1bf133419d47816c5e82793f3320  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------ PushType::PresenterTest::without view context: 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.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-146"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-146"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS ta26df86799a7965f3cc96100771eef1d SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "03b91bab-9c7e-426e-921b-2102998ba6bf"], ["descendant_id", "03b91bab-9c7e-426e-921b-2102998ba6bf"], ["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 $2 [["id", "03b91bab-9c7e-426e-921b-2102998ba6bf"], ["LIMIT", 1]] 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", "03b91bab-9c7e-426e-921b-2102998ba6bf"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t43fa25a2bddf97995fa67f6f26985844  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------ PushType::PresenterTest::without view context: test_0005_anonymous ------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) 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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-147"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-147"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t2ca48118656b6fc019c2a5fcdd4d0d19 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "040e11d8-b307-4d1d-a9ff-27c8478cf8d0"], ["descendant_id", "040e11d8-b307-4d1d-a9ff-27c8478cf8d0"], ["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.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "040e11d8-b307-4d1d-a9ff-27c8478cf8d0"], ["LIMIT", 1]] 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", "040e11d8-b307-4d1d-a9ff-27c8478cf8d0"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tb7f4d49035892acac5c975daa5cf542f  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- PushType::BooleanFieldTest: 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 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-148"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::BooleanFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-148"], ["field_store", "{\"foo\":true}"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t1f3b85d95136d49413053017a4f49e46 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "3ea99e05-7b29-4787-b5e8-d69fffc7c3cc"], ["descendant_id", "3ea99e05-7b29-4787-b5e8-d69fffc7c3cc"], ["generations", 0]]  (0.4ms) 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::BooleanFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::BooleanFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "3ea99e05-7b29-4787-b5e8-d69fffc7c3cc"], ["LIMIT", 1]] 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", "3ea99e05-7b29-4787-b5e8-d69fffc7c3cc"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tc14e8689748c9ed394d060433fb39103  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- PushType::BooleanFieldTest: test_0002_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-149"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::BooleanFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-149"], ["field_store", "{\"foo\":true}"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t8f873908970e096f9a617a78927c5ab3 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "720060ea-d146-4fdf-9251-2763e4bd2f08"], ["descendant_id", "720060ea-d146-4fdf-9251-2763e4bd2f08"], ["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::BooleanFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::BooleanFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "720060ea-d146-4fdf-9251-2763e4bd2f08"], ["LIMIT", 1]] 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", "720060ea-d146-4fdf-9251-2763e4bd2f08"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS ta1bfff68668cedc9d65dba31a777d39e  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- PushType::BooleanFieldTest: test_0003_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.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-150"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::BooleanFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-150"], ["field_store", "{\"foo\":true}"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tfe5633e92b6012caa5194e93ac7466f1 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "9cb55258-d82e-4742-855c-8e746460bbd7"], ["descendant_id", "9cb55258-d82e-4742-855c-8e746460bbd7"], ["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::BooleanFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::BooleanFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "9cb55258-d82e-4742-855c-8e746460bbd7"], ["LIMIT", 1]] 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", "9cb55258-d82e-4742-855c-8e746460bbd7"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS ta7454113c8183f771fe30eb0ffd0f9cd  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- PushType::BooleanFieldTest: 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 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-151"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::BooleanFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-151"], ["field_store", "{\"foo\":true}"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t6fb3f09c0d8f3902355d9d15cd0e9843 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "b806672c-5df0-4f66-82bc-aca53e630dce"], ["descendant_id", "b806672c-5df0-4f66-82bc-aca53e630dce"], ["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::BooleanFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::BooleanFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "b806672c-5df0-4f66-82bc-aca53e630dce"], ["LIMIT", 1]] 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", "b806672c-5df0-4f66-82bc-aca53e630dce"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t46a02c4dfbd9a44c98426dba140dae2b  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- PushType::BooleanFieldTest: test_0005_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-152"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::BooleanFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-152"], ["field_store", "{\"foo\":true}"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tff9f78bc7e284ca7fc5bcdfd3d08f715 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "67e5296c-bacd-47aa-9e89-98aa90aa5004"], ["descendant_id", "67e5296c-bacd-47aa-9e89-98aa90aa5004"], ["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::BooleanFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::BooleanFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "67e5296c-bacd-47aa-9e89-98aa90aa5004"], ["LIMIT", 1]] 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", "67e5296c-bacd-47aa-9e89-98aa90aa5004"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t4eee22d022f0eb883b77d716d5843984  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN ------------------------------------------------------------------------------- PushType::TagListFieldTest::initialized on node::#all_tags: 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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-153"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-153"], ["field_store", "{\"tags\":[\"foo\",\"bar\",\"foo\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t4e92ca95a052449a20759ff9d507cb6d SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "f19b2d7e-4575-471e-aa9a-c647f597a5a7"], ["descendant_id", "f19b2d7e-4575-471e-aa9a-c647f597a5a7"], ["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::TagListFieldTest::TestPage Load (0.5ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "f19b2d7e-4575-471e-aa9a-c647f597a5a7"], ["LIMIT", 1]] PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "f19b2d7e-4575-471e-aa9a-c647f597a5a7"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t969e75a681a6418bfe73fa58fff19213  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-154"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-154"], ["field_store", "{\"tags\":[\"baz\",\"bar\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tef10bb75a22168fa6a9d29ae0152f582 SQL (0.4ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "8bf014cb-f07a-4d0d-bee2-f354d2ee848b"], ["descendant_id", "8bf014cb-f07a-4d0d-bee2-f354d2ee848b"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "8bf014cb-f07a-4d0d-bee2-f354d2ee848b"], ["LIMIT", 1]] 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", "8bf014cb-f07a-4d0d-bee2-f354d2ee848b"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t1c6f7c8a7d2c648d3131ef41a89bb5a3  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-155"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-155"], ["field_store", "{\"tags\":[\"qux\"]}"], ["status", 1], ["published_at", 2016-10-16 14:40:55 UTC], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tbcf3f21b26b583e72f25c72ab4c9db3c SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "3012d48a-9392-4b47-9b0e-1348ae0137c3"], ["descendant_id", "3012d48a-9392-4b47-9b0e-1348ae0137c3"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "3012d48a-9392-4b47-9b0e-1348ae0137c3"], ["LIMIT", 1]] 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", "3012d48a-9392-4b47-9b0e-1348ae0137c3"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS ta6b82ac361645887520ce78ab605ef71  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-156"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-156"], ["field_store", "{\"tags\":[\"foo\",\"bar\",\"qux\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tf8e139e9e5dde0fdb1a884b996cb4992 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "59172a31-b138-4a0d-a7b7-120672ba514f"], ["descendant_id", "59172a31-b138-4a0d-a7b7-120672ba514f"], ["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::TagListFieldTest::TestPage Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "59172a31-b138-4a0d-a7b7-120672ba514f"], ["LIMIT", 1]] PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "59172a31-b138-4a0d-a7b7-120672ba514f"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t15f3830f7ed5ef73d1ec41a34a0697ec  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-157"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-157"], ["status", 1], ["published_at", 2016-10-16 14:40:55 UTC], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tff35e43339fcd5574f2580f2d2ffedd1 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "92b792ca-c8b9-4655-98fa-0db78b7552e7"], ["descendant_id", "92b792ca-c8b9-4655-98fa-0db78b7552e7"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "92b792ca-c8b9-4655-98fa-0db78b7552e7"], ["LIMIT", 1]] 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", "92b792ca-c8b9-4655-98fa-0db78b7552e7"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t28ab56e4254e0d4bdab145623ef1c32e  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------- PushType::TagListFieldTest::initialized on node::#all_tags: 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 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-158"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-158"], ["field_store", "{\"tags\":[\"foo\",\"bar\",\"foo\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t839774b1618f648e9bdb7860fb5db6c4 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "34f720cf-928b-4151-8abc-21eedcbbf354"], ["descendant_id", "34f720cf-928b-4151-8abc-21eedcbbf354"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "34f720cf-928b-4151-8abc-21eedcbbf354"], ["LIMIT", 1]] PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "34f720cf-928b-4151-8abc-21eedcbbf354"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t1a13d48b83fd9b8b4248e5d18c78a619  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-159"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-159"], ["field_store", "{\"tags\":[\"baz\",\"bar\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t517ad52e17a79337f4048e9a72cd55de SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "c101b662-0997-4c0e-a634-f78dd4fdff90"], ["descendant_id", "c101b662-0997-4c0e-a634-f78dd4fdff90"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "c101b662-0997-4c0e-a634-f78dd4fdff90"], ["LIMIT", 1]] 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", "c101b662-0997-4c0e-a634-f78dd4fdff90"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS taa5cefcf4b569dede08ea930132de8d3  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-160"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-160"], ["field_store", "{\"tags\":[\"qux\"]}"], ["status", 1], ["published_at", 2016-10-16 14:40:55 UTC], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t168cccc031cddecd5c6eeadae41c5105 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "0674c4a2-9d4e-42c9-bd0e-09727c9ebd8b"], ["descendant_id", "0674c4a2-9d4e-42c9-bd0e-09727c9ebd8b"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "0674c4a2-9d4e-42c9-bd0e-09727c9ebd8b"], ["LIMIT", 1]] PushType::Node Load (0.4ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "0674c4a2-9d4e-42c9-bd0e-09727c9ebd8b"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tc3b3637829457eb0ce5847576418c2d6  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-161"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-161"], ["field_store", "{\"tags\":[\"foo\",\"bar\",\"qux\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tf481e203351911363934e5af9bf7bfe3 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "4c6b20d9-c220-4fd7-b624-1ff1c159f6d6"], ["descendant_id", "4c6b20d9-c220-4fd7-b624-1ff1c159f6d6"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "4c6b20d9-c220-4fd7-b624-1ff1c159f6d6"], ["LIMIT", 1]] 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", "4c6b20d9-c220-4fd7-b624-1ff1c159f6d6"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t2a3af1f866963d13bd13f649fbb6038d  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-162"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-162"], ["status", 1], ["published_at", 2016-10-16 14:40:55 UTC], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t629ed998a62a0b86aab8fbb6fb7bae47 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "53e54cf6-9b53-461f-8f0d-12f438b115b8"], ["descendant_id", "53e54cf6-9b53-461f-8f0d-12f438b115b8"], ["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::TagListFieldTest::TestPage Load (0.4ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "53e54cf6-9b53-461f-8f0d-12f438b115b8"], ["LIMIT", 1]] PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "53e54cf6-9b53-461f-8f0d-12f438b115b8"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t3d6be2e3787aceb2fedd3446ce55546e  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.3ms) SELECT DISTINCT jsonb_array_elements_text(field_store->'tags') t FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."deleted_at" IS NULL AND (push_type_nodes.status = 1 AND push_type_nodes.published_at <= '2016-10-16 14:40:55.607911') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2016-10-16 14:40:55.608025') ORDER BY t  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------- PushType::TagListFieldTest::initialized on node::#all_tags: 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 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-163"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-163"], ["field_store", "{\"tags\":[\"foo\",\"bar\",\"foo\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tee4395398eee75a611ec27ae4e0c3ec4 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "2ec257a9-9100-4cfb-82c9-8ee601fb3f06"], ["descendant_id", "2ec257a9-9100-4cfb-82c9-8ee601fb3f06"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "2ec257a9-9100-4cfb-82c9-8ee601fb3f06"], ["LIMIT", 1]] PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "2ec257a9-9100-4cfb-82c9-8ee601fb3f06"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t879d0e87e69d0658a6dd03dfa09a5cc1  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-164"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-164"], ["field_store", "{\"tags\":[\"baz\",\"bar\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t7ad30bb4a4c6d7951d75915b60e9ee56 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "9eecbb49-c74a-436a-98b6-bd21bb9ee79a"], ["descendant_id", "9eecbb49-c74a-436a-98b6-bd21bb9ee79a"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "9eecbb49-c74a-436a-98b6-bd21bb9ee79a"], ["LIMIT", 1]] 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", "9eecbb49-c74a-436a-98b6-bd21bb9ee79a"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tbe8dd89c058b7be00d39478b5bb22d74  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-165"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-165"], ["field_store", "{\"tags\":[\"qux\"]}"], ["status", 1], ["published_at", 2016-10-16 14:40:55 UTC], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t1800841bda2bc9e344dc8924d383d071 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "93718a8d-b6a2-4271-a111-98db5300ddf3"], ["descendant_id", "93718a8d-b6a2-4271-a111-98db5300ddf3"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "93718a8d-b6a2-4271-a111-98db5300ddf3"], ["LIMIT", 1]] 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", "93718a8d-b6a2-4271-a111-98db5300ddf3"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS teef25deb99ed2d7533ca8a784cf538b6  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-166"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-166"], ["field_store", "{\"tags\":[\"foo\",\"bar\",\"qux\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tc7bd5f7ed372c41d65c5dbe0f9010f70 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "40052c4b-b2d7-4643-9925-e6f25c3e6d0c"], ["descendant_id", "40052c4b-b2d7-4643-9925-e6f25c3e6d0c"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "40052c4b-b2d7-4643-9925-e6f25c3e6d0c"], ["LIMIT", 1]] 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", "40052c4b-b2d7-4643-9925-e6f25c3e6d0c"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tc4fbef3b68189c14a744c251b662a8a8  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-167"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-167"], ["status", 1], ["published_at", 2016-10-16 14:40:55 UTC], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t75b3b6e51c9fbef454732dd84a71e2a1 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "839ee43e-3d60-49fe-bacb-cb3864954ab2"], ["descendant_id", "839ee43e-3d60-49fe-bacb-cb3864954ab2"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "839ee43e-3d60-49fe-bacb-cb3864954ab2"], ["LIMIT", 1]] PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "839ee43e-3d60-49fe-bacb-cb3864954ab2"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t311d98ae2ddb271ee677f0ef417eb5e0  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SELECT DISTINCT jsonb_array_elements_text(field_store->'tags') t FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') ORDER BY t  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------- PushType::TagListFieldTest::initialized on node::#all_tags: 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 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-168"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-168"], ["field_store", "{\"tags\":[\"foo\",\"bar\",\"foo\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t02e92c251a4d70c57ebb037fbdd16033 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "71da614b-398f-4801-a385-2936427ff641"], ["descendant_id", "71da614b-398f-4801-a385-2936427ff641"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "71da614b-398f-4801-a385-2936427ff641"], ["LIMIT", 1]] 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", "71da614b-398f-4801-a385-2936427ff641"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t2ba140ae34308a4c3debf703e7b1053c  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-169"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-169"], ["field_store", "{\"tags\":[\"baz\",\"bar\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tfdb9f40fb4e2296d09f0eabead65e940 SQL (0.3ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "7f61b038-401f-4a8c-953e-cb1802ca42ff"], ["descendant_id", "7f61b038-401f-4a8c-953e-cb1802ca42ff"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "7f61b038-401f-4a8c-953e-cb1802ca42ff"], ["LIMIT", 1]] 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", "7f61b038-401f-4a8c-953e-cb1802ca42ff"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t5df7bd7dad599afc1da3d398ec45c490  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-170"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-170"], ["field_store", "{\"tags\":[\"qux\"]}"], ["status", 1], ["published_at", 2016-10-16 14:40:55 UTC], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t80bb6e053086aa64726cd72a520e3c51 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "21e03568-a24d-47f6-82a2-4fc6afed2117"], ["descendant_id", "21e03568-a24d-47f6-82a2-4fc6afed2117"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "21e03568-a24d-47f6-82a2-4fc6afed2117"], ["LIMIT", 1]] 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", "21e03568-a24d-47f6-82a2-4fc6afed2117"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t64efa6d05f002e205ebd6e553ca36721  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-171"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-171"], ["field_store", "{\"tags\":[\"foo\",\"bar\",\"qux\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t1a66e01f9eae43306fc57911534ec678 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "af7efe07-a64c-4932-8b29-f09b792f8291"], ["descendant_id", "af7efe07-a64c-4932-8b29-f09b792f8291"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "af7efe07-a64c-4932-8b29-f09b792f8291"], ["LIMIT", 1]] 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", "af7efe07-a64c-4932-8b29-f09b792f8291"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t11327424a1fa8ec053991853e5b80b9a  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-172"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-172"], ["status", 1], ["published_at", 2016-10-16 14:40:55 UTC], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t8f932730d7ae4c320b4d46c2776eb0ce SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "54a7031f-0330-40d5-b950-01b057e72409"], ["descendant_id", "54a7031f-0330-40d5-b950-01b057e72409"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "54a7031f-0330-40d5-b950-01b057e72409"], ["LIMIT", 1]] 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", "54a7031f-0330-40d5-b950-01b057e72409"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tc339472756d93d9dd46a2fbb0632482e  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.6ms) SELECT DISTINCT jsonb_array_elements_text(field_store->'tags') t FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."deleted_at" IS NULL AND (push_type_nodes.status = 1 AND push_type_nodes.published_at <= '2016-10-16 14:40:55.702996') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2016-10-16 14:40:55.703160') ORDER BY t  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN ------------------------------------------------------------------------------- PushType::MenuBuilder::MenuTest::#item: test_0001_should create a new menu item -------------------------------------------------------------------------------  (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::MenuBuilder::MenuTest::#item: test_0002_should use existing menu item if present ------------------------------------------------------------------------------------------  (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::MenuBuilder::Dsl::MenuItemTest::.build: test_0005_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::MenuBuilder::Dsl::MenuItemTest::.build: test_0008_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::MenuBuilder::Dsl::MenuItemTest::.build: test_0003_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::MenuBuilder::Dsl::MenuItemTest::.build: 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::MenuBuilder::Dsl::MenuItemTest::.build: test_0007_anonymous ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN --------------------------------------------------------------------- PushType::MenuBuilder::Dsl::MenuItemTest::.build: 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::MenuBuilder::Dsl::MenuItemTest::.build: test_0006_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::MenuBuilder::Dsl::MenuItemTest::.build: test_0002_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::MenuBuilder::Dsl::MenuItemTest::.build: test_0009_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::CoreExtTest::to_bool: test_0010_anonymous ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) 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::CoreExtTest::to_bool: 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::CoreExtTest::to_bool: test_0009_anonymous ---------------------------------------------------  (0.0ms) 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::CoreExtTest::to_bool: 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::CoreExtTest::to_bool: test_0008_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::CoreExtTest::to_bool: test_0007_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::CoreExtTest::to_bool: test_0013_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::CoreExtTest::to_bool: test_0005_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::CoreExtTest::to_bool: test_0004_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::CoreExtTest::to_bool: test_0002_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::CoreExtTest::to_bool: test_0011_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::CoreExtTest::to_bool: test_0012_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::CoreExtTest::to_bool: test_0006_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::CoreExtTest::to_bool: test_0014_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::TagListFieldTest::initialized on node::#with_all_tags: test_0001_anonymous ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-173"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-173"], ["field_store", "{\"tags\":[\"foo\",\"bar\",\"foo\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t63db6b8ca6ca8092c05d619e0282abb6 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "5429fd64-15c0-4226-8dcc-ac547985b68f"], ["descendant_id", "5429fd64-15c0-4226-8dcc-ac547985b68f"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "5429fd64-15c0-4226-8dcc-ac547985b68f"], ["LIMIT", 1]] 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", "5429fd64-15c0-4226-8dcc-ac547985b68f"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tc64cde23ed4951ed901fd2ff6cc58ac8  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-174"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-174"], ["field_store", "{\"tags\":[\"baz\",\"bar\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t0b7bcb5c845a787bb8c79444df9e8a5e SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "6011b205-6728-4772-8e72-02d165238346"], ["descendant_id", "6011b205-6728-4772-8e72-02d165238346"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "6011b205-6728-4772-8e72-02d165238346"], ["LIMIT", 1]] PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "6011b205-6728-4772-8e72-02d165238346"]]  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t99df2106858f815942549c32b82cedf2  (0.3ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-175"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-175"], ["field_store", "{\"tags\":[\"qux\"]}"], ["status", 1], ["published_at", 2016-10-16 14:40:55 UTC], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t3d80a257496cb30bd3bbe2e201e5adad SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "bc6c1cf0-49cb-4add-b6d1-428e61335635"], ["descendant_id", "bc6c1cf0-49cb-4add-b6d1-428e61335635"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "bc6c1cf0-49cb-4add-b6d1-428e61335635"], ["LIMIT", 1]] 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", "bc6c1cf0-49cb-4add-b6d1-428e61335635"]]  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t7884ceb8021ae3054412b2047a717642  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-176"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-176"], ["field_store", "{\"tags\":[\"foo\",\"bar\",\"qux\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t46214da416050eddeada8495e2f0a6f8 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "fbc38834-1625-4afb-a590-b645b8e5128a"], ["descendant_id", "fbc38834-1625-4afb-a590-b645b8e5128a"], ["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::TagListFieldTest::TestPage Load (0.4ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "fbc38834-1625-4afb-a590-b645b8e5128a"], ["LIMIT", 1]] 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", "fbc38834-1625-4afb-a590-b645b8e5128a"]]  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t1c24817c636e6fa1363303e850d20cbb  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-177"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-177"], ["status", 1], ["published_at", 2016-10-16 14:40:55 UTC], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS te56033a923eb2c22acaaf72ae9144f26 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "36b7a5bc-5a96-4ab5-94bd-69e3a32781fd"], ["descendant_id", "36b7a5bc-5a96-4ab5-94bd-69e3a32781fd"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "36b7a5bc-5a96-4ab5-94bd-69e3a32781fd"], ["LIMIT", 1]] 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", "36b7a5bc-5a96-4ab5-94bd-69e3a32781fd"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t75342ee5259f72f5688498dfe9f6a15f  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------ PushType::TagListFieldTest::initialized on node::#with_all_tags: test_0004_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-178"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-178"], ["field_store", "{\"tags\":[\"foo\",\"bar\",\"foo\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t6ee941ec9ad3ce99aa1dcc25716ce304 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "7f7e39dd-247e-4e35-b713-a5ce75846abb"], ["descendant_id", "7f7e39dd-247e-4e35-b713-a5ce75846abb"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "7f7e39dd-247e-4e35-b713-a5ce75846abb"], ["LIMIT", 1]] 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", "7f7e39dd-247e-4e35-b713-a5ce75846abb"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t817ce5e4b7f0b949d6e631a0d2ea40c6  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-179"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-179"], ["field_store", "{\"tags\":[\"baz\",\"bar\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t4e0a35e75683599900cc1d1f3e87e5eb SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "9b787d75-0417-4e4a-ba92-37c2b31e7615"], ["descendant_id", "9b787d75-0417-4e4a-ba92-37c2b31e7615"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "9b787d75-0417-4e4a-ba92-37c2b31e7615"], ["LIMIT", 1]] PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "9b787d75-0417-4e4a-ba92-37c2b31e7615"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t447caf4f19c851f26fb350296920a485  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-180"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-180"], ["field_store", "{\"tags\":[\"qux\"]}"], ["status", 1], ["published_at", 2016-10-16 14:40:55 UTC], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tdf1204000e7916396013efb9ac2d4c82 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "33d0a0cd-7740-44f1-a23a-5d8bbf08e1da"], ["descendant_id", "33d0a0cd-7740-44f1-a23a-5d8bbf08e1da"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "33d0a0cd-7740-44f1-a23a-5d8bbf08e1da"], ["LIMIT", 1]] 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", "33d0a0cd-7740-44f1-a23a-5d8bbf08e1da"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t17afd86ca337bb0b15e9865ce0bf1f12  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-181"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-181"], ["field_store", "{\"tags\":[\"foo\",\"bar\",\"qux\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tee6fd8f2facaa01896322eb9ee729e55 SQL (0.3ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "6b22ba76-6c26-48cb-b8a8-ba9fc1b40385"], ["descendant_id", "6b22ba76-6c26-48cb-b8a8-ba9fc1b40385"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "6b22ba76-6c26-48cb-b8a8-ba9fc1b40385"], ["LIMIT", 1]] 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", "6b22ba76-6c26-48cb-b8a8-ba9fc1b40385"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t588f376e91bb34d137c990703b9779ec  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-182"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-182"], ["status", 1], ["published_at", 2016-10-16 14:40:55 UTC], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t8a9d13ec7dbdd4c5b2be86fb5b6daa6b SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "c9fcfbd7-7585-4d07-85fc-99071c0ad881"], ["descendant_id", "c9fcfbd7-7585-4d07-85fc-99071c0ad881"], ["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::TagListFieldTest::TestPage Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "c9fcfbd7-7585-4d07-85fc-99071c0ad881"], ["LIMIT", 1]] 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", "c9fcfbd7-7585-4d07-85fc-99071c0ad881"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t5ad473b4905224e1bb9557982d84d9d3  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.3ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."deleted_at" IS NULL AND (push_type_nodes.status = 1 AND push_type_nodes.published_at <= '2016-10-16 14:40:55.832583') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2016-10-16 14:40:55.832708') AND (field_store->'tags' ?& ARRAY['foo','foo','bar','qux'])  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------ PushType::TagListFieldTest::initialized on node::#with_all_tags: test_0005_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.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-183"], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-183"], ["field_store", "{\"tags\":[\"foo\",\"bar\",\"foo\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t487e9053c8c94934d44cb9b5d97b1c03 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "5013ddc9-908a-4a4f-962c-2db42b3c9b35"], ["descendant_id", "5013ddc9-908a-4a4f-962c-2db42b3c9b35"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "5013ddc9-908a-4a4f-962c-2db42b3c9b35"], ["LIMIT", 1]] 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", "5013ddc9-908a-4a4f-962c-2db42b3c9b35"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS ta2909bd73e1a5dee232651550200df32  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-184"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-184"], ["field_store", "{\"tags\":[\"baz\",\"bar\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t6ce406f1c43fc43f1e1cfae77be27e64 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "b9cec161-d004-4716-8279-93444b7b3fa8"], ["descendant_id", "b9cec161-d004-4716-8279-93444b7b3fa8"], ["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::TagListFieldTest::TestPage Load (0.4ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "b9cec161-d004-4716-8279-93444b7b3fa8"], ["LIMIT", 1]] 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", "b9cec161-d004-4716-8279-93444b7b3fa8"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t139fa8ce14949dc9c7ca0b31ad24667d  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-185"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-185"], ["field_store", "{\"tags\":[\"qux\"]}"], ["status", 1], ["published_at", 2016-10-16 14:40:55 UTC], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t7bf98628ab8ce8a2b400fd8fec76058c SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "9d58c54e-feb6-4653-aeef-fbafb8690167"], ["descendant_id", "9d58c54e-feb6-4653-aeef-fbafb8690167"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "9d58c54e-feb6-4653-aeef-fbafb8690167"], ["LIMIT", 1]] 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", "9d58c54e-feb6-4653-aeef-fbafb8690167"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS td22779b6ab58cbb4e2948d56a185635c  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-186"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-186"], ["field_store", "{\"tags\":[\"foo\",\"bar\",\"qux\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS tb3ce0048c55b3e7afde19ebc4ac29e1b SQL (0.5ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "21fec72b-cd1e-44c8-8dfc-1fe66705f5b3"], ["descendant_id", "21fec72b-cd1e-44c8-8dfc-1fe66705f5b3"], ["generations", 0]]  (0.5ms) 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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "21fec72b-cd1e-44c8-8dfc-1fe66705f5b3"], ["LIMIT", 1]] 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", "21fec72b-cd1e-44c8-8dfc-1fe66705f5b3"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS ta69cca9d95bfb8e561562fe31b22e83d  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-187"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-187"], ["status", 1], ["published_at", 2016-10-16 14:40:55 UTC], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t49f9a1cf9f79c1b37a4dabe3df5b9a6d SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "8ae3daec-e917-412b-bd97-381717233532"], ["descendant_id", "8ae3daec-e917-412b-bd97-381717233532"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "8ae3daec-e917-412b-bd97-381717233532"], ["LIMIT", 1]] 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", "8ae3daec-e917-412b-bd97-381717233532"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t9a1cee3fd46948448993540368a81af4  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.3ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."deleted_at" IS NULL AND (push_type_nodes.status = 1 AND push_type_nodes.published_at <= '2016-10-16 14:40:55.885141') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2016-10-16 14:40:55.885265') AND (field_store->'tags' ?& ARRAY['qux'])  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------ PushType::TagListFieldTest::initialized on node::#with_all_tags: test_0002_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-188"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-188"], ["field_store", "{\"tags\":[\"foo\",\"bar\",\"foo\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t10994f559b4653d24263f061a277b6af SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "a43a537e-b306-4bc1-8dbf-eb34f66dffbc"], ["descendant_id", "a43a537e-b306-4bc1-8dbf-eb34f66dffbc"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "a43a537e-b306-4bc1-8dbf-eb34f66dffbc"], ["LIMIT", 1]] 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", "a43a537e-b306-4bc1-8dbf-eb34f66dffbc"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t460cc51dd6ef5c9771bbc1be79be041d  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-189"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-189"], ["field_store", "{\"tags\":[\"baz\",\"bar\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS td5f160804eb9d7f212d22ce59c706964 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "e28e3663-9827-407a-8143-4c1fb92887dd"], ["descendant_id", "e28e3663-9827-407a-8143-4c1fb92887dd"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "e28e3663-9827-407a-8143-4c1fb92887dd"], ["LIMIT", 1]] PushType::Node Load (0.6ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "e28e3663-9827-407a-8143-4c1fb92887dd"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tfbd60b511ef9f3c561121b22699002c2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-190"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-190"], ["field_store", "{\"tags\":[\"qux\"]}"], ["status", 1], ["published_at", 2016-10-16 14:40:55 UTC], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS te314dd47026f67beaa6a724129ef435e SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "105f94d6-2eb5-4f28-9aa1-a13fae12defd"], ["descendant_id", "105f94d6-2eb5-4f28-9aa1-a13fae12defd"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "105f94d6-2eb5-4f28-9aa1-a13fae12defd"], ["LIMIT", 1]] 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", "105f94d6-2eb5-4f28-9aa1-a13fae12defd"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t488099106b84283228ccf40584e45e0e  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-191"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-191"], ["field_store", "{\"tags\":[\"foo\",\"bar\",\"qux\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t00aa5c41b49b4cf6de51650adc3b6137 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "f2d4022f-7c7b-4856-b02f-dc289ad91692"], ["descendant_id", "f2d4022f-7c7b-4856-b02f-dc289ad91692"], ["generations", 0]]  (0.7ms) 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::TagListFieldTest::TestPage Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "f2d4022f-7c7b-4856-b02f-dc289ad91692"], ["LIMIT", 1]] 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", "f2d4022f-7c7b-4856-b02f-dc289ad91692"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tbaa9a4c1866ce4a7cb9e1cf73a55410f  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-192"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-192"], ["status", 1], ["published_at", 2016-10-16 14:40:55 UTC], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tdc6ac1f1742991217fb928a4b166c31e SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "21340bf4-8c10-438c-97ef-8d6fd88dc9d1"], ["descendant_id", "21340bf4-8c10-438c-97ef-8d6fd88dc9d1"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "21340bf4-8c10-438c-97ef-8d6fd88dc9d1"], ["LIMIT", 1]] PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "21340bf4-8c10-438c-97ef-8d6fd88dc9d1"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t6ce20cf15fdae920275a5a6be234f251  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------ PushType::TagListFieldTest::initialized on node::#with_all_tags: test_0003_anonymous ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) 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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-193"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-193"], ["field_store", "{\"tags\":[\"foo\",\"bar\",\"foo\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t6f70ed736581a21e2487ffab458ef354 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "b76ea7ac-94ff-4723-b595-d37d8a5cdc76"], ["descendant_id", "b76ea7ac-94ff-4723-b595-d37d8a5cdc76"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "b76ea7ac-94ff-4723-b595-d37d8a5cdc76"], ["LIMIT", 1]] 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", "b76ea7ac-94ff-4723-b595-d37d8a5cdc76"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t2524f05e4c2f6da6578ddf57e9d479ec  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-194"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-194"], ["field_store", "{\"tags\":[\"baz\",\"bar\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t207a0fb712ea4615656b1b32fd4d1ad8 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "f8225651-ea86-4d9c-a61c-e158cb8c3e86"], ["descendant_id", "f8225651-ea86-4d9c-a61c-e158cb8c3e86"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "f8225651-ea86-4d9c-a61c-e158cb8c3e86"], ["LIMIT", 1]] 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", "f8225651-ea86-4d9c-a61c-e158cb8c3e86"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t7883b08b36526e8bb232ff1d7fcf676b  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-195"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-195"], ["field_store", "{\"tags\":[\"qux\"]}"], ["status", 1], ["published_at", 2016-10-16 14:40:55 UTC], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tdea2fd2eb8f43e7aa8d0c34a1a262d30 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "24558e52-50d6-4859-b910-2216bf977bd9"], ["descendant_id", "24558e52-50d6-4859-b910-2216bf977bd9"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "24558e52-50d6-4859-b910-2216bf977bd9"], ["LIMIT", 1]] 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", "24558e52-50d6-4859-b910-2216bf977bd9"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t34a278175f9c3b33fcaf6fb2f09e85ca  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-196"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-196"], ["field_store", "{\"tags\":[\"foo\",\"bar\",\"qux\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tcfaddd5e41a4a805786ebd73f0aa51fc SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "2b538130-91c2-48b7-81a0-188de39657d4"], ["descendant_id", "2b538130-91c2-48b7-81a0-188de39657d4"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "2b538130-91c2-48b7-81a0-188de39657d4"], ["LIMIT", 1]] PushType::Node Load (0.5ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "2b538130-91c2-48b7-81a0-188de39657d4"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t39e06d3eca6df843ff6445025e1aef53  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-197"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::TagListFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-197"], ["status", 1], ["published_at", 2016-10-16 14:40:55 UTC], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t95b570cd07d60d55d319069b766c4baf SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "3541270b-ef96-46c3-a740-64534f7bb429"], ["descendant_id", "3541270b-ef96-46c3-a740-64534f7bb429"], ["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::TagListFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "3541270b-ef96-46c3-a740-64534f7bb429"], ["LIMIT", 1]] 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", "3541270b-ef96-46c3-a740-64534f7bb429"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS te06b47917658af18f042aa6d8392bb93  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::TagListFieldTest::TestPage') AND (field_store->'tags' ?& ARRAY['foo','foo','bar','qux'])  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PushType::RepeaterFieldTest: 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.5ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-198"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::RepeaterFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-198"], ["field_store", "{\"foo\":[\"abc\",\"xyz\",\"123\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:55 UTC], ["updated_at", 2016-10-16 14:40:55 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tae4c236dcb738e37d337cb8abeb9136b SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "1dc072e7-c1ec-4ec4-8547-b7b46ad5e1ef"], ["descendant_id", "1dc072e7-c1ec-4ec4-8547-b7b46ad5e1ef"], ["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::RepeaterFieldTest::TestPage Load (0.5ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RepeaterFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "1dc072e7-c1ec-4ec4-8547-b7b46ad5e1ef"], ["LIMIT", 1]] PushType::Node Load (0.4ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "1dc072e7-c1ec-4ec4-8547-b7b46ad5e1ef"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t44266f6618d5f88b6b89fd4841222ecb  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PushType::RepeaterFieldTest: test_0008_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-199"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::RepeaterFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-199"], ["field_store", "{\"foo\":[\"abc\",\"xyz\",\"123\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t346ef879144693cc7ebaddb721fa64de SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "49318ec6-368e-4fd5-a15d-0c502e9ee5e4"], ["descendant_id", "49318ec6-368e-4fd5-a15d-0c502e9ee5e4"], ["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::RepeaterFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RepeaterFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "49318ec6-368e-4fd5-a15d-0c502e9ee5e4"], ["LIMIT", 1]] PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "49318ec6-368e-4fd5-a15d-0c502e9ee5e4"]]  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t2110da656145990a021389f788e78d42  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PushType::RepeaterFieldTest: test_0001_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 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-200"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::RepeaterFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-200"], ["field_store", "{\"foo\":[\"abc\",\"xyz\",\"123\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS te52a76e09795bb2e96d24d6cd0cccbf0 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "d0df2dc0-1dd7-41c8-8cda-72c662b65431"], ["descendant_id", "d0df2dc0-1dd7-41c8-8cda-72c662b65431"], ["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::RepeaterFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RepeaterFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "d0df2dc0-1dd7-41c8-8cda-72c662b65431"], ["LIMIT", 1]] 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", "d0df2dc0-1dd7-41c8-8cda-72c662b65431"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t583846d75a19acf3e9217357d11d0fe2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN ------------------------------------------------ PushType::RepeaterFieldTest: 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 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-201"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::RepeaterFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-201"], ["field_store", "{\"foo\":[\"abc\",\"xyz\",\"123\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t92b25c0bdbf08ebbbf720c812873fcfa SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "ea307c53-61b7-4578-a2f1-d5b849452a4a"], ["descendant_id", "ea307c53-61b7-4578-a2f1-d5b849452a4a"], ["generations", 0]]  (0.5ms) 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::RepeaterFieldTest::TestPage Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RepeaterFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "ea307c53-61b7-4578-a2f1-d5b849452a4a"], ["LIMIT", 1]] 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", "ea307c53-61b7-4578-a2f1-d5b849452a4a"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tecf95f1aed65b4018d6630441ad2acfd  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PushType::RepeaterFieldTest: test_0010_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 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-202"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::RepeaterFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-202"], ["field_store", "{\"foo\":[\"abc\",\"xyz\",\"123\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t58d5f209a563af9775675e83aacea25a SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "fe3aeb37-1409-41b8-b760-e873635451f5"], ["descendant_id", "fe3aeb37-1409-41b8-b760-e873635451f5"], ["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::RepeaterFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RepeaterFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "fe3aeb37-1409-41b8-b760-e873635451f5"], ["LIMIT", 1]] 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", "fe3aeb37-1409-41b8-b760-e873635451f5"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t4c792b1ef88f3dec1e93f06c4aba78df  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PushType::RepeaterFieldTest: test_0006_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-203"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::RepeaterFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-203"], ["field_store", "{\"foo\":[\"abc\",\"xyz\",\"123\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t145e6ded8de5f4c2309cd2d1862f3261 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "cb993601-783f-4f3d-a252-0c1204152d01"], ["descendant_id", "cb993601-783f-4f3d-a252-0c1204152d01"], ["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::RepeaterFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RepeaterFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "cb993601-783f-4f3d-a252-0c1204152d01"], ["LIMIT", 1]] 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", "cb993601-783f-4f3d-a252-0c1204152d01"]]  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS tdb90e5ad17dc2bbfb7bc62bccb7b8905  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PushType::RepeaterFieldTest: test_0011_anonymous ------------------------------------------------  (0.0ms) 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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-204"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::RepeaterFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-204"], ["field_store", "{\"foo\":[\"abc\",\"xyz\",\"123\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tee9fae13328e45963466ec09aa6c6852 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "12e26f34-183a-4467-a0f3-ba3c7b89ab8b"], ["descendant_id", "12e26f34-183a-4467-a0f3-ba3c7b89ab8b"], ["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::RepeaterFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RepeaterFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "12e26f34-183a-4467-a0f3-ba3c7b89ab8b"], ["LIMIT", 1]] PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "12e26f34-183a-4467-a0f3-ba3c7b89ab8b"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t494913013554db67b0446b8918a4a6b2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PushType::RepeaterFieldTest: test_0012_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.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-205"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::RepeaterFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-205"], ["field_store", "{\"foo\":[\"abc\",\"xyz\",\"123\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t72b6b88ce86ad16b3bdfb51ac5ee6f39 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "6441590a-2e5d-414c-82eb-793e05d3796f"], ["descendant_id", "6441590a-2e5d-414c-82eb-793e05d3796f"], ["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::RepeaterFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RepeaterFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "6441590a-2e5d-414c-82eb-793e05d3796f"], ["LIMIT", 1]] PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "6441590a-2e5d-414c-82eb-793e05d3796f"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t648d24ba31618c23fd92d11058fbbd94  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PushType::RepeaterFieldTest: test_0005_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-206"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::RepeaterFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-206"], ["field_store", "{\"foo\":[\"abc\",\"xyz\",\"123\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t714d89bb0f69465d32ed1e7d699f565f SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "2fbd601f-0555-4c68-a616-3358df60c134"], ["descendant_id", "2fbd601f-0555-4c68-a616-3358df60c134"], ["generations", 0]]  (0.4ms) 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::RepeaterFieldTest::TestPage Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RepeaterFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "2fbd601f-0555-4c68-a616-3358df60c134"], ["LIMIT", 1]] PushType::Node Load (0.4ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "2fbd601f-0555-4c68-a616-3358df60c134"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t1b15a09e8d165ef45cc2261b2bac55e5  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PushType::RepeaterFieldTest: test_0009_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 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-207"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::RepeaterFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-207"], ["field_store", "{\"foo\":[\"abc\",\"xyz\",\"123\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tb299727c7c6443d49e43412b07464438 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "209692ef-3a39-4978-abbb-aaf4c89692b2"], ["descendant_id", "209692ef-3a39-4978-abbb-aaf4c89692b2"], ["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::RepeaterFieldTest::TestPage Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RepeaterFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "209692ef-3a39-4978-abbb-aaf4c89692b2"], ["LIMIT", 1]] 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", "209692ef-3a39-4978-abbb-aaf4c89692b2"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tdbf83871d7aaf58da099ca4a03283fb9  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PushType::RepeaterFieldTest: test_0007_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-208"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::RepeaterFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-208"], ["field_store", "{\"foo\":[\"abc\",\"xyz\",\"123\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t3f9e4fbf9cb45736c63d65dea3058e29 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "a483dcdc-d272-4576-81d8-73e7a3330c11"], ["descendant_id", "a483dcdc-d272-4576-81d8-73e7a3330c11"], ["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::RepeaterFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RepeaterFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "a483dcdc-d272-4576-81d8-73e7a3330c11"], ["LIMIT", 1]] 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", "a483dcdc-d272-4576-81d8-73e7a3330c11"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t29f674ae0f259dac5ea050e3609be41d  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------ PushType::RepeaterFieldTest: 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.4ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-209"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::RepeaterFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-209"], ["field_store", "{\"foo\":[\"abc\",\"xyz\",\"123\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tf59eb1640476d56517689fb5f639fbb4 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "713fb1cc-f3ba-44c0-a287-1525e29cfaa8"], ["descendant_id", "713fb1cc-f3ba-44c0-a287-1525e29cfaa8"], ["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::RepeaterFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RepeaterFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "713fb1cc-f3ba-44c0-a287-1525e29cfaa8"], ["LIMIT", 1]] 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", "713fb1cc-f3ba-44c0-a287-1525e29cfaa8"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t2e59ec01a8545fe373ee54b27aac9a46  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- PushType::UserTest::#initials: test_0001_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::UserTest::#initials: 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 -------------------------------------------------- PushType::UserTest::#initials: test_0003_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::DateFieldTest: test_0002_anonymous --------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.4ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-210"], ["LIMIT", 1]] SQL (0.6ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::DateFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-210"], ["field_store", "{\"foo\":\"2016-10-16\"}"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tb106ceea7e97fd8d53cd2eec52f1125f SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "85b7267d-7d1b-405f-bea9-e4a3a76b0c52"], ["descendant_id", "85b7267d-7d1b-405f-bea9-e4a3a76b0c52"], ["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::DateFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::DateFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "85b7267d-7d1b-405f-bea9-e4a3a76b0c52"], ["LIMIT", 1]] 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", "85b7267d-7d1b-405f-bea9-e4a3a76b0c52"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t47b327e553af1e8b6bf83473ef2d72ae  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- PushType::DateFieldTest: test_0001_anonymous --------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_2 PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-211"], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::DateFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-211"], ["field_store", "{\"foo\":\"2016-10-16\"}"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t1736d6cf8f787f8f84e858fd9d48ba1d SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "35dd2036-154f-4da0-8491-31351dc01a36"], ["descendant_id", "35dd2036-154f-4da0-8491-31351dc01a36"], ["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::DateFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::DateFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "35dd2036-154f-4da0-8491-31351dc01a36"], ["LIMIT", 1]] 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", "35dd2036-154f-4da0-8491-31351dc01a36"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tb519ddf5689ace95ca986cc7686a48dd  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- PushType::DateFieldTest: 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 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-212"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::DateFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-212"], ["field_store", "{\"foo\":\"2016-10-16\"}"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t58cb08f8cf2743e8faa96c9f8e7da276 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "b1fb6919-b5ed-4a2d-9aa7-e6d022006443"], ["descendant_id", "b1fb6919-b5ed-4a2d-9aa7-e6d022006443"], ["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::DateFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::DateFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "b1fb6919-b5ed-4a2d-9aa7-e6d022006443"], ["LIMIT", 1]] 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", "b1fb6919-b5ed-4a2d-9aa7-e6d022006443"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t90468175ec8928e06225ddc17de4a96e  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- PushType::DateFieldTest: 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 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-213"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::DateFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-213"], ["field_store", "{\"foo\":\"2016-10-16\"}"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS td21946634f0a2406241710bf71589509 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "aa6274a2-bc3b-4ad4-82ce-b807eb783c22"], ["descendant_id", "aa6274a2-bc3b-4ad4-82ce-b807eb783c22"], ["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::DateFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::DateFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "aa6274a2-bc3b-4ad4-82ce-b807eb783c22"], ["LIMIT", 1]] 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", "aa6274a2-bc3b-4ad4-82ce-b807eb783c22"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tc88a3f524778d5646ee887c1552f430f  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- PushType::DateFieldTest: test_0005_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-214"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::DateFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-214"], ["field_store", "{\"foo\":\"2016-10-16\"}"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t0585f2c1ef2d15edb218d0dfb6647fa6 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "60113c08-470a-4b11-84fa-02ea09b196d4"], ["descendant_id", "60113c08-470a-4b11-84fa-02ea09b196d4"], ["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::DateFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::DateFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "60113c08-470a-4b11-84fa-02ea09b196d4"], ["LIMIT", 1]] 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", "60113c08-470a-4b11-84fa-02ea09b196d4"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t9966daf7d15fbfa3b3efa4b20845b4d3  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PushType::NodeGeneratorTest: test_0002_anonymous ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PushType::NodeGeneratorTest: test_0005_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.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PushType::NodeGeneratorTest: test_0006_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::NodeGeneratorTest: 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::NodeGeneratorTest: test_0003_anonymous ------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) 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::NodeGeneratorTest: test_0004_anonymous ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN ------------------------------------------------------------------------ PushType::AssetTest::#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" ("file_uid", "file_name", "file_size", "file_ext", "mime_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_uid", "28"], ["file_name", "image.png"], ["file_size", 2643], ["file_ext", "png"], ["mime_type", "image/png"], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------ PushType::AssetTest::#media::with a geometry string: test_0002_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.3ms) INSERT INTO "push_type_assets" ("file_uid", "file_name", "file_size", "file_ext", "mime_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_uid", "29"], ["file_name", "image.png"], ["file_size", 2643], ["file_ext", "png"], ["mime_type", "image/png"], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_2 DRAGONFLY: shell command: 'convert' '/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20161016-37545-7z1nr5' '-resize' '48x56^^' '-gravity' 'Center' '-crop' '48x56+0+0' '+repage' '/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/dragonfly20161016-37545-o7ix4r.png' DRAGONFLY: shell command: 'identify' '-ping' '-format' '%m %w %h' '/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/dragonfly20161016-37545-o7ix4r.png'  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------ PushType::AssetTest::#media::with a geometry string: 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.3ms) INSERT INTO "push_type_assets" ("file_uid", "file_name", "file_size", "file_ext", "mime_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_uid", "30"], ["file_name", "image.png"], ["file_size", 2643], ["file_ext", "png"], ["mime_type", "image/png"], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_2 DRAGONFLY: shell command: 'convert' '/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20161016-37545-9w00jw' '-resize' '48x56^^' '-gravity' 'Center' '-crop' '48x56+0+0' '+repage' '/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/dragonfly20161016-37545-1ht2beg.png' DRAGONFLY: shell command: 'identify' '-ping' '-format' '%m %w %h' '/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/dragonfly20161016-37545-1ht2beg.png'  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.6ms) BEGIN ------------------------------------------------------------------------ PushType::AssetTest::#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.3ms) INSERT INTO "push_type_assets" ("file_uid", "file_name", "file_size", "file_ext", "mime_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_uid", "31"], ["file_name", "image.png"], ["file_size", 2643], ["file_ext", "png"], ["mime_type", "image/png"], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------ PushType::AssetTest::#media::with a geometry string: test_0005_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.3ms) INSERT INTO "push_type_assets" ("file_uid", "file_name", "file_size", "file_ext", "mime_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_uid", "32"], ["file_name", "document.pdf"], ["file_size", 15356], ["file_ext", "pdf"], ["mime_type", "application/pdf"], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PushType::AssetTest::#set_mime_type: 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" ("file_uid", "file_name", "file_size", "file_ext", "mime_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_uid", "33"], ["file_name", "image.png"], ["file_size", 2643], ["file_ext", "png"], ["mime_type", "image/png"], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PushType::AssetTest::#set_mime_type: test_0002_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.4ms) INSERT INTO "push_type_assets" ("file_uid", "file_name", "file_size", "file_ext", "mime_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_uid", "34"], ["file_name", "image.png"], ["file_size", 2643], ["file_ext", "png"], ["mime_type", "image/png"], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------- PushType::PublishableTest::#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.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-215"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-215"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t20f57d6001fef0aa65612d10782f274b SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "c1f82feb-f534-4972-a0c7-d010b08305db"], ["descendant_id", "c1f82feb-f534-4972-a0c7-d010b08305db"], ["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 $2 [["id", "c1f82feb-f534-4972-a0c7-d010b08305db"], ["LIMIT", 1]] PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "c1f82feb-f534-4972-a0c7-d010b08305db"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t4403e772c0857c51952b5caab2a916e1  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) UPDATE "push_type_nodes" SET "status" = $1, "published_at" = $2, "updated_at" = $3 WHERE "push_type_nodes"."id" = $4 [["status", 1], ["published_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC], ["id", "c1f82feb-f534-4972-a0c7-d010b08305db"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------------------- PushType::MenuBuilder::MenuTest::#insert_before: test_0001_should insert before the given key ---------------------------------------------------------------------------------------------  (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::AssetFieldTest: 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" ("file_uid", "file_name", "file_size", "file_ext", "mime_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_uid", "35"], ["file_name", "image.png"], ["file_size", 2643], ["file_ext", "png"], ["mime_type", "image/png"], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-216"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::AssetFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-216"], ["field_store", "{\"foo_id\":\"abc77e12-8798-45fd-9fae-e61104629823\"}"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS ta02ec12fde3c2f15e3f997db865af1ab SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "3aaa5d7b-b8b3-4f72-be25-9d320cad730b"], ["descendant_id", "3aaa5d7b-b8b3-4f72-be25-9d320cad730b"], ["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::AssetFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::AssetFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "3aaa5d7b-b8b3-4f72-be25-9d320cad730b"], ["LIMIT", 1]] 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", "3aaa5d7b-b8b3-4f72-be25-9d320cad730b"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t7d23c580cbbbe9483402b64aad6104cb  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- PushType::AssetFieldTest: 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.3ms) INSERT INTO "push_type_assets" ("file_uid", "file_name", "file_size", "file_ext", "mime_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_uid", "36"], ["file_name", "image.png"], ["file_size", 2643], ["file_ext", "png"], ["mime_type", "image/png"], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-217"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::AssetFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-217"], ["field_store", "{\"foo_id\":\"a5007cb4-e32c-4c24-bdd5-a07bcb2c1664\"}"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t263465e5843346ad25560c43bc0d522b SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "ff9de804-b1d1-4472-914f-8e876ffb821e"], ["descendant_id", "ff9de804-b1d1-4472-914f-8e876ffb821e"], ["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::AssetFieldTest::TestPage Load (0.4ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::AssetFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "ff9de804-b1d1-4472-914f-8e876ffb821e"], ["LIMIT", 1]] PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "ff9de804-b1d1-4472-914f-8e876ffb821e"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t98eb04c552b9fb3066b7564150be1d45  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- PushType::AssetFieldTest: 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.2ms) INSERT INTO "push_type_assets" ("file_uid", "file_name", "file_size", "file_ext", "mime_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_uid", "37"], ["file_name", "image.png"], ["file_size", 2643], ["file_ext", "png"], ["mime_type", "image/png"], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-218"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::AssetFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-218"], ["field_store", "{\"foo_id\":\"55a1fc75-3fbe-4f02-b26a-fcb0c4a996a6\"}"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t4f575b02f4f4f792a4e01e9838452fea SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "8c562791-1fbb-438b-9674-0b9c8d0d1fdd"], ["descendant_id", "8c562791-1fbb-438b-9674-0b9c8d0d1fdd"], ["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::AssetFieldTest::TestPage Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::AssetFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "8c562791-1fbb-438b-9674-0b9c8d0d1fdd"], ["LIMIT", 1]] 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", "8c562791-1fbb-438b-9674-0b9c8d0d1fdd"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t2fa587861e6032c53055418436c553da  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- PushType::AssetFieldTest: 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" ("file_uid", "file_name", "file_size", "file_ext", "mime_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_uid", "38"], ["file_name", "image.png"], ["file_size", 2643], ["file_ext", "png"], ["mime_type", "image/png"], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-219"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::AssetFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-219"], ["field_store", "{\"foo_id\":\"cf5ce93c-a0a5-4554-bc92-dee87426d6a7\"}"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tb80eafe4e497c987d12562bd7c9f6137 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "baa15630-a718-46be-8e43-748832a0da42"], ["descendant_id", "baa15630-a718-46be-8e43-748832a0da42"], ["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::AssetFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::AssetFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "baa15630-a718-46be-8e43-748832a0da42"], ["LIMIT", 1]] 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", "baa15630-a718-46be-8e43-748832a0da42"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t8e23034238eff7144bfc97fa942dacfa  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- PushType::AssetFieldTest: test_0005_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" ("file_uid", "file_name", "file_size", "file_ext", "mime_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_uid", "39"], ["file_name", "image.png"], ["file_size", 2643], ["file_ext", "png"], ["mime_type", "image/png"], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-220"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::AssetFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-220"], ["field_store", "{\"foo_id\":\"2ab88b13-3926-49f4-b654-7dca74dcc83e\"}"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t9cde91b8b193e221e679598dbea65825 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "f9d2481f-ac75-4c01-8f1e-96501838c27c"], ["descendant_id", "f9d2481f-ac75-4c01-8f1e-96501838c27c"], ["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::AssetFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::AssetFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "f9d2481f-ac75-4c01-8f1e-96501838c27c"], ["LIMIT", 1]] 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", "f9d2481f-ac75-4c01-8f1e-96501838c27c"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t2ddf475580c300b0b3c78a6a8b72558e  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- PushType::AssetFieldTest: 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.2ms) INSERT INTO "push_type_assets" ("file_uid", "file_name", "file_size", "file_ext", "mime_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_uid", "40"], ["file_name", "image.png"], ["file_size", 2643], ["file_ext", "png"], ["mime_type", "image/png"], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-221"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::AssetFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-221"], ["field_store", "{\"foo_id\":\"834ca4fe-bafa-4e2a-9569-a7f138636fdf\"}"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tde22eb2a5d0c2d411cc56229a030c0b7 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "35142d48-a136-458f-9ef0-3b84831bbaec"], ["descendant_id", "35142d48-a136-458f-9ef0-3b84831bbaec"], ["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::AssetFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::AssetFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "35142d48-a136-458f-9ef0-3b84831bbaec"], ["LIMIT", 1]] 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", "35142d48-a136-458f-9ef0-3b84831bbaec"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t8df553ddf94c3ced6903a9bf85cf593f  (0.1ms) RELEASE SAVEPOINT active_record_2 PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND "push_type_assets"."id" = $1 ORDER BY "push_type_assets"."created_at" DESC LIMIT $2 [["id", "834ca4fe-bafa-4e2a-9569-a7f138636fdf"], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN ------------------------------------------------------------------------------- FrontEndControllerTest::GET #show::when node not published: 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.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-222"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-222"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS td94141009705c421371b513a2e8bc72f SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "bb396204-e8f9-421b-95c1-17e255837b7d"], ["descendant_id", "bb396204-e8f9-421b-95c1-17e255837b7d"], ["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 $2 [["id", "bb396204-e8f9-421b-95c1-17e255837b7d"], ["LIMIT", 1]] 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", "bb396204-e8f9-421b-95c1-17e255837b7d"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t5b4132adca83dd250c48cdb1e8adf0f4  (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", "bb396204-e8f9-421b-95c1-17e255837b7d"]] Processing by FrontEndController#show as HTML Parameters: {"permalink"=>"foo-bar-222"} 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 <= '2016-10-16 14:40:56.537137') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2016-10-16 14:40:56.537313') AND "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL ORDER BY "push_type_nodes"."id" ASC LIMIT $2 [["slug", "foo-bar-222"], ["LIMIT", 1]] Completed 404 Not Found in 20ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------ PushType::PublishableTest::.published::without published status: test_0001_anonymous ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) 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 <= '2016-10-16 14:40:56.540878') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2016-10-16 14:40:56.540983')  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-223"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-223"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tbb6c56c9ba5a6a61b295d03c7bb93162 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "626ddc40-f3cb-4665-ba90-5c3989ac49cb"], ["descendant_id", "626ddc40-f3cb-4665-ba90-5c3989ac49cb"], ["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 $2 [["id", "626ddc40-f3cb-4665-ba90-5c3989ac49cb"], ["LIMIT", 1]] 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", "626ddc40-f3cb-4665-ba90-5c3989ac49cb"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t35f29e0b5aee88857fcafc7ebd79b3d8  (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 <= '2016-10-16 14:40:56.540878') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2016-10-16 14:40:56.540983')  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN --------------------------------------------------------------------- PushType::AssetFieldTest::with missing relations: test_0001_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" ("file_uid", "file_name", "file_size", "file_ext", "mime_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_uid", "41"], ["file_name", "image.png"], ["file_size", 2643], ["file_ext", "png"], ["mime_type", "image/png"], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) DELETE FROM "push_type_assets" WHERE "push_type_assets"."id" = $1 [["id", "43f02d12-3859-4c37-a8ae-a7e551d2f34d"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-224"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::AssetFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-224"], ["field_store", "{\"foo_id\":\"43f02d12-3859-4c37-a8ae-a7e551d2f34d\"}"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tf335ee90e40d2d6932c4d2b032898521 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "d1458c6a-8378-411e-bfa5-83e08059d7ad"], ["descendant_id", "d1458c6a-8378-411e-bfa5-83e08059d7ad"], ["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::AssetFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::AssetFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "d1458c6a-8378-411e-bfa5-83e08059d7ad"], ["LIMIT", 1]] 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", "d1458c6a-8378-411e-bfa5-83e08059d7ad"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS taf0334650be7e2df8dfd3e53b0aed56f  (0.1ms) RELEASE SAVEPOINT active_record_2 PushType::Asset Load (0.1ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND "push_type_assets"."id" = $1 ORDER BY "push_type_assets"."created_at" DESC LIMIT $2 [["id", "43f02d12-3859-4c37-a8ae-a7e551d2f34d"], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------------- PushType::PublishableTest::.published::with published_at dates in the future: test_0001_anonymous -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) 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 <= '2016-10-16 14:40:56.567561') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2016-10-16 14:40:56.567676')  (0.2ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-225"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-225"], ["status", 1], ["published_at", 2016-10-17 14:40:56 UTC], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t69e093649a2062fad3929d32955ef644 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "b2849caa-b567-4b01-bcb0-9769691490eb"], ["descendant_id", "b2849caa-b567-4b01-bcb0-9769691490eb"], ["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 $2 [["id", "b2849caa-b567-4b01-bcb0-9769691490eb"], ["LIMIT", 1]] 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", "b2849caa-b567-4b01-bcb0-9769691490eb"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t3996ec97c46ee5eba2d981f6aaf659dc  (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 <= '2016-10-16 14:40:56.567561') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2016-10-16 14:40:56.567676')  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN ----------------------------------------------------------------------- PushType::NestableTest::.has_child_nodes::when all: test_0001_anonymous -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) 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::NestableTest::.has_child_nodes::when all: 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::NestableTest::.has_child_nodes::when all: test_0003_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.1ms) BEGIN ---------------------------------------------- PushType::StringFieldTest: 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 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-226"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::StringFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-226"], ["field_store", "{\"foo\":\"abc\"}"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tb624ea2870af477108b54a60a2c07b7f SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "d0597072-db6f-40b7-a2e6-8a13471518e9"], ["descendant_id", "d0597072-db6f-40b7-a2e6-8a13471518e9"], ["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::StringFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::StringFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "d0597072-db6f-40b7-a2e6-8a13471518e9"], ["LIMIT", 1]] 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", "d0597072-db6f-40b7-a2e6-8a13471518e9"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tf157567f1d6860521e7c868aafc6853c  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- PushType::StringFieldTest: test_0001_anonymous ----------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-227"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::StringFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-227"], ["field_store", "{\"foo\":\"abc\"}"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tc85c21e49f212c4a2a9475c1fbdb30fa SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "df75a4e2-9ad3-4462-9b2d-69748eb2dad7"], ["descendant_id", "df75a4e2-9ad3-4462-9b2d-69748eb2dad7"], ["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::StringFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::StringFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "df75a4e2-9ad3-4462-9b2d-69748eb2dad7"], ["LIMIT", 1]] 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", "df75a4e2-9ad3-4462-9b2d-69748eb2dad7"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t8cdb35745700b04d13bdba2dae12d0f9  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- PushType::StringFieldTest: 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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-228"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::StringFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-228"], ["field_store", "{\"foo\":\"abc\"}"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t263a0fa54ae288dd0ec9b608ffd573d6 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "caf13d3c-0138-45ea-a9d5-54a06911d118"], ["descendant_id", "caf13d3c-0138-45ea-a9d5-54a06911d118"], ["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::StringFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::StringFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "caf13d3c-0138-45ea-a9d5-54a06911d118"], ["LIMIT", 1]] 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", "caf13d3c-0138-45ea-a9d5-54a06911d118"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t4505c603d52198b6ff9496585f51e8ab  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- PushType::StringFieldTest: test_0004_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-229"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::StringFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-229"], ["field_store", "{\"foo\":\"abc\"}"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tb618621c5e14eef2e7aaf4df892fd0b4 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "213f6037-e5c1-41e9-bb1b-ba88dcd845e2"], ["descendant_id", "213f6037-e5c1-41e9-bb1b-ba88dcd845e2"], ["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::StringFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::StringFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "213f6037-e5c1-41e9-bb1b-ba88dcd845e2"], ["LIMIT", 1]] 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", "213f6037-e5c1-41e9-bb1b-ba88dcd845e2"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t0bcad539af52275ea4df6cc3e16ca0f7  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------- PushType::PrimitivesTest::NumberType: 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.0ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------ PushType::AssetTest::#kind::presentations: test_0001_should detect modern excel docs ------------------------------------------------------------------------------------  (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::AssetTest::#kind::presentations: test_0002_should detect modern legacy excel docs -------------------------------------------------------------------------------------------  (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::PrimitivesTest::ArrayType: test_0001_anonymous --------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) 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::PresenterGeneratorTest: test_0001_anonymous -----------------------------------------------------  (0.0ms) 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::PrimitivesTest::BooleanType: test_0004_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::PrimitivesTest::BooleanType: test_0003_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::PrimitivesTest::BooleanType: test_0006_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::PrimitivesTest::BooleanType: test_0007_anonymous ----------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN ---------------------------------------------------------- PushType::PrimitivesTest::BooleanType: 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.0ms) BEGIN ---------------------------------------------------------- PushType::PrimitivesTest::BooleanType: test_0001_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.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PushType::PrimitivesTest::BooleanType: test_0005_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::PrimitivesTest::BooleanType: test_0008_anonymous ----------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN ------------------------------------------------------------------------------ PushType::TrashableTest::#trashed?::when trash::#restore!: 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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-230"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "created_at", "updated_at", "deleted_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-230"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC], ["deleted_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS ted8c64275df67247a1a4a0aff048fbde SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "516611d8-60c4-45c4-9600-66203fe5a6b7"], ["descendant_id", "516611d8-60c4-45c4-9600-66203fe5a6b7"], ["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 $2 [["id", "516611d8-60c4-45c4-9600-66203fe5a6b7"], ["LIMIT", 1]] 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", "516611d8-60c4-45c4-9600-66203fe5a6b7"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t56e9aa5d920551865a147d59eb5ee9e8  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) UPDATE "push_type_nodes" SET "updated_at" = $1, "deleted_at" = $2 WHERE "push_type_nodes"."id" = $3 [["updated_at", 2016-10-16 14:40:56 UTC], ["deleted_at", nil], ["id", "516611d8-60c4-45c4-9600-66203fe5a6b7"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------- PushType::NestableTest::.has_child_nodes::with options: test_0004_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.1ms) BEGIN --------------------------------------------------------------------------- PushType::NestableTest::.has_child_nodes::with options: test_0001_anonymous ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) 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::NestableTest::.has_child_nodes::with options: test_0003_anonymous ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) 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::NestableTest::.has_child_nodes::with options: 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.0ms) BEGIN ------------------------------------------------------------------------------- PushType::AssetTest::#kind::documents: test_0003_should detect plain text files -------------------------------------------------------------------------------  (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::AssetTest::#kind::documents: test_0001_should detect modern word docs -------------------------------------------------------------------------------  (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::AssetTest::#kind::documents: test_0002_should detect modern legacy word docs --------------------------------------------------------------------------------------  (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.1ms) BEGIN ------------------------------------------------------------------------------ PushType::AssetTest::#kind::documents: test_0004_should detect rich text files ------------------------------------------------------------------------------  (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::PrimitivesTest::Base: test_0001_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::PrimitivesTest::Base: 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::MarkdownFieldTest: 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 PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-231"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::MarkdownFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-231"], ["field_store", "{\"foo\":\"**foo** *bar*\"}"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tf2ed0c807b245f6b6d29382227cbf5ef SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "5b85e778-6edd-4a03-afaa-7cd5e5dc26d3"], ["descendant_id", "5b85e778-6edd-4a03-afaa-7cd5e5dc26d3"], ["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::MarkdownFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::MarkdownFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "5b85e778-6edd-4a03-afaa-7cd5e5dc26d3"], ["LIMIT", 1]] 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", "5b85e778-6edd-4a03-afaa-7cd5e5dc26d3"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t35bad71988715792e80ca5cb12172b73  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PushType::MarkdownFieldTest: test_0006_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.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-232"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::MarkdownFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-232"], ["field_store", "{\"foo\":\"**foo** *bar*\"}"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t4e8b679ab0f6d9d9ea0f8901116a3036 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "acb09a9d-6770-4187-a947-00a17dd920e4"], ["descendant_id", "acb09a9d-6770-4187-a947-00a17dd920e4"], ["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::MarkdownFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::MarkdownFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "acb09a9d-6770-4187-a947-00a17dd920e4"], ["LIMIT", 1]] 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", "acb09a9d-6770-4187-a947-00a17dd920e4"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t9a08a1c402dbfe957b1b54ab840a0833  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PushType::MarkdownFieldTest: 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 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-233"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::MarkdownFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-233"], ["field_store", "{\"foo\":\"**foo** *bar*\"}"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t2a94901f1812cfd457fb2ea2888e46e4 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "fbefa7d5-0aeb-4713-8dca-ca7649f317bc"], ["descendant_id", "fbefa7d5-0aeb-4713-8dca-ca7649f317bc"], ["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::MarkdownFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::MarkdownFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "fbefa7d5-0aeb-4713-8dca-ca7649f317bc"], ["LIMIT", 1]] 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", "fbefa7d5-0aeb-4713-8dca-ca7649f317bc"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t0cd8797bd66c2a7cd56e8e653a87c199  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PushType::MarkdownFieldTest: 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.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-234"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::MarkdownFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-234"], ["field_store", "{\"foo\":\"**foo** *bar*\"}"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t7d4d15860c923b381d9760a86306fd84 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "f0bae405-8dcc-45e2-b6bc-3203d94e8aeb"], ["descendant_id", "f0bae405-8dcc-45e2-b6bc-3203d94e8aeb"], ["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::MarkdownFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::MarkdownFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "f0bae405-8dcc-45e2-b6bc-3203d94e8aeb"], ["LIMIT", 1]] 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", "f0bae405-8dcc-45e2-b6bc-3203d94e8aeb"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t7a3f419cad6642b9019f6906a92b7306  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PushType::MarkdownFieldTest: 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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-235"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::MarkdownFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-235"], ["field_store", "{\"foo\":\"**foo** *bar*\"}"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tab5c1052e57f10d31a830f84235e61e8 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "1ac6afd8-a560-43bd-b140-9c7a8c34b442"], ["descendant_id", "1ac6afd8-a560-43bd-b140-9c7a8c34b442"], ["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::MarkdownFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::MarkdownFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "1ac6afd8-a560-43bd-b140-9c7a8c34b442"], ["LIMIT", 1]] 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", "1ac6afd8-a560-43bd-b140-9c7a8c34b442"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tc24fb2bc947ba1dc2de56f3501566e2d  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PushType::MarkdownFieldTest: test_0005_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.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-236"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::MarkdownFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-236"], ["field_store", "{\"foo\":\"**foo** *bar*\"}"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS ta939953bee5051d4defecab996236b8b SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "0525726c-d018-46f4-850d-0ba2e84f1185"], ["descendant_id", "0525726c-d018-46f4-850d-0ba2e84f1185"], ["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::MarkdownFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::MarkdownFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "0525726c-d018-46f4-850d-0ba2e84f1185"], ["LIMIT", 1]] 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", "0525726c-d018-46f4-850d-0ba2e84f1185"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t566504be909927e72362a6ec2c79b161  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN -------------------------------------------------------------------------------------------- PushType::MenuBuilder::MenuTest::#insert_after: test_0001_should insert before the given key --------------------------------------------------------------------------------------------  (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::MenuBuilder::MenuTest: 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::MenuBuilder::MenuTest: 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.0ms) ROLLBACK  (0.0ms) BEGIN ---------------------------------------------------- PushType::MenuBuilder::MenuTest: 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.0ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- PushType::MenuBuilder::MenuTest: 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::PushTypeTest::.config: test_0009_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::PushTypeTest::.config: test_0005_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::PushTypeTest::.config: test_0004_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::PushTypeTest::.config: test_0003_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::PushTypeTest::.config: test_0001_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::PushTypeTest::.config: test_0006_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::PushTypeTest::.config: 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.0ms) BEGIN ---------------------------------------------------- PushType::PushTypeTest::.config: test_0008_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::PushTypeTest::.config: test_0007_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::TrashableTest::#trashed?::when not trash::#trash!: 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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-237"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-237"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tb964e8d469f1b8e72c0ad25804395afc SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "198ada15-28fa-4d1f-889d-ae300af9e5c7"], ["descendant_id", "198ada15-28fa-4d1f-889d-ae300af9e5c7"], ["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 $2 [["id", "198ada15-28fa-4d1f-889d-ae300af9e5c7"], ["LIMIT", 1]] 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", "198ada15-28fa-4d1f-889d-ae300af9e5c7"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tf2cebdcb633d57843478a0c2664ba355  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) UPDATE "push_type_nodes" SET "updated_at" = $1, "deleted_at" = $2 WHERE "push_type_nodes"."id" = $3 [["updated_at", 2016-10-16 14:40:56 UTC], ["deleted_at", 2016-10-16 14:40:56 UTC], ["id", "198ada15-28fa-4d1f-889d-ae300af9e5c7"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 SQL (0.5ms) UPDATE "push_type_nodes" SET "deleted_at" = '2016-10-16 14:40:56.782748' WHERE "push_type_nodes"."id" IN (SELECT "push_type_nodes"."id" FROM "push_type_nodes" INNER JOIN "push_type_node_hierarchies" ON "push_type_nodes"."id" = "push_type_node_hierarchies"."descendant_id" WHERE "push_type_node_hierarchies"."ancestor_id" = $1 AND ("push_type_nodes"."id" != '198ada15-28fa-4d1f-889d-ae300af9e5c7') ORDER BY "push_type_node_hierarchies".generations asc, sort_order) [["ancestor_id", "198ada15-28fa-4d1f-889d-ae300af9e5c7"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN ----------------------------------------------------------------------- PushType::CustomizableTest::#attribute_for_inspect: 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::SelectFieldTest: test_0007_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-238"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::SelectFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-238"], ["field_store", "{\"foo\":\"b\",\"bars\":[\"x\",\"y\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tc1a7fc8946eda38b33ad8bc9fb1728e1 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "c4368a96-ea69-4716-81b6-1f814195ad90"], ["descendant_id", "c4368a96-ea69-4716-81b6-1f814195ad90"], ["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::SelectFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::SelectFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "c4368a96-ea69-4716-81b6-1f814195ad90"], ["LIMIT", 1]] 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", "c4368a96-ea69-4716-81b6-1f814195ad90"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tc5c67fecbbe3d30a23ab181d78f0dca6  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- PushType::SelectFieldTest: test_0003_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-239"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::SelectFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-239"], ["field_store", "{\"foo\":\"b\",\"bars\":[\"x\",\"y\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS taee1bea4a7a9e0248556118a8dce3b9d SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "22fd7621-01f3-4bc2-9ba3-710783496a9e"], ["descendant_id", "22fd7621-01f3-4bc2-9ba3-710783496a9e"], ["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::SelectFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::SelectFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "22fd7621-01f3-4bc2-9ba3-710783496a9e"], ["LIMIT", 1]] 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", "22fd7621-01f3-4bc2-9ba3-710783496a9e"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t504021f63fd5951ef8e26a05f66089b9  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- PushType::SelectFieldTest: 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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-240"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::SelectFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-240"], ["field_store", "{\"foo\":\"b\",\"bars\":[\"x\",\"y\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tafd169446a4896e35490bd1e297efd85 SQL (0.3ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "1e621353-ad30-4c8c-8190-cfd9ecf1589a"], ["descendant_id", "1e621353-ad30-4c8c-8190-cfd9ecf1589a"], ["generations", 0]]  (0.5ms) 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::SelectFieldTest::TestPage Load (0.4ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::SelectFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "1e621353-ad30-4c8c-8190-cfd9ecf1589a"], ["LIMIT", 1]] PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "1e621353-ad30-4c8c-8190-cfd9ecf1589a"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t2b64a2b0d054c441844f00beaea0d3f8  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- PushType::SelectFieldTest: test_0015_anonymous ----------------------------------------------  (0.0ms) 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.4ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-241"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::SelectFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-241"], ["field_store", "{\"foo\":\"b\",\"bars\":[\"x\",\"y\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.3ms) SELECT pg_try_advisory_lock(1213021721,0) AS t27d6cca8a41872c84b935d253fe8667e SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "b9dfd29b-db28-40a5-9850-c07856373d56"], ["descendant_id", "b9dfd29b-db28-40a5-9850-c07856373d56"], ["generations", 0]]  (0.5ms) 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::SelectFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::SelectFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "b9dfd29b-db28-40a5-9850-c07856373d56"], ["LIMIT", 1]] PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "b9dfd29b-db28-40a5-9850-c07856373d56"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t1870d0d7686e39f6b52176cc3997e8e9  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- PushType::SelectFieldTest: test_0006_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-242"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::SelectFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-242"], ["field_store", "{\"foo\":\"b\",\"bars\":[\"x\",\"y\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t610986c58810606d99867a5848aa39e1 SQL (0.4ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "6f76056d-89b8-4d8a-8da8-182b3179801f"], ["descendant_id", "6f76056d-89b8-4d8a-8da8-182b3179801f"], ["generations", 0]]  (0.7ms) 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::SelectFieldTest::TestPage Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::SelectFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "6f76056d-89b8-4d8a-8da8-182b3179801f"], ["LIMIT", 1]] PushType::Node Load (0.8ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "6f76056d-89b8-4d8a-8da8-182b3179801f"]]  (0.3ms) SELECT pg_advisory_unlock(1213021721,0) AS t7fb5ca3e9bd83234b75032602480617b  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN ---------------------------------------------- PushType::SelectFieldTest: test_0009_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-243"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::SelectFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-243"], ["field_store", "{\"foo\":\"b\",\"bars\":[\"x\",\"y\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tea4350a6ee0fc9174776af5c8d3016b0 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "46ce0e52-555d-4eb7-90d5-5f22b5332786"], ["descendant_id", "46ce0e52-555d-4eb7-90d5-5f22b5332786"], ["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::SelectFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::SelectFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "46ce0e52-555d-4eb7-90d5-5f22b5332786"], ["LIMIT", 1]] 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", "46ce0e52-555d-4eb7-90d5-5f22b5332786"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t821cc1e5240e8a6d4e939561da7e330f  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- PushType::SelectFieldTest: test_0010_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.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-244"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::SelectFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-244"], ["field_store", "{\"foo\":\"b\",\"bars\":[\"x\",\"y\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tf72ef552be055853fdfca3fd70080772 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "383a44a4-cc68-49f8-89be-3749b495089e"], ["descendant_id", "383a44a4-cc68-49f8-89be-3749b495089e"], ["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::SelectFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::SelectFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "383a44a4-cc68-49f8-89be-3749b495089e"], ["LIMIT", 1]] PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "383a44a4-cc68-49f8-89be-3749b495089e"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t9595c0f177475f2adfeef870a902597b  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- PushType::SelectFieldTest: test_0011_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-245"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::SelectFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-245"], ["field_store", "{\"foo\":\"b\",\"bars\":[\"x\",\"y\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t37117935e9c4a73854119b67c1f4f837 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "b978ba94-ad92-4f8f-bdb2-d4f65ca6f132"], ["descendant_id", "b978ba94-ad92-4f8f-bdb2-d4f65ca6f132"], ["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::SelectFieldTest::TestPage Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::SelectFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "b978ba94-ad92-4f8f-bdb2-d4f65ca6f132"], ["LIMIT", 1]] PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "b978ba94-ad92-4f8f-bdb2-d4f65ca6f132"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t6740d9793cf3eac62f85efaed2c209d2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- PushType::SelectFieldTest: test_0013_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-246"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::SelectFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-246"], ["field_store", "{\"foo\":\"b\",\"bars\":[\"x\",\"y\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t1e3e0945ce27438547df6f4e8842999a SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "32914abe-e996-47c5-be64-019d1a901664"], ["descendant_id", "32914abe-e996-47c5-be64-019d1a901664"], ["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::SelectFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::SelectFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "32914abe-e996-47c5-be64-019d1a901664"], ["LIMIT", 1]] 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", "32914abe-e996-47c5-be64-019d1a901664"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t2130de6acb9dafa7689f7850cc6d05a4  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- PushType::SelectFieldTest: test_0008_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-247"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::SelectFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-247"], ["field_store", "{\"foo\":\"b\",\"bars\":[\"x\",\"y\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t6d997e72a59b781d53856be65f6dcbed SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "96ecf19d-8304-491c-aeec-9837c82eb0dd"], ["descendant_id", "96ecf19d-8304-491c-aeec-9837c82eb0dd"], ["generations", 0]]  (0.4ms) 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::SelectFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::SelectFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "96ecf19d-8304-491c-aeec-9837c82eb0dd"], ["LIMIT", 1]] PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "96ecf19d-8304-491c-aeec-9837c82eb0dd"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t1e6d0c4dddbaf92576448c005b6d4d36  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- PushType::SelectFieldTest: 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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-248"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::SelectFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-248"], ["field_store", "{\"foo\":\"b\",\"bars\":[\"x\",\"y\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t442e0cb8bb750e9a09f6546eddc71209 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "bcd0501c-2464-4866-b556-d28e410192e4"], ["descendant_id", "bcd0501c-2464-4866-b556-d28e410192e4"], ["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::SelectFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::SelectFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "bcd0501c-2464-4866-b556-d28e410192e4"], ["LIMIT", 1]] 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", "bcd0501c-2464-4866-b556-d28e410192e4"]]  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t0e479660bc1b5bb273a4385f647f2ddf  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- PushType::SelectFieldTest: 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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-249"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::SelectFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-249"], ["field_store", "{\"foo\":\"b\",\"bars\":[\"x\",\"y\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tcd12f0735c22498f84fe99a4f224cbc5 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "6296604a-6dfe-4385-9a69-6ee9ec420328"], ["descendant_id", "6296604a-6dfe-4385-9a69-6ee9ec420328"], ["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::SelectFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::SelectFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "6296604a-6dfe-4385-9a69-6ee9ec420328"], ["LIMIT", 1]] 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", "6296604a-6dfe-4385-9a69-6ee9ec420328"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t7fea6e929a2bda7109dba660728a8229  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- PushType::SelectFieldTest: test_0005_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-250"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::SelectFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-250"], ["field_store", "{\"foo\":\"b\",\"bars\":[\"x\",\"y\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tb54debd4528a27bf9a6532c9b8e5a3eb SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "fd99c10e-3dd8-464d-9449-9e91387022f0"], ["descendant_id", "fd99c10e-3dd8-464d-9449-9e91387022f0"], ["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::SelectFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::SelectFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "fd99c10e-3dd8-464d-9449-9e91387022f0"], ["LIMIT", 1]] 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", "fd99c10e-3dd8-464d-9449-9e91387022f0"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tb3465c85a89f108fb48b13ff8b2dfecd  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- PushType::SelectFieldTest: test_0014_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.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-251"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::SelectFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-251"], ["field_store", "{\"foo\":\"b\",\"bars\":[\"x\",\"y\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t54b2a7269ec628a8d62b8373e3cd2a97 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "4138cd3f-69df-4be5-b8dd-0357f8709a06"], ["descendant_id", "4138cd3f-69df-4be5-b8dd-0357f8709a06"], ["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::SelectFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::SelectFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "4138cd3f-69df-4be5-b8dd-0357f8709a06"], ["LIMIT", 1]] 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", "4138cd3f-69df-4be5-b8dd-0357f8709a06"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t2117c59b83b75a260ae607406e1056e5  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- PushType::SelectFieldTest: 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 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-252"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::SelectFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-252"], ["field_store", "{\"foo\":\"b\",\"bars\":[\"x\",\"y\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t4d6da587c6f8ac8bb14f716d2a63d4db SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "b2c79f96-e910-4108-93a7-91969b985519"], ["descendant_id", "b2c79f96-e910-4108-93a7-91969b985519"], ["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::SelectFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::SelectFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "b2c79f96-e910-4108-93a7-91969b985519"], ["LIMIT", 1]] 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", "b2c79f96-e910-4108-93a7-91969b985519"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS te1c685c17d5319dc5cf695be1d9a6ce7  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN ------------------------------------------------ PushType::RelationFieldTest: test_0020_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-253"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-253"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t95cb95a5d775526e32b2e3840f4242b9 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "987e51d4-7faa-46ba-a97b-f1df8e89f2c4"], ["descendant_id", "987e51d4-7faa-46ba-a97b-f1df8e89f2c4"], ["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 $2 [["id", "987e51d4-7faa-46ba-a97b-f1df8e89f2c4"], ["LIMIT", 1]] 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", "987e51d4-7faa-46ba-a97b-f1df8e89f2c4"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tb3eb4ac53d6dce53859b0bc856e509d8  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-254"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-254"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tde2cb77be22473a10e74adc86949d66a SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "72680614-137f-418b-90df-656efd8a4e47"], ["descendant_id", "72680614-137f-418b-90df-656efd8a4e47"], ["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 $2 [["id", "72680614-137f-418b-90df-656efd8a4e47"], ["LIMIT", 1]] 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", "72680614-137f-418b-90df-656efd8a4e47"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tffdba97bb6cc52ad428c873b1a1404f6  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-255"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-255"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tef9607f6770c6204e8111a7fca5d5b23 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "a5dc4a01-12ae-4ec1-a38b-51fe943868e6"], ["descendant_id", "a5dc4a01-12ae-4ec1-a38b-51fe943868e6"], ["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 $2 [["id", "a5dc4a01-12ae-4ec1-a38b-51fe943868e6"], ["LIMIT", 1]] 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", "a5dc4a01-12ae-4ec1-a38b-51fe943868e6"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t6df9b21cba30d62da42d102f59d30e70  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-256"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-256"], ["status", 0], ["created_at", 2016-10-16 14:40:56 UTC], ["updated_at", 2016-10-16 14:40:56 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t740fe06180bd28db4ffb8d5eb7f9e573 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "242db8d4-1859-4547-a256-f22d18689128"], ["descendant_id", "242db8d4-1859-4547-a256-f22d18689128"], ["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 $2 [["id", "242db8d4-1859-4547-a256-f22d18689128"], ["LIMIT", 1]] 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", "242db8d4-1859-4547-a256-f22d18689128"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t3d44aecac304b61ece6b056bc451ac21  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-257"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-257"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t4d0486cbed25a1a84a61a45e9ffbe37d SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "e39e5b97-7cca-4908-a267-59b04622badd"], ["descendant_id", "e39e5b97-7cca-4908-a267-59b04622badd"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "e39e5b97-7cca-4908-a267-59b04622badd"], ["LIMIT", 1]] 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", "e39e5b97-7cca-4908-a267-59b04622badd"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t801d87654bd96843594a14e926a2def4  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-258"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-258"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t2603df9813b3e226d946eb9a9f357859 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "9ba66d97-7bdd-4196-8912-09d188ef7766"], ["descendant_id", "9ba66d97-7bdd-4196-8912-09d188ef7766"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "9ba66d97-7bdd-4196-8912-09d188ef7766"], ["LIMIT", 1]] 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", "9ba66d97-7bdd-4196-8912-09d188ef7766"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t705cdf351c7a56baaacbac25c235f836  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-259"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-259"], ["field_store", "{\"page_id\":\"987e51d4-7faa-46ba-a97b-f1df8e89f2c4\",\"bar_ids\":[\"e39e5b97-7cca-4908-a267-59b04622badd\",\"9ba66d97-7bdd-4196-8912-09d188ef7766\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tb0a82916c810578958c8f26962fdb1ec SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "b2d8f041-753f-4312-a5b7-fa93449d2f25"], ["descendant_id", "b2d8f041-753f-4312-a5b7-fa93449d2f25"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "b2d8f041-753f-4312-a5b7-fa93449d2f25"], ["LIMIT", 1]] 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", "b2d8f041-753f-4312-a5b7-fa93449d2f25"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tf24ea2a155d558d25f35ed0dd0409def  (0.1ms) RELEASE SAVEPOINT active_record_2 PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PushType::RelationFieldTest: test_0001_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-260"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-260"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tdca6cf09153e37256369dc01b896af77 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "731ae474-fd3e-4fb3-bc03-8d7ee54e1187"], ["descendant_id", "731ae474-fd3e-4fb3-bc03-8d7ee54e1187"], ["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 $2 [["id", "731ae474-fd3e-4fb3-bc03-8d7ee54e1187"], ["LIMIT", 1]] 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", "731ae474-fd3e-4fb3-bc03-8d7ee54e1187"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t1339b1454adf3b73f49a3b317216a48f  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-261"], ["LIMIT", 1]] SQL (0.1ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-261"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t2fa1fc9f27d7951d455c5467eed847ee SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "dc18ad0e-fcef-41c9-b0d2-996507c07854"], ["descendant_id", "dc18ad0e-fcef-41c9-b0d2-996507c07854"], ["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 $2 [["id", "dc18ad0e-fcef-41c9-b0d2-996507c07854"], ["LIMIT", 1]] 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", "dc18ad0e-fcef-41c9-b0d2-996507c07854"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t0a4fc2229fa7d2a813d79be05fb6528c  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-262"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-262"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t9a03e3ec010ee28cb13cd05faa154ea7 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "4844356b-c66a-4e90-9108-b4253f5cc628"], ["descendant_id", "4844356b-c66a-4e90-9108-b4253f5cc628"], ["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 $2 [["id", "4844356b-c66a-4e90-9108-b4253f5cc628"], ["LIMIT", 1]] 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", "4844356b-c66a-4e90-9108-b4253f5cc628"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tb0545ab70c88edb69cfd28227bca6096  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-263"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-263"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS te88b603adc477a639cdeadfb1eda43ec SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "ea22eb24-20b9-49c3-82f0-89c0786da3b0"], ["descendant_id", "ea22eb24-20b9-49c3-82f0-89c0786da3b0"], ["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 $2 [["id", "ea22eb24-20b9-49c3-82f0-89c0786da3b0"], ["LIMIT", 1]] 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", "ea22eb24-20b9-49c3-82f0-89c0786da3b0"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t03dbd4c9b6fd849fbf0aee697e398ffb  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-264"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-264"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t2f729e8e300db24502710285f8859a28 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "34fd2cdb-125d-4c9d-ab99-0bfbfa0b3aee"], ["descendant_id", "34fd2cdb-125d-4c9d-ab99-0bfbfa0b3aee"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "34fd2cdb-125d-4c9d-ab99-0bfbfa0b3aee"], ["LIMIT", 1]] 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", "34fd2cdb-125d-4c9d-ab99-0bfbfa0b3aee"]]  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t3c78cab7119fe5f078793d83da6c3679  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-265"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-265"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tb2d5fa400f53301b35e30204ae6d003b SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "b29c28b7-cb63-4686-8e47-313e4e463d8d"], ["descendant_id", "b29c28b7-cb63-4686-8e47-313e4e463d8d"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "b29c28b7-cb63-4686-8e47-313e4e463d8d"], ["LIMIT", 1]] 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", "b29c28b7-cb63-4686-8e47-313e4e463d8d"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t50ff445ba1eb9f5387e251c50eb9f36a  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-266"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-266"], ["field_store", "{\"page_id\":\"731ae474-fd3e-4fb3-bc03-8d7ee54e1187\",\"bar_ids\":[\"34fd2cdb-125d-4c9d-ab99-0bfbfa0b3aee\",\"b29c28b7-cb63-4686-8e47-313e4e463d8d\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t887f45e01b84061e2d25ed65184cf308 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "928c8830-dd61-4b2c-a883-5ea49356c755"], ["descendant_id", "928c8830-dd61-4b2c-a883-5ea49356c755"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "928c8830-dd61-4b2c-a883-5ea49356c755"], ["LIMIT", 1]] 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", "928c8830-dd61-4b2c-a883-5ea49356c755"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t3f5f6ad01b3b3e694be164debae55276  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PushType::RelationFieldTest: test_0022_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-267"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-267"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t58b92e7651b6ca142e282c2ffa583e88 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "cb9ee4d3-cddc-4cd8-92c0-ff5ec7fa6737"], ["descendant_id", "cb9ee4d3-cddc-4cd8-92c0-ff5ec7fa6737"], ["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 $2 [["id", "cb9ee4d3-cddc-4cd8-92c0-ff5ec7fa6737"], ["LIMIT", 1]] 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", "cb9ee4d3-cddc-4cd8-92c0-ff5ec7fa6737"]]  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS tfc086a8f65559e142f6903d7c2b7b0f5  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-268"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-268"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS td0be7206774df3d8c379b6b8cedca664 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "38cfb3ac-bc63-4b9d-a30e-75dae67ce2e3"], ["descendant_id", "38cfb3ac-bc63-4b9d-a30e-75dae67ce2e3"], ["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 $2 [["id", "38cfb3ac-bc63-4b9d-a30e-75dae67ce2e3"], ["LIMIT", 1]] 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", "38cfb3ac-bc63-4b9d-a30e-75dae67ce2e3"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t014fad500f6c7fa940580bdfd54aa58c  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-269"], ["LIMIT", 1]] SQL (0.1ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-269"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t866502eab7b0632403bfcd011e582d29 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "6bd78262-de10-4b34-af08-8f99296be257"], ["descendant_id", "6bd78262-de10-4b34-af08-8f99296be257"], ["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 $2 [["id", "6bd78262-de10-4b34-af08-8f99296be257"], ["LIMIT", 1]] 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", "6bd78262-de10-4b34-af08-8f99296be257"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t5e757bb0ec336ea21aa4bd365e5f9742  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-270"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-270"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t94f33f8e2248f11b3c9767c25b98de37 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "9fdd31b6-9ae8-4436-9ce9-ff139e4557ca"], ["descendant_id", "9fdd31b6-9ae8-4436-9ce9-ff139e4557ca"], ["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 $2 [["id", "9fdd31b6-9ae8-4436-9ce9-ff139e4557ca"], ["LIMIT", 1]] 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", "9fdd31b6-9ae8-4436-9ce9-ff139e4557ca"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t83b353b1f849c0c4a034c61e68f28066  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-271"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-271"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS ta4db92210fd7b7cffd26e06525e05d8d SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "d1e5a58e-5507-45e1-b723-c821929bfbb0"], ["descendant_id", "d1e5a58e-5507-45e1-b723-c821929bfbb0"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "d1e5a58e-5507-45e1-b723-c821929bfbb0"], ["LIMIT", 1]] 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", "d1e5a58e-5507-45e1-b723-c821929bfbb0"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t690cf3d98aaa3c9eef541dfa1531695e  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-272"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-272"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t0e421d8c1d88a2797cfa7d1f0dc6b3b2 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "12bd8d13-d3fb-403d-b55f-271e702122ad"], ["descendant_id", "12bd8d13-d3fb-403d-b55f-271e702122ad"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "12bd8d13-d3fb-403d-b55f-271e702122ad"], ["LIMIT", 1]] 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", "12bd8d13-d3fb-403d-b55f-271e702122ad"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t124c89a64292113bef957620fb4a18a6  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-273"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-273"], ["field_store", "{\"page_id\":\"cb9ee4d3-cddc-4cd8-92c0-ff5ec7fa6737\",\"bar_ids\":[\"d1e5a58e-5507-45e1-b723-c821929bfbb0\",\"12bd8d13-d3fb-403d-b55f-271e702122ad\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tfb84eda1059ed495f0a7ab7273dd74b5 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "9b9ab644-2b01-4020-989c-ddf2bf4582d4"], ["descendant_id", "9b9ab644-2b01-4020-989c-ddf2bf4582d4"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "9b9ab644-2b01-4020-989c-ddf2bf4582d4"], ["LIMIT", 1]] 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", "9b9ab644-2b01-4020-989c-ddf2bf4582d4"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tf74105fb8286abafe0d9e3c1d7f9837f  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PushType::RelationFieldTest: test_0014_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.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-274"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-274"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t4ba00b8a760a518082e0dc740fa771df SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "5dbe2559-c75f-4152-b874-f83e8efb661c"], ["descendant_id", "5dbe2559-c75f-4152-b874-f83e8efb661c"], ["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 $2 [["id", "5dbe2559-c75f-4152-b874-f83e8efb661c"], ["LIMIT", 1]] 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", "5dbe2559-c75f-4152-b874-f83e8efb661c"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t8f50ba7d1f3234b5309297cb263736e2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-275"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-275"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS ta356afe51a527f6e24ed0c7ede0dd9f7 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "291b4b6b-4cbf-45f8-a100-662dca59a37a"], ["descendant_id", "291b4b6b-4cbf-45f8-a100-662dca59a37a"], ["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 $2 [["id", "291b4b6b-4cbf-45f8-a100-662dca59a37a"], ["LIMIT", 1]] 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", "291b4b6b-4cbf-45f8-a100-662dca59a37a"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS ta86a42a3534d7529eaccefd6cbd63f87  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-276"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-276"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t7726d23e2b8100360bc7147996b8b90e SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "f67fd26c-798a-432f-a71d-164d5e12fdda"], ["descendant_id", "f67fd26c-798a-432f-a71d-164d5e12fdda"], ["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 $2 [["id", "f67fd26c-798a-432f-a71d-164d5e12fdda"], ["LIMIT", 1]] 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", "f67fd26c-798a-432f-a71d-164d5e12fdda"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS teb55897fa24c3a19182f81078393eda3  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-277"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-277"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t4e5ec1b9e0cc93671deec5534a4a5f98 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "de724515-e9d7-4974-b903-c43cc6be7e54"], ["descendant_id", "de724515-e9d7-4974-b903-c43cc6be7e54"], ["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 $2 [["id", "de724515-e9d7-4974-b903-c43cc6be7e54"], ["LIMIT", 1]] 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", "de724515-e9d7-4974-b903-c43cc6be7e54"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t608fd930767e9da05db4413b1d93b415  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-278"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-278"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t34687594898dbdf0b5a8d72500e274e1 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "0973b52f-edb2-455a-985a-c11eea2a6a9e"], ["descendant_id", "0973b52f-edb2-455a-985a-c11eea2a6a9e"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "0973b52f-edb2-455a-985a-c11eea2a6a9e"], ["LIMIT", 1]] 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", "0973b52f-edb2-455a-985a-c11eea2a6a9e"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t9ac5f6384792a94f9d1ab7e0d2b8e0c1  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-279"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-279"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t294aa614ae7b3eb331e9d0fd6aa34240 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "4ae3a7bf-d615-4c3d-b44e-5843a573ee6a"], ["descendant_id", "4ae3a7bf-d615-4c3d-b44e-5843a573ee6a"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "4ae3a7bf-d615-4c3d-b44e-5843a573ee6a"], ["LIMIT", 1]] PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "4ae3a7bf-d615-4c3d-b44e-5843a573ee6a"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t88c2049466bad1a89ba1162a3b258299  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-280"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-280"], ["field_store", "{\"page_id\":\"5dbe2559-c75f-4152-b874-f83e8efb661c\",\"bar_ids\":[\"0973b52f-edb2-455a-985a-c11eea2a6a9e\",\"4ae3a7bf-d615-4c3d-b44e-5843a573ee6a\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tbf5dcbd59b5b067168887100349e3bb1 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "2b901404-2bb8-4e6d-8ed4-26c5f159e821"], ["descendant_id", "2b901404-2bb8-4e6d-8ed4-26c5f159e821"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "2b901404-2bb8-4e6d-8ed4-26c5f159e821"], ["LIMIT", 1]] 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", "2b901404-2bb8-4e6d-8ed4-26c5f159e821"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t44709a478b4166282132e3f1d84b8af1  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PushType::RelationFieldTest: test_0024_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-281"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-281"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t419ed51d40be7ef72aeee59c6455e4f5 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "a6777957-bc4f-4fd6-b480-fe36cdcf78b1"], ["descendant_id", "a6777957-bc4f-4fd6-b480-fe36cdcf78b1"], ["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 $2 [["id", "a6777957-bc4f-4fd6-b480-fe36cdcf78b1"], ["LIMIT", 1]] 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", "a6777957-bc4f-4fd6-b480-fe36cdcf78b1"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t42da159133dac6f4d48b6027c869e281  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-282"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-282"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t9eb154822868c8c71f8743760218a9bf SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "08796c65-9d74-4e1e-adcb-74320a66c14c"], ["descendant_id", "08796c65-9d74-4e1e-adcb-74320a66c14c"], ["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 $2 [["id", "08796c65-9d74-4e1e-adcb-74320a66c14c"], ["LIMIT", 1]] 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", "08796c65-9d74-4e1e-adcb-74320a66c14c"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t274cc4e21117be39d5214b26128a0b3c  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-283"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-283"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t3d1065e1f14e564c2d60e5d6f66619aa SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "e73d4256-0b33-481c-aabd-5df6df6c6d91"], ["descendant_id", "e73d4256-0b33-481c-aabd-5df6df6c6d91"], ["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 $2 [["id", "e73d4256-0b33-481c-aabd-5df6df6c6d91"], ["LIMIT", 1]] 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", "e73d4256-0b33-481c-aabd-5df6df6c6d91"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t0ebd5c9c2104e6e83e13527df076c080  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-284"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-284"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t212b43ba46758397862312ad729ac52c SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "fd0f02d3-5ccc-4063-9ae0-9741f4bbe389"], ["descendant_id", "fd0f02d3-5ccc-4063-9ae0-9741f4bbe389"], ["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 $2 [["id", "fd0f02d3-5ccc-4063-9ae0-9741f4bbe389"], ["LIMIT", 1]] 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", "fd0f02d3-5ccc-4063-9ae0-9741f4bbe389"]]  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS tf68a1b6740a736b286a89ab2ed052c01  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-285"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-285"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS te6ae16d3af8fbc0e350010ec40c319db SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "cbd88448-0dc2-47df-8aa3-fb378e2720e8"], ["descendant_id", "cbd88448-0dc2-47df-8aa3-fb378e2720e8"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "cbd88448-0dc2-47df-8aa3-fb378e2720e8"], ["LIMIT", 1]] 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", "cbd88448-0dc2-47df-8aa3-fb378e2720e8"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS te606a7b95bf2402a9f3b5673d4452288  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-286"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-286"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t8d250659ad63b0580b36909a04a249ea SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "24c47210-f110-4a88-bb96-192eedf81977"], ["descendant_id", "24c47210-f110-4a88-bb96-192eedf81977"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "24c47210-f110-4a88-bb96-192eedf81977"], ["LIMIT", 1]] 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", "24c47210-f110-4a88-bb96-192eedf81977"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t62f2ed35f29368122530e5637d3a07e7  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-287"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-287"], ["field_store", "{\"page_id\":\"a6777957-bc4f-4fd6-b480-fe36cdcf78b1\",\"bar_ids\":[\"cbd88448-0dc2-47df-8aa3-fb378e2720e8\",\"24c47210-f110-4a88-bb96-192eedf81977\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t73109a1018248e2b8edd59838d28a07f SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "b8a911f1-6636-48a0-bbdc-9d845c67bf08"], ["descendant_id", "b8a911f1-6636-48a0-bbdc-9d845c67bf08"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "b8a911f1-6636-48a0-bbdc-9d845c67bf08"], ["LIMIT", 1]] 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", "b8a911f1-6636-48a0-bbdc-9d845c67bf08"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t64c6201298f5aa2c145df7f575411a56  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PushType::RelationFieldTest: 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 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-288"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-288"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t28beaf1c896971adcd1d25c3ddd490cf SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "a2d20d59-669b-428c-89a5-966e92abd39a"], ["descendant_id", "a2d20d59-669b-428c-89a5-966e92abd39a"], ["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 $2 [["id", "a2d20d59-669b-428c-89a5-966e92abd39a"], ["LIMIT", 1]] 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", "a2d20d59-669b-428c-89a5-966e92abd39a"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t862c6e52debbdfa213f790a6bfadcf8c  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-289"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-289"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS taa0125ff33c4244790121ee630ed3332 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "a2a76502-da74-43d0-82c1-20a8009a32c0"], ["descendant_id", "a2a76502-da74-43d0-82c1-20a8009a32c0"], ["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 $2 [["id", "a2a76502-da74-43d0-82c1-20a8009a32c0"], ["LIMIT", 1]] 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", "a2a76502-da74-43d0-82c1-20a8009a32c0"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t8d0c880f2bc70b4b9cb2c1c0d87b3101  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-290"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-290"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tff92cf323c28695e9ef7c309a1a5a2af SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "87bb340a-cfbd-4070-928e-45527dfc56a4"], ["descendant_id", "87bb340a-cfbd-4070-928e-45527dfc56a4"], ["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 $2 [["id", "87bb340a-cfbd-4070-928e-45527dfc56a4"], ["LIMIT", 1]] 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", "87bb340a-cfbd-4070-928e-45527dfc56a4"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS te262f92cf74dc963a078daf803539c2d  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-291"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-291"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t9dcff94adebd3510821d93a74b2147f2 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "e306c4f5-e179-414a-b657-94cd6c076645"], ["descendant_id", "e306c4f5-e179-414a-b657-94cd6c076645"], ["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 $2 [["id", "e306c4f5-e179-414a-b657-94cd6c076645"], ["LIMIT", 1]] 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", "e306c4f5-e179-414a-b657-94cd6c076645"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t101bc131839f6665f66c734a4c79cc15  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-292"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-292"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS tc7823faa84ac3261b1a1da1889661539 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "dcca1da5-afe5-4b0d-babe-dfd7a8686db3"], ["descendant_id", "dcca1da5-afe5-4b0d-babe-dfd7a8686db3"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "dcca1da5-afe5-4b0d-babe-dfd7a8686db3"], ["LIMIT", 1]] 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", "dcca1da5-afe5-4b0d-babe-dfd7a8686db3"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t23807897125e3887058fea9e7464001c  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-293"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-293"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS te65500f6bb0b9abb54c682aaf9d212e2 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "37b180af-19a9-4184-8b13-cac74f03cef1"], ["descendant_id", "37b180af-19a9-4184-8b13-cac74f03cef1"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "37b180af-19a9-4184-8b13-cac74f03cef1"], ["LIMIT", 1]] 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", "37b180af-19a9-4184-8b13-cac74f03cef1"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS ta419f38133a99e8d590cbdbd941f9d46  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-294"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-294"], ["field_store", "{\"page_id\":\"a2d20d59-669b-428c-89a5-966e92abd39a\",\"bar_ids\":[\"dcca1da5-afe5-4b0d-babe-dfd7a8686db3\",\"37b180af-19a9-4184-8b13-cac74f03cef1\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t0693bb1b768f69c3125cd00123f2424b SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "2ab36a49-3377-4af0-96fa-17144bf9c150"], ["descendant_id", "2ab36a49-3377-4af0-96fa-17144bf9c150"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "2ab36a49-3377-4af0-96fa-17144bf9c150"], ["LIMIT", 1]] 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", "2ab36a49-3377-4af0-96fa-17144bf9c150"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t557632beedc53b9152431dd20533b45c  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PushType::RelationFieldTest: 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 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-295"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-295"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t7b862349d9a19119ea9471de23aedb61 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "78f18efb-c24a-4c8f-a1b9-1efbe168a231"], ["descendant_id", "78f18efb-c24a-4c8f-a1b9-1efbe168a231"], ["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 $2 [["id", "78f18efb-c24a-4c8f-a1b9-1efbe168a231"], ["LIMIT", 1]] 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", "78f18efb-c24a-4c8f-a1b9-1efbe168a231"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS teaae66a77daeea9e0437529dc1da0865  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-296"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-296"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tf27408fab713c082bbb134e16e701d52 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "31792b3e-426f-4c88-b19f-6d0bb79a7e5b"], ["descendant_id", "31792b3e-426f-4c88-b19f-6d0bb79a7e5b"], ["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 $2 [["id", "31792b3e-426f-4c88-b19f-6d0bb79a7e5b"], ["LIMIT", 1]] 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", "31792b3e-426f-4c88-b19f-6d0bb79a7e5b"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tb48a463ce916d426945ca04027269fb8  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-297"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-297"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tca48415eca1458f64162e37540ddfb73 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "fdb533b4-e0ab-4635-88c0-fdc904968007"], ["descendant_id", "fdb533b4-e0ab-4635-88c0-fdc904968007"], ["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 $2 [["id", "fdb533b4-e0ab-4635-88c0-fdc904968007"], ["LIMIT", 1]] 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", "fdb533b4-e0ab-4635-88c0-fdc904968007"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t5fb3c09f37e89932da2175c921c1c0e6  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-298"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-298"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t19542f5d5f8575e3a2a65421cdb0290c SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "76536f1d-2d04-45d3-b4dc-82d8b3b3691a"], ["descendant_id", "76536f1d-2d04-45d3-b4dc-82d8b3b3691a"], ["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 $2 [["id", "76536f1d-2d04-45d3-b4dc-82d8b3b3691a"], ["LIMIT", 1]] 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", "76536f1d-2d04-45d3-b4dc-82d8b3b3691a"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tc06a5ee38b15eedf9d1d4002ab7446e3  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-299"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-299"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t44fe0c37c20da595df260f3ddfc6b11f SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "9063e82e-7ea3-4265-879e-a317936bec21"], ["descendant_id", "9063e82e-7ea3-4265-879e-a317936bec21"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "9063e82e-7ea3-4265-879e-a317936bec21"], ["LIMIT", 1]] PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "9063e82e-7ea3-4265-879e-a317936bec21"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t804fd8d9ec076a2e6838dbe39675924a  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-300"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-300"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t888bdcab6b637913ee7759e147d677f1 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "ee38aaeb-120d-486d-8e15-8370575cf70f"], ["descendant_id", "ee38aaeb-120d-486d-8e15-8370575cf70f"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "ee38aaeb-120d-486d-8e15-8370575cf70f"], ["LIMIT", 1]] 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", "ee38aaeb-120d-486d-8e15-8370575cf70f"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS te3ecf00f873c7b95e19737dcf60c4d98  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-301"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-301"], ["field_store", "{\"page_id\":\"78f18efb-c24a-4c8f-a1b9-1efbe168a231\",\"bar_ids\":[\"9063e82e-7ea3-4265-879e-a317936bec21\",\"ee38aaeb-120d-486d-8e15-8370575cf70f\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS td5b0559c4c700e5dba1643c9045907c6 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "366f67c3-04b1-4b6c-82ba-ebd140382ef9"], ["descendant_id", "366f67c3-04b1-4b6c-82ba-ebd140382ef9"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "366f67c3-04b1-4b6c-82ba-ebd140382ef9"], ["LIMIT", 1]] 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", "366f67c3-04b1-4b6c-82ba-ebd140382ef9"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t0cde014b5e08800c8907cfea340d4ef7  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PushType::RelationFieldTest: test_0029_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-302"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-302"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tbec70aecf7080801d4a0f8518fec06ef SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "40806a95-ac46-4e9c-9126-36dcfc3a6277"], ["descendant_id", "40806a95-ac46-4e9c-9126-36dcfc3a6277"], ["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 $2 [["id", "40806a95-ac46-4e9c-9126-36dcfc3a6277"], ["LIMIT", 1]] 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", "40806a95-ac46-4e9c-9126-36dcfc3a6277"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS te95002e0cee2efb26df2130fa8592005  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-303"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-303"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t1e5cca2a9d518e13d97d64acc1a97a70 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "27491c50-6f14-4dd6-8731-b47d02156342"], ["descendant_id", "27491c50-6f14-4dd6-8731-b47d02156342"], ["generations", 0]]  (0.4ms) 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 $2 [["id", "27491c50-6f14-4dd6-8731-b47d02156342"], ["LIMIT", 1]] 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", "27491c50-6f14-4dd6-8731-b47d02156342"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t096e7fe8c8f1a719b8fa3d48d64a94a9  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-304"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-304"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tcaeb433f69aba0531ed4c40a57341ea0 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "a982637c-0d37-42d7-9ccc-5eec1729a87b"], ["descendant_id", "a982637c-0d37-42d7-9ccc-5eec1729a87b"], ["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 $2 [["id", "a982637c-0d37-42d7-9ccc-5eec1729a87b"], ["LIMIT", 1]] 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", "a982637c-0d37-42d7-9ccc-5eec1729a87b"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tc378e50aa63f733205388b6547aa8bb2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-305"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-305"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tf095d7d32f5b1ce50c9eef8f47e88ab5 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "40510d20-0121-46f6-8554-3802060292fc"], ["descendant_id", "40510d20-0121-46f6-8554-3802060292fc"], ["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 $2 [["id", "40510d20-0121-46f6-8554-3802060292fc"], ["LIMIT", 1]] 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", "40510d20-0121-46f6-8554-3802060292fc"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tdad3609568c90d14122171e587d10a07  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-306"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-306"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS td6125d969b9a89d1b2d5892b2f266a98 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "d149c750-2c91-40db-8491-511518a8e004"], ["descendant_id", "d149c750-2c91-40db-8491-511518a8e004"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "d149c750-2c91-40db-8491-511518a8e004"], ["LIMIT", 1]] 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", "d149c750-2c91-40db-8491-511518a8e004"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS ta18f44609353634dcf53e9b45dbcd062  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-307"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-307"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t5a6f8340a11f0bd5c038f419a53bfc1e SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "07ca8240-40a4-4933-ac2f-56bcbed512c2"], ["descendant_id", "07ca8240-40a4-4933-ac2f-56bcbed512c2"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "07ca8240-40a4-4933-ac2f-56bcbed512c2"], ["LIMIT", 1]] 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", "07ca8240-40a4-4933-ac2f-56bcbed512c2"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t1c607ee18d804d39603dfced6b65200a  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-308"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-308"], ["field_store", "{\"page_id\":\"40806a95-ac46-4e9c-9126-36dcfc3a6277\",\"bar_ids\":[\"d149c750-2c91-40db-8491-511518a8e004\",\"07ca8240-40a4-4933-ac2f-56bcbed512c2\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t14d0819e751a5fb910098befaeca3e13 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "cb595932-1a7a-44a6-b8e6-0e3b7cc94596"], ["descendant_id", "cb595932-1a7a-44a6-b8e6-0e3b7cc94596"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "cb595932-1a7a-44a6-b8e6-0e3b7cc94596"], ["LIMIT", 1]] 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", "cb595932-1a7a-44a6-b8e6-0e3b7cc94596"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tc052c58529b3ab2edbd7d99cc90682d5  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PushType::RelationFieldTest: test_0019_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-309"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-309"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t8f905fd79fca064d579572cb239e1b33 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "c7c92d3e-2033-4476-a42f-25dba549ef3a"], ["descendant_id", "c7c92d3e-2033-4476-a42f-25dba549ef3a"], ["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 $2 [["id", "c7c92d3e-2033-4476-a42f-25dba549ef3a"], ["LIMIT", 1]] 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", "c7c92d3e-2033-4476-a42f-25dba549ef3a"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t4eaa69b26a229999d5eac4c5e004f76c  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-310"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-310"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t36bd5e5d77b2a107518f53e5bf7a1536 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "79c0936e-a0f0-4533-be00-33a90f23b99a"], ["descendant_id", "79c0936e-a0f0-4533-be00-33a90f23b99a"], ["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 $2 [["id", "79c0936e-a0f0-4533-be00-33a90f23b99a"], ["LIMIT", 1]] 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", "79c0936e-a0f0-4533-be00-33a90f23b99a"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tc5f41540e7c87387973c84cf254dc391  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-311"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-311"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tcdee9958ee3a0874a7f2dd7fd9d75104 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "281a16ac-b23c-4301-95c2-9978a332fc41"], ["descendant_id", "281a16ac-b23c-4301-95c2-9978a332fc41"], ["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 $2 [["id", "281a16ac-b23c-4301-95c2-9978a332fc41"], ["LIMIT", 1]] 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", "281a16ac-b23c-4301-95c2-9978a332fc41"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tf35bdc964287ca2933f3c49db417d475  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-312"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-312"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS td0e39379f942ec13c264660f0ad714f8 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "104ebd90-97a1-419d-b94a-0640976059b8"], ["descendant_id", "104ebd90-97a1-419d-b94a-0640976059b8"], ["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 $2 [["id", "104ebd90-97a1-419d-b94a-0640976059b8"], ["LIMIT", 1]] 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", "104ebd90-97a1-419d-b94a-0640976059b8"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t6918e77f5a7c19b3e2bf83d50e6a0fb9  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-313"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-313"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tc0e6a8aa881e5f053ae72643b8faa377 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "8584649f-991b-400c-9710-c40e6c925b07"], ["descendant_id", "8584649f-991b-400c-9710-c40e6c925b07"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "8584649f-991b-400c-9710-c40e6c925b07"], ["LIMIT", 1]] 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", "8584649f-991b-400c-9710-c40e6c925b07"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t0f1a90efe2cfdcc149d4d0c5353a98e3  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-314"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-314"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t70051df26e26a2a26dce25916b4d7953 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "70585378-d8d2-4ec8-bb81-73132da95002"], ["descendant_id", "70585378-d8d2-4ec8-bb81-73132da95002"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "70585378-d8d2-4ec8-bb81-73132da95002"], ["LIMIT", 1]] 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", "70585378-d8d2-4ec8-bb81-73132da95002"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t7529c171cf35e33711488c3a28689ae2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-315"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-315"], ["field_store", "{\"page_id\":\"c7c92d3e-2033-4476-a42f-25dba549ef3a\",\"bar_ids\":[\"8584649f-991b-400c-9710-c40e6c925b07\",\"70585378-d8d2-4ec8-bb81-73132da95002\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS td214e7cd40e13728e0fbad7cbee5101b SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "988c98fc-abbc-42eb-b0fa-0f8095cc8bbe"], ["descendant_id", "988c98fc-abbc-42eb-b0fa-0f8095cc8bbe"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "988c98fc-abbc-42eb-b0fa-0f8095cc8bbe"], ["LIMIT", 1]] 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", "988c98fc-abbc-42eb-b0fa-0f8095cc8bbe"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t11eed9b27196681eed50dd15757a88f5  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PushType::RelationFieldTest: 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.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-316"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-316"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS taf12d0199d063bf2567d8d02ab292a26 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "1f6f852c-babb-4ddf-ab37-e38f8ff69dfc"], ["descendant_id", "1f6f852c-babb-4ddf-ab37-e38f8ff69dfc"], ["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 $2 [["id", "1f6f852c-babb-4ddf-ab37-e38f8ff69dfc"], ["LIMIT", 1]] PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "1f6f852c-babb-4ddf-ab37-e38f8ff69dfc"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t52b0e6d50695549f05cebff7da611c12  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-317"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-317"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t152ec4fe4859b7392441402e0eebed2f SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "395c3dca-5fea-4b4d-be02-3cd027bbb77a"], ["descendant_id", "395c3dca-5fea-4b4d-be02-3cd027bbb77a"], ["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 $2 [["id", "395c3dca-5fea-4b4d-be02-3cd027bbb77a"], ["LIMIT", 1]] 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", "395c3dca-5fea-4b4d-be02-3cd027bbb77a"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tc4c157415a62f8dd779daa91b34a3d19  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-318"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-318"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t902ca2a58e7141565bcc091b1503f673 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "057d4f9f-5b9b-4043-ab00-67fb570ad5f3"], ["descendant_id", "057d4f9f-5b9b-4043-ab00-67fb570ad5f3"], ["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 $2 [["id", "057d4f9f-5b9b-4043-ab00-67fb570ad5f3"], ["LIMIT", 1]] 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", "057d4f9f-5b9b-4043-ab00-67fb570ad5f3"]]  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t0af49cc174e63c6f604e7ddb27dbc501  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-319"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-319"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t7d14c752c245c88d1e59ae989864c0c0 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "5a6c076b-4ac9-4086-ab6c-d54afea020f0"], ["descendant_id", "5a6c076b-4ac9-4086-ab6c-d54afea020f0"], ["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.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "5a6c076b-4ac9-4086-ab6c-d54afea020f0"], ["LIMIT", 1]] 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", "5a6c076b-4ac9-4086-ab6c-d54afea020f0"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t760f87ccf3196b9308136ff0999b2701  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-320"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-320"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS taf9f638d2b37394b9e153d32455f6d7b SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "7119f4c3-13fc-41a2-83aa-2dadfbe987a5"], ["descendant_id", "7119f4c3-13fc-41a2-83aa-2dadfbe987a5"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "7119f4c3-13fc-41a2-83aa-2dadfbe987a5"], ["LIMIT", 1]] 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", "7119f4c3-13fc-41a2-83aa-2dadfbe987a5"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tc2369388aa8378719bc2c522d8ec93fe  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-321"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-321"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS ta21c836e873fe07a4e0ae69ecb8f46d0 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "b4400561-e603-4098-9e5b-cdf752267464"], ["descendant_id", "b4400561-e603-4098-9e5b-cdf752267464"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "b4400561-e603-4098-9e5b-cdf752267464"], ["LIMIT", 1]] 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", "b4400561-e603-4098-9e5b-cdf752267464"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t7ad3b222d96ba365ca9eed6a70c6915c  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-322"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-322"], ["field_store", "{\"page_id\":\"1f6f852c-babb-4ddf-ab37-e38f8ff69dfc\",\"bar_ids\":[\"7119f4c3-13fc-41a2-83aa-2dadfbe987a5\",\"b4400561-e603-4098-9e5b-cdf752267464\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t8e8ae3f035dd0c5024e5b53abb30e6dd SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "90785789-e5df-4cd9-bec6-dc92a03f271f"], ["descendant_id", "90785789-e5df-4cd9-bec6-dc92a03f271f"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "90785789-e5df-4cd9-bec6-dc92a03f271f"], ["LIMIT", 1]] 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", "90785789-e5df-4cd9-bec6-dc92a03f271f"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t4348a4db104b5da5ba8ab2a9ca4f0a16  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PushType::RelationFieldTest: 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 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-323"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-323"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t221bad3cf125ea4205cf8a9540f9156f SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "ce7ff8b0-18bd-441f-92ee-709f0349cee5"], ["descendant_id", "ce7ff8b0-18bd-441f-92ee-709f0349cee5"], ["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 $2 [["id", "ce7ff8b0-18bd-441f-92ee-709f0349cee5"], ["LIMIT", 1]] 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", "ce7ff8b0-18bd-441f-92ee-709f0349cee5"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t97474d679f1ff3be39fcc498397a6b4f  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-324"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-324"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tb1ef864b3bb9b3b47d8b6032729c763e SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "94ddef63-79a4-4f1d-be26-38ac630fdbcf"], ["descendant_id", "94ddef63-79a4-4f1d-be26-38ac630fdbcf"], ["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 $2 [["id", "94ddef63-79a4-4f1d-be26-38ac630fdbcf"], ["LIMIT", 1]] 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", "94ddef63-79a4-4f1d-be26-38ac630fdbcf"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t9cb2d22305a15c9dc9649713d41552bf  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-325"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-325"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t87652c6a10b3bfefb95519344b797be6 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "56fe5d5a-ca70-49d0-b5a2-59de64988b02"], ["descendant_id", "56fe5d5a-ca70-49d0-b5a2-59de64988b02"], ["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 $2 [["id", "56fe5d5a-ca70-49d0-b5a2-59de64988b02"], ["LIMIT", 1]] 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", "56fe5d5a-ca70-49d0-b5a2-59de64988b02"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tc0daa048d83d626edbd0a0c81aef1bc6  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-326"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-326"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t17c3112ca4caebf0ebb8385dfdf490ec SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "75b68289-8a71-43dd-a575-6163dd32881e"], ["descendant_id", "75b68289-8a71-43dd-a575-6163dd32881e"], ["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 $2 [["id", "75b68289-8a71-43dd-a575-6163dd32881e"], ["LIMIT", 1]] 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", "75b68289-8a71-43dd-a575-6163dd32881e"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tf83b27596a3ea1b8121041744121bbe7  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-327"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-327"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t60c7ac61c3ac5ade7a899e69955b57d7 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "70499c96-f705-41c5-b18d-32e2d844cfe3"], ["descendant_id", "70499c96-f705-41c5-b18d-32e2d844cfe3"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "70499c96-f705-41c5-b18d-32e2d844cfe3"], ["LIMIT", 1]] 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", "70499c96-f705-41c5-b18d-32e2d844cfe3"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tffedbff152f04ca5ad20815f680b2d94  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-328"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-328"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t061e84d7167bd790111f224029bd452d SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "6f5ad669-40c0-4d40-ad3c-ac3b3fb924e9"], ["descendant_id", "6f5ad669-40c0-4d40-ad3c-ac3b3fb924e9"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "6f5ad669-40c0-4d40-ad3c-ac3b3fb924e9"], ["LIMIT", 1]] 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", "6f5ad669-40c0-4d40-ad3c-ac3b3fb924e9"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t722f53f73e998196d9c8e273c3a69bdf  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-329"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-329"], ["field_store", "{\"page_id\":\"ce7ff8b0-18bd-441f-92ee-709f0349cee5\",\"bar_ids\":[\"70499c96-f705-41c5-b18d-32e2d844cfe3\",\"6f5ad669-40c0-4d40-ad3c-ac3b3fb924e9\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t70473e4901a97351b0ee39f58563afda SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "5bcfde91-b549-449b-b543-5920187fd909"], ["descendant_id", "5bcfde91-b549-449b-b543-5920187fd909"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "5bcfde91-b549-449b-b543-5920187fd909"], ["LIMIT", 1]] 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", "5bcfde91-b549-449b-b543-5920187fd909"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t718608e1e3bf569261f938d34e2b5362  (0.1ms) RELEASE SAVEPOINT active_record_2 Page Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page')  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PushType::RelationFieldTest: test_0023_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-330"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-330"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t919ea828bd7bdf3088f98e5ee1cac878 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "94dfd50d-0b48-4d16-b680-e985fb6f7b09"], ["descendant_id", "94dfd50d-0b48-4d16-b680-e985fb6f7b09"], ["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 $2 [["id", "94dfd50d-0b48-4d16-b680-e985fb6f7b09"], ["LIMIT", 1]] 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", "94dfd50d-0b48-4d16-b680-e985fb6f7b09"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t045170a0cde58e63362f762005a895a1  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-331"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-331"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t1068a9bb31060ead56871cfd11a15685 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "0a7777dd-b23a-4b5d-8af1-bdebd4d2e1ee"], ["descendant_id", "0a7777dd-b23a-4b5d-8af1-bdebd4d2e1ee"], ["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 $2 [["id", "0a7777dd-b23a-4b5d-8af1-bdebd4d2e1ee"], ["LIMIT", 1]] 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", "0a7777dd-b23a-4b5d-8af1-bdebd4d2e1ee"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t9fa6dfc6e33c9dc21d108cc0f74b98df  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-332"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-332"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t5c91f40067f6de07b5cccd3cc8778f55 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "073be741-310d-48d9-a424-8886723f65df"], ["descendant_id", "073be741-310d-48d9-a424-8886723f65df"], ["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 $2 [["id", "073be741-310d-48d9-a424-8886723f65df"], ["LIMIT", 1]] 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", "073be741-310d-48d9-a424-8886723f65df"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t3b2eac177113b25bb8d07e6c2f186810  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-333"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-333"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t4e605eb186fabbb1b848c0a2a5deab35 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "0c8a21ef-e6b2-4d3c-88ca-ec1a97ea0c8a"], ["descendant_id", "0c8a21ef-e6b2-4d3c-88ca-ec1a97ea0c8a"], ["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 $2 [["id", "0c8a21ef-e6b2-4d3c-88ca-ec1a97ea0c8a"], ["LIMIT", 1]] 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", "0c8a21ef-e6b2-4d3c-88ca-ec1a97ea0c8a"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t3aaf4cdb219815d1d2dba83f0e1ff72a  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-334"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-334"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t3e8ec3ee5568a4e506d95ed26a79a9e0 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "6f799293-7f08-476d-b0ea-31102a8b0575"], ["descendant_id", "6f799293-7f08-476d-b0ea-31102a8b0575"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "6f799293-7f08-476d-b0ea-31102a8b0575"], ["LIMIT", 1]] 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", "6f799293-7f08-476d-b0ea-31102a8b0575"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS ta26acce62bf1597aa3421a97733e3ded  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-335"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-335"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t5464f2f1cd6d17deac2f35cc0bd583da SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "2c3e4a3b-ebd3-487d-aa1d-a20c56c5b40b"], ["descendant_id", "2c3e4a3b-ebd3-487d-aa1d-a20c56c5b40b"], ["generations", 0]]  (0.4ms) 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::RelationFieldTest::TestPage Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "2c3e4a3b-ebd3-487d-aa1d-a20c56c5b40b"], ["LIMIT", 1]] PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "2c3e4a3b-ebd3-487d-aa1d-a20c56c5b40b"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t22dca6491f2bd16b10bf49ab67fae593  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-336"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-336"], ["field_store", "{\"page_id\":\"94dfd50d-0b48-4d16-b680-e985fb6f7b09\",\"bar_ids\":[\"6f799293-7f08-476d-b0ea-31102a8b0575\",\"2c3e4a3b-ebd3-487d-aa1d-a20c56c5b40b\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t9e8c6521cb0155d55d0d4a221ee890af SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "f050ca57-0aae-4173-887e-19178663f194"], ["descendant_id", "f050ca57-0aae-4173-887e-19178663f194"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "f050ca57-0aae-4173-887e-19178663f194"], ["LIMIT", 1]] 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", "f050ca57-0aae-4173-887e-19178663f194"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS td6f5ee1c40be78439d545e5dbb4983ed  (0.1ms) RELEASE SAVEPOINT active_record_2 Page Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') ORDER BY "push_type_nodes"."created_at" DESC  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PushType::RelationFieldTest: 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 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-337"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-337"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS ta45cd0754a741a422f1e1d1763cb3fac SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "90abdf8c-eb31-4c50-972f-0baf8fd6d5eb"], ["descendant_id", "90abdf8c-eb31-4c50-972f-0baf8fd6d5eb"], ["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 $2 [["id", "90abdf8c-eb31-4c50-972f-0baf8fd6d5eb"], ["LIMIT", 1]] 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", "90abdf8c-eb31-4c50-972f-0baf8fd6d5eb"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t19a832eb489af9073f60dfb45e419501  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-338"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-338"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t412941fa5dc05790e23823b583effba1 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "d17048e2-174f-4ff3-aa98-00b4e3cbf227"], ["descendant_id", "d17048e2-174f-4ff3-aa98-00b4e3cbf227"], ["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 $2 [["id", "d17048e2-174f-4ff3-aa98-00b4e3cbf227"], ["LIMIT", 1]] 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", "d17048e2-174f-4ff3-aa98-00b4e3cbf227"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tc4fb27d6aa4e03d225ed0fe864ab1b7b  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-339"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-339"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS te88540d609746d7ffa1e2e51c9fea2c8 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "c6c7fbf3-6203-4fc1-9b4e-097e9a51754f"], ["descendant_id", "c6c7fbf3-6203-4fc1-9b4e-097e9a51754f"], ["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 $2 [["id", "c6c7fbf3-6203-4fc1-9b4e-097e9a51754f"], ["LIMIT", 1]] 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", "c6c7fbf3-6203-4fc1-9b4e-097e9a51754f"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS ta9ab7930df196fb040e8332de04fe07f  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-340"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-340"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t89338c261ca7580e6c63646163f6d8a6 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "692bff14-23cb-4349-a324-43c2dabf2cdb"], ["descendant_id", "692bff14-23cb-4349-a324-43c2dabf2cdb"], ["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 $2 [["id", "692bff14-23cb-4349-a324-43c2dabf2cdb"], ["LIMIT", 1]] 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", "692bff14-23cb-4349-a324-43c2dabf2cdb"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t43c2bfb5fd0f32bd471900c68ec231c9  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-341"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-341"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t9cd16709a67b411033b4b8800c2a6a89 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "4a382a43-b23d-4ffe-a0c0-9c1790237ee8"], ["descendant_id", "4a382a43-b23d-4ffe-a0c0-9c1790237ee8"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "4a382a43-b23d-4ffe-a0c0-9c1790237ee8"], ["LIMIT", 1]] 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", "4a382a43-b23d-4ffe-a0c0-9c1790237ee8"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tbf07ceb3ca98d97e72001238edbed178  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-342"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-342"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t6e60dbf2a671d950890d3391dccb6da6 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "7322b5bd-d879-458e-9891-cf707ee617bd"], ["descendant_id", "7322b5bd-d879-458e-9891-cf707ee617bd"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "7322b5bd-d879-458e-9891-cf707ee617bd"], ["LIMIT", 1]] 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", "7322b5bd-d879-458e-9891-cf707ee617bd"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tb1328dabfd338730440d4a64926db562  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-343"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-343"], ["field_store", "{\"page_id\":\"90abdf8c-eb31-4c50-972f-0baf8fd6d5eb\",\"bar_ids\":[\"4a382a43-b23d-4ffe-a0c0-9c1790237ee8\",\"7322b5bd-d879-458e-9891-cf707ee617bd\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tec602db9306541515eebd30562661a17 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "9f2f65f0-c0b9-4301-85d7-3b789b40c3da"], ["descendant_id", "9f2f65f0-c0b9-4301-85d7-3b789b40c3da"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "9f2f65f0-c0b9-4301-85d7-3b789b40c3da"], ["LIMIT", 1]] 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", "9f2f65f0-c0b9-4301-85d7-3b789b40c3da"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tbfebf0336117f1017644503c2cf29795  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PushType::RelationFieldTest: test_0017_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-344"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-344"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS teb171273a7a8f46932e94995fddbf043 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "1ea4142e-217c-4bcd-92c0-80367034929d"], ["descendant_id", "1ea4142e-217c-4bcd-92c0-80367034929d"], ["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 $2 [["id", "1ea4142e-217c-4bcd-92c0-80367034929d"], ["LIMIT", 1]] 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", "1ea4142e-217c-4bcd-92c0-80367034929d"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t8353d37cbe8bde285280381ac30ce225  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-345"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-345"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t2f951db3853e2e69f0c6ee071533f821 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "b947cb91-db2b-4b4d-ab2c-0c16970c3708"], ["descendant_id", "b947cb91-db2b-4b4d-ab2c-0c16970c3708"], ["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 $2 [["id", "b947cb91-db2b-4b4d-ab2c-0c16970c3708"], ["LIMIT", 1]] 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", "b947cb91-db2b-4b4d-ab2c-0c16970c3708"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tac6f8014591131ee00d331fe3c76f0db  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-346"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-346"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t0c1ff32f361b32f93ec9d725e2249fad SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "a20ab2af-5d89-432f-92ec-71f0d8a80edb"], ["descendant_id", "a20ab2af-5d89-432f-92ec-71f0d8a80edb"], ["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 $2 [["id", "a20ab2af-5d89-432f-92ec-71f0d8a80edb"], ["LIMIT", 1]] 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", "a20ab2af-5d89-432f-92ec-71f0d8a80edb"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t636ebcebd9fe403384b6f5da79ac385c  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-347"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-347"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS td87ba701b6327917f58776616b75d5e8 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "cef399f3-a869-4249-b888-99661a48c939"], ["descendant_id", "cef399f3-a869-4249-b888-99661a48c939"], ["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 $2 [["id", "cef399f3-a869-4249-b888-99661a48c939"], ["LIMIT", 1]] 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", "cef399f3-a869-4249-b888-99661a48c939"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t383620a665d3c5c93c046d26a388a76e  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-348"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-348"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t297e4f925dd722a10adbbed35db2b8a0 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "961981c7-c4a8-4927-ab07-de38801afd6e"], ["descendant_id", "961981c7-c4a8-4927-ab07-de38801afd6e"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "961981c7-c4a8-4927-ab07-de38801afd6e"], ["LIMIT", 1]] 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", "961981c7-c4a8-4927-ab07-de38801afd6e"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t54b6d275b99856ebb0fe911bf58b769c  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-349"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-349"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t24895db012dd9cd8c81c31d4c401778d SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "5265a1d3-4df9-42eb-a1fc-3cbaa40aa7ad"], ["descendant_id", "5265a1d3-4df9-42eb-a1fc-3cbaa40aa7ad"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "5265a1d3-4df9-42eb-a1fc-3cbaa40aa7ad"], ["LIMIT", 1]] 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", "5265a1d3-4df9-42eb-a1fc-3cbaa40aa7ad"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t1fafed7e2edcc8e54973a2fd0113b4a4  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-350"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-350"], ["field_store", "{\"page_id\":\"1ea4142e-217c-4bcd-92c0-80367034929d\",\"bar_ids\":[\"961981c7-c4a8-4927-ab07-de38801afd6e\",\"5265a1d3-4df9-42eb-a1fc-3cbaa40aa7ad\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t06fcf78548b0cdb7bdc2c21a6104d438 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "a37aa6eb-a192-461f-96bc-b09ecf1b2943"], ["descendant_id", "a37aa6eb-a192-461f-96bc-b09ecf1b2943"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "a37aa6eb-a192-461f-96bc-b09ecf1b2943"], ["LIMIT", 1]] 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", "a37aa6eb-a192-461f-96bc-b09ecf1b2943"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t844d1a841e73a56057d2ab3c76efa693  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PushType::RelationFieldTest: test_0028_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-351"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-351"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t099f080cda7549ddae2e66e1e1377552 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "466e3fb8-e3eb-4781-863c-eb4bd1d04b6b"], ["descendant_id", "466e3fb8-e3eb-4781-863c-eb4bd1d04b6b"], ["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 $2 [["id", "466e3fb8-e3eb-4781-863c-eb4bd1d04b6b"], ["LIMIT", 1]] 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", "466e3fb8-e3eb-4781-863c-eb4bd1d04b6b"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t3893884d93e2a79f4434fb048b31a8c8  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-352"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-352"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t7f962d239162c47aba61892fe57d05bf SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "0f68b657-c09b-487f-bddf-a7ec49925102"], ["descendant_id", "0f68b657-c09b-487f-bddf-a7ec49925102"], ["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 $2 [["id", "0f68b657-c09b-487f-bddf-a7ec49925102"], ["LIMIT", 1]] 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", "0f68b657-c09b-487f-bddf-a7ec49925102"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS td733a72d8dc678b517b346286543c891  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-353"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-353"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t8f70d8c003b2052d1aac85cca9c5c6fe SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "0bab2598-e850-4aab-ae24-84a24e505197"], ["descendant_id", "0bab2598-e850-4aab-ae24-84a24e505197"], ["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 $2 [["id", "0bab2598-e850-4aab-ae24-84a24e505197"], ["LIMIT", 1]] 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", "0bab2598-e850-4aab-ae24-84a24e505197"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tb087c2b3b3bf7db7910715224ca47448  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-354"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-354"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t1052e1962bc8c60a0e1d0ea8effab80f SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "7f061c29-5869-4540-9dd3-c4f30177579c"], ["descendant_id", "7f061c29-5869-4540-9dd3-c4f30177579c"], ["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 $2 [["id", "7f061c29-5869-4540-9dd3-c4f30177579c"], ["LIMIT", 1]] 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", "7f061c29-5869-4540-9dd3-c4f30177579c"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t4e9cd056a61f1e2a7d49df87d89c2c90  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-355"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-355"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t109dfbde83fb52f71415d6e7df15fd61 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "c9d1a50d-1181-45ae-9f95-4e7136afbcfa"], ["descendant_id", "c9d1a50d-1181-45ae-9f95-4e7136afbcfa"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "c9d1a50d-1181-45ae-9f95-4e7136afbcfa"], ["LIMIT", 1]] 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", "c9d1a50d-1181-45ae-9f95-4e7136afbcfa"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS te53f76cd7bc3043a6bd71806d4823d90  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-356"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-356"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t1ad4e7e56564ea2442a636882568dd78 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "92c97c11-fef8-4f64-8fad-2039ca6e7a44"], ["descendant_id", "92c97c11-fef8-4f64-8fad-2039ca6e7a44"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "92c97c11-fef8-4f64-8fad-2039ca6e7a44"], ["LIMIT", 1]] 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", "92c97c11-fef8-4f64-8fad-2039ca6e7a44"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tb18261bae1640f406ed0b908a137208e  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-357"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-357"], ["field_store", "{\"page_id\":\"466e3fb8-e3eb-4781-863c-eb4bd1d04b6b\",\"bar_ids\":[\"c9d1a50d-1181-45ae-9f95-4e7136afbcfa\",\"92c97c11-fef8-4f64-8fad-2039ca6e7a44\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t2f75e16b866ccc04b6300ef23db79738 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "4ecc1c1b-af64-4a2c-b4ba-bccf50ebd2eb"], ["descendant_id", "4ecc1c1b-af64-4a2c-b4ba-bccf50ebd2eb"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "4ecc1c1b-af64-4a2c-b4ba-bccf50ebd2eb"], ["LIMIT", 1]] 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", "4ecc1c1b-af64-4a2c-b4ba-bccf50ebd2eb"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t1da9f7fbca041e758252cb683e0aed14  (0.1ms) RELEASE SAVEPOINT active_record_2 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 $2 [["id", "466e3fb8-e3eb-4781-863c-eb4bd1d04b6b"], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PushType::RelationFieldTest: test_0018_anonymous ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) 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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-358"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-358"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t41e9a602f4840a1085108453587017c3 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "9380a839-2dc0-4084-a1da-f731e173c1bf"], ["descendant_id", "9380a839-2dc0-4084-a1da-f731e173c1bf"], ["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 $2 [["id", "9380a839-2dc0-4084-a1da-f731e173c1bf"], ["LIMIT", 1]] 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", "9380a839-2dc0-4084-a1da-f731e173c1bf"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t8e56798c8883e1d8b33c8c5f47a44163  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-359"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-359"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tcb2e8830c7e071f7d99721ef9b365aa5 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "f70fb924-c503-4665-9c30-8cb99564fcb0"], ["descendant_id", "f70fb924-c503-4665-9c30-8cb99564fcb0"], ["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 $2 [["id", "f70fb924-c503-4665-9c30-8cb99564fcb0"], ["LIMIT", 1]] 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", "f70fb924-c503-4665-9c30-8cb99564fcb0"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t445acc11fe2f2f0e3a4729369fcbc29d  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-360"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-360"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS te53c090949bad31c0b1407c366d2521d SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "b68a2e5a-b132-4bf1-9acd-d06bfba3f3e1"], ["descendant_id", "b68a2e5a-b132-4bf1-9acd-d06bfba3f3e1"], ["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 $2 [["id", "b68a2e5a-b132-4bf1-9acd-d06bfba3f3e1"], ["LIMIT", 1]] 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", "b68a2e5a-b132-4bf1-9acd-d06bfba3f3e1"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS te4d6e3e2328404dfd173551a736db0a1  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-361"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-361"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tec23d3a4c6c19aba05f71adfa78268ce SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "1b4aac30-4bbc-40b4-9929-0dff3ea187ea"], ["descendant_id", "1b4aac30-4bbc-40b4-9929-0dff3ea187ea"], ["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 $2 [["id", "1b4aac30-4bbc-40b4-9929-0dff3ea187ea"], ["LIMIT", 1]] 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", "1b4aac30-4bbc-40b4-9929-0dff3ea187ea"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t42e69d4debf3d46e2714b49706c524d9  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-362"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-362"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t14297440a22759486ec3c13782faca83 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "34df7d79-4f12-4705-b76f-b95ac4564bef"], ["descendant_id", "34df7d79-4f12-4705-b76f-b95ac4564bef"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "34df7d79-4f12-4705-b76f-b95ac4564bef"], ["LIMIT", 1]] 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", "34df7d79-4f12-4705-b76f-b95ac4564bef"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t5a5bfe53a0659ad38dfc0c75d381d04b  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-363"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-363"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t4d3cf23cad8bb314d0df69d21b48e88d SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "510abdc0-4703-4c19-add3-f3557b42f75c"], ["descendant_id", "510abdc0-4703-4c19-add3-f3557b42f75c"], ["generations", 0]]  (0.4ms) 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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "510abdc0-4703-4c19-add3-f3557b42f75c"], ["LIMIT", 1]] 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", "510abdc0-4703-4c19-add3-f3557b42f75c"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t299fa3c7c9d0c37a34375c9ae60e5243  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-364"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-364"], ["field_store", "{\"page_id\":\"9380a839-2dc0-4084-a1da-f731e173c1bf\",\"bar_ids\":[\"34df7d79-4f12-4705-b76f-b95ac4564bef\",\"510abdc0-4703-4c19-add3-f3557b42f75c\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t59725b94208f2b8fe77f231d5a71f643 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "7f135762-1817-4f5c-a301-0b7d39abc34f"], ["descendant_id", "7f135762-1817-4f5c-a301-0b7d39abc34f"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "7f135762-1817-4f5c-a301-0b7d39abc34f"], ["LIMIT", 1]] 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", "7f135762-1817-4f5c-a301-0b7d39abc34f"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tfd5347f938f5ff58a42b4a7eed557029  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PushType::RelationFieldTest: test_0030_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-365"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-365"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t04610773a9111e1b6d2c05f6f7912d88 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "9c010dfe-6f45-4996-804f-8d4abc655a63"], ["descendant_id", "9c010dfe-6f45-4996-804f-8d4abc655a63"], ["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 $2 [["id", "9c010dfe-6f45-4996-804f-8d4abc655a63"], ["LIMIT", 1]] 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", "9c010dfe-6f45-4996-804f-8d4abc655a63"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t97b6c3ce9c41bd08e5ddf9b39dc789a3  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-366"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-366"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t2c2ecff19b68ae3c861e9f4d9a3afd03 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "a953ca67-f47e-4eee-babc-0bc21e53d0d4"], ["descendant_id", "a953ca67-f47e-4eee-babc-0bc21e53d0d4"], ["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 $2 [["id", "a953ca67-f47e-4eee-babc-0bc21e53d0d4"], ["LIMIT", 1]] 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", "a953ca67-f47e-4eee-babc-0bc21e53d0d4"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tcd81e25e9d05c603cc5ec2df446d519c  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-367"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-367"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t37c3cb1b9a187818491fbff7be250e5d SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "4041b7d0-4ba6-4b35-93ea-e6729a9e7a24"], ["descendant_id", "4041b7d0-4ba6-4b35-93ea-e6729a9e7a24"], ["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 $2 [["id", "4041b7d0-4ba6-4b35-93ea-e6729a9e7a24"], ["LIMIT", 1]] 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", "4041b7d0-4ba6-4b35-93ea-e6729a9e7a24"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS td01034c8e175a1e9c3d2745bd2343745  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-368"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-368"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t473dbbb93446bc975a52ec0155b13c4f SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "56096f18-0193-4a79-86d8-306aa670bbcf"], ["descendant_id", "56096f18-0193-4a79-86d8-306aa670bbcf"], ["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 $2 [["id", "56096f18-0193-4a79-86d8-306aa670bbcf"], ["LIMIT", 1]] 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", "56096f18-0193-4a79-86d8-306aa670bbcf"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t224deca8406c9f5d364eaf95bbb82aec  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-369"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-369"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t8da5b8640521d68a9e4ccdea4704f28d SQL (0.3ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "27cd8b78-4e31-4ce5-a9a0-708baf4392ea"], ["descendant_id", "27cd8b78-4e31-4ce5-a9a0-708baf4392ea"], ["generations", 0]]  (0.4ms) 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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "27cd8b78-4e31-4ce5-a9a0-708baf4392ea"], ["LIMIT", 1]] 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", "27cd8b78-4e31-4ce5-a9a0-708baf4392ea"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tc5454983418759a3111572b9229a39cf  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-370"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-370"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS td5983e49f2f463d3bc3192122317a98b SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "24ce2145-cc93-4b34-836a-405831c02c01"], ["descendant_id", "24ce2145-cc93-4b34-836a-405831c02c01"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "24ce2145-cc93-4b34-836a-405831c02c01"], ["LIMIT", 1]] 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", "24ce2145-cc93-4b34-836a-405831c02c01"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t0112747724c1a8f5648d484408938f64  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-371"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-371"], ["field_store", "{\"page_id\":\"9c010dfe-6f45-4996-804f-8d4abc655a63\",\"bar_ids\":[\"27cd8b78-4e31-4ce5-a9a0-708baf4392ea\",\"24ce2145-cc93-4b34-836a-405831c02c01\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tdd76bdf22785069e898f5527ad19e8fa SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "377a49b5-fdcf-4183-bf73-733278f1a0e9"], ["descendant_id", "377a49b5-fdcf-4183-bf73-733278f1a0e9"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "377a49b5-fdcf-4183-bf73-733278f1a0e9"], ["LIMIT", 1]] 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", "377a49b5-fdcf-4183-bf73-733278f1a0e9"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t0e4ad513ad4aa6e196954eb80f570740  (0.1ms) RELEASE SAVEPOINT active_record_2 PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" IN ('27cd8b78-4e31-4ce5-a9a0-708baf4392ea', '24ce2145-cc93-4b34-836a-405831c02c01')  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PushType::RelationFieldTest: test_0026_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 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-372"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-372"], ["status", 0], ["created_at", 2016-10-16 14:40:57 UTC], ["updated_at", 2016-10-16 14:40:57 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t42798f916f05997cd24b08a45325c9a8 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "6d88c29d-ca0c-495b-b7bd-8f883590be68"], ["descendant_id", "6d88c29d-ca0c-495b-b7bd-8f883590be68"], ["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 $2 [["id", "6d88c29d-ca0c-495b-b7bd-8f883590be68"], ["LIMIT", 1]] 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", "6d88c29d-ca0c-495b-b7bd-8f883590be68"]]  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t20f9961b9064efb0991ff2ea54476fa8  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-373"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-373"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t5a4993bc8fd9290df7ea24b553c417a4 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "a0a34219-0a1e-4e07-bf5c-6a3bc2b8bf2e"], ["descendant_id", "a0a34219-0a1e-4e07-bf5c-6a3bc2b8bf2e"], ["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 $2 [["id", "a0a34219-0a1e-4e07-bf5c-6a3bc2b8bf2e"], ["LIMIT", 1]] PushType::Node Load (0.5ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "a0a34219-0a1e-4e07-bf5c-6a3bc2b8bf2e"]]  (0.3ms) SELECT pg_advisory_unlock(1213021721,0) AS t51508f295a50d6ebcaacc5fea87cd052  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-374"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-374"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t24153debb5ed53dc0e00557b3fc1a67f SQL (0.4ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "5dbbf8f2-1ac5-4440-afc1-d66f7fbd8abf"], ["descendant_id", "5dbbf8f2-1ac5-4440-afc1-d66f7fbd8abf"], ["generations", 0]]  (0.4ms) 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 $2 [["id", "5dbbf8f2-1ac5-4440-afc1-d66f7fbd8abf"], ["LIMIT", 1]] PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "5dbbf8f2-1ac5-4440-afc1-d66f7fbd8abf"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t6e7c33aca55881733c6ce341ddcfae55  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-375"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-375"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t1247e88a5440e56b87c8e8a5d17a6c32 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "165b0172-cd24-47c5-9756-7bd6e89feadd"], ["descendant_id", "165b0172-cd24-47c5-9756-7bd6e89feadd"], ["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 $2 [["id", "165b0172-cd24-47c5-9756-7bd6e89feadd"], ["LIMIT", 1]] 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", "165b0172-cd24-47c5-9756-7bd6e89feadd"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t82d18b0015a9b72ff84188a6b4969230  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-376"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-376"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t19ad9af8eb4f1280760441fc168c327e SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "f3d814ab-ca47-4330-b30a-327128b6f51d"], ["descendant_id", "f3d814ab-ca47-4330-b30a-327128b6f51d"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "f3d814ab-ca47-4330-b30a-327128b6f51d"], ["LIMIT", 1]] 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", "f3d814ab-ca47-4330-b30a-327128b6f51d"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t77029a69c7c9c1e2f29708d52bc21e71  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-377"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-377"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t5282dcf157ddd5b480a46c8dbf9cb7df SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "75d87985-f7b3-4a41-ae99-1ae277f0174c"], ["descendant_id", "75d87985-f7b3-4a41-ae99-1ae277f0174c"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "75d87985-f7b3-4a41-ae99-1ae277f0174c"], ["LIMIT", 1]] 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", "75d87985-f7b3-4a41-ae99-1ae277f0174c"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS td80806b893adb46a587b880fc02b9660  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-378"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-378"], ["field_store", "{\"page_id\":\"6d88c29d-ca0c-495b-b7bd-8f883590be68\",\"bar_ids\":[\"f3d814ab-ca47-4330-b30a-327128b6f51d\",\"75d87985-f7b3-4a41-ae99-1ae277f0174c\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t19a759a700a339de34f385ca41602cbc SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "611aaedc-da9a-4806-a7d9-8d67199b62fe"], ["descendant_id", "611aaedc-da9a-4806-a7d9-8d67199b62fe"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "611aaedc-da9a-4806-a7d9-8d67199b62fe"], ["LIMIT", 1]] 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", "611aaedc-da9a-4806-a7d9-8d67199b62fe"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t06b0934d0fecd8fe75d2be9b1c0e0589  (0.2ms) RELEASE SAVEPOINT active_record_2 Page Load (2.0ms) SELECT "push_type_nodes".* FROM "push_type_nodes" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "push_type_node_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "push_type_nodes".id = generation_depth.descendant_id WHERE "push_type_nodes"."type" IN ('Page') ORDER BY generation_depth.depth, sort_order  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PushType::RelationFieldTest: 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.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-379"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-379"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t0a9bff4912a3b1a07afec4f34afc17cc SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "663a3dce-daa5-499b-bc06-c0b3196c0af6"], ["descendant_id", "663a3dce-daa5-499b-bc06-c0b3196c0af6"], ["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 $2 [["id", "663a3dce-daa5-499b-bc06-c0b3196c0af6"], ["LIMIT", 1]] 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", "663a3dce-daa5-499b-bc06-c0b3196c0af6"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tbc8b9ad82ee76f84660c1b35aebe329c  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-380"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-380"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t15491b22208603fea7d63a7fc5d02bf3 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "f380b4ec-d3b6-44d5-8a2b-1d0b62888f9d"], ["descendant_id", "f380b4ec-d3b6-44d5-8a2b-1d0b62888f9d"], ["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 $2 [["id", "f380b4ec-d3b6-44d5-8a2b-1d0b62888f9d"], ["LIMIT", 1]] 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", "f380b4ec-d3b6-44d5-8a2b-1d0b62888f9d"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t9a014553fcdfd881a588d8d6f0a34d07  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-381"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-381"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS td751f07c827d174c044590e1d64dcb72 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "ea0f6d8e-c84e-43a4-8adf-793520cb59c1"], ["descendant_id", "ea0f6d8e-c84e-43a4-8adf-793520cb59c1"], ["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 $2 [["id", "ea0f6d8e-c84e-43a4-8adf-793520cb59c1"], ["LIMIT", 1]] 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", "ea0f6d8e-c84e-43a4-8adf-793520cb59c1"]]  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t80ac9ca5e94078707fd274ec299164cd  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-382"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-382"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tcbd0a79f09f374ea8b3dd5968231c063 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "966cd1be-00a6-4054-9c01-ffea62d1d8da"], ["descendant_id", "966cd1be-00a6-4054-9c01-ffea62d1d8da"], ["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 $2 [["id", "966cd1be-00a6-4054-9c01-ffea62d1d8da"], ["LIMIT", 1]] 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", "966cd1be-00a6-4054-9c01-ffea62d1d8da"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t2382ba799091c7de2c749d9ae3f3164e  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-383"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-383"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t2fabfd891d0430fe97cbeccc9fb9a5e5 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "370cbc91-06ee-4241-8e4f-c9733c63f1cd"], ["descendant_id", "370cbc91-06ee-4241-8e4f-c9733c63f1cd"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "370cbc91-06ee-4241-8e4f-c9733c63f1cd"], ["LIMIT", 1]] 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", "370cbc91-06ee-4241-8e4f-c9733c63f1cd"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t767374c69c1ab1bd84e7734e701c6806  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-384"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-384"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t2a91ed919b42f7714f50ed8a094515c7 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "b54fc4f0-d568-4e56-ba5a-255ed25554d1"], ["descendant_id", "b54fc4f0-d568-4e56-ba5a-255ed25554d1"], ["generations", 0]]  (0.4ms) 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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "b54fc4f0-d568-4e56-ba5a-255ed25554d1"], ["LIMIT", 1]] 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", "b54fc4f0-d568-4e56-ba5a-255ed25554d1"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS ta516f43fe811b601aad40941aff921a8  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-385"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-385"], ["field_store", "{\"page_id\":\"663a3dce-daa5-499b-bc06-c0b3196c0af6\",\"bar_ids\":[\"370cbc91-06ee-4241-8e4f-c9733c63f1cd\",\"b54fc4f0-d568-4e56-ba5a-255ed25554d1\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t613ca883bc1e4c493031627b0b1ed133 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "0128c953-e402-443c-8ca5-0b367af30164"], ["descendant_id", "0128c953-e402-443c-8ca5-0b367af30164"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "0128c953-e402-443c-8ca5-0b367af30164"], ["LIMIT", 1]] PushType::Node Load (0.4ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "0128c953-e402-443c-8ca5-0b367af30164"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS td5df0e8e6e48a5657d8f5162fc6a9c1d  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN ------------------------------------------------ PushType::RelationFieldTest: 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 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-386"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-386"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS te2da569eb964935209de5021f95d02df SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "eba0c4e1-9acd-4ca2-b435-dda872cd54f2"], ["descendant_id", "eba0c4e1-9acd-4ca2-b435-dda872cd54f2"], ["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 $2 [["id", "eba0c4e1-9acd-4ca2-b435-dda872cd54f2"], ["LIMIT", 1]] 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", "eba0c4e1-9acd-4ca2-b435-dda872cd54f2"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t27d4a1713f86be64155fab8c8a6b5bb8  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-387"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-387"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t56908918878872c3ca7e51b64a55f452 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "688f3aa9-a09c-4b12-ab6a-952dca139f11"], ["descendant_id", "688f3aa9-a09c-4b12-ab6a-952dca139f11"], ["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 $2 [["id", "688f3aa9-a09c-4b12-ab6a-952dca139f11"], ["LIMIT", 1]] 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", "688f3aa9-a09c-4b12-ab6a-952dca139f11"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t60ff6fb81b70cb20d7dea1d06f75461f  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-388"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-388"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t7b13be2a75ba2184d3d07f919957bf8a SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "39825ea6-0132-4c87-a618-92c70a96eb82"], ["descendant_id", "39825ea6-0132-4c87-a618-92c70a96eb82"], ["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 $2 [["id", "39825ea6-0132-4c87-a618-92c70a96eb82"], ["LIMIT", 1]] 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", "39825ea6-0132-4c87-a618-92c70a96eb82"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t791f6bd01149292316fed16b4f1f2022  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-389"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-389"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t9b8490d36e60167486379c805f361ccd SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "dad10801-f933-401d-8092-54f2a036f42a"], ["descendant_id", "dad10801-f933-401d-8092-54f2a036f42a"], ["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 $2 [["id", "dad10801-f933-401d-8092-54f2a036f42a"], ["LIMIT", 1]] 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", "dad10801-f933-401d-8092-54f2a036f42a"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t07f2e59a5d526d61559f14dea0e76f9e  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-390"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-390"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tbc416bd39d048dd63e13d7dd245dffe0 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "e00b724b-482c-49ea-8040-4316f09bb653"], ["descendant_id", "e00b724b-482c-49ea-8040-4316f09bb653"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "e00b724b-482c-49ea-8040-4316f09bb653"], ["LIMIT", 1]] 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", "e00b724b-482c-49ea-8040-4316f09bb653"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t9d2f95712d51ad0a907a83169d58dc9b  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-391"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-391"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t4c2dfba387c6a28247d314ca0520e1d1 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "2ea9c20c-7153-409d-8090-068cf7509341"], ["descendant_id", "2ea9c20c-7153-409d-8090-068cf7509341"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "2ea9c20c-7153-409d-8090-068cf7509341"], ["LIMIT", 1]] 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", "2ea9c20c-7153-409d-8090-068cf7509341"]]  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t9e04b85361a6d1eef1f9144b0e02d922  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-392"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-392"], ["field_store", "{\"page_id\":\"eba0c4e1-9acd-4ca2-b435-dda872cd54f2\",\"bar_ids\":[\"e00b724b-482c-49ea-8040-4316f09bb653\",\"2ea9c20c-7153-409d-8090-068cf7509341\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.7ms) SELECT pg_try_advisory_lock(1213021721,0) AS t3ddb266f14bad755a0577c7992d21314 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "adb5b029-f63b-4e63-bee5-651ecd5db595"], ["descendant_id", "adb5b029-f63b-4e63-bee5-651ecd5db595"], ["generations", 0]]  (0.4ms) 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::RelationFieldTest::TestPage Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "adb5b029-f63b-4e63-bee5-651ecd5db595"], ["LIMIT", 1]] PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "adb5b029-f63b-4e63-bee5-651ecd5db595"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS ta22af999319dec9ddce45bd3a4096b86  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PushType::RelationFieldTest: test_0011_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-393"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-393"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t6cddd3b3a0e1745eab932d39d6ad47f5 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "8e42d93b-c282-49b3-a01d-9fb13846a7e7"], ["descendant_id", "8e42d93b-c282-49b3-a01d-9fb13846a7e7"], ["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 $2 [["id", "8e42d93b-c282-49b3-a01d-9fb13846a7e7"], ["LIMIT", 1]] PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "8e42d93b-c282-49b3-a01d-9fb13846a7e7"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tf9eebe696eda56674b3c174404c99960  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-394"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-394"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tceac6fadf65dd470b7dfc2e5ff019d3c SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "e41f9aa8-ee9e-46cd-986f-44448e8cdf87"], ["descendant_id", "e41f9aa8-ee9e-46cd-986f-44448e8cdf87"], ["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 $2 [["id", "e41f9aa8-ee9e-46cd-986f-44448e8cdf87"], ["LIMIT", 1]] 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", "e41f9aa8-ee9e-46cd-986f-44448e8cdf87"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t08c1bc5526820424761e6cbd9db406a9  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-395"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-395"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS td494ed4e35316507a79ab1524d269b7d SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "21ab088f-08a1-4119-904c-f4f5e02bc968"], ["descendant_id", "21ab088f-08a1-4119-904c-f4f5e02bc968"], ["generations", 0]]  (0.4ms) 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.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "21ab088f-08a1-4119-904c-f4f5e02bc968"], ["LIMIT", 1]] 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", "21ab088f-08a1-4119-904c-f4f5e02bc968"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t683f47f807a253c39a60495afea449f2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-396"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-396"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS ta59c1d630844af033ccfa81dfd4b0c7d SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "423556f4-6515-4207-be6c-5cad34d49192"], ["descendant_id", "423556f4-6515-4207-be6c-5cad34d49192"], ["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.4ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "423556f4-6515-4207-be6c-5cad34d49192"], ["LIMIT", 1]] 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", "423556f4-6515-4207-be6c-5cad34d49192"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t07319cbd8580f4672dca3a2b4382e6e7  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-397"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-397"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t6019e5b699d165bd51d07441364123a7 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "53a072ec-83e4-4a6c-a240-30c2939ac4b1"], ["descendant_id", "53a072ec-83e4-4a6c-a240-30c2939ac4b1"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "53a072ec-83e4-4a6c-a240-30c2939ac4b1"], ["LIMIT", 1]] 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", "53a072ec-83e4-4a6c-a240-30c2939ac4b1"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tc5df45f010689febe74308e7a275e340  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-398"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-398"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t096abdf1c0e5d50621b0fa38c5db2a83 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "951d000f-db9d-4013-a36c-934b6e210f33"], ["descendant_id", "951d000f-db9d-4013-a36c-934b6e210f33"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "951d000f-db9d-4013-a36c-934b6e210f33"], ["LIMIT", 1]] 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", "951d000f-db9d-4013-a36c-934b6e210f33"]]  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS te56cb336ff9ace4009308145e86edc98  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-399"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-399"], ["field_store", "{\"page_id\":\"8e42d93b-c282-49b3-a01d-9fb13846a7e7\",\"bar_ids\":[\"53a072ec-83e4-4a6c-a240-30c2939ac4b1\",\"951d000f-db9d-4013-a36c-934b6e210f33\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t185dd7ac7c7e251a8f8d46dadead3e64 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "a3de4859-25ef-4f91-a7f5-aaec90de1690"], ["descendant_id", "a3de4859-25ef-4f91-a7f5-aaec90de1690"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "a3de4859-25ef-4f91-a7f5-aaec90de1690"], ["LIMIT", 1]] 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", "a3de4859-25ef-4f91-a7f5-aaec90de1690"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t44857de4c5b43c1325cef11393e918de  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PushType::RelationFieldTest: test_0025_anonymous ------------------------------------------------  (0.0ms) 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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-400"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-400"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t50647a6c147f2a446c2adcf5bc23d6c3 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "e9115265-bbcf-4cb2-96f4-55489cf5b03f"], ["descendant_id", "e9115265-bbcf-4cb2-96f4-55489cf5b03f"], ["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 $2 [["id", "e9115265-bbcf-4cb2-96f4-55489cf5b03f"], ["LIMIT", 1]] 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", "e9115265-bbcf-4cb2-96f4-55489cf5b03f"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t8d3441368a3f4074e0e6a26e1c466ada  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-401"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-401"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS te587a025eb7927d67d2c18617e7d76cd SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "a386185c-fd90-46e4-a44c-a8573b05c48a"], ["descendant_id", "a386185c-fd90-46e4-a44c-a8573b05c48a"], ["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 $2 [["id", "a386185c-fd90-46e4-a44c-a8573b05c48a"], ["LIMIT", 1]] 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", "a386185c-fd90-46e4-a44c-a8573b05c48a"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t54ba07b498d88dba1e1160296978c2d3  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-402"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-402"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS te6135ffac946de6eb1eea29056a97461 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "48ae33ce-2b6a-40b5-97a1-4b0e9090a24f"], ["descendant_id", "48ae33ce-2b6a-40b5-97a1-4b0e9090a24f"], ["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 $2 [["id", "48ae33ce-2b6a-40b5-97a1-4b0e9090a24f"], ["LIMIT", 1]] 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", "48ae33ce-2b6a-40b5-97a1-4b0e9090a24f"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t7e1a8276533c154e5c6dda3c3bb7d60a  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-403"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-403"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tb9820f654aa83e6ce6a64c5acfafbe0b SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "78e87666-b675-453c-899f-f1b1662e913f"], ["descendant_id", "78e87666-b675-453c-899f-f1b1662e913f"], ["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 $2 [["id", "78e87666-b675-453c-899f-f1b1662e913f"], ["LIMIT", 1]] 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", "78e87666-b675-453c-899f-f1b1662e913f"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tac6ae87c887c03c55173e501cee95aa1  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-404"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-404"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tec2699e3257ef3ace38d0978d7da841e SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "56784707-cf6e-4099-a673-28e0dcd0b43b"], ["descendant_id", "56784707-cf6e-4099-a673-28e0dcd0b43b"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "56784707-cf6e-4099-a673-28e0dcd0b43b"], ["LIMIT", 1]] 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", "56784707-cf6e-4099-a673-28e0dcd0b43b"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS ta6a26f923e71577b4cc5a5a3255c5170  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-405"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-405"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t364b799509f52c512e57d5c06ec8ed85 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "1bb2e649-47b9-466b-9c3b-ee28e778fc78"], ["descendant_id", "1bb2e649-47b9-466b-9c3b-ee28e778fc78"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "1bb2e649-47b9-466b-9c3b-ee28e778fc78"], ["LIMIT", 1]] 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", "1bb2e649-47b9-466b-9c3b-ee28e778fc78"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t0771467cf9f114c163dfc861aee1afb2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-406"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-406"], ["field_store", "{\"page_id\":\"e9115265-bbcf-4cb2-96f4-55489cf5b03f\",\"bar_ids\":[\"56784707-cf6e-4099-a673-28e0dcd0b43b\",\"1bb2e649-47b9-466b-9c3b-ee28e778fc78\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tf46e6485ed18e2f7c070ce17fe87f826 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "edf32243-9d0d-4985-b0a6-a2becf388e06"], ["descendant_id", "edf32243-9d0d-4985-b0a6-a2becf388e06"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "edf32243-9d0d-4985-b0a6-a2becf388e06"], ["LIMIT", 1]] 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", "edf32243-9d0d-4985-b0a6-a2becf388e06"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tdd304ee49969185a4d05eb89252d2f8b  (0.1ms) RELEASE SAVEPOINT active_record_2 Page Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "push_type_node_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "push_type_nodes".id = generation_depth.descendant_id WHERE "push_type_nodes"."type" IN ('Page') ORDER BY generation_depth.depth, sort_order  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PushType::RelationFieldTest: test_0008_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-407"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-407"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tf3fdb01620bb3b11c6b8bab4d1926591 SQL (0.3ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "cfc35b36-5e41-499f-95ce-7f975d57fc3c"], ["descendant_id", "cfc35b36-5e41-499f-95ce-7f975d57fc3c"], ["generations", 0]]  (0.4ms) 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.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "cfc35b36-5e41-499f-95ce-7f975d57fc3c"], ["LIMIT", 1]] 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", "cfc35b36-5e41-499f-95ce-7f975d57fc3c"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tf02d69ad7c41efb8432fc2b32584df48  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-408"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-408"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tcfed2fa8ff67703976862ee25ddd3ba4 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "87b961e0-dab9-4a09-9810-d675ad89fc33"], ["descendant_id", "87b961e0-dab9-4a09-9810-d675ad89fc33"], ["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 $2 [["id", "87b961e0-dab9-4a09-9810-d675ad89fc33"], ["LIMIT", 1]] PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "87b961e0-dab9-4a09-9810-d675ad89fc33"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t2855fc2199f9d046ccb903c6b558455a  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-409"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-409"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS ta67ab364e084b5cdc409f44bf75caa9e SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "b8d76895-621c-45d7-b45e-b670e2ac44ce"], ["descendant_id", "b8d76895-621c-45d7-b45e-b670e2ac44ce"], ["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 $2 [["id", "b8d76895-621c-45d7-b45e-b670e2ac44ce"], ["LIMIT", 1]] 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", "b8d76895-621c-45d7-b45e-b670e2ac44ce"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t6af6e94bad3cea4a3c1298e4ee87c85b  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-410"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-410"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tb0beb84c32cb2dba181e8ec25e8eeaf2 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "ad75cfe5-b2a2-4e4c-a2fd-e29403eacc02"], ["descendant_id", "ad75cfe5-b2a2-4e4c-a2fd-e29403eacc02"], ["generations", 0]]  (0.4ms) 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 $2 [["id", "ad75cfe5-b2a2-4e4c-a2fd-e29403eacc02"], ["LIMIT", 1]] 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", "ad75cfe5-b2a2-4e4c-a2fd-e29403eacc02"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS te0b1c7e423d97c2e7292d1d62eb5caa7  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-411"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-411"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t4df33549767a8884cea5f35feb063183 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "0454d6ab-ada1-411c-ba2d-32781131124b"], ["descendant_id", "0454d6ab-ada1-411c-ba2d-32781131124b"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "0454d6ab-ada1-411c-ba2d-32781131124b"], ["LIMIT", 1]] 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", "0454d6ab-ada1-411c-ba2d-32781131124b"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS td594b2540ed15901f65fbdfe23a99700  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-412"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-412"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t489b26c9d5c77b7fa1e15f98372616eb SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "c9edcf75-0c7e-4f63-b291-a14c04088d4c"], ["descendant_id", "c9edcf75-0c7e-4f63-b291-a14c04088d4c"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "c9edcf75-0c7e-4f63-b291-a14c04088d4c"], ["LIMIT", 1]] 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", "c9edcf75-0c7e-4f63-b291-a14c04088d4c"]]  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS ta4e8166a30d7ff6c8c3faffd87c5ac5d  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-413"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-413"], ["field_store", "{\"page_id\":\"cfc35b36-5e41-499f-95ce-7f975d57fc3c\",\"bar_ids\":[\"0454d6ab-ada1-411c-ba2d-32781131124b\",\"c9edcf75-0c7e-4f63-b291-a14c04088d4c\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t576bd13d4bc3bedc1c76b447375a44a3 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "d137ddd2-ad25-4b53-b893-824601a58597"], ["descendant_id", "d137ddd2-ad25-4b53-b893-824601a58597"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "d137ddd2-ad25-4b53-b893-824601a58597"], ["LIMIT", 1]] 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", "d137ddd2-ad25-4b53-b893-824601a58597"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t10b7334297c7999b707a614d09ee521a  (0.1ms) RELEASE SAVEPOINT active_record_2 Page Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page')  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PushType::RelationFieldTest: test_0006_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.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-414"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-414"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tc3c085d9040f7212575a1bf9952d4fdb SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "7eefad5a-c10f-4272-85c2-f2c5f48e4fdc"], ["descendant_id", "7eefad5a-c10f-4272-85c2-f2c5f48e4fdc"], ["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 $2 [["id", "7eefad5a-c10f-4272-85c2-f2c5f48e4fdc"], ["LIMIT", 1]] 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", "7eefad5a-c10f-4272-85c2-f2c5f48e4fdc"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tfb93f90c46e5ef5e24ef0fd6f7c33de6  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-415"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-415"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t45be9baa28d19057e7bccc59a0d39d07 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "a043928f-155b-4e41-b0a7-c24caee21cf5"], ["descendant_id", "a043928f-155b-4e41-b0a7-c24caee21cf5"], ["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.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "a043928f-155b-4e41-b0a7-c24caee21cf5"], ["LIMIT", 1]] 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", "a043928f-155b-4e41-b0a7-c24caee21cf5"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS ted512375fbfc78f3c7083dd229c656eb  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-416"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-416"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t8e47256450f863f23e6f2c83d2045ec9 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "8348c1c9-817c-4bc8-adc7-27a6214143ba"], ["descendant_id", "8348c1c9-817c-4bc8-adc7-27a6214143ba"], ["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 $2 [["id", "8348c1c9-817c-4bc8-adc7-27a6214143ba"], ["LIMIT", 1]] 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", "8348c1c9-817c-4bc8-adc7-27a6214143ba"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t4a23537a7912efe6d7610790fa733c86  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-417"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-417"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t553dac7939c3fa5c59aef74c9109288d SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "1c3f13c2-488e-43bc-8821-b44263407e6f"], ["descendant_id", "1c3f13c2-488e-43bc-8821-b44263407e6f"], ["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 $2 [["id", "1c3f13c2-488e-43bc-8821-b44263407e6f"], ["LIMIT", 1]] 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", "1c3f13c2-488e-43bc-8821-b44263407e6f"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tcb62f42b14a2e5361084d488e59d3290  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-418"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-418"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t393c1c8d6628f835212b7733056accad SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "dca8a544-756f-41a7-9222-cd7cafd5b09a"], ["descendant_id", "dca8a544-756f-41a7-9222-cd7cafd5b09a"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "dca8a544-756f-41a7-9222-cd7cafd5b09a"], ["LIMIT", 1]] 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", "dca8a544-756f-41a7-9222-cd7cafd5b09a"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t3167d132f26ddaa51c9d9f411aab6f0e  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-419"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-419"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS td1eb16fc58a4d2748e03e0226342e9e7 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "bca18ca1-c593-41c9-96c7-8eeb5c22c236"], ["descendant_id", "bca18ca1-c593-41c9-96c7-8eeb5c22c236"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "bca18ca1-c593-41c9-96c7-8eeb5c22c236"], ["LIMIT", 1]] 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", "bca18ca1-c593-41c9-96c7-8eeb5c22c236"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t96b7a915e69b78deb4ec6825a98f4235  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-420"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-420"], ["field_store", "{\"page_id\":\"7eefad5a-c10f-4272-85c2-f2c5f48e4fdc\",\"bar_ids\":[\"dca8a544-756f-41a7-9222-cd7cafd5b09a\",\"bca18ca1-c593-41c9-96c7-8eeb5c22c236\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tc93391dd54bc2ffd8e3a97c42bb1a265 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "29c6a09a-ebc6-495d-8770-b20b74d9c36e"], ["descendant_id", "29c6a09a-ebc6-495d-8770-b20b74d9c36e"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "29c6a09a-ebc6-495d-8770-b20b74d9c36e"], ["LIMIT", 1]] 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", "29c6a09a-ebc6-495d-8770-b20b74d9c36e"]]  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t5e8ac0ea2ffcf138112bc462d36055b3  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PushType::RelationFieldTest: test_0013_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-421"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-421"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t02964c5f30b4dc86a6047e27e0b7b4b3 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "4e14378e-8d7b-4fff-8b6b-bdd60a603af7"], ["descendant_id", "4e14378e-8d7b-4fff-8b6b-bdd60a603af7"], ["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 $2 [["id", "4e14378e-8d7b-4fff-8b6b-bdd60a603af7"], ["LIMIT", 1]] 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", "4e14378e-8d7b-4fff-8b6b-bdd60a603af7"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t61462f7c890bcfa56caf12e2c18328b3  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-422"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-422"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t55163f511200a346e9725ff3b1b37962 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "337ea5c5-6d0b-4250-bcc0-5242bacbff35"], ["descendant_id", "337ea5c5-6d0b-4250-bcc0-5242bacbff35"], ["generations", 0]]  (0.4ms) 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 $2 [["id", "337ea5c5-6d0b-4250-bcc0-5242bacbff35"], ["LIMIT", 1]] 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", "337ea5c5-6d0b-4250-bcc0-5242bacbff35"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t99b1daa24e72eccb86a3a782e658a271  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-423"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-423"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t26acbed71ce4ec680f025416eb4b0db8 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "1f02d04e-698a-421f-9e5d-1ef2b72ddf13"], ["descendant_id", "1f02d04e-698a-421f-9e5d-1ef2b72ddf13"], ["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.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "1f02d04e-698a-421f-9e5d-1ef2b72ddf13"], ["LIMIT", 1]] 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", "1f02d04e-698a-421f-9e5d-1ef2b72ddf13"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t915dd6affaa307c7c46e1c5f3586d065  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-424"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-424"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t4a040fea7947aa417dce1a78aed400f5 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "405656e3-46ed-4ddc-9af0-726206841589"], ["descendant_id", "405656e3-46ed-4ddc-9af0-726206841589"], ["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 $2 [["id", "405656e3-46ed-4ddc-9af0-726206841589"], ["LIMIT", 1]] 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", "405656e3-46ed-4ddc-9af0-726206841589"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS ta90a3d7e7230f1e7dfc860740ee67e02  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-425"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-425"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t148bed378a7ae1acdcdfd601a851202d SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "902f8606-86e6-4c95-a81b-80400dbb5e69"], ["descendant_id", "902f8606-86e6-4c95-a81b-80400dbb5e69"], ["generations", 0]]  (0.4ms) 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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "902f8606-86e6-4c95-a81b-80400dbb5e69"], ["LIMIT", 1]] 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", "902f8606-86e6-4c95-a81b-80400dbb5e69"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t60a136779b97151b35a0e15cad913147  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-426"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-426"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t099d622a14fd071fbad83d491e920e35 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "0d7b7b89-dab3-4c88-bf9c-f2b0fb1f88e6"], ["descendant_id", "0d7b7b89-dab3-4c88-bf9c-f2b0fb1f88e6"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "0d7b7b89-dab3-4c88-bf9c-f2b0fb1f88e6"], ["LIMIT", 1]] PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "0d7b7b89-dab3-4c88-bf9c-f2b0fb1f88e6"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t876a6879323c084390e2a7e504c5d752  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-427"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-427"], ["field_store", "{\"page_id\":\"4e14378e-8d7b-4fff-8b6b-bdd60a603af7\",\"bar_ids\":[\"902f8606-86e6-4c95-a81b-80400dbb5e69\",\"0d7b7b89-dab3-4c88-bf9c-f2b0fb1f88e6\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.3ms) SELECT pg_try_advisory_lock(1213021721,0) AS t9525fee48b73fcf0e6e32689fcb7f815 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "58ff2bdf-ae3b-494b-a604-849b34efb0ea"], ["descendant_id", "58ff2bdf-ae3b-494b-a604-849b34efb0ea"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "58ff2bdf-ae3b-494b-a604-849b34efb0ea"], ["LIMIT", 1]] 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", "58ff2bdf-ae3b-494b-a604-849b34efb0ea"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tb29c98b3104205ba82f0b439276812d6  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PushType::RelationFieldTest: 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 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-428"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-428"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t333329aa57e939788f141cf648c755fc SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "a8f84bd2-0489-40ae-9c81-cc9976cf78d7"], ["descendant_id", "a8f84bd2-0489-40ae-9c81-cc9976cf78d7"], ["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 $2 [["id", "a8f84bd2-0489-40ae-9c81-cc9976cf78d7"], ["LIMIT", 1]] 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", "a8f84bd2-0489-40ae-9c81-cc9976cf78d7"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tbaaac21a11ee4a8c5b726d4a6f29ce9d  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-429"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-429"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t741d491514fd6b37bf1ad72b5236db5a SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "a8c5f072-941b-4c25-aed3-7c2307b25806"], ["descendant_id", "a8c5f072-941b-4c25-aed3-7c2307b25806"], ["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 $2 [["id", "a8c5f072-941b-4c25-aed3-7c2307b25806"], ["LIMIT", 1]] 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", "a8c5f072-941b-4c25-aed3-7c2307b25806"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tf39653d1cb348e5352133dfb2dbc1a57  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-430"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-430"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t545cc3c2daa54817483fb1fec239c493 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "aa1f657d-50fd-4fd7-817b-dc54239257bb"], ["descendant_id", "aa1f657d-50fd-4fd7-817b-dc54239257bb"], ["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 $2 [["id", "aa1f657d-50fd-4fd7-817b-dc54239257bb"], ["LIMIT", 1]] 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", "aa1f657d-50fd-4fd7-817b-dc54239257bb"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t393458593e3844573bd050bca914ba47  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-431"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-431"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t57e932f3332ce1205e0c3bfffa4ef929 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "2128602b-8b10-4b9e-9905-a9d54c26a2e8"], ["descendant_id", "2128602b-8b10-4b9e-9905-a9d54c26a2e8"], ["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 $2 [["id", "2128602b-8b10-4b9e-9905-a9d54c26a2e8"], ["LIMIT", 1]] PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "2128602b-8b10-4b9e-9905-a9d54c26a2e8"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tadc4c37fc9994ee057c1196bb09e928b  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-432"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-432"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t80645761b60cdfb6ab2ae6e99f4911b1 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "ededac48-28f6-430a-9874-0b9cca8d2f14"], ["descendant_id", "ededac48-28f6-430a-9874-0b9cca8d2f14"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "ededac48-28f6-430a-9874-0b9cca8d2f14"], ["LIMIT", 1]] 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", "ededac48-28f6-430a-9874-0b9cca8d2f14"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tb92953736b641b93045c3bdbc30a1ff6  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-433"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-433"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tee6c6c1641a4cf02b55ee847543fea36 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "1bcb174a-c008-4e0f-9ba7-c08650e8a736"], ["descendant_id", "1bcb174a-c008-4e0f-9ba7-c08650e8a736"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "1bcb174a-c008-4e0f-9ba7-c08650e8a736"], ["LIMIT", 1]] 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", "1bcb174a-c008-4e0f-9ba7-c08650e8a736"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t5dc22db4bdc1597bb68d8a00130c3500  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-434"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-434"], ["field_store", "{\"page_id\":\"a8f84bd2-0489-40ae-9c81-cc9976cf78d7\",\"bar_ids\":[\"ededac48-28f6-430a-9874-0b9cca8d2f14\",\"1bcb174a-c008-4e0f-9ba7-c08650e8a736\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tef0abf8081c3b9c125dd04370fab5e5d SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "8afbf363-4a5d-4222-933f-467b988d3cdd"], ["descendant_id", "8afbf363-4a5d-4222-933f-467b988d3cdd"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "8afbf363-4a5d-4222-933f-467b988d3cdd"], ["LIMIT", 1]] 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", "8afbf363-4a5d-4222-933f-467b988d3cdd"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t3f4c6bd612e25ad4d3659947f1fa3a4d  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PushType::RelationFieldTest: test_0027_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.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-435"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-435"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t40cd42fbe0b4614d8e0dcfcc702a111a SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "b91ddb26-bf2f-4052-90d3-1e353c779f7c"], ["descendant_id", "b91ddb26-bf2f-4052-90d3-1e353c779f7c"], ["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 $2 [["id", "b91ddb26-bf2f-4052-90d3-1e353c779f7c"], ["LIMIT", 1]] 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", "b91ddb26-bf2f-4052-90d3-1e353c779f7c"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t43d6f0c06e27474fd2571d79f6801d22  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-436"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-436"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS ted2f5f8467931408d0f416973211ba15 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "6ee6f1ea-11af-4224-9937-c74e30c5da88"], ["descendant_id", "6ee6f1ea-11af-4224-9937-c74e30c5da88"], ["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 $2 [["id", "6ee6f1ea-11af-4224-9937-c74e30c5da88"], ["LIMIT", 1]] 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", "6ee6f1ea-11af-4224-9937-c74e30c5da88"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t7525b985a2579d040eb8316330606b1a  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-437"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-437"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tdd1887faa80eeb0d451227ab51053f16 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "bb85262d-e6b7-4c3b-a3df-da4242bd1703"], ["descendant_id", "bb85262d-e6b7-4c3b-a3df-da4242bd1703"], ["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 $2 [["id", "bb85262d-e6b7-4c3b-a3df-da4242bd1703"], ["LIMIT", 1]] 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", "bb85262d-e6b7-4c3b-a3df-da4242bd1703"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tb809f5398ecd86cb8cb4dc2b475b5fb1  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-438"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-438"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t6c57a8cf0f01ef2b5788d6658cb353bc SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "edfa5323-eefb-4a44-bab1-b3628c61f95b"], ["descendant_id", "edfa5323-eefb-4a44-bab1-b3628c61f95b"], ["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 $2 [["id", "edfa5323-eefb-4a44-bab1-b3628c61f95b"], ["LIMIT", 1]] 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", "edfa5323-eefb-4a44-bab1-b3628c61f95b"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS teebeea52d230d00d8187be59de561782  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-439"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-439"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t1c6cae554c5451c26e22d0cb134c5031 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "1c321827-aed5-4e5a-b2c7-9a8ac5abf3eb"], ["descendant_id", "1c321827-aed5-4e5a-b2c7-9a8ac5abf3eb"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "1c321827-aed5-4e5a-b2c7-9a8ac5abf3eb"], ["LIMIT", 1]] 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", "1c321827-aed5-4e5a-b2c7-9a8ac5abf3eb"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t24c0ccee116560799045e12e78b99779  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-440"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-440"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t28949fa1ba2b7bb62d78a030aa995565 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "04a2c721-8fb3-43e8-8d6b-ea9701bef256"], ["descendant_id", "04a2c721-8fb3-43e8-8d6b-ea9701bef256"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "04a2c721-8fb3-43e8-8d6b-ea9701bef256"], ["LIMIT", 1]] 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", "04a2c721-8fb3-43e8-8d6b-ea9701bef256"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t862172aec684531f7de70a6c4a9825cd  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-441"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-441"], ["field_store", "{\"page_id\":\"b91ddb26-bf2f-4052-90d3-1e353c779f7c\",\"bar_ids\":[\"1c321827-aed5-4e5a-b2c7-9a8ac5abf3eb\",\"04a2c721-8fb3-43e8-8d6b-ea9701bef256\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t282e68d424a494b3adf45ed2a79dd92e SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "7e594914-ca88-41b5-a9c4-f68c50fea8b0"], ["descendant_id", "7e594914-ca88-41b5-a9c4-f68c50fea8b0"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "7e594914-ca88-41b5-a9c4-f68c50fea8b0"], ["LIMIT", 1]] 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", "7e594914-ca88-41b5-a9c4-f68c50fea8b0"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t395b0979e63366f4d8c0087a0e67e8b1  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PushType::RelationFieldTest: test_0021_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-442"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-442"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t1cb196a4fce976576a33367097de6284 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "631b7334-4e08-49c6-9965-172990764fe7"], ["descendant_id", "631b7334-4e08-49c6-9965-172990764fe7"], ["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 $2 [["id", "631b7334-4e08-49c6-9965-172990764fe7"], ["LIMIT", 1]] 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", "631b7334-4e08-49c6-9965-172990764fe7"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS ta356e33f122ac66fb61f6614f482c026  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-443"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-443"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t55c545fe767dde21da1b4b67f95ef99a SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "4e3636ec-324a-4538-9d55-7c14f80d0c52"], ["descendant_id", "4e3636ec-324a-4538-9d55-7c14f80d0c52"], ["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 $2 [["id", "4e3636ec-324a-4538-9d55-7c14f80d0c52"], ["LIMIT", 1]] 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", "4e3636ec-324a-4538-9d55-7c14f80d0c52"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t1ab37862a7a52086bb8904bc995424fc  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-444"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-444"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t4f62c72a998cac80422a0fa1e230a5c2 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "dff8147e-ff2f-49f4-82e7-a22ed9c00d51"], ["descendant_id", "dff8147e-ff2f-49f4-82e7-a22ed9c00d51"], ["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 $2 [["id", "dff8147e-ff2f-49f4-82e7-a22ed9c00d51"], ["LIMIT", 1]] 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", "dff8147e-ff2f-49f4-82e7-a22ed9c00d51"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t40e69dc21fe5e54c0b79d750a48e18e4  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-445"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-445"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tc4b4de8712aba160dc49b46eabd80a17 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "d33cc217-c34f-4686-acb4-1bc28a1facba"], ["descendant_id", "d33cc217-c34f-4686-acb4-1bc28a1facba"], ["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.4ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "d33cc217-c34f-4686-acb4-1bc28a1facba"], ["LIMIT", 1]] PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "d33cc217-c34f-4686-acb4-1bc28a1facba"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tdf4105998209ddd71a45a3b5c79e9bbd  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.4ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-446"], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-446"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS td24b3e5a36f5d1973ecd3eedd42c60cc SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "e3c45d90-b04a-4381-b015-6561ace98ad9"], ["descendant_id", "e3c45d90-b04a-4381-b015-6561ace98ad9"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "e3c45d90-b04a-4381-b015-6561ace98ad9"], ["LIMIT", 1]] PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "e3c45d90-b04a-4381-b015-6561ace98ad9"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t15b6fc0c3871cd49249abe592a5bf7d2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-447"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-447"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t57f3d6bdaaf9b66f01ccc4d9725b3ae5 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "beaa1c74-e405-4c51-bbd2-2cf1992d74d4"], ["descendant_id", "beaa1c74-e405-4c51-bbd2-2cf1992d74d4"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "beaa1c74-e405-4c51-bbd2-2cf1992d74d4"], ["LIMIT", 1]] 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", "beaa1c74-e405-4c51-bbd2-2cf1992d74d4"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t1e36f7a6e590306ffb59a10163fff7ea  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-448"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-448"], ["field_store", "{\"page_id\":\"631b7334-4e08-49c6-9965-172990764fe7\",\"bar_ids\":[\"e3c45d90-b04a-4381-b015-6561ace98ad9\",\"beaa1c74-e405-4c51-bbd2-2cf1992d74d4\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS td5df79f827e3aa197145c889a70dedd6 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "29f434c0-f5e1-4935-8482-4fe131a298dd"], ["descendant_id", "29f434c0-f5e1-4935-8482-4fe131a298dd"], ["generations", 0]]  (0.4ms) 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::RelationFieldTest::TestPage Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "29f434c0-f5e1-4935-8482-4fe131a298dd"], ["LIMIT", 1]] 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", "29f434c0-f5e1-4935-8482-4fe131a298dd"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t7817f2939f8260096299e5ba32a8d788  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PushType::RelationFieldTest: test_0007_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-449"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-449"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t4c0e1ca075b1790c168143b3069ba7d9 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "8f83a27a-46ad-4296-9738-b96ac0a839f5"], ["descendant_id", "8f83a27a-46ad-4296-9738-b96ac0a839f5"], ["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 $2 [["id", "8f83a27a-46ad-4296-9738-b96ac0a839f5"], ["LIMIT", 1]] 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", "8f83a27a-46ad-4296-9738-b96ac0a839f5"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tf3129fbbcda6ce6cca38ac8b41d477b3  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-450"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-450"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t11ca4d03beeda09aaef1bf8e0e20e318 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "8f6e62ac-d652-4c45-8c89-e2b2262cfebb"], ["descendant_id", "8f6e62ac-d652-4c45-8c89-e2b2262cfebb"], ["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 $2 [["id", "8f6e62ac-d652-4c45-8c89-e2b2262cfebb"], ["LIMIT", 1]] 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", "8f6e62ac-d652-4c45-8c89-e2b2262cfebb"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t243984ffa91612aaf164d1e08353c6c6  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-451"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-451"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t30f4fa887a7464524a2b90e942db967b SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "b8b3f47d-7e33-4e0e-b385-0a1d291767ed"], ["descendant_id", "b8b3f47d-7e33-4e0e-b385-0a1d291767ed"], ["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 $2 [["id", "b8b3f47d-7e33-4e0e-b385-0a1d291767ed"], ["LIMIT", 1]] 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", "b8b3f47d-7e33-4e0e-b385-0a1d291767ed"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t5fcb0dbdaf325a52283d8c3093bdd315  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-452"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-452"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tf512cf032b6da6494a499a9412aafd79 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "f18c059d-b7e8-4d91-a743-be4f625dbff7"], ["descendant_id", "f18c059d-b7e8-4d91-a743-be4f625dbff7"], ["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 $2 [["id", "f18c059d-b7e8-4d91-a743-be4f625dbff7"], ["LIMIT", 1]] 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", "f18c059d-b7e8-4d91-a743-be4f625dbff7"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t32a2a287dbf400505ce67b2eaf6fa2ea  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-453"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-453"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS te778fb4c5e871479c0d35b37f7466fcf SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "dd583d86-1c54-4c09-beb5-67cae893681e"], ["descendant_id", "dd583d86-1c54-4c09-beb5-67cae893681e"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "dd583d86-1c54-4c09-beb5-67cae893681e"], ["LIMIT", 1]] 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", "dd583d86-1c54-4c09-beb5-67cae893681e"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t3c79d8a602ebea546025f0c12dc74fe1  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-454"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-454"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t27fe7237c88780cdd0a156888c8ed02e SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "1f687fa1-dc7a-4e4d-bc61-4d93617bbdeb"], ["descendant_id", "1f687fa1-dc7a-4e4d-bc61-4d93617bbdeb"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "1f687fa1-dc7a-4e4d-bc61-4d93617bbdeb"], ["LIMIT", 1]] 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", "1f687fa1-dc7a-4e4d-bc61-4d93617bbdeb"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS te8da5fcaa8ef4656accd7e35aba147bd  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-455"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-455"], ["field_store", "{\"page_id\":\"8f83a27a-46ad-4296-9738-b96ac0a839f5\",\"bar_ids\":[\"dd583d86-1c54-4c09-beb5-67cae893681e\",\"1f687fa1-dc7a-4e4d-bc61-4d93617bbdeb\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t48a9bff0dd124c2184e4a2a4b6e865fa SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "425ae972-9ad7-461f-9e4e-cbf0d9447ced"], ["descendant_id", "425ae972-9ad7-461f-9e4e-cbf0d9447ced"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "425ae972-9ad7-461f-9e4e-cbf0d9447ced"], ["LIMIT", 1]] 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", "425ae972-9ad7-461f-9e4e-cbf0d9447ced"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tc6d18f05e90a2e4010545e32778ca261  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PushType::RelationFieldTest: test_0015_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-456"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-456"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t803970c29a5cf40d2c69ef975ad18180 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "dfd0270b-eb68-41bb-82db-7a36eeef8f1c"], ["descendant_id", "dfd0270b-eb68-41bb-82db-7a36eeef8f1c"], ["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 $2 [["id", "dfd0270b-eb68-41bb-82db-7a36eeef8f1c"], ["LIMIT", 1]] 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", "dfd0270b-eb68-41bb-82db-7a36eeef8f1c"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t1cf4cf374e8b7633a7b8ee8ae2f17993  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-457"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-457"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS tbf1ea3edce56d5ee25f3119d1d6f3ca2 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "963b8f67-d78b-424c-a451-8f39e8abfb90"], ["descendant_id", "963b8f67-d78b-424c-a451-8f39e8abfb90"], ["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  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 $2 [["id", "963b8f67-d78b-424c-a451-8f39e8abfb90"], ["LIMIT", 1]] 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", "963b8f67-d78b-424c-a451-8f39e8abfb90"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t6255ebc866f6b52f499e6d5668d8b503  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-458"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-458"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t3cb25c9ecefbca325998a61fcc6513c9 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "bf842bf9-8db8-4be6-b3f1-79ed8a16453f"], ["descendant_id", "bf842bf9-8db8-4be6-b3f1-79ed8a16453f"], ["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 $2 [["id", "bf842bf9-8db8-4be6-b3f1-79ed8a16453f"], ["LIMIT", 1]] 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", "bf842bf9-8db8-4be6-b3f1-79ed8a16453f"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS taf0490a9f3bb5d2ffde7646b0a77800d  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-459"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["title", "Foo bar"], ["slug", "foo-bar-459"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS ta510845da7984b947459cadd8417f377 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "506068a3-9c76-4342-b822-278202e6f434"], ["descendant_id", "506068a3-9c76-4342-b822-278202e6f434"], ["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 $2 [["id", "506068a3-9c76-4342-b822-278202e6f434"], ["LIMIT", 1]] PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "506068a3-9c76-4342-b822-278202e6f434"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tacc9d4cfeaf44e019804631a330cf5c1  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-460"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-460"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t468a7b1efa15c06d5f202e21dc7690fe SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "8844a80c-6195-45cf-902d-854bfee8996f"], ["descendant_id", "8844a80c-6195-45cf-902d-854bfee8996f"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "8844a80c-6195-45cf-902d-854bfee8996f"], ["LIMIT", 1]] PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "8844a80c-6195-45cf-902d-854bfee8996f"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tf8cbe02d068ef93d9525928dad4410d1  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-461"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-461"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t9d30cb411dbf433cd45f43c24457f80a SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "83406f95-8add-47ec-8f31-7b53d31902ba"], ["descendant_id", "83406f95-8add-47ec-8f31-7b53d31902ba"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "83406f95-8add-47ec-8f31-7b53d31902ba"], ["LIMIT", 1]] 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", "83406f95-8add-47ec-8f31-7b53d31902ba"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t7288abecd1dacaaa526b58f104d43a77  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-462"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("type", "title", "slug", "field_store", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PushType::RelationFieldTest::TestPage"], ["title", "Foo bar"], ["slug", "foo-bar-462"], ["field_store", "{\"page_id\":\"dfd0270b-eb68-41bb-82db-7a36eeef8f1c\",\"bar_ids\":[\"8844a80c-6195-45cf-902d-854bfee8996f\",\"83406f95-8add-47ec-8f31-7b53d31902ba\"]}"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t09a7f8df18e7c839d9b0cb3f8975495d SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "5f687a96-b6f4-48dd-83a8-2be14a0e5de3"], ["descendant_id", "5f687a96-b6f4-48dd-83a8-2be14a0e5de3"], ["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::RelationFieldTest::TestPage Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('PushType::RelationFieldTest::TestPage') AND "push_type_nodes"."id" = $1 LIMIT $2 [["id", "5f687a96-b6f4-48dd-83a8-2be14a0e5de3"], ["LIMIT", 1]] 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", "5f687a96-b6f4-48dd-83a8-2be14a0e5de3"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t998b3655c53fe9cf055895194e0f03b7  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------------------------- PushType::UnexposableTest::.descendants: test_0001_should include subject when not unexposed --------------------------------------------------------------------------------------------  (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::UnexposableTest::.descendants: test_0002_should not include subject when not unexposed ------------------------------------------------------------------------------------------------  (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.1ms) BEGIN ----------------------------------------------------------------------------------------------- PushType::PublishableTest::.published::with published_at dates in the past: test_0001_anonymous -----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) 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 <= '2016-10-16 14:40:58.844834') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2016-10-16 14:40:58.845001')  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-463"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-463"], ["status", 1], ["published_at", 2016-10-14 14:40:58 UTC], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tfae53cb050500173e52d69c86589d0a1 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "d452aa1b-7ea8-4257-a882-916a8e7f6f28"], ["descendant_id", "d452aa1b-7ea8-4257-a882-916a8e7f6f28"], ["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 $2 [["id", "d452aa1b-7ea8-4257-a882-916a8e7f6f28"], ["LIMIT", 1]] 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", "d452aa1b-7ea8-4257-a882-916a8e7f6f28"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t765601433b9f352811382ce2030e2aba  (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 <= '2016-10-16 14:40:58.844834') AND (push_type_nodes.published_to IS NULL OR push_type_nodes.published_to > '2016-10-16 14:40:58.845001')  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- PushType::MenuBuilderTest::.select: test_0001_should create a new menu ----------------------------------------------------------------------  (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::MenuBuilderTest::.select: test_0002_should use existing menu if present ---------------------------------------------------------------------------------  (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.0ms) ROLLBACK  (0.0ms) BEGIN ------------------------------------------------ PushType::NodeTest::#trash!: 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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-464"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-464"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tdf7435d270a008086803d9c25a12743a SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "44c2b757-5fbd-450a-90a5-c4867e68b33d"], ["descendant_id", "44c2b757-5fbd-450a-90a5-c4867e68b33d"], ["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 $2 [["id", "44c2b757-5fbd-450a-90a5-c4867e68b33d"], ["LIMIT", 1]] PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "44c2b757-5fbd-450a-90a5-c4867e68b33d"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t824bf0e7ae17bedd4be3e64465c19a30  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" = $2 LIMIT $3 [["slug", "foo-bar-465"], ["parent_id", "44c2b757-5fbd-450a-90a5-c4867e68b33d"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("title", "slug", "parent_id", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-465"], ["parent_id", "44c2b757-5fbd-450a-90a5-c4867e68b33d"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t035f2f4f9a7aed819af060705e137439 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "a92742e5-39f6-4a5a-804a-1af00cc668fd"], ["descendant_id", "a92742e5-39f6-4a5a-804a-1af00cc668fd"], ["generations", 0]]  (0.2ms) INSERT INTO "push_type_node_hierarchies" (ancestor_id, descendant_id, generations) SELECT x.ancestor_id, 'a92742e5-39f6-4a5a-804a-1af00cc668fd', x.generations + 1 FROM "push_type_node_hierarchies" x WHERE x.descendant_id = '44c2b757-5fbd-450a-90a5-c4867e68b33d'   (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" = '44c2b757-5fbd-450a-90a5-c4867e68b33d' ) 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 $2 [["id", "a92742e5-39f6-4a5a-804a-1af00cc668fd"], ["LIMIT", 1]] 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", "a92742e5-39f6-4a5a-804a-1af00cc668fd"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tdb0063bb870209069ebb83b9c3d7a74f  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) UPDATE "push_type_nodes" SET "updated_at" = $1, "deleted_at" = $2 WHERE "push_type_nodes"."id" = $3 [["updated_at", 2016-10-16 14:40:58 UTC], ["deleted_at", 2016-10-16 14:40:58 UTC], ["id", "44c2b757-5fbd-450a-90a5-c4867e68b33d"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 SQL (0.5ms) UPDATE "push_type_nodes" SET "deleted_at" = '2016-10-16 14:40:58.880910' WHERE "push_type_nodes"."id" IN (SELECT "push_type_nodes"."id" FROM "push_type_nodes" INNER JOIN "push_type_node_hierarchies" ON "push_type_nodes"."id" = "push_type_node_hierarchies"."descendant_id" WHERE "push_type_node_hierarchies"."ancestor_id" = $1 AND ("push_type_nodes"."id" != '44c2b757-5fbd-450a-90a5-c4867e68b33d') ORDER BY "push_type_node_hierarchies".generations asc, sort_order) [["ancestor_id", "44c2b757-5fbd-450a-90a5-c4867e68b33d"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PushType::NodeTest::#trash!: test_0002_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-466"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-466"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t79f600770a8d6a1ed89060a0dc4b1248 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "3db499e6-1ffd-4ffc-989f-c98d888a3e2e"], ["descendant_id", "3db499e6-1ffd-4ffc-989f-c98d888a3e2e"], ["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 $2 [["id", "3db499e6-1ffd-4ffc-989f-c98d888a3e2e"], ["LIMIT", 1]] 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", "3db499e6-1ffd-4ffc-989f-c98d888a3e2e"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t34d8b2805278a75764d750989da3146c  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" = $2 LIMIT $3 [["slug", "foo-bar-467"], ["parent_id", "3db499e6-1ffd-4ffc-989f-c98d888a3e2e"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("title", "slug", "parent_id", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-467"], ["parent_id", "3db499e6-1ffd-4ffc-989f-c98d888a3e2e"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS td07b1c3e497344fb72ff6cb207e0857f SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "14925030-5756-40ff-9b0b-93fd360d1fe3"], ["descendant_id", "14925030-5756-40ff-9b0b-93fd360d1fe3"], ["generations", 0]]  (0.2ms) INSERT INTO "push_type_node_hierarchies" (ancestor_id, descendant_id, generations) SELECT x.ancestor_id, '14925030-5756-40ff-9b0b-93fd360d1fe3', x.generations + 1 FROM "push_type_node_hierarchies" x WHERE x.descendant_id = '3db499e6-1ffd-4ffc-989f-c98d888a3e2e'   (0.4ms) 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" = '3db499e6-1ffd-4ffc-989f-c98d888a3e2e' ) 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 $2 [["id", "14925030-5756-40ff-9b0b-93fd360d1fe3"], ["LIMIT", 1]] 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", "14925030-5756-40ff-9b0b-93fd360d1fe3"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tfb6aa6a25b261eec1e3db19e383d88fe  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) UPDATE "push_type_nodes" SET "updated_at" = $1, "deleted_at" = $2 WHERE "push_type_nodes"."id" = $3 [["updated_at", 2016-10-16 14:40:58 UTC], ["deleted_at", 2016-10-16 14:40:58 UTC], ["id", "3db499e6-1ffd-4ffc-989f-c98d888a3e2e"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 SQL (0.6ms) UPDATE "push_type_nodes" SET "deleted_at" = '2016-10-16 14:40:58.907786' WHERE "push_type_nodes"."id" IN (SELECT "push_type_nodes"."id" FROM "push_type_nodes" INNER JOIN "push_type_node_hierarchies" ON "push_type_nodes"."id" = "push_type_node_hierarchies"."descendant_id" WHERE "push_type_node_hierarchies"."ancestor_id" = $1 AND ("push_type_nodes"."id" != '3db499e6-1ffd-4ffc-989f-c98d888a3e2e') ORDER BY "push_type_node_hierarchies".generations asc, sort_order) [["ancestor_id", "3db499e6-1ffd-4ffc-989f-c98d888a3e2e"]] PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT $2 [["id", "3db499e6-1ffd-4ffc-989f-c98d888a3e2e"], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------------- PushType::UnexposableTest::exposed?: test_0001_should be true when not unexposed --------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------- PushType::UnexposableTest::exposed?: test_0002_should be false when unexposed -----------------------------------------------------------------------------  (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::PublishableTest::#status: test_0009_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.4ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-468"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-468"], ["status", 1], ["published_at", 2016-10-17 14:40:58 UTC], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t0ed49559b2c156983d21419fb733a5ab SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "c18926ae-f3cc-42a2-a6bb-39f931e37722"], ["descendant_id", "c18926ae-f3cc-42a2-a6bb-39f931e37722"], ["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 $2 [["id", "c18926ae-f3cc-42a2-a6bb-39f931e37722"], ["LIMIT", 1]] 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", "c18926ae-f3cc-42a2-a6bb-39f931e37722"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS td0e81fff4f0821591e25ecaa5c202586  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- PushType::PublishableTest::#status: test_0016_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-469"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "published_at", "published_to", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-469"], ["status", 1], ["published_at", 2016-10-14 14:40:58 UTC], ["published_to", 2016-10-15 14:40:58 UTC], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t10c2500a1c6556796a919d2d715184fe SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "ee2c98a5-1c73-4901-bbbd-e25d438427f2"], ["descendant_id", "ee2c98a5-1c73-4901-bbbd-e25d438427f2"], ["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 $2 [["id", "ee2c98a5-1c73-4901-bbbd-e25d438427f2"], ["LIMIT", 1]] 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", "ee2c98a5-1c73-4901-bbbd-e25d438427f2"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t66ecece11c1bbe44247cf6d0382f1737  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- PushType::PublishableTest::#status: test_0003_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.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-470"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-470"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t4bec11d25b39807ed8afe113b17ee448 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "6a2acb33-8573-4a5e-a0f8-30d75def4837"], ["descendant_id", "6a2acb33-8573-4a5e-a0f8-30d75def4837"], ["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 $2 [["id", "6a2acb33-8573-4a5e-a0f8-30d75def4837"], ["LIMIT", 1]] 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", "6a2acb33-8573-4a5e-a0f8-30d75def4837"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t0dfc8fa6adb931fd90382273b6dcd6ce  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- PushType::PublishableTest::#status: test_0005_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-471"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-471"], ["status", 1], ["published_at", 2016-10-16 14:40:58 UTC], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t814e2a523bf9c441a3241d4f58f005a5 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "ed85b690-5237-4092-b034-e7ab1d70addc"], ["descendant_id", "ed85b690-5237-4092-b034-e7ab1d70addc"], ["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 $2 [["id", "ed85b690-5237-4092-b034-e7ab1d70addc"], ["LIMIT", 1]] PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "ed85b690-5237-4092-b034-e7ab1d70addc"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t6559a6b20fc530d738a9366eaa893f2a  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- PushType::PublishableTest::#status: test_0010_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.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-472"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-472"], ["status", 1], ["published_at", 2016-10-17 14:40:58 UTC], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS tfa41962f8e5b4b7083ef0ecc6684e2ef SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "9b78c542-ba85-4313-bdac-888dad631702"], ["descendant_id", "9b78c542-ba85-4313-bdac-888dad631702"], ["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 $2 [["id", "9b78c542-ba85-4313-bdac-888dad631702"], ["LIMIT", 1]] 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", "9b78c542-ba85-4313-bdac-888dad631702"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t188ea92b7861c81168c4e631a3af0c88  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- PushType::PublishableTest::#status: test_0001_anonymous -------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) 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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-473"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-473"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t6fdf3ae1f2c0df1265cef267b4b2de0e SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "0d17db73-96c9-49c3-95a3-1a2712474ef3"], ["descendant_id", "0d17db73-96c9-49c3-95a3-1a2712474ef3"], ["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 $2 [["id", "0d17db73-96c9-49c3-95a3-1a2712474ef3"], ["LIMIT", 1]] 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", "0d17db73-96c9-49c3-95a3-1a2712474ef3"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tf8f3135b7d4bb877ba6df75ff1b4c0c7  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- PushType::PublishableTest::#status: 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 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-474"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-474"], ["status", 0], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t703aa690bb23382ab5692a3ed233e54f SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "e0dfa645-f68e-451d-a23e-17099e2242d7"], ["descendant_id", "e0dfa645-f68e-451d-a23e-17099e2242d7"], ["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 $2 [["id", "e0dfa645-f68e-451d-a23e-17099e2242d7"], ["LIMIT", 1]] 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", "e0dfa645-f68e-451d-a23e-17099e2242d7"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t93d6266d77e1e262a1b435cd52dd56ab  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- PushType::PublishableTest::#status: test_0007_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.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-475"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-475"], ["status", 1], ["published_at", 2016-10-16 14:40:58 UTC], ["created_at", 2016-10-16 14:40:58 UTC], ["updated_at", 2016-10-16 14:40:58 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t00200641a4c7f4770bc60988cdf99722 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "a904de50-10ed-413c-826a-0fd66521edba"], ["descendant_id", "a904de50-10ed-413c-826a-0fd66521edba"], ["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 $2 [["id", "a904de50-10ed-413c-826a-0fd66521edba"], ["LIMIT", 1]] 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", "a904de50-10ed-413c-826a-0fd66521edba"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS teb27291c771f9b3a839ab5efddb2f14b  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- PushType::PublishableTest::#status: test_0006_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.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-476"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-476"], ["status", 1], ["published_at", 2016-10-16 14:40:59 UTC], ["created_at", 2016-10-16 14:40:59 UTC], ["updated_at", 2016-10-16 14:40:59 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tb15f3f2f22a67ad4a5722dd027fa3c90 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "ff488b87-7bdf-42be-8741-ef5e544542c5"], ["descendant_id", "ff488b87-7bdf-42be-8741-ef5e544542c5"], ["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 $2 [["id", "ff488b87-7bdf-42be-8741-ef5e544542c5"], ["LIMIT", 1]] 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", "ff488b87-7bdf-42be-8741-ef5e544542c5"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t05b458ebf3262cd46ea04d63576700a1  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- PushType::PublishableTest::#status: test_0011_anonymous -------------------------------------------------------  (0.2ms) 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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-477"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-477"], ["status", 1], ["published_at", 2016-10-17 14:40:59 UTC], ["created_at", 2016-10-16 14:40:59 UTC], ["updated_at", 2016-10-16 14:40:59 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tbc630842ffe6846109526ee981e472ac SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "09652fc2-da8a-4f43-b762-e359692c068d"], ["descendant_id", "09652fc2-da8a-4f43-b762-e359692c068d"], ["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 $2 [["id", "09652fc2-da8a-4f43-b762-e359692c068d"], ["LIMIT", 1]] 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", "09652fc2-da8a-4f43-b762-e359692c068d"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tf4be61dc6b45430959b8cd63334437ef  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- PushType::PublishableTest::#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.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-478"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "published_at", "published_to", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-478"], ["status", 1], ["published_at", 2016-10-14 14:40:59 UTC], ["published_to", 2016-10-15 14:40:59 UTC], ["created_at", 2016-10-16 14:40:59 UTC], ["updated_at", 2016-10-16 14:40:59 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t6a5707b4a9bf730055f43f161a01b393 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "493d527e-0369-4a38-89a2-83c69b89ce35"], ["descendant_id", "493d527e-0369-4a38-89a2-83c69b89ce35"], ["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 $2 [["id", "493d527e-0369-4a38-89a2-83c69b89ce35"], ["LIMIT", 1]] 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", "493d527e-0369-4a38-89a2-83c69b89ce35"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t9b4ab1bd99fcb7a1a94faabb93126d9d  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- PushType::PublishableTest::#status: test_0008_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-479"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-479"], ["status", 1], ["published_at", 2016-10-16 14:40:59 UTC], ["created_at", 2016-10-16 14:40:59 UTC], ["updated_at", 2016-10-16 14:40:59 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t283df175ae5e4d1c0614196b84358b63 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "d105bcd7-e121-439e-8e17-311ed491f864"], ["descendant_id", "d105bcd7-e121-439e-8e17-311ed491f864"], ["generations", 0]]  (0.4ms) 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 $2 [["id", "d105bcd7-e121-439e-8e17-311ed491f864"], ["LIMIT", 1]] PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "d105bcd7-e121-439e-8e17-311ed491f864"]]  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t21bfd6a35cdb41078ccbbce770a199b7  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- PushType::PublishableTest::#status: test_0004_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-480"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-480"], ["status", 0], ["created_at", 2016-10-16 14:40:59 UTC], ["updated_at", 2016-10-16 14:40:59 UTC]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t746603e6c491b0721df5adac97fb6ad0 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "3f9d6638-64c5-45ea-8d54-5bbf0aa0f947"], ["descendant_id", "3f9d6638-64c5-45ea-8d54-5bbf0aa0f947"], ["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 $2 [["id", "3f9d6638-64c5-45ea-8d54-5bbf0aa0f947"], ["LIMIT", 1]] 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", "3f9d6638-64c5-45ea-8d54-5bbf0aa0f947"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t3072af488f345a7a02e3322cfa921fa1  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- PushType::PublishableTest::#status: test_0012_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-481"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "published_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-481"], ["status", 1], ["published_at", 2016-10-17 14:40:59 UTC], ["created_at", 2016-10-16 14:40:59 UTC], ["updated_at", 2016-10-16 14:40:59 UTC]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t3dfa43b7863da89c835effe894be7aa5 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "c9a1cc95-6e92-4d25-9158-e24315c6465c"], ["descendant_id", "c9a1cc95-6e92-4d25-9158-e24315c6465c"], ["generations", 0]]  (0.7ms) 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 $2 [["id", "c9a1cc95-6e92-4d25-9158-e24315c6465c"], ["LIMIT", 1]] PushType::Node Load (0.5ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "c9a1cc95-6e92-4d25-9158-e24315c6465c"]]  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS tbb8869250b578d5144fe2f1975236c80  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- PushType::PublishableTest::#status: test_0014_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" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-482"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "published_at", "published_to", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-482"], ["status", 1], ["published_at", 2016-10-14 14:40:59 UTC], ["published_to", 2016-10-15 14:40:59 UTC], ["created_at", 2016-10-16 14:40:59 UTC], ["updated_at", 2016-10-16 14:40:59 UTC]]  (0.4ms) SELECT pg_try_advisory_lock(1213021721,0) AS t6057d9e165d05d28818d6a39cfb3db0f SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "63364e02-57dd-4593-a4e1-8e073cccdfa2"], ["descendant_id", "63364e02-57dd-4593-a4e1-8e073cccdfa2"], ["generations", 0]]  (0.5ms) 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 $2 [["id", "63364e02-57dd-4593-a4e1-8e073cccdfa2"], ["LIMIT", 1]] PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "63364e02-57dd-4593-a4e1-8e073cccdfa2"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t913f1ab4f05ebcbda04f7d1c459c0e97  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- PushType::PublishableTest::#status: test_0015_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.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE "push_type_nodes"."slug" = $1 AND "push_type_nodes"."parent_id" IS NULL LIMIT $2 [["slug", "foo-bar-483"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "push_type_nodes" ("title", "slug", "status", "published_at", "published_to", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Foo bar"], ["slug", "foo-bar-483"], ["status", 1], ["published_at", 2016-10-14 14:40:59 UTC], ["published_to", 2016-10-15 14:40:59 UTC], ["created_at", 2016-10-16 14:40:59 UTC], ["updated_at", 2016-10-16 14:40:59 UTC]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS ta89cbcf6bc1ff2b80230342b1192967b SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "27cee4f1-6574-42f4-ab3b-582673892ac1"], ["descendant_id", "27cee4f1-6574-42f4-ab3b-582673892ac1"], ["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 $2 [["id", "27cee4f1-6574-42f4-ab3b-582673892ac1"], ["LIMIT", 1]] PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "27cee4f1-6574-42f4-ab3b-582673892ac1"]]  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS tbb0c6b053ab45e2c5a96b6e8455ce0e7  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK