(2.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreatePushTypeUsers (20160615180821)  (0.1ms) BEGIN SQL (1.9ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"  (2.3ms) CREATE TABLE "push_type_users" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "name" character varying, "email" character varying, "field_store" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160615180821"]]  (0.6ms) COMMIT Migrating to CreatePushTypeNodes (20160615180822)  (0.1ms) BEGIN  (1.9ms) CREATE TABLE "push_type_nodes" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "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.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160615180822"]]  (0.5ms) COMMIT Migrating to CreatePushTypeNodeHierarchies (20160615180823)  (0.1ms) BEGIN  (0.4ms) CREATE TABLE "push_type_node_hierarchies" ("ancestor_id" uuid NOT NULL, "descendant_id" uuid NOT NULL, "generations" integer NOT NULL)  (0.6ms) CREATE UNIQUE INDEX "node_anc_desc_idx" ON "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations")  (0.5ms) CREATE INDEX "node_desc_idx" ON "push_type_node_hierarchies" ("descendant_id") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160615180823"]]  (0.4ms) COMMIT Migrating to CreatePushTypeAssets (20160615180824)  (0.1ms) BEGIN  (2.4ms) CREATE TABLE "push_type_assets" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "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.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160615180824"]]  (0.5ms) COMMIT Migrating to AddFieldStoreDefaultValues (20160615180825)  (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.2ms) ALTER TABLE "push_type_users" ALTER COLUMN "field_store" TYPE jsonb  (0.1ms) 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.1ms) ALTER TABLE "push_type_users" ALTER "field_store" SET NOT NULL SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160615180825"]]  (0.4ms) COMMIT Migrating to DropLegacyPushTypeTaxonomies (20160615180826)  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160615180826"]]  (0.4ms) COMMIT ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'push_type_assets' 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_node_hierarchies' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (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_nodes' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  (1.6ms) 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.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) ALTER TABLE "schema_migrations" 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.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'  (50.5ms) TRUNCATE TABLE "public"."push_type_users", "public"."push_type_nodes", "public"."push_type_node_hierarchies", "public"."push_type_assets" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL  (0.1ms) BEGIN ------------------------------------------------------ PushType::AdminHelperTest::#title: 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::AdminHelperTest::#title: test_0002_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::NodesControllerTest::POST #position::append node: 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.4ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-1' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-1"], ["created_at", "2016-06-15 18:08:31.779280"], ["updated_at", "2016-06-15 18:08:31.779280"]]  (0.3ms) SELECT pg_try_advisory_lock(1213021721,0) AS tb9ec84a75f20cc9ee87d5478c714f187 SQL (0.4ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "3fd4c4eb-4c3f-416c-939f-4c62fab829b0"], ["descendant_id", "3fd4c4eb-4c3f-416c-939f-4c62fab829b0"], ["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.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "3fd4c4eb-4c3f-416c-939f-4c62fab829b0"]] PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "3fd4c4eb-4c3f-416c-939f-4c62fab829b0"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t6cc413d79cf9f1596ce268b191988c06  (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" = 'foo-bar-2' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-2"], ["created_at", "2016-06-15 18:08:31.808726"], ["updated_at", "2016-06-15 18:08:31.808726"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t894cd3bd88680952cc596227183c740d SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "b54b6486-3a34-4322-914d-0c520bfafb4c"], ["descendant_id", "b54b6486-3a34-4322-914d-0c520bfafb4c"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "b54b6486-3a34-4322-914d-0c520bfafb4c"]] 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", "b54b6486-3a34-4322-914d-0c520bfafb4c"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS teed49199374a95cb53cf7d31e6977477  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-3' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-3"], ["created_at", "2016-06-15 18:08:31.814293"], ["updated_at", "2016-06-15 18:08:31.814293"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tc7da5ea42dabbbb21cdfa279fba58f77 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "d92955e7-7989-404a-ab89-cc026791547d"], ["descendant_id", "d92955e7-7989-404a-ab89-cc026791547d"], ["generations", 0]]  (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "d92955e7-7989-404a-ab89-cc026791547d"]] 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", "d92955e7-7989-404a-ab89-cc026791547d"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t867c3a21d7b13d24a204a9e8974e9a2d  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-4' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-4"], ["created_at", "2016-06-15 18:08:31.819685"], ["updated_at", "2016-06-15 18:08:31.819685"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t80f82b2ab6ed09b561bdfca2abc5f7dc SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "da28de60-6ace-4746-b5b9-960b770ca4d8"], ["descendant_id", "da28de60-6ace-4746-b5b9-960b770ca4d8"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "da28de60-6ace-4746-b5b9-960b770ca4d8"]] 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", "da28de60-6ace-4746-b5b9-960b770ca4d8"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t5d2217d1e3a3b72375b7087cae04f43c  (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" = 'foo-bar-5' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-5"], ["created_at", "2016-06-15 18:08:31.825194"], ["updated_at", "2016-06-15 18:08:31.825194"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t25c3ad89d698dd698a1a01933194eb61 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "9a7e58a7-23d6-4ab3-b789-8d2aecb88432"], ["descendant_id", "9a7e58a7-23d6-4ab3-b789-8d2aecb88432"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "9a7e58a7-23d6-4ab3-b789-8d2aecb88432"]] 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", "9a7e58a7-23d6-4ab3-b789-8d2aecb88432"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t85923229d7650b71b63dee4ef3226fd2  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::NodesController#position as HTML Parameters: {"prev"=>"3fd4c4eb-4c3f-416c-939f-4c62fab829b0", "id"=>"9a7e58a7-23d6-4ab3-b789-8d2aecb88432"} PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "9a7e58a7-23d6-4ab3-b789-8d2aecb88432"]] PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "3fd4c4eb-4c3f-416c-939f-4c62fab829b0"]]  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-1' AND "push_type_nodes"."id" != '3fd4c4eb-4c3f-416c-939f-4c62fab829b0' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t54485652756c4c8f7b36f33dbeb16741  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-5' AND "push_type_nodes"."id" != '9a7e58a7-23d6-4ab3-b789-8d2aecb88432' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = $1, "updated_at" = $2 WHERE "push_type_nodes"."id" = $3 [["sort_order", 0], ["updated_at", "2016-06-15 18:08:31.846262"], ["id", "9a7e58a7-23d6-4ab3-b789-8d2aecb88432"]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL AND "push_type_nodes"."sort_order" >= 0 ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "3fd4c4eb-4c3f-416c-939f-4c62fab829b0"]] PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "3fd4c4eb-4c3f-416c-939f-4c62fab829b0"]] PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "9a7e58a7-23d6-4ab3-b789-8d2aecb88432"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t42dc904f55e6b5857df4997fa6d53d0c Completed 200 OK in 17ms (ActiveRecord: 2.0ms) Processing by PushType::NodesController#index as HTML  (0.4ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT 30 OFFSET 0  (0.1ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 AND "push_type_nodes"."deleted_at" IS NULL [["parent_id", "3fd4c4eb-4c3f-416c-939f-4c62fab829b0"]]  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 AND "push_type_nodes"."deleted_at" IS NULL [["parent_id", "9a7e58a7-23d6-4ab3-b789-8d2aecb88432"]]  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 AND "push_type_nodes"."deleted_at" IS NULL [["parent_id", "b54b6486-3a34-4322-914d-0c520bfafb4c"]]  (0.1ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 AND "push_type_nodes"."deleted_at" IS NULL [["parent_id", "d92955e7-7989-404a-ab89-cc026791547d"]]  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 AND "push_type_nodes"."deleted_at" IS NULL [["parent_id", "da28de60-6ace-4746-b5b9-960b770ca4d8"]]  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/_new_node_button.html.haml (6.0ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/index.html.haml within layouts/push_type/admin (43.9ms) DEPRECATION WARNING on line 78 of /Users/aaron/.rvm/gems/ruby-2.3.0@push_type/gems/foundation-rails-5.5.3.2/vendor/assets/stylesheets/foundation/components/_top-bar.scss: #{} interpolation near operators will be simplified in a future version of Sass. To preserve the current behavior, use quotes: unquote("#{lower-bound($medium-range)}") Completed 200 OK in 12293ms (Views: 12290.1ms | ActiveRecord: 1.6ms) PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT 1 OFFSET 0  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------- PushType::NodesControllerTest::POST #position::append node: 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" = 'foo-bar-6' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-6"], ["created_at", "2016-06-15 18:08:44.148428"], ["updated_at", "2016-06-15 18:08:44.148428"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t151b4b10ca85cc97c7c5ce52252628d0 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "533ce598-3934-45f2-8b3a-92ff68391ff2"], ["descendant_id", "533ce598-3934-45f2-8b3a-92ff68391ff2"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "533ce598-3934-45f2-8b3a-92ff68391ff2"]] 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", "533ce598-3934-45f2-8b3a-92ff68391ff2"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tc925b800e01041856d76d361027b1746  (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" = 'foo-bar-7' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-7"], ["created_at", "2016-06-15 18:08:44.155480"], ["updated_at", "2016-06-15 18:08:44.155480"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t99dba5c0c422b921615c3113d84fd987 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "2d30a0e3-fd34-45d7-bb2f-8395f947bcc7"], ["descendant_id", "2d30a0e3-fd34-45d7-bb2f-8395f947bcc7"], ["generations", 0]]  (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "2d30a0e3-fd34-45d7-bb2f-8395f947bcc7"]] 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", "2d30a0e3-fd34-45d7-bb2f-8395f947bcc7"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS te43b8b41ac47329a8c91155935c74b71  (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" = 'foo-bar-8' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-8"], ["created_at", "2016-06-15 18:08:44.161519"], ["updated_at", "2016-06-15 18:08:44.161519"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t90582a29eca9322900164d6767c3b4cd SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "a7bfc446-8483-4e51-b0e5-ab46cff2bf45"], ["descendant_id", "a7bfc446-8483-4e51-b0e5-ab46cff2bf45"], ["generations", 0]]  (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "a7bfc446-8483-4e51-b0e5-ab46cff2bf45"]] 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", "a7bfc446-8483-4e51-b0e5-ab46cff2bf45"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t8ef7411a039ee01d653df7db44abb44e  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-9' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-9"], ["created_at", "2016-06-15 18:08:44.167711"], ["updated_at", "2016-06-15 18:08:44.167711"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t94cd4533857b4c26b2e33b323a305a3d SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "dd8b968b-53b9-4f82-9fea-573e4b7fc838"], ["descendant_id", "dd8b968b-53b9-4f82-9fea-573e4b7fc838"], ["generations", 0]]  (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "dd8b968b-53b9-4f82-9fea-573e4b7fc838"]] 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", "dd8b968b-53b9-4f82-9fea-573e4b7fc838"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t60b671d9ff9ea614f1c30446f68c2ad1  (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" = 'foo-bar-10' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-10"], ["created_at", "2016-06-15 18:08:44.174182"], ["updated_at", "2016-06-15 18:08:44.174182"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t20091b97f376e9f231f452dc62d28361 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "d1950b7a-be3e-43f2-ac43-365bf759688e"], ["descendant_id", "d1950b7a-be3e-43f2-ac43-365bf759688e"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "d1950b7a-be3e-43f2-ac43-365bf759688e"]] 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", "d1950b7a-be3e-43f2-ac43-365bf759688e"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t9afded85ea07f8ae45a8543e11e7a33a  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::NodesController#position as HTML Parameters: {"prev"=>"533ce598-3934-45f2-8b3a-92ff68391ff2", "id"=>"d1950b7a-be3e-43f2-ac43-365bf759688e"} PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "d1950b7a-be3e-43f2-ac43-365bf759688e"]] PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "533ce598-3934-45f2-8b3a-92ff68391ff2"]]  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-6' AND "push_type_nodes"."id" != '533ce598-3934-45f2-8b3a-92ff68391ff2' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tb67ab26a786991e88fa4a4c93df3b20e  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-10' AND "push_type_nodes"."id" != 'd1950b7a-be3e-43f2-ac43-365bf759688e' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) UPDATE "push_type_nodes" SET "sort_order" = $1, "updated_at" = $2 WHERE "push_type_nodes"."id" = $3 [["sort_order", 0], ["updated_at", "2016-06-15 18:08:44.188590"], ["id", "d1950b7a-be3e-43f2-ac43-365bf759688e"]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL AND "push_type_nodes"."sort_order" >= 0 ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "533ce598-3934-45f2-8b3a-92ff68391ff2"]] PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "533ce598-3934-45f2-8b3a-92ff68391ff2"]] PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "d1950b7a-be3e-43f2-ac43-365bf759688e"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t187f35482e6f7b2a1c10c46373627afe Completed 200 OK in 9ms (ActiveRecord: 1.8ms) Processing by PushType::NodesController#index as HTML  (0.2ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT 30 OFFSET 0  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 AND "push_type_nodes"."deleted_at" IS NULL [["parent_id", "533ce598-3934-45f2-8b3a-92ff68391ff2"]]  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 AND "push_type_nodes"."deleted_at" IS NULL [["parent_id", "d1950b7a-be3e-43f2-ac43-365bf759688e"]]  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 AND "push_type_nodes"."deleted_at" IS NULL [["parent_id", "2d30a0e3-fd34-45d7-bb2f-8395f947bcc7"]]  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 AND "push_type_nodes"."deleted_at" IS NULL [["parent_id", "a7bfc446-8483-4e51-b0e5-ab46cff2bf45"]]  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 AND "push_type_nodes"."deleted_at" IS NULL [["parent_id", "dd8b968b-53b9-4f82-9fea-573e4b7fc838"]]  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/_new_node_button.html.haml (3.4ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/index.html.haml within layouts/push_type/admin (31.4ms) Completed 200 OK in 46ms (Views: 42.9ms | ActiveRecord: 1.4ms) PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT 30 OFFSET 0  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN --------------------------------------------------------------- PushType::AssetsControllerTest::GET #index: 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_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "1"], ["created_at", "2016-06-15 18:08:44.255683"], ["updated_at", "2016-06-15 18:08:44.255683"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "2"], ["created_at", "2016-06-15 18:08:44.259221"], ["updated_at", "2016-06-15 18:08:44.259221"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "3"], ["created_at", "2016-06-15 18:08:44.261495"], ["updated_at", "2016-06-15 18:08:44.261495"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "4"], ["created_at", "2016-06-15 18:08:44.263755"], ["updated_at", "2016-06-15 18:08:44.263755"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "5"], ["created_at", "2016-06-15 18:08:44.266311"], ["updated_at", "2016-06-15 18:08:44.266311"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::AssetsController#index as HTML PushType::Asset Load (0.5ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL ORDER BY "push_type_assets"."created_at" DESC LIMIT 20 OFFSET 0  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/assets/index.html.haml within layouts/push_type/admin (15.6ms) Completed 200 OK in 33ms (Views: 30.0ms | ActiveRecord: 0.8ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------- PushType::AssetsControllerTest::GET #index: test_0001_anonymous ---------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.2ms) 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_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "6"], ["created_at", "2016-06-15 18:08:44.306020"], ["updated_at", "2016-06-15 18:08:44.306020"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "7"], ["created_at", "2016-06-15 18:08:44.308224"], ["updated_at", "2016-06-15 18:08:44.308224"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "8"], ["created_at", "2016-06-15 18:08:44.310346"], ["updated_at", "2016-06-15 18:08:44.310346"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "9"], ["created_at", "2016-06-15 18:08:44.312554"], ["updated_at", "2016-06-15 18:08:44.312554"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "10"], ["created_at", "2016-06-15 18:08:44.314846"], ["updated_at", "2016-06-15 18:08:44.314846"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::AssetsController#index as HTML PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL ORDER BY "push_type_assets"."created_at" DESC LIMIT 20 OFFSET 0  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/assets/index.html.haml within layouts/push_type/admin (8.5ms) Completed 200 OK in 24ms (Views: 22.2ms | ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PushType::AdminControllerTest::GET #info: test_0001_anonymous -------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Processing by PushType::AdminController#info as HTML Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/admin/info.html.haml (3.4ms) Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PushType::AdminControllerTest::GET #info: test_0002_anonymous -------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Processing by PushType::AdminController#info as HTML Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/admin/info.html.haml (1.2ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------- PushType::NodesControllerTest::PUT #update::with in-valid node: 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" = 'foo-bar-11' AND "push_type_nodes"."parent_id" IS NULL) 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-11"], ["status", 0], ["created_at", "2016-06-15 18:08:44.370345"], ["updated_at", "2016-06-15 18:08:44.370345"]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t426192f7ab4abaf2cd7d662a00705247 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "55c07e44-cbc8-4628-aaae-79bd5e1a28f7"], ["descendant_id", "55c07e44-cbc8-4628-aaae-79bd5e1a28f7"], ["generations", 0]]  (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id Page Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "55c07e44-cbc8-4628-aaae-79bd5e1a28f7"]] 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", "55c07e44-cbc8-4628-aaae-79bd5e1a28f7"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t7bd0975ff08a8f6c3dc832fb7961424e  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::NodesController#update as HTML Parameters: {"page"=>{"title"=>""}, "id"=>"55c07e44-cbc8-4628-aaae-79bd5e1a28f7"} PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "55c07e44-cbc8-4628-aaae-79bd5e1a28f7"]]  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-11' AND "push_type_nodes"."id" != '55c07e44-cbc8-4628-aaae-79bd5e1a28f7' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK TO 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 AND ("push_type_nodes"."id" != '55c07e44-cbc8-4628-aaae-79bd5e1a28f7') ORDER BY "push_type_node_hierarchies".generations asc [["descendant_id", "55c07e44-cbc8-4628-aaae-79bd5e1a28f7"]] Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/_meta_table.html.haml (11.6ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/_form_submit.html.haml (5.3ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/_form_fields.html.haml (30.9ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/edit.html.haml within layouts/push_type/admin (43.3ms) Completed 200 OK in 65ms (Views: 57.2ms | ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------- PushType::NodesControllerTest::PUT #update::with in-valid node: 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" = 'foo-bar-12' AND "push_type_nodes"."parent_id" IS NULL) 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-12"], ["status", 0], ["created_at", "2016-06-15 18:08:44.448040"], ["updated_at", "2016-06-15 18:08:44.448040"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t538e91b040a71ce8d58f3d9f4de5b7bc SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "662193e5-460f-4cb1-9cfc-9732ddc41df9"], ["descendant_id", "662193e5-460f-4cb1-9cfc-9732ddc41df9"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  Page Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "662193e5-460f-4cb1-9cfc-9732ddc41df9"]] 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", "662193e5-460f-4cb1-9cfc-9732ddc41df9"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t3288b5c98768dd71a7b12f60feb4524d  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::NodesController#update as HTML Parameters: {"page"=>{"title"=>""}, "id"=>"662193e5-460f-4cb1-9cfc-9732ddc41df9"} PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "662193e5-460f-4cb1-9cfc-9732ddc41df9"]]  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-12' AND "push_type_nodes"."id" != '662193e5-460f-4cb1-9cfc-9732ddc41df9' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2 PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" INNER JOIN "push_type_node_hierarchies" ON "push_type_nodes"."id" = "push_type_node_hierarchies"."ancestor_id" WHERE "push_type_node_hierarchies"."descendant_id" = $1 AND ("push_type_nodes"."id" != '662193e5-460f-4cb1-9cfc-9732ddc41df9') ORDER BY "push_type_node_hierarchies".generations asc [["descendant_id", "662193e5-460f-4cb1-9cfc-9732ddc41df9"]] Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/_meta_table.html.haml (5.7ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/_form_submit.html.haml (7.4ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/_form_fields.html.haml (16.2ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/edit.html.haml within layouts/push_type/admin (22.4ms) Completed 200 OK in 40ms (Views: 34.9ms | ActiveRecord: 0.8ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PushType::AssetsControllerTest::GET #edit: test_0002_anonymous --------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "11"], ["created_at", "2016-06-15 18:08:44.500481"], ["updated_at", "2016-06-15 18:08:44.500481"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::AssetsController#edit as HTML Parameters: {"id"=>"5e5b1d16-0bfb-4798-92a0-a55949816a1a"} PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."id" = $1 ORDER BY "push_type_assets"."created_at" DESC LIMIT 1 [["id", "5e5b1d16-0bfb-4798-92a0-a55949816a1a"]] Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/assets/_meta_table.html.haml (2.9ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/assets/_form_submit.html.haml (3.3ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/assets/_form.html.haml (21.6ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/assets/edit.html.haml within layouts/push_type/admin (26.2ms) Completed 200 OK in 43ms (Views: 40.9ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PushType::AssetsControllerTest::GET #edit: 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.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "12"], ["created_at", "2016-06-15 18:08:44.550441"], ["updated_at", "2016-06-15 18:08:44.550441"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::AssetsController#edit as HTML Parameters: {"id"=>"59da823d-6588-43c1-a99c-35a2dc8a8b3b"} PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."id" = $1 ORDER BY "push_type_assets"."created_at" DESC LIMIT 1 [["id", "59da823d-6588-43c1-a99c-35a2dc8a8b3b"]] Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/assets/_meta_table.html.haml (0.3ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/assets/_form_submit.html.haml (1.2ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/assets/_form.html.haml (7.2ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/assets/edit.html.haml within layouts/push_type/admin (8.5ms) Completed 200 OK in 25ms (Views: 22.5ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN ------------------------------------------------------------------------------------ PushType::UsersControllerTest::POST #create::with in-valid user: test_0002_anonymous ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Processing by PushType::UsersController#create as HTML Parameters: {"user"=>{}}  (0.1ms) SAVEPOINT active_record_2 PushType::User Exists (0.3ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2 Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/users/_meta_table.html.haml (0.6ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/users/_form.html.haml (10.4ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/users/new.html.haml within layouts/push_type/admin (14.7ms) Completed 200 OK in 42ms (Views: 32.9ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------ PushType::UsersControllerTest::POST #create::with in-valid user: test_0001_anonymous ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Processing by PushType::UsersController#create as HTML Parameters: {"user"=>{}}  (0.1ms) SAVEPOINT active_record_2 PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2 Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/users/_meta_table.html.haml (0.0ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/users/_form.html.haml (3.2ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/users/new.html.haml within layouts/push_type/admin (4.7ms) Completed 200 OK in 22ms (Views: 18.3ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PushType::NodesHelperTest::#nodes_array: 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" = 'foo-bar-13' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-13"], ["created_at", "2016-06-15 18:08:44.657131"], ["updated_at", "2016-06-15 18:08:44.657131"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tbcc4d8ac3a0fb23646ff35510402b521 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "34db6056-f0ea-4930-a281-31ffdbde9b48"], ["descendant_id", "34db6056-f0ea-4930-a281-31ffdbde9b48"], ["generations", 0]]  (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "34db6056-f0ea-4930-a281-31ffdbde9b48"]] 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", "34db6056-f0ea-4930-a281-31ffdbde9b48"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS ta1bace3ccf14650fd79a34f125cd66b2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-14' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-14"], ["created_at", "2016-06-15 18:08:44.663307"], ["updated_at", "2016-06-15 18:08:44.663307"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS te95db1fd199ade4b8a85db5345a19873 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "3192adc7-74d0-402a-9a90-c990eef998dd"], ["descendant_id", "3192adc7-74d0-402a-9a90-c990eef998dd"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "3192adc7-74d0-402a-9a90-c990eef998dd"]] 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", "3192adc7-74d0-402a-9a90-c990eef998dd"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t5ba4b2e7867ba10abb06bef1785bd94a  (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" = 'foo-bar-15' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-15"], ["created_at", "2016-06-15 18:08:44.669871"], ["updated_at", "2016-06-15 18:08:44.669871"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t69cdfeceda83ee78054331f77fe89563 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "c389b6c3-48b3-4906-91d1-fc4cb28084f6"], ["descendant_id", "c389b6c3-48b3-4906-91d1-fc4cb28084f6"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "c389b6c3-48b3-4906-91d1-fc4cb28084f6"]] 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", "c389b6c3-48b3-4906-91d1-fc4cb28084f6"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t4706da4240dcf0f2e6aba472d8b336bc  (0.2ms) 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" = 'foo-bar-16' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-16"], ["created_at", "2016-06-15 18:08:44.676038"], ["updated_at", "2016-06-15 18:08:44.676038"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t36f01dd9216b842475802ba800bc2e26 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "423b9dc4-0437-4ec6-974a-8afb9091014b"], ["descendant_id", "423b9dc4-0437-4ec6-974a-8afb9091014b"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "423b9dc4-0437-4ec6-974a-8afb9091014b"]] 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", "423b9dc4-0437-4ec6-974a-8afb9091014b"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t554976da9e5c34b9dd0538b17e97e3e6  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PushType::NodesHelperTest::#nodes_array: 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" = 'foo-bar-17' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-17"], ["created_at", "2016-06-15 18:08:44.683661"], ["updated_at", "2016-06-15 18:08:44.683661"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tb74787530bfcdda6151f9238bee56898 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "dd718060-dee8-4624-a581-f598469dc536"], ["descendant_id", "dd718060-dee8-4624-a581-f598469dc536"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "dd718060-dee8-4624-a581-f598469dc536"]] 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", "dd718060-dee8-4624-a581-f598469dc536"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tc9f9bf46cfb1cb84e51ed8f6f7abf80a  (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" = 'foo-bar-18' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-18"], ["created_at", "2016-06-15 18:08:44.689644"], ["updated_at", "2016-06-15 18:08:44.689644"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS ta51dbec7d1f1b0b997a55c90d38d27d8 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "eefcc175-284c-46a9-bbc9-6b3591c9271f"], ["descendant_id", "eefcc175-284c-46a9-bbc9-6b3591c9271f"], ["generations", 0]]  (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "eefcc175-284c-46a9-bbc9-6b3591c9271f"]] 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", "eefcc175-284c-46a9-bbc9-6b3591c9271f"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t9c94e694a84fe7209f04f10d071f2128  (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" = 'foo-bar-19' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-19"], ["created_at", "2016-06-15 18:08:44.695223"], ["updated_at", "2016-06-15 18:08:44.695223"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t2f62788dac9068a4f4809056fb731169 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "e026b880-e712-46d0-9890-c8d587a1162a"], ["descendant_id", "e026b880-e712-46d0-9890-c8d587a1162a"], ["generations", 0]]  (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "e026b880-e712-46d0-9890-c8d587a1162a"]] PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "e026b880-e712-46d0-9890-c8d587a1162a"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t569e8793c3c5558a6878d67a19807527  (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" = 'foo-bar-20' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-20"], ["created_at", "2016-06-15 18:08:44.701948"], ["updated_at", "2016-06-15 18:08:44.701948"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t76c29223aabd1d93316b9f81fb492771 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "4341f1fd-4efe-4271-a3cc-0f2433ec1a67"], ["descendant_id", "4341f1fd-4efe-4271-a3cc-0f2433ec1a67"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "4341f1fd-4efe-4271-a3cc-0f2433ec1a67"]] 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", "4341f1fd-4efe-4271-a3cc-0f2433ec1a67"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t2268db2bcccc27ffd27a401bc4937bf1  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PushType::NodesHelperTest::#nodes_array: 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" = 'foo-bar-21' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-21"], ["created_at", "2016-06-15 18:08:44.714665"], ["updated_at", "2016-06-15 18:08:44.714665"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tbfcf1ec1f302eed53b0fe1eae38fddf2 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "ce6985da-5266-4794-a6f4-e70c5a293f6e"], ["descendant_id", "ce6985da-5266-4794-a6f4-e70c5a293f6e"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "ce6985da-5266-4794-a6f4-e70c5a293f6e"]] 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", "ce6985da-5266-4794-a6f4-e70c5a293f6e"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t7dce8e0abb475b4cd448351ed130f311  (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" = 'foo-bar-22' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-22"], ["created_at", "2016-06-15 18:08:44.720982"], ["updated_at", "2016-06-15 18:08:44.720982"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tb12c1e54e22524009fabab7720f8ed1e SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "d0aebc44-14df-4bc4-a06c-ba5b122bc0df"], ["descendant_id", "d0aebc44-14df-4bc4-a06c-ba5b122bc0df"], ["generations", 0]]  (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "d0aebc44-14df-4bc4-a06c-ba5b122bc0df"]] 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", "d0aebc44-14df-4bc4-a06c-ba5b122bc0df"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t50b045dc968ca58c196b3f50298b5d65  (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" = 'foo-bar-23' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-23"], ["created_at", "2016-06-15 18:08:44.726549"], ["updated_at", "2016-06-15 18:08:44.726549"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t284ea9a874fb9b8d715aae30cebb900a SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "f4aa6ccc-eb9f-4cec-bf86-638aef025212"], ["descendant_id", "f4aa6ccc-eb9f-4cec-bf86-638aef025212"], ["generations", 0]]  (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "f4aa6ccc-eb9f-4cec-bf86-638aef025212"]] 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", "f4aa6ccc-eb9f-4cec-bf86-638aef025212"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS te890297b82604b09238109e1a5bcc1d3  (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" = 'foo-bar-24' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-24"], ["created_at", "2016-06-15 18:08:44.731599"], ["updated_at", "2016-06-15 18:08:44.731599"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tbee132d78de18012f00dc9a9b637a4d3 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "7c8f473d-aa9e-46e6-a850-85781eeb3464"], ["descendant_id", "7c8f473d-aa9e-46e6-a850-85781eeb3464"], ["generations", 0]]  (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "7c8f473d-aa9e-46e6-a850-85781eeb3464"]] 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", "7c8f473d-aa9e-46e6-a850-85781eeb3464"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t0ee4412edc74c10721e064e238a8a227  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------- PushType::NodesControllerTest::DELETE #empty: test_0003_anonymous -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-25' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "deleted_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-25"], ["deleted_at", "2016-06-15 18:08:44.738149"], ["created_at", "2016-06-15 18:08:44.739753"], ["updated_at", "2016-06-15 18:08:44.739753"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t035d5b66a0f21381ed2c71185bc5481b SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "6a3f5f64-d5f3-47cf-92b8-f87604e22353"], ["descendant_id", "6a3f5f64-d5f3-47cf-92b8-f87604e22353"], ["generations", 0]]  (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "6a3f5f64-d5f3-47cf-92b8-f87604e22353"]] 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", "6a3f5f64-d5f3-47cf-92b8-f87604e22353"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tb67099329990ec06c978e2b1c1838c23  (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" = 'foo-bar-26' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "deleted_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-26"], ["deleted_at", "2016-06-15 18:08:44.744405"], ["created_at", "2016-06-15 18:08:44.745507"], ["updated_at", "2016-06-15 18:08:44.745507"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t60daf9553644f5dfca70785858e9dbed SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "5f2aae49-28fb-4a23-9c98-c11601d55637"], ["descendant_id", "5f2aae49-28fb-4a23-9c98-c11601d55637"], ["generations", 0]]  (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "5f2aae49-28fb-4a23-9c98-c11601d55637"]] 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", "5f2aae49-28fb-4a23-9c98-c11601d55637"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t8c9ff82f33ec8e2a9e1cf02e3fa9a4f4  (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" = 'foo-bar-27' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "deleted_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-27"], ["deleted_at", "2016-06-15 18:08:44.750065"], ["created_at", "2016-06-15 18:08:44.751338"], ["updated_at", "2016-06-15 18:08:44.751338"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tbcd1fdb4f5347c5fd7d157523690cfa9 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "7a824154-0cf4-4f98-ab76-62d986fc3d38"], ["descendant_id", "7a824154-0cf4-4f98-ab76-62d986fc3d38"], ["generations", 0]]  (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "7a824154-0cf4-4f98-ab76-62d986fc3d38"]] 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", "7a824154-0cf4-4f98-ab76-62d986fc3d38"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t7fe0dc71064c2cdde85125da8c8279d9  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::NodesController#empty as HTML PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE (deleted_at IS NOT NULL)  (0.1ms) SAVEPOINT active_record_2  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t026fd883afd3c8a25220d63278d274da  (0.4ms) 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 = '6a3f5f64-d5f3-47cf-92b8-f87604e22353' OR descendant_id = '6a3f5f64-d5f3-47cf-92b8-f87604e22353' ) AS x )  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t267507843c03a341c9907e1b948a1371 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", "6a3f5f64-d5f3-47cf-92b8-f87604e22353"]] SQL (0.1ms) DELETE FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 [["id", "6a3f5f64-d5f3-47cf-92b8-f87604e22353"]]  (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.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t347e0b8900327c392db4c9a1c65ddf72  (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 = '5f2aae49-28fb-4a23-9c98-c11601d55637' OR descendant_id = '5f2aae49-28fb-4a23-9c98-c11601d55637' ) AS x )  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t250697f0d28c3264f7b1be5705df0b28 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", "5f2aae49-28fb-4a23-9c98-c11601d55637"]] SQL (0.1ms) DELETE FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 [["id", "5f2aae49-28fb-4a23-9c98-c11601d55637"]]  (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 td5842c2b91d5f4b13d5b38faf0936998  (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 = '7a824154-0cf4-4f98-ab76-62d986fc3d38' OR descendant_id = '7a824154-0cf4-4f98-ab76-62d986fc3d38' ) AS x )  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t320b7f235c0d4315a27ddefcb593da9d 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", "7a824154-0cf4-4f98-ab76-62d986fc3d38"]] SQL (0.1ms) DELETE FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 [["id", "7a824154-0cf4-4f98-ab76-62d986fc3d38"]]  (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 Redirected to http://test.host/push_type/nodes Completed 302 Found in 12ms (ActiveRecord: 3.3ms)  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE (deleted_at IS NOT NULL)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------- PushType::NodesControllerTest::DELETE #empty: 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" = 'foo-bar-28' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "deleted_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-28"], ["deleted_at", "2016-06-15 18:08:44.772278"], ["created_at", "2016-06-15 18:08:44.773699"], ["updated_at", "2016-06-15 18:08:44.773699"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t286a4dd30836cd5d0b86f9f253d848a7 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "b73a3ea5-8419-43e9-80be-507bcc135c00"], ["descendant_id", "b73a3ea5-8419-43e9-80be-507bcc135c00"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "b73a3ea5-8419-43e9-80be-507bcc135c00"]] 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", "b73a3ea5-8419-43e9-80be-507bcc135c00"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t7f0b5f365f0d81686141a3b59719c85d  (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" = 'foo-bar-29' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "deleted_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-29"], ["deleted_at", "2016-06-15 18:08:44.778452"], ["created_at", "2016-06-15 18:08:44.779507"], ["updated_at", "2016-06-15 18:08:44.779507"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t5b11facfcb32db1589be1a889338d368 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "81fdd5a5-e35d-4b19-a405-fa7e79ac44c4"], ["descendant_id", "81fdd5a5-e35d-4b19-a405-fa7e79ac44c4"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "81fdd5a5-e35d-4b19-a405-fa7e79ac44c4"]] 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", "81fdd5a5-e35d-4b19-a405-fa7e79ac44c4"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS te8ff792d29f53f73c169a2154dff4057  (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" = 'foo-bar-30' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "deleted_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-30"], ["deleted_at", "2016-06-15 18:08:44.784047"], ["created_at", "2016-06-15 18:08:44.785203"], ["updated_at", "2016-06-15 18:08:44.785203"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t12a718da0fa0ebff687949d1441c3371 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "1121c22a-4763-4d88-92d5-4da30030dd90"], ["descendant_id", "1121c22a-4763-4d88-92d5-4da30030dd90"], ["generations", 0]]  (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "1121c22a-4763-4d88-92d5-4da30030dd90"]] 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", "1121c22a-4763-4d88-92d5-4da30030dd90"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t6345ecf82284f47d00e2d30ec73daf64  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::NodesController#empty as HTML PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE (deleted_at IS NOT NULL)  (0.1ms) SAVEPOINT active_record_2  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t7f74d19aac204b856af256e8c30ab11f  (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 = 'b73a3ea5-8419-43e9-80be-507bcc135c00' OR descendant_id = 'b73a3ea5-8419-43e9-80be-507bcc135c00' ) AS x )  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t416e7d03c38b1e1984683b970dafcbed 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", "b73a3ea5-8419-43e9-80be-507bcc135c00"]] SQL (0.1ms) DELETE FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 [["id", "b73a3ea5-8419-43e9-80be-507bcc135c00"]]  (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 t9bf29f7a003b1729a6d6347beca71f56  (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 = '81fdd5a5-e35d-4b19-a405-fa7e79ac44c4' OR descendant_id = '81fdd5a5-e35d-4b19-a405-fa7e79ac44c4' ) AS x )  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t9f9b70e3b174f7762b59aa02a95f9962 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", "81fdd5a5-e35d-4b19-a405-fa7e79ac44c4"]] SQL (0.2ms) DELETE FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 [["id", "81fdd5a5-e35d-4b19-a405-fa7e79ac44c4"]]  (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 t03577606c8ffd99ff778b7871fa00b8d  (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 = '1121c22a-4763-4d88-92d5-4da30030dd90' OR descendant_id = '1121c22a-4763-4d88-92d5-4da30030dd90' ) AS x )  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS taf0c833b1e0e8793a770f0dd0446eb1a 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", "1121c22a-4763-4d88-92d5-4da30030dd90"]] SQL (0.2ms) DELETE FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 [["id", "1121c22a-4763-4d88-92d5-4da30030dd90"]]  (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 Redirected to http://test.host/push_type/nodes Completed 302 Found in 12ms (ActiveRecord: 3.2ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------- PushType::NodesControllerTest::DELETE #empty: test_0002_anonymous -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-31' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "deleted_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-31"], ["deleted_at", "2016-06-15 18:08:44.804990"], ["created_at", "2016-06-15 18:08:44.806458"], ["updated_at", "2016-06-15 18:08:44.806458"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t5912cc5e7d6d168fffdb8ed8c7a39d08 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "6e2b7b1f-ec43-4b9e-9c66-dfe273832a70"], ["descendant_id", "6e2b7b1f-ec43-4b9e-9c66-dfe273832a70"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "6e2b7b1f-ec43-4b9e-9c66-dfe273832a70"]] 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", "6e2b7b1f-ec43-4b9e-9c66-dfe273832a70"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t1739e058c612710b781655b64b48ab2d  (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" = 'foo-bar-32' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "deleted_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-32"], ["deleted_at", "2016-06-15 18:08:44.811195"], ["created_at", "2016-06-15 18:08:44.812339"], ["updated_at", "2016-06-15 18:08:44.812339"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tae13847550a008be1626d1d716f9b62b SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "bd8736a8-43bf-475c-b0f2-033a56d45bef"], ["descendant_id", "bd8736a8-43bf-475c-b0f2-033a56d45bef"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "bd8736a8-43bf-475c-b0f2-033a56d45bef"]] 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", "bd8736a8-43bf-475c-b0f2-033a56d45bef"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t975f3dd482fde9d5227512f2a4720e42  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-33' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "deleted_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-33"], ["deleted_at", "2016-06-15 18:08:44.816791"], ["created_at", "2016-06-15 18:08:44.817886"], ["updated_at", "2016-06-15 18:08:44.817886"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tac4813ea90a4d01a3b19f19f2e8c35ec SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "e4f7a256-07f1-41f5-9135-36bfd5110844"], ["descendant_id", "e4f7a256-07f1-41f5-9135-36bfd5110844"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "e4f7a256-07f1-41f5-9135-36bfd5110844"]] 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", "e4f7a256-07f1-41f5-9135-36bfd5110844"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t3545796de9c302e7cabe639749e96041  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::NodesController#empty as HTML PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE (deleted_at IS NOT NULL)  (0.1ms) SAVEPOINT active_record_2  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t19e32a8b730d04c6a0ccb1cda036c39b  (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 = '6e2b7b1f-ec43-4b9e-9c66-dfe273832a70' OR descendant_id = '6e2b7b1f-ec43-4b9e-9c66-dfe273832a70' ) AS x )   (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS te0b153bcd15c100159fa5cd4d3d4a268 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", "6e2b7b1f-ec43-4b9e-9c66-dfe273832a70"]] SQL (0.1ms) DELETE FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 [["id", "6e2b7b1f-ec43-4b9e-9c66-dfe273832a70"]]  (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 t6b5e7b8c5cf5b3e71c335723ab10b623  (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 = 'bd8736a8-43bf-475c-b0f2-033a56d45bef' OR descendant_id = 'bd8736a8-43bf-475c-b0f2-033a56d45bef' ) AS x )   (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t9978159c3784a9552db0cbbc6eb2e858 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", "bd8736a8-43bf-475c-b0f2-033a56d45bef"]] SQL (0.1ms) DELETE FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 [["id", "bd8736a8-43bf-475c-b0f2-033a56d45bef"]]  (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.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tec712ae65a8bac2ab7577349d2163ee8  (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 = 'e4f7a256-07f1-41f5-9135-36bfd5110844' OR descendant_id = 'e4f7a256-07f1-41f5-9135-36bfd5110844' ) AS x )   (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS ta783f428e29f26ca6deaf6040dc7ce24 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", "e4f7a256-07f1-41f5-9135-36bfd5110844"]] SQL (0.1ms) DELETE FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 [["id", "e4f7a256-07f1-41f5-9135-36bfd5110844"]]  (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 Redirected to http://test.host/push_type/nodes Completed 302 Found in 11ms (ActiveRecord: 2.8ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN -------------------------------------------------------------------- PushType::AssetsControllerTest::DELETE #destroy: 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.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "13"], ["created_at", "2016-06-15 18:08:44.838769"], ["updated_at", "2016-06-15 18:08:44.838769"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::AssetsController#destroy as HTML Parameters: {"id"=>"757c4d33-d593-41cb-b8fc-8801ad320c91"} PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."id" = $1 ORDER BY "push_type_assets"."created_at" DESC LIMIT 1 [["id", "757c4d33-d593-41cb-b8fc-8801ad320c91"]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) UPDATE "push_type_assets" SET "deleted_at" = $1, "updated_at" = $2 WHERE "push_type_assets"."id" = $3 [["deleted_at", "2016-06-15 18:08:44.843992"], ["updated_at", "2016-06-15 18:08:44.844562"], ["id", "757c4d33-d593-41cb-b8fc-8801ad320c91"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/push_type/media Completed 302 Found in 5ms (ActiveRecord: 0.5ms) PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."id" = $1 LIMIT 1 [["id", "757c4d33-d593-41cb-b8fc-8801ad320c91"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------- PushType::AssetsControllerTest::DELETE #destroy: test_0001_anonymous --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "14"], ["created_at", "2016-06-15 18:08:44.851874"], ["updated_at", "2016-06-15 18:08:44.851874"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::AssetsController#destroy as HTML Parameters: {"id"=>"e6701e0d-4590-48c7-8c63-ca0a23b479e3"} PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."id" = $1 ORDER BY "push_type_assets"."created_at" DESC LIMIT 1 [["id", "e6701e0d-4590-48c7-8c63-ca0a23b479e3"]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) UPDATE "push_type_assets" SET "deleted_at" = $1, "updated_at" = $2 WHERE "push_type_assets"."id" = $3 [["deleted_at", "2016-06-15 18:08:44.862738"], ["updated_at", "2016-06-15 18:08:44.863586"], ["id", "e6701e0d-4590-48c7-8c63-ca0a23b479e3"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/push_type/media Completed 302 Found in 11ms (ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------- PushType::AssetsControllerTest::DELETE #destroy: 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.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "15"], ["created_at", "2016-06-15 18:08:44.873356"], ["updated_at", "2016-06-15 18:08:44.873356"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::AssetsController#destroy as HTML Parameters: {"id"=>"ab9c6f66-7043-4653-8855-e2bf5518afc7"} PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."id" = $1 ORDER BY "push_type_assets"."created_at" DESC LIMIT 1 [["id", "ab9c6f66-7043-4653-8855-e2bf5518afc7"]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) UPDATE "push_type_assets" SET "deleted_at" = $1, "updated_at" = $2 WHERE "push_type_assets"."id" = $3 [["deleted_at", "2016-06-15 18:08:44.884349"], ["updated_at", "2016-06-15 18:08:44.885472"], ["id", "ab9c6f66-7043-4653-8855-e2bf5518afc7"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/push_type/media Completed 302 Found in 12ms (ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------------- PushType::NodesControllerTest::POST #position::prepend node: 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" = 'foo-bar-34' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-34"], ["created_at", "2016-06-15 18:08:44.896712"], ["updated_at", "2016-06-15 18:08:44.896712"]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t78176568118c9cce9817931ffc1fed7d SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "5bcc6199-532a-4f38-b005-91fbd1059f1e"], ["descendant_id", "5bcc6199-532a-4f38-b005-91fbd1059f1e"], ["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 1 [["id", "5bcc6199-532a-4f38-b005-91fbd1059f1e"]] PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "5bcc6199-532a-4f38-b005-91fbd1059f1e"]]  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t3122ef45b814079f468931540fb0597e  (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" = 'foo-bar-35' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-35"], ["created_at", "2016-06-15 18:08:44.908256"], ["updated_at", "2016-06-15 18:08:44.908256"]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t347c74e44486158e2363b23379a00c9f SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "2aacbc64-0540-4400-86a2-30e052a8f175"], ["descendant_id", "2aacbc64-0540-4400-86a2-30e052a8f175"], ["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 1 [["id", "2aacbc64-0540-4400-86a2-30e052a8f175"]] PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "2aacbc64-0540-4400-86a2-30e052a8f175"]]  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t02fb04ee91169e01c3e151a0a2cbfb9d  (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" = 'foo-bar-36' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-36"], ["created_at", "2016-06-15 18:08:44.918420"], ["updated_at", "2016-06-15 18:08:44.918420"]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t9668f2d21d95940d546e1fc39b6be5d8 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "87e1ecd4-4810-4689-aa6e-09b98c819c41"], ["descendant_id", "87e1ecd4-4810-4689-aa6e-09b98c819c41"], ["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.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "87e1ecd4-4810-4689-aa6e-09b98c819c41"]] 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", "87e1ecd4-4810-4689-aa6e-09b98c819c41"]]  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t0d24372ef499de7591bf5a4387dd6a32  (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" = 'foo-bar-37' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-37"], ["created_at", "2016-06-15 18:08:44.929471"], ["updated_at", "2016-06-15 18:08:44.929471"]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t19b033c0b95cbd04308149f042f44106 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "3530ccda-f5f5-4303-9d6a-74c791117933"], ["descendant_id", "3530ccda-f5f5-4303-9d6a-74c791117933"], ["generations", 0]]  (0.6ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "3530ccda-f5f5-4303-9d6a-74c791117933"]] 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", "3530ccda-f5f5-4303-9d6a-74c791117933"]]  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS tb69dab8bcadb63a5f521a9c999adcfa3  (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" = 'foo-bar-38' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-38"], ["created_at", "2016-06-15 18:08:44.940848"], ["updated_at", "2016-06-15 18:08:44.940848"]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS tb83d9781a8121e10b7a71cf67d70081a SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "3adbbd87-b78e-40e3-a897-2f811744904c"], ["descendant_id", "3adbbd87-b78e-40e3-a897-2f811744904c"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "3adbbd87-b78e-40e3-a897-2f811744904c"]] PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "3adbbd87-b78e-40e3-a897-2f811744904c"]]  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t68dae65ad4a6c4f541b56999ead406bb  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::NodesController#position as HTML Parameters: {"next"=>"5bcc6199-532a-4f38-b005-91fbd1059f1e", "id"=>"3adbbd87-b78e-40e3-a897-2f811744904c"} PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "3adbbd87-b78e-40e3-a897-2f811744904c"]] PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "5bcc6199-532a-4f38-b005-91fbd1059f1e"]]  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-34' AND "push_type_nodes"."id" != '5bcc6199-532a-4f38-b005-91fbd1059f1e' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t59bfc781b73d69907722a02b8062e1e6  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-38' AND "push_type_nodes"."id" != '3adbbd87-b78e-40e3-a897-2f811744904c' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = $1, "updated_at" = $2 WHERE "push_type_nodes"."id" = $3 [["sort_order", 0], ["updated_at", "2016-06-15 18:08:44.965305"], ["id", "3adbbd87-b78e-40e3-a897-2f811744904c"]]  (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 AND "push_type_nodes"."sort_order" >= 0 ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "5bcc6199-532a-4f38-b005-91fbd1059f1e"]] PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "5bcc6199-532a-4f38-b005-91fbd1059f1e"]] PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "3adbbd87-b78e-40e3-a897-2f811744904c"]] SQL (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = 1 WHERE "push_type_nodes"."id" = $1 [["id", "5bcc6199-532a-4f38-b005-91fbd1059f1e"]] SQL (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = 0 WHERE "push_type_nodes"."id" = $1 [["id", "3adbbd87-b78e-40e3-a897-2f811744904c"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t60af132b17405adc41883e7e5b7330b5 Completed 200 OK in 19ms (ActiveRecord: 3.4ms) Processing by PushType::NodesController#index as HTML  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT 30 OFFSET 0  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 AND "push_type_nodes"."deleted_at" IS NULL [["parent_id", "3adbbd87-b78e-40e3-a897-2f811744904c"]]  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 AND "push_type_nodes"."deleted_at" IS NULL [["parent_id", "5bcc6199-532a-4f38-b005-91fbd1059f1e"]]  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 AND "push_type_nodes"."deleted_at" IS NULL [["parent_id", "2aacbc64-0540-4400-86a2-30e052a8f175"]]  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 AND "push_type_nodes"."deleted_at" IS NULL [["parent_id", "87e1ecd4-4810-4689-aa6e-09b98c819c41"]]  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 AND "push_type_nodes"."deleted_at" IS NULL [["parent_id", "3530ccda-f5f5-4303-9d6a-74c791117933"]]  (0.3ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/_new_node_button.html.haml (9.9ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/index.html.haml within layouts/push_type/admin (70.5ms) Completed 200 OK in 110ms (Views: 103.3ms | ActiveRecord: 2.0ms) PushType::Node Load (0.5ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT 1 OFFSET 0  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------------- PushType::NodesControllerTest::POST #position::prepend node: test_0001_anonymous --------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-39' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-39"], ["created_at", "2016-06-15 18:08:45.091667"], ["updated_at", "2016-06-15 18:08:45.091667"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tb74ec45b3198092c8ffb42051f1f200c SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "34f7ad50-5ce0-4462-972a-637d51856d70"], ["descendant_id", "34f7ad50-5ce0-4462-972a-637d51856d70"], ["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 1 [["id", "34f7ad50-5ce0-4462-972a-637d51856d70"]] PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "34f7ad50-5ce0-4462-972a-637d51856d70"]]  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t94b1c25df213a0196b4d351b68054101  (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" = 'foo-bar-40' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-40"], ["created_at", "2016-06-15 18:08:45.102611"], ["updated_at", "2016-06-15 18:08:45.102611"]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS tb87d9dbefc4b5286ab123921ab7f70a3 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "fde6f659-58c7-4c68-be63-d98387f91e0f"], ["descendant_id", "fde6f659-58c7-4c68-be63-d98387f91e0f"], ["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.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "fde6f659-58c7-4c68-be63-d98387f91e0f"]] PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "fde6f659-58c7-4c68-be63-d98387f91e0f"]]  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS tadb63d5d999f61fe40af8a603d364722  (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" = 'foo-bar-41' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-41"], ["created_at", "2016-06-15 18:08:45.113587"], ["updated_at", "2016-06-15 18:08:45.113587"]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS ta46b12d4e089ee8642bfc996364fa6a8 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "eebce278-2f6f-499e-b176-91a9f8527bbe"], ["descendant_id", "eebce278-2f6f-499e-b176-91a9f8527bbe"], ["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 1 [["id", "eebce278-2f6f-499e-b176-91a9f8527bbe"]] PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "eebce278-2f6f-499e-b176-91a9f8527bbe"]]  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t666db1bba9747e056e98e9a1150bc303  (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" = 'foo-bar-42' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-42"], ["created_at", "2016-06-15 18:08:45.124660"], ["updated_at", "2016-06-15 18:08:45.124660"]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS tffbac0111a86d51db557af013bdb6f17 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "0ff53ac3-a20d-470d-b569-bfbb194c39e0"], ["descendant_id", "0ff53ac3-a20d-470d-b569-bfbb194c39e0"], ["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 1 [["id", "0ff53ac3-a20d-470d-b569-bfbb194c39e0"]] PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "0ff53ac3-a20d-470d-b569-bfbb194c39e0"]]  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t1ccb375f320aa9bf5dd68f0d2afbb428  (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" = 'foo-bar-43' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-43"], ["created_at", "2016-06-15 18:08:45.136671"], ["updated_at", "2016-06-15 18:08:45.136671"]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t5611b8ca15dd966f565dfd56f304b429 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "c886e2b4-b4b7-4a2c-9c71-37d5e9570366"], ["descendant_id", "c886e2b4-b4b7-4a2c-9c71-37d5e9570366"], ["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 1 [["id", "c886e2b4-b4b7-4a2c-9c71-37d5e9570366"]] 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", "c886e2b4-b4b7-4a2c-9c71-37d5e9570366"]]  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t176ebe086f714f109f64559b62583945  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::NodesController#position as HTML Parameters: {"next"=>"34f7ad50-5ce0-4462-972a-637d51856d70", "id"=>"c886e2b4-b4b7-4a2c-9c71-37d5e9570366"} PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "c886e2b4-b4b7-4a2c-9c71-37d5e9570366"]] PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "34f7ad50-5ce0-4462-972a-637d51856d70"]]  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-39' AND "push_type_nodes"."id" != '34f7ad50-5ce0-4462-972a-637d51856d70' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS ta98f4773abfa436f03ef7c7b20345d45  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-43' AND "push_type_nodes"."id" != 'c886e2b4-b4b7-4a2c-9c71-37d5e9570366' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = $1, "updated_at" = $2 WHERE "push_type_nodes"."id" = $3 [["sort_order", 0], ["updated_at", "2016-06-15 18:08:45.162639"], ["id", "c886e2b4-b4b7-4a2c-9c71-37d5e9570366"]]  (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 AND "push_type_nodes"."sort_order" >= 0 ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "34f7ad50-5ce0-4462-972a-637d51856d70"]] PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "34f7ad50-5ce0-4462-972a-637d51856d70"]] PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "c886e2b4-b4b7-4a2c-9c71-37d5e9570366"]] SQL (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = 1 WHERE "push_type_nodes"."id" = $1 [["id", "34f7ad50-5ce0-4462-972a-637d51856d70"]] SQL (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = 0 WHERE "push_type_nodes"."id" = $1 [["id", "c886e2b4-b4b7-4a2c-9c71-37d5e9570366"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t20ef496f8da11980b00c1e0daabffd39 Completed 200 OK in 22ms (ActiveRecord: 3.6ms) Processing by PushType::NodesController#index as HTML  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT 30 OFFSET 0  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 AND "push_type_nodes"."deleted_at" IS NULL [["parent_id", "c886e2b4-b4b7-4a2c-9c71-37d5e9570366"]]  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 AND "push_type_nodes"."deleted_at" IS NULL [["parent_id", "34f7ad50-5ce0-4462-972a-637d51856d70"]]  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 AND "push_type_nodes"."deleted_at" IS NULL [["parent_id", "fde6f659-58c7-4c68-be63-d98387f91e0f"]]  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 AND "push_type_nodes"."deleted_at" IS NULL [["parent_id", "eebce278-2f6f-499e-b176-91a9f8527bbe"]]  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 AND "push_type_nodes"."deleted_at" IS NULL [["parent_id", "0ff53ac3-a20d-470d-b569-bfbb194c39e0"]]  (0.3ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/_new_node_button.html.haml (10.0ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/index.html.haml within layouts/push_type/admin (72.4ms) Completed 200 OK in 106ms (Views: 99.5ms | ActiveRecord: 2.0ms) PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT 30 OFFSET 0  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------ PushType::AssetsControllerTest::POST #upload::asset count: test_0001_anonymous ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" Processing by PushType::AssetsController#upload as JSON Parameters: {"asset"=>{"file"=>#>}}  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "16"], ["created_at", "2016-06-15 18:08:45.291742"], ["updated_at", "2016-06-15 18:08:45.291742"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Completed 201 Created in 5ms (Views: 0.2ms | ActiveRecord: 0.4ms)  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------ PushType::AssetsControllerTest::DELETE #empty: 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.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "deleted_at", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "17"], ["deleted_at", "2016-06-15 18:08:45.296684"], ["created_at", "2016-06-15 18:08:45.298199"], ["updated_at", "2016-06-15 18:08:45.298199"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "deleted_at", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "18"], ["deleted_at", "2016-06-15 18:08:45.299480"], ["created_at", "2016-06-15 18:08:45.300802"], ["updated_at", "2016-06-15 18:08:45.300802"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "deleted_at", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "19"], ["deleted_at", "2016-06-15 18:08:45.301938"], ["created_at", "2016-06-15 18:08:45.303289"], ["updated_at", "2016-06-15 18:08:45.303289"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::AssetsController#empty as HTML PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE (deleted_at IS NOT NULL) ORDER BY "push_type_assets"."created_at" DESC  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM "push_type_assets" WHERE "push_type_assets"."id" = $1 [["id", "8de7bb7e-0433-4437-b3a0-b72cf1ba4cc4"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM "push_type_assets" WHERE "push_type_assets"."id" = $1 [["id", "b87b2221-103a-4f6a-90a8-359b54e466c3"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM "push_type_assets" WHERE "push_type_assets"."id" = $1 [["id", "bce67ac4-373c-453c-b991-5fd3c3675092"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/push_type/media Completed 302 Found in 6ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------ PushType::AssetsControllerTest::DELETE #empty: 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 SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "deleted_at", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "20"], ["deleted_at", "2016-06-15 18:08:45.314294"], ["created_at", "2016-06-15 18:08:45.316018"], ["updated_at", "2016-06-15 18:08:45.316018"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "deleted_at", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "21"], ["deleted_at", "2016-06-15 18:08:45.317308"], ["created_at", "2016-06-15 18:08:45.318759"], ["updated_at", "2016-06-15 18:08:45.318759"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "deleted_at", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "22"], ["deleted_at", "2016-06-15 18:08:45.319877"], ["created_at", "2016-06-15 18:08:45.321106"], ["updated_at", "2016-06-15 18:08:45.321106"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::AssetsController#empty as HTML PushType::Asset Load (0.4ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE (deleted_at IS NOT NULL) ORDER BY "push_type_assets"."created_at" DESC  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) DELETE FROM "push_type_assets" WHERE "push_type_assets"."id" = $1 [["id", "21b6ef14-5046-43b9-ac1a-d9cf4b92a8bc"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM "push_type_assets" WHERE "push_type_assets"."id" = $1 [["id", "876de920-3646-4d05-a62b-6d79ccd00556"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM "push_type_assets" WHERE "push_type_assets"."id" = $1 [["id", "b6a6476f-09a9-4d6b-8b54-dce4305ead3b"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/push_type/media Completed 302 Found in 6ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------ PushType::AssetsControllerTest::DELETE #empty: 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.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "deleted_at", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "23"], ["deleted_at", "2016-06-15 18:08:45.332844"], ["created_at", "2016-06-15 18:08:45.335209"], ["updated_at", "2016-06-15 18:08:45.335209"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "deleted_at", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "24"], ["deleted_at", "2016-06-15 18:08:45.337224"], ["created_at", "2016-06-15 18:08:45.339401"], ["updated_at", "2016-06-15 18:08:45.339401"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "deleted_at", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "25"], ["deleted_at", "2016-06-15 18:08:45.340663"], ["created_at", "2016-06-15 18:08:45.342103"], ["updated_at", "2016-06-15 18:08:45.342103"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::AssetsController#empty as HTML PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE (deleted_at IS NOT NULL) ORDER BY "push_type_assets"."created_at" DESC  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM "push_type_assets" WHERE "push_type_assets"."id" = $1 [["id", "dec5d1de-7ecf-4609-a3fe-d81b6f3fdede"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM "push_type_assets" WHERE "push_type_assets"."id" = $1 [["id", "47ca4fbe-08c5-4c3e-9cd8-385079f4187f"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM "push_type_assets" WHERE "push_type_assets"."id" = $1 [["id", "24cd0aa8-09ad-48e1-8511-e094db02668e"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/push_type/media Completed 302 Found in 6ms (ActiveRecord: 0.9ms)  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE (deleted_at IS NOT NULL)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------ PushType::NodesControllerTest::POST #position::without reponsitioning: test_0001_anonymous ------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-44' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-44"], ["created_at", "2016-06-15 18:08:45.355639"], ["updated_at", "2016-06-15 18:08:45.355639"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t53829d37487e5400869d3722da260cf9 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "5fb25515-86a0-46c9-955c-58dd338bc074"], ["descendant_id", "5fb25515-86a0-46c9-955c-58dd338bc074"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "5fb25515-86a0-46c9-955c-58dd338bc074"]] 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", "5fb25515-86a0-46c9-955c-58dd338bc074"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tcfad99129c21d90be863461caae380ec  (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" = 'foo-bar-45' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-45"], ["created_at", "2016-06-15 18:08:45.361985"], ["updated_at", "2016-06-15 18:08:45.361985"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t988d765a393f03b32381d8e678709822 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "1c592bec-aa27-47ba-a178-14f49b60359b"], ["descendant_id", "1c592bec-aa27-47ba-a178-14f49b60359b"], ["generations", 0]]  (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "1c592bec-aa27-47ba-a178-14f49b60359b"]] 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", "1c592bec-aa27-47ba-a178-14f49b60359b"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t8c55474ef7eb9eabcf16d777f42867f2  (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" = 'foo-bar-46' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-46"], ["created_at", "2016-06-15 18:08:45.368222"], ["updated_at", "2016-06-15 18:08:45.368222"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tcb6664beddac7f5400ba5032f1a2df83 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "24f9fa5f-a27a-4726-a838-14e8f666de22"], ["descendant_id", "24f9fa5f-a27a-4726-a838-14e8f666de22"], ["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 1 [["id", "24f9fa5f-a27a-4726-a838-14e8f666de22"]] 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", "24f9fa5f-a27a-4726-a838-14e8f666de22"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS ta376aeee75f5f8a5f6f8adef9ceeb55d  (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" = 'foo-bar-47' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-47"], ["created_at", "2016-06-15 18:08:45.375428"], ["updated_at", "2016-06-15 18:08:45.375428"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t4c10a02e2787a23ebeb63761f21215c3 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "175c576c-f8f4-4323-91cb-4d8f41f349da"], ["descendant_id", "175c576c-f8f4-4323-91cb-4d8f41f349da"], ["generations", 0]]  (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "175c576c-f8f4-4323-91cb-4d8f41f349da"]] 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", "175c576c-f8f4-4323-91cb-4d8f41f349da"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t6797d202e231486c3bccf017e134a767  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-48' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-48"], ["created_at", "2016-06-15 18:08:45.380743"], ["updated_at", "2016-06-15 18:08:45.380743"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tbbc71bf84f0099004dce7a84d525f000 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "f1cf227f-2a21-4a6b-81ff-a2e5253bd328"], ["descendant_id", "f1cf227f-2a21-4a6b-81ff-a2e5253bd328"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "f1cf227f-2a21-4a6b-81ff-a2e5253bd328"]] 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", "f1cf227f-2a21-4a6b-81ff-a2e5253bd328"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS td6775bade464fac5059a61dfa5ac1cbb  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::NodesController#index as HTML  (0.2ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT 30 OFFSET 0  (0.1ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 AND "push_type_nodes"."deleted_at" IS NULL [["parent_id", "5fb25515-86a0-46c9-955c-58dd338bc074"]]  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 AND "push_type_nodes"."deleted_at" IS NULL [["parent_id", "1c592bec-aa27-47ba-a178-14f49b60359b"]]  (0.1ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 AND "push_type_nodes"."deleted_at" IS NULL [["parent_id", "24f9fa5f-a27a-4726-a838-14e8f666de22"]]  (0.1ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 AND "push_type_nodes"."deleted_at" IS NULL [["parent_id", "175c576c-f8f4-4323-91cb-4d8f41f349da"]]  (0.1ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 AND "push_type_nodes"."deleted_at" IS NULL [["parent_id", "f1cf227f-2a21-4a6b-81ff-a2e5253bd328"]]  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/_new_node_button.html.haml (3.0ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/index.html.haml within layouts/push_type/admin (25.0ms) Completed 200 OK in 39ms (Views: 37.0ms | ActiveRecord: 1.2ms) PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT 1 OFFSET 0  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------ PushType::NodesControllerTest::POST #position::without reponsitioning: test_0002_anonymous ------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-49' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-49"], ["created_at", "2016-06-15 18:08:45.431535"], ["updated_at", "2016-06-15 18:08:45.431535"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t1b4c1c90f99ad0595d6844d4487ccfe5 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "2de4484a-9c18-43aa-839a-cf94523687d2"], ["descendant_id", "2de4484a-9c18-43aa-839a-cf94523687d2"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "2de4484a-9c18-43aa-839a-cf94523687d2"]] 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", "2de4484a-9c18-43aa-839a-cf94523687d2"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS taf55acb1095b690c6db3294d82b4a9ce  (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" = 'foo-bar-50' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-50"], ["created_at", "2016-06-15 18:08:45.437818"], ["updated_at", "2016-06-15 18:08:45.437818"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tdcb352f6fc2f368d59da3e486f0030b4 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "8e4362ae-acb5-4e5e-8a2c-dfca6a6e32c0"], ["descendant_id", "8e4362ae-acb5-4e5e-8a2c-dfca6a6e32c0"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "8e4362ae-acb5-4e5e-8a2c-dfca6a6e32c0"]] 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", "8e4362ae-acb5-4e5e-8a2c-dfca6a6e32c0"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t554eff2e74a93223811779ddf5d5b079  (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" = 'foo-bar-51' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-51"], ["created_at", "2016-06-15 18:08:45.443090"], ["updated_at", "2016-06-15 18:08:45.443090"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t2311bf28140d2852e9bdc3cc79f0cdce SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "1c1e831b-115f-46d6-9edd-f8e9ce6c7626"], ["descendant_id", "1c1e831b-115f-46d6-9edd-f8e9ce6c7626"], ["generations", 0]]  (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "1c1e831b-115f-46d6-9edd-f8e9ce6c7626"]] 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", "1c1e831b-115f-46d6-9edd-f8e9ce6c7626"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t5363eb7ba5f9d825f36d898f54452ea9  (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" = 'foo-bar-52' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-52"], ["created_at", "2016-06-15 18:08:45.448126"], ["updated_at", "2016-06-15 18:08:45.448126"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS ta8a57e0cc026a085f97dad97ab7a99ab SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "4e7ce8e6-0ac5-4996-8fa6-64c779b77674"], ["descendant_id", "4e7ce8e6-0ac5-4996-8fa6-64c779b77674"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "4e7ce8e6-0ac5-4996-8fa6-64c779b77674"]] 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", "4e7ce8e6-0ac5-4996-8fa6-64c779b77674"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t8c557fa066e3b733a25193df73b20f8b  (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" = 'foo-bar-53' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-53"], ["created_at", "2016-06-15 18:08:45.453728"], ["updated_at", "2016-06-15 18:08:45.453728"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t03945c3d0ef22d34d76e722c3bb487ed SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "eff46109-6b33-4d4d-b1dc-0191c66cb3ce"], ["descendant_id", "eff46109-6b33-4d4d-b1dc-0191c66cb3ce"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "eff46109-6b33-4d4d-b1dc-0191c66cb3ce"]] PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 ORDER BY sort_order [["parent_id", "eff46109-6b33-4d4d-b1dc-0191c66cb3ce"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tefb5cdd82bbbffd4b9c23a331ddb9e67  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::NodesController#index as HTML  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT 30 OFFSET 0  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 AND "push_type_nodes"."deleted_at" IS NULL [["parent_id", "2de4484a-9c18-43aa-839a-cf94523687d2"]]  (0.1ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 AND "push_type_nodes"."deleted_at" IS NULL [["parent_id", "8e4362ae-acb5-4e5e-8a2c-dfca6a6e32c0"]]  (0.1ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 AND "push_type_nodes"."deleted_at" IS NULL [["parent_id", "1c1e831b-115f-46d6-9edd-f8e9ce6c7626"]]  (0.1ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 AND "push_type_nodes"."deleted_at" IS NULL [["parent_id", "4e7ce8e6-0ac5-4996-8fa6-64c779b77674"]]  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 AND "push_type_nodes"."deleted_at" IS NULL [["parent_id", "eff46109-6b33-4d4d-b1dc-0191c66cb3ce"]]  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/_new_node_button.html.haml (4.5ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/index.html.haml within layouts/push_type/admin (27.2ms) Completed 200 OK in 40ms (Views: 36.9ms | ActiveRecord: 1.4ms) PushType::Node Load (0.3ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT 30 OFFSET 0  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN -------------------------------------------------------------------------------------- PushType::AssetsControllerTest::POST #upload::with in-valid asset: test_0001_anonymous --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Processing by PushType::AssetsController#upload as JSON Parameters: {"asset"=>{}}  (0.1ms) SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2 Completed 422 Unprocessable Entity in 3ms (Views: 0.1ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------------------- PushType::AssetsControllerTest::POST #upload::with in-valid asset: test_0003_anonymous --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Processing by PushType::AssetsController#upload as JSON Parameters: {"asset"=>{}}  (0.1ms) SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2 Completed 422 Unprocessable Entity in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------------------- PushType::AssetsControllerTest::POST #upload::with in-valid asset: test_0002_anonymous --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Processing by PushType::AssetsController#upload as JSON Parameters: {"asset"=>{}}  (0.1ms) SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2 Completed 422 Unprocessable Entity in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------- PushType::UsersControllerTest::PUT #update::with in-valid user: 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::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-1@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-1@example.com"], ["created_at", "2016-06-15 18:08:45.523514"], ["updated_at", "2016-06-15 18:08:45.523514"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::UsersController#update as HTML Parameters: {"user"=>{"name"=>""}, "id"=>"befae14c-b235-4d3d-a97b-4452e68c85b3"} PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "befae14c-b235-4d3d-a97b-4452e68c85b3"]]  (0.1ms) SAVEPOINT active_record_2 PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-1@example.com' AND "push_type_users"."id" != 'befae14c-b235-4d3d-a97b-4452e68c85b3') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2 Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/users/_meta_table.html.haml (0.1ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/users/_form.html.haml (6.4ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/users/edit.html.haml within layouts/push_type/admin (8.8ms) Completed 200 OK in 26ms (Views: 22.5ms | ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------- PushType::UsersControllerTest::PUT #update::with in-valid user: test_0002_anonymous -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-2@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-2@example.com"], ["created_at", "2016-06-15 18:08:45.555668"], ["updated_at", "2016-06-15 18:08:45.555668"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::UsersController#update as HTML Parameters: {"user"=>{"name"=>""}, "id"=>"db729d5b-de5e-435d-bc28-c97036a15368"} PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "db729d5b-de5e-435d-bc28-c97036a15368"]]  (0.1ms) SAVEPOINT active_record_2 PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-2@example.com' AND "push_type_users"."id" != 'db729d5b-de5e-435d-bc28-c97036a15368') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2 Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/users/_meta_table.html.haml (0.0ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/users/_form.html.haml (4.0ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/users/edit.html.haml within layouts/push_type/admin (5.4ms) Completed 200 OK in 22ms (Views: 18.4ms | ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PushType::Admin::AssetsTest: 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::Admin::AssetsTest: 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::AssetsControllerTest::GET #trash: test_0002_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 SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "26"], ["created_at", "2016-06-15 18:08:45.586737"], ["updated_at", "2016-06-15 18:08:45.586737"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "27"], ["created_at", "2016-06-15 18:08:45.589243"], ["updated_at", "2016-06-15 18:08:45.589243"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "deleted_at", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "28"], ["deleted_at", "2016-06-15 18:08:45.590465"], ["created_at", "2016-06-15 18:08:45.591690"], ["updated_at", "2016-06-15 18:08:45.591690"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "deleted_at", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "29"], ["deleted_at", "2016-06-15 18:08:45.592779"], ["created_at", "2016-06-15 18:08:45.593908"], ["updated_at", "2016-06-15 18:08:45.593908"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "deleted_at", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "30"], ["deleted_at", "2016-06-15 18:08:45.594922"], ["created_at", "2016-06-15 18:08:45.596093"], ["updated_at", "2016-06-15 18:08:45.596093"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::AssetsController#trash as HTML  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_assets" WHERE (deleted_at IS NOT NULL) LIMIT 20 OFFSET 0) subquery_for_count PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE (deleted_at IS NOT NULL) ORDER BY "push_type_assets"."created_at" DESC LIMIT 20 OFFSET 0  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE (deleted_at IS NOT NULL) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/assets/trash.html.haml within layouts/push_type/admin (11.7ms) Completed 200 OK in 28ms (Views: 26.2ms | ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------- PushType::AssetsControllerTest::GET #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 SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "31"], ["created_at", "2016-06-15 18:08:45.631061"], ["updated_at", "2016-06-15 18:08:45.631061"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "32"], ["created_at", "2016-06-15 18:08:45.633473"], ["updated_at", "2016-06-15 18:08:45.633473"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "deleted_at", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "33"], ["deleted_at", "2016-06-15 18:08:45.634456"], ["created_at", "2016-06-15 18:08:45.635748"], ["updated_at", "2016-06-15 18:08:45.635748"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "deleted_at", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "34"], ["deleted_at", "2016-06-15 18:08:45.636834"], ["created_at", "2016-06-15 18:08:45.637934"], ["updated_at", "2016-06-15 18:08:45.637934"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "deleted_at", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "35"], ["deleted_at", "2016-06-15 18:08:45.638955"], ["created_at", "2016-06-15 18:08:45.640129"], ["updated_at", "2016-06-15 18:08:45.640129"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::AssetsController#trash as HTML  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_assets" WHERE (deleted_at IS NOT NULL) LIMIT 20 OFFSET 0) subquery_for_count PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE (deleted_at IS NOT NULL) ORDER BY "push_type_assets"."created_at" DESC LIMIT 20 OFFSET 0  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE (deleted_at IS NOT NULL) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/assets/trash.html.haml within layouts/push_type/admin (8.0ms) Completed 200 OK in 21ms (Views: 19.0ms | ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------- PushType::AssetsControllerTest::POST #upload::with valid asset: test_0001_anonymous -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Processing by PushType::AssetsController#upload as JSON Parameters: {"asset"=>{"file"=>#>}}  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "36"], ["created_at", "2016-06-15 18:08:45.672479"], ["updated_at", "2016-06-15 18:08:45.672479"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Completed 201 Created in 4ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------- PushType::AssetsControllerTest::POST #upload::with valid asset: test_0002_anonymous -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Processing by PushType::AssetsController#upload as JSON Parameters: {"asset"=>{"file"=>#>}}  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "37"], ["created_at", "2016-06-15 18:08:45.680703"], ["updated_at", "2016-06-15 18:08:45.680703"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Completed 201 Created in 4ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------- PushType::AssetsControllerTest::POST #upload::with valid asset: test_0003_anonymous -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Processing by PushType::AssetsController#upload as JSON Parameters: {"asset"=>{"file"=>#>}}  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "38"], ["created_at", "2016-06-15 18:08:45.689815"], ["updated_at", "2016-06-15 18:08:45.689815"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Completed 201 Created in 4ms (Views: 0.2ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------ PushType::AssetsControllerTest::POST #create::asset count: test_0001_anonymous ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "push_type_assets" Processing by PushType::AssetsController#create as HTML Parameters: {"asset"=>{"file"=>#>}}  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "39"], ["created_at", "2016-06-15 18:08:45.699540"], ["updated_at", "2016-06-15 18:08:45.699540"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/push_type/media Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------------- PushType::UsersControllerTest::PUT #update::with valid user: 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::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-3@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-3@example.com"], ["created_at", "2016-06-15 18:08:45.706122"], ["updated_at", "2016-06-15 18:08:45.706122"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::UsersController#update as HTML Parameters: {"user"=>{"name"=>"Foo bar baz"}, "id"=>"5f6f3f94-a1dc-4f25-b52b-aaf0445e3b38"} PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "5f6f3f94-a1dc-4f25-b52b-aaf0445e3b38"]]  (0.1ms) SAVEPOINT active_record_2 PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-3@example.com' AND "push_type_users"."id" != '5f6f3f94-a1dc-4f25-b52b-aaf0445e3b38') LIMIT 1 SQL (0.1ms) UPDATE "push_type_users" SET "name" = $1, "updated_at" = $2 WHERE "push_type_users"."id" = $3 [["name", "Foo bar baz"], ["updated_at", "2016-06-15 18:08:45.711494"], ["id", "5f6f3f94-a1dc-4f25-b52b-aaf0445e3b38"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/push_type/users Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------------- PushType::UsersControllerTest::PUT #update::with valid user: test_0002_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::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-4@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-4@example.com"], ["created_at", "2016-06-15 18:08:45.716537"], ["updated_at", "2016-06-15 18:08:45.716537"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::UsersController#update as HTML Parameters: {"user"=>{"name"=>"Foo bar baz"}, "id"=>"3de719c3-f86b-42bc-bac8-eb184a1ef6b1"} PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "3de719c3-f86b-42bc-bac8-eb184a1ef6b1"]]  (0.1ms) SAVEPOINT active_record_2 PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-4@example.com' AND "push_type_users"."id" != '3de719c3-f86b-42bc-bac8-eb184a1ef6b1') LIMIT 1 SQL (0.1ms) UPDATE "push_type_users" SET "name" = $1, "updated_at" = $2 WHERE "push_type_users"."id" = $3 [["name", "Foo bar baz"], ["updated_at", "2016-06-15 18:08:45.722372"], ["id", "3de719c3-f86b-42bc-bac8-eb184a1ef6b1"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/push_type/users Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------------- PushType::UsersControllerTest::PUT #update::with valid user: test_0003_anonymous --------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-5@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-5@example.com"], ["created_at", "2016-06-15 18:08:45.726827"], ["updated_at", "2016-06-15 18:08:45.726827"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::UsersController#update as HTML Parameters: {"user"=>{"name"=>"Foo bar baz"}, "id"=>"598ced2d-6d59-416f-b79e-751a39424f45"} PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "598ced2d-6d59-416f-b79e-751a39424f45"]]  (0.1ms) SAVEPOINT active_record_2 PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE ("push_type_users"."email" = 'joe-5@example.com' AND "push_type_users"."id" != '598ced2d-6d59-416f-b79e-751a39424f45') LIMIT 1 SQL (0.1ms) UPDATE "push_type_users" SET "name" = $1, "updated_at" = $2 WHERE "push_type_users"."id" = $3 [["name", "Foo bar baz"], ["updated_at", "2016-06-15 18:08:45.731771"], ["id", "598ced2d-6d59-416f-b79e-751a39424f45"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/push_type/users Completed 302 Found in 4ms (ActiveRecord: 0.6ms) PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 LIMIT 1 [["id", "598ced2d-6d59-416f-b79e-751a39424f45"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PushType::NodesControllerTest::GET #index: 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" = 'foo-bar-54' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-54"], ["created_at", "2016-06-15 18:08:45.739039"], ["updated_at", "2016-06-15 18:08:45.739039"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t9450d967c022a7ab75435c2d61373d6c SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "9789a4ae-d8dc-4b2a-9af5-835ffb73ccbc"], ["descendant_id", "9789a4ae-d8dc-4b2a-9af5-835ffb73ccbc"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "9789a4ae-d8dc-4b2a-9af5-835ffb73ccbc"]] 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", "9789a4ae-d8dc-4b2a-9af5-835ffb73ccbc"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t553043d25f4265382ef3a5a12c551268  (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" = 'foo-bar-55' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-55"], ["created_at", "2016-06-15 18:08:45.745104"], ["updated_at", "2016-06-15 18:08:45.745104"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t0f1462bf99df90ab0fa9ab0a5cf7c725 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "6bf6a14f-aae6-403a-bafb-31f70c8f4484"], ["descendant_id", "6bf6a14f-aae6-403a-bafb-31f70c8f4484"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "6bf6a14f-aae6-403a-bafb-31f70c8f4484"]] 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", "6bf6a14f-aae6-403a-bafb-31f70c8f4484"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t49ab6f4c5b2fba7dd9872d90a0effad0  (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" = 'foo-bar-56' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-56"], ["created_at", "2016-06-15 18:08:45.750865"], ["updated_at", "2016-06-15 18:08:45.750865"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t260dcf525f97e8ea29921b686aa1588b SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "49186729-306c-4d87-a700-4f1e5c8b3653"], ["descendant_id", "49186729-306c-4d87-a700-4f1e5c8b3653"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "49186729-306c-4d87-a700-4f1e5c8b3653"]] 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", "49186729-306c-4d87-a700-4f1e5c8b3653"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS ta77cf3ff62819114023e742b8d32e16c  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-57' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-57"], ["created_at", "2016-06-15 18:08:45.756268"], ["updated_at", "2016-06-15 18:08:45.756268"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t9c77ada4a6a766e26b37002fb5348a5e SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "92edb142-3380-44ef-8f63-ee1e39ed35ac"], ["descendant_id", "92edb142-3380-44ef-8f63-ee1e39ed35ac"], ["generations", 0]]  (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "92edb142-3380-44ef-8f63-ee1e39ed35ac"]] 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", "92edb142-3380-44ef-8f63-ee1e39ed35ac"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tf8827488bb3204c04b8f41028c3c8860  (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" = 'foo-bar-58' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-58"], ["created_at", "2016-06-15 18:08:45.761424"], ["updated_at", "2016-06-15 18:08:45.761424"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS ted18b8caef17e12cb522c532f050104e SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "6c3528dc-d83a-4a50-84fd-f64cc5457e44"], ["descendant_id", "6c3528dc-d83a-4a50-84fd-f64cc5457e44"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "6c3528dc-d83a-4a50-84fd-f64cc5457e44"]] 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", "6c3528dc-d83a-4a50-84fd-f64cc5457e44"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tb7e21fe1e62c258a7ce9d346485fe73e  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::NodesController#index as HTML  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT 30 OFFSET 0  (0.1ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 AND "push_type_nodes"."deleted_at" IS NULL [["parent_id", "9789a4ae-d8dc-4b2a-9af5-835ffb73ccbc"]]  (0.1ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 AND "push_type_nodes"."deleted_at" IS NULL [["parent_id", "6bf6a14f-aae6-403a-bafb-31f70c8f4484"]]  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 AND "push_type_nodes"."deleted_at" IS NULL [["parent_id", "49186729-306c-4d87-a700-4f1e5c8b3653"]]  (0.1ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 AND "push_type_nodes"."deleted_at" IS NULL [["parent_id", "92edb142-3380-44ef-8f63-ee1e39ed35ac"]]  (0.1ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 AND "push_type_nodes"."deleted_at" IS NULL [["parent_id", "6c3528dc-d83a-4a50-84fd-f64cc5457e44"]]  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/_new_node_button.html.haml (3.6ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/index.html.haml within layouts/push_type/admin (26.6ms) Completed 200 OK in 40ms (Views: 36.4ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PushType::NodesControllerTest::GET #index: test_0002_anonymous --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-59' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-59"], ["created_at", "2016-06-15 18:08:45.810999"], ["updated_at", "2016-06-15 18:08:45.810999"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t642996730c863cedd3cf1b3ccfd5abc5 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "b818df19-4963-4a5d-bac6-9d5002b7f0a3"], ["descendant_id", "b818df19-4963-4a5d-bac6-9d5002b7f0a3"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "b818df19-4963-4a5d-bac6-9d5002b7f0a3"]] 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", "b818df19-4963-4a5d-bac6-9d5002b7f0a3"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tafbb8d50fe4ca3a58cd3119430c62306  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-60' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-60"], ["created_at", "2016-06-15 18:08:45.816653"], ["updated_at", "2016-06-15 18:08:45.816653"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t0cc6b2b7120dbae1a2ce9ece93ca9cb2 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "1bdcaf0a-c750-4aba-9e87-7f15b7d02205"], ["descendant_id", "1bdcaf0a-c750-4aba-9e87-7f15b7d02205"], ["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 1 [["id", "1bdcaf0a-c750-4aba-9e87-7f15b7d02205"]] 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", "1bdcaf0a-c750-4aba-9e87-7f15b7d02205"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t32c0bb05f23dc91742eb1ca6d651858a  (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" = 'foo-bar-61' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-61"], ["created_at", "2016-06-15 18:08:45.823546"], ["updated_at", "2016-06-15 18:08:45.823546"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t1a535e00d4ffc81e1de3e43cfad9f327 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "1d1b3391-0de3-434b-b134-16926ec0fbe8"], ["descendant_id", "1d1b3391-0de3-434b-b134-16926ec0fbe8"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "1d1b3391-0de3-434b-b134-16926ec0fbe8"]] 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", "1d1b3391-0de3-434b-b134-16926ec0fbe8"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS td361b0a54c6a51053d20c8fe4f5a5ce1  (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" = 'foo-bar-62' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-62"], ["created_at", "2016-06-15 18:08:45.829025"], ["updated_at", "2016-06-15 18:08:45.829025"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tc6300bf10b5e09f7df8e12f5fc16895a SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "05e9e82d-ad9d-4a5e-9b2b-29c9843a0d8f"], ["descendant_id", "05e9e82d-ad9d-4a5e-9b2b-29c9843a0d8f"], ["generations", 0]]  (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "05e9e82d-ad9d-4a5e-9b2b-29c9843a0d8f"]] 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", "05e9e82d-ad9d-4a5e-9b2b-29c9843a0d8f"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS td8edb893c6e39ee822af785c24cc8521  (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" = 'foo-bar-63' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-63"], ["created_at", "2016-06-15 18:08:45.834718"], ["updated_at", "2016-06-15 18:08:45.834718"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tfb2bd56a9db3c21fec917cdcc3a3b502 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "70ab96d5-a651-483a-bea1-c16831abf3fd"], ["descendant_id", "70ab96d5-a651-483a-bea1-c16831abf3fd"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "70ab96d5-a651-483a-bea1-c16831abf3fd"]] 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", "70ab96d5-a651-483a-bea1-c16831abf3fd"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tdb82e1d255abb02a9adadd608f42d3bd  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::NodesController#index as HTML  (0.2ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL ORDER BY sort_order LIMIT 30 OFFSET 0  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 AND "push_type_nodes"."deleted_at" IS NULL [["parent_id", "b818df19-4963-4a5d-bac6-9d5002b7f0a3"]]  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 AND "push_type_nodes"."deleted_at" IS NULL [["parent_id", "1bdcaf0a-c750-4aba-9e87-7f15b7d02205"]]  (0.1ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 AND "push_type_nodes"."deleted_at" IS NULL [["parent_id", "1d1b3391-0de3-434b-b134-16926ec0fbe8"]]  (0.1ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 AND "push_type_nodes"."deleted_at" IS NULL [["parent_id", "05e9e82d-ad9d-4a5e-9b2b-29c9843a0d8f"]]  (0.1ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 AND "push_type_nodes"."deleted_at" IS NULL [["parent_id", "70ab96d5-a651-483a-bea1-c16831abf3fd"]]  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/_new_node_button.html.haml (3.7ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/index.html.haml within layouts/push_type/admin (28.4ms) Completed 200 OK in 41ms (Views: 37.9ms | ActiveRecord: 1.4ms)  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" IS NULL AND "push_type_nodes"."deleted_at" IS NULL LIMIT 30 OFFSET 0) subquery_for_count  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN ---------------------------------------------------------------- PushType::NodesControllerTest::PUT #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" = 'foo-bar-64' AND "push_type_nodes"."parent_id" IS NULL) 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-64"], ["status", 0], ["created_at", "2016-06-15 18:08:45.886934"], ["updated_at", "2016-06-15 18:08:45.886934"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t0ead70861c53db54b7d1c593303d8ef6 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "604e1c98-61a5-4a15-9204-bc153e570abe"], ["descendant_id", "604e1c98-61a5-4a15-9204-bc153e570abe"], ["generations", 0]]  (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id Page Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "604e1c98-61a5-4a15-9204-bc153e570abe"]] 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", "604e1c98-61a5-4a15-9204-bc153e570abe"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t7bbadc7ad22b9a83511ae5f801e237e2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SQL (0.1ms) UPDATE "push_type_nodes" SET "deleted_at" = $1, "updated_at" = $2 WHERE "push_type_nodes"."id" = $3 [["deleted_at", "2016-06-15 18:08:45.891761"], ["updated_at", "2016-06-15 18:08:45.892093"], ["id", "604e1c98-61a5-4a15-9204-bc153e570abe"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 SQL (0.3ms) UPDATE "push_type_nodes" SET "deleted_at" = '2016-06-15 18:08:45.895127' 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" != '604e1c98-61a5-4a15-9204-bc153e570abe') ORDER BY "push_type_node_hierarchies".generations asc, sort_order) [["ancestor_id", "604e1c98-61a5-4a15-9204-bc153e570abe"]] Processing by PushType::NodesController#restore as HTML Parameters: {"id"=>"604e1c98-61a5-4a15-9204-bc153e570abe"} PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "604e1c98-61a5-4a15-9204-bc153e570abe"]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) UPDATE "push_type_nodes" SET "deleted_at" = $1, "updated_at" = $2 WHERE "push_type_nodes"."id" = $3 [["deleted_at", nil], ["updated_at", "2016-06-15 18:08:45.900294"], ["id", "604e1c98-61a5-4a15-9204-bc153e570abe"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/push_type/nodes Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------- PushType::NodesControllerTest::PUT #restore: 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" = 'foo-bar-65' AND "push_type_nodes"."parent_id" IS NULL) 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-65"], ["status", 0], ["created_at", "2016-06-15 18:08:45.907457"], ["updated_at", "2016-06-15 18:08:45.907457"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tf49c012b7351327f155e5f708b8f2693 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "b031dcfd-779e-4f88-8077-f3b118d587f7"], ["descendant_id", "b031dcfd-779e-4f88-8077-f3b118d587f7"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id Page Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "b031dcfd-779e-4f88-8077-f3b118d587f7"]] 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", "b031dcfd-779e-4f88-8077-f3b118d587f7"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS td33c35a26f5b26c5f4b56d4904287219  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SQL (0.1ms) UPDATE "push_type_nodes" SET "deleted_at" = $1, "updated_at" = $2 WHERE "push_type_nodes"."id" = $3 [["deleted_at", "2016-06-15 18:08:45.912200"], ["updated_at", "2016-06-15 18:08:45.912531"], ["id", "b031dcfd-779e-4f88-8077-f3b118d587f7"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 SQL (0.3ms) UPDATE "push_type_nodes" SET "deleted_at" = '2016-06-15 18:08:45.914139' 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" != 'b031dcfd-779e-4f88-8077-f3b118d587f7') ORDER BY "push_type_node_hierarchies".generations asc, sort_order) [["ancestor_id", "b031dcfd-779e-4f88-8077-f3b118d587f7"]] Processing by PushType::NodesController#restore as HTML Parameters: {"id"=>"b031dcfd-779e-4f88-8077-f3b118d587f7"} PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "b031dcfd-779e-4f88-8077-f3b118d587f7"]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) UPDATE "push_type_nodes" SET "deleted_at" = $1, "updated_at" = $2 WHERE "push_type_nodes"."id" = $3 [["deleted_at", nil], ["updated_at", "2016-06-15 18:08:45.919748"], ["id", "b031dcfd-779e-4f88-8077-f3b118d587f7"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/push_type/nodes Completed 302 Found in 6ms (ActiveRecord: 0.6ms) Page Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "b031dcfd-779e-4f88-8077-f3b118d587f7"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------- PushType::NodesControllerTest::PUT #restore: test_0002_anonymous ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-66' AND "push_type_nodes"."parent_id" IS NULL) 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-66"], ["status", 0], ["created_at", "2016-06-15 18:08:45.926913"], ["updated_at", "2016-06-15 18:08:45.926913"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t78251581595c694f72813441d7d528ac SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "146186dd-cf46-4f2b-a179-4a8c73fe83e7"], ["descendant_id", "146186dd-cf46-4f2b-a179-4a8c73fe83e7"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  Page Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "146186dd-cf46-4f2b-a179-4a8c73fe83e7"]] 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", "146186dd-cf46-4f2b-a179-4a8c73fe83e7"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t40320049fe0c3c453d3482e23ba87a18  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) UPDATE "push_type_nodes" SET "deleted_at" = $1, "updated_at" = $2 WHERE "push_type_nodes"."id" = $3 [["deleted_at", "2016-06-15 18:08:45.932038"], ["updated_at", "2016-06-15 18:08:45.932477"], ["id", "146186dd-cf46-4f2b-a179-4a8c73fe83e7"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 SQL (0.3ms) UPDATE "push_type_nodes" SET "deleted_at" = '2016-06-15 18:08:45.934377' 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" != '146186dd-cf46-4f2b-a179-4a8c73fe83e7') ORDER BY "push_type_node_hierarchies".generations asc, sort_order) [["ancestor_id", "146186dd-cf46-4f2b-a179-4a8c73fe83e7"]] Processing by PushType::NodesController#restore as HTML Parameters: {"id"=>"146186dd-cf46-4f2b-a179-4a8c73fe83e7"} PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "146186dd-cf46-4f2b-a179-4a8c73fe83e7"]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) UPDATE "push_type_nodes" SET "deleted_at" = $1, "updated_at" = $2 WHERE "push_type_nodes"."id" = $3 [["deleted_at", nil], ["updated_at", "2016-06-15 18:08:45.939432"], ["id", "146186dd-cf46-4f2b-a179-4a8c73fe83e7"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/push_type/nodes Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------------------- PushType::NodesControllerTest::DELETE #destroy::with trashed node: 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" = 'foo-bar-67' AND "push_type_nodes"."parent_id" IS NULL) 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-67"], ["status", 0], ["created_at", "2016-06-15 18:08:45.947197"], ["updated_at", "2016-06-15 18:08:45.947197"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS te8f5b5318f80a40238c594b919846b7f SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "158c7dc2-f1c8-4d77-8ec0-c88baa25b2ca"], ["descendant_id", "158c7dc2-f1c8-4d77-8ec0-c88baa25b2ca"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  Page Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "158c7dc2-f1c8-4d77-8ec0-c88baa25b2ca"]] 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", "158c7dc2-f1c8-4d77-8ec0-c88baa25b2ca"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t76e5c997a6f07b71088a7a38bdc9c18d  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) UPDATE "push_type_nodes" SET "deleted_at" = $1, "updated_at" = $2 WHERE "push_type_nodes"."id" = $3 [["deleted_at", "2016-06-15 18:08:45.952371"], ["updated_at", "2016-06-15 18:08:45.952736"], ["id", "158c7dc2-f1c8-4d77-8ec0-c88baa25b2ca"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 SQL (0.3ms) UPDATE "push_type_nodes" SET "deleted_at" = '2016-06-15 18:08:45.954413' 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" != '158c7dc2-f1c8-4d77-8ec0-c88baa25b2ca') ORDER BY "push_type_node_hierarchies".generations asc, sort_order) [["ancestor_id", "158c7dc2-f1c8-4d77-8ec0-c88baa25b2ca"]] Processing by PushType::NodesController#destroy as HTML Parameters: {"id"=>"158c7dc2-f1c8-4d77-8ec0-c88baa25b2ca"} PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "158c7dc2-f1c8-4d77-8ec0-c88baa25b2ca"]]  (0.1ms) SAVEPOINT active_record_2  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t37fce1706ba85a8fa70009b1416aad56  (0.4ms) 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 = '158c7dc2-f1c8-4d77-8ec0-c88baa25b2ca' OR descendant_id = '158c7dc2-f1c8-4d77-8ec0-c88baa25b2ca' ) AS x )   (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t465c91d1ac4d1c550fa0c335b93aff89 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", "158c7dc2-f1c8-4d77-8ec0-c88baa25b2ca"]] SQL (0.1ms) DELETE FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 [["id", "158c7dc2-f1c8-4d77-8ec0-c88baa25b2ca"]]  (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 Redirected to http://test.host/push_type/nodes/trash Completed 302 Found in 7ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------------------- PushType::NodesControllerTest::DELETE #destroy::with trashed node: 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" = 'foo-bar-68' AND "push_type_nodes"."parent_id" IS NULL) 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-68"], ["status", 0], ["created_at", "2016-06-15 18:08:45.968576"], ["updated_at", "2016-06-15 18:08:45.968576"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS ted701903987d2336b2430fcc4a3a889f SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "3628c108-e82c-4147-9d1f-4ad500a83a70"], ["descendant_id", "3628c108-e82c-4147-9d1f-4ad500a83a70"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id Page Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "3628c108-e82c-4147-9d1f-4ad500a83a70"]] 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", "3628c108-e82c-4147-9d1f-4ad500a83a70"]]  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS tb66b9256f09dccfc4a6d9efd298fbb5e  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) UPDATE "push_type_nodes" SET "deleted_at" = $1, "updated_at" = $2 WHERE "push_type_nodes"."id" = $3 [["deleted_at", "2016-06-15 18:08:45.973902"], ["updated_at", "2016-06-15 18:08:45.974300"], ["id", "3628c108-e82c-4147-9d1f-4ad500a83a70"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 SQL (0.3ms) UPDATE "push_type_nodes" SET "deleted_at" = '2016-06-15 18:08:45.976064' 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" != '3628c108-e82c-4147-9d1f-4ad500a83a70') ORDER BY "push_type_node_hierarchies".generations asc, sort_order) [["ancestor_id", "3628c108-e82c-4147-9d1f-4ad500a83a70"]] Processing by PushType::NodesController#destroy as HTML Parameters: {"id"=>"3628c108-e82c-4147-9d1f-4ad500a83a70"} PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "3628c108-e82c-4147-9d1f-4ad500a83a70"]]  (0.1ms) SAVEPOINT active_record_2  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS ta0ea747484cffeb6aae8de2d1756d57c  (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 = '3628c108-e82c-4147-9d1f-4ad500a83a70' OR descendant_id = '3628c108-e82c-4147-9d1f-4ad500a83a70' ) AS x )  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS tbe9bcb7da21c5ef6945d205f66e1b42b 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", "3628c108-e82c-4147-9d1f-4ad500a83a70"]] SQL (0.1ms) DELETE FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 [["id", "3628c108-e82c-4147-9d1f-4ad500a83a70"]]  (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 Redirected to http://test.host/push_type/nodes/trash Completed 302 Found in 6ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------------------- PushType::NodesControllerTest::DELETE #destroy::with trashed node: 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" = 'foo-bar-69' AND "push_type_nodes"."parent_id" IS NULL) 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-69"], ["status", 0], ["created_at", "2016-06-15 18:08:45.988098"], ["updated_at", "2016-06-15 18:08:45.988098"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS td2ed3459644b83a29fda94a20169ad81 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "8fcef860-caef-4736-ae3a-cf2e08e3b674"], ["descendant_id", "8fcef860-caef-4736-ae3a-cf2e08e3b674"], ["generations", 0]]  (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  Page Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "8fcef860-caef-4736-ae3a-cf2e08e3b674"]] 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", "8fcef860-caef-4736-ae3a-cf2e08e3b674"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t58f733b4a3b54dfe5f3864a8b1482db0  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) UPDATE "push_type_nodes" SET "deleted_at" = $1, "updated_at" = $2 WHERE "push_type_nodes"."id" = $3 [["deleted_at", "2016-06-15 18:08:45.992662"], ["updated_at", "2016-06-15 18:08:45.993216"], ["id", "8fcef860-caef-4736-ae3a-cf2e08e3b674"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 SQL (0.3ms) UPDATE "push_type_nodes" SET "deleted_at" = '2016-06-15 18:08:45.994925' 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" != '8fcef860-caef-4736-ae3a-cf2e08e3b674') ORDER BY "push_type_node_hierarchies".generations asc, sort_order) [["ancestor_id", "8fcef860-caef-4736-ae3a-cf2e08e3b674"]] Processing by PushType::NodesController#destroy as HTML Parameters: {"id"=>"8fcef860-caef-4736-ae3a-cf2e08e3b674"} PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "8fcef860-caef-4736-ae3a-cf2e08e3b674"]]  (0.1ms) SAVEPOINT active_record_2  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t3b7455d7bd46f9a27f177f75ad36bde6  (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 = '8fcef860-caef-4736-ae3a-cf2e08e3b674' OR descendant_id = '8fcef860-caef-4736-ae3a-cf2e08e3b674' ) AS x )   (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t6305b8a2bff695bccc2e5fb6f1a41172 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", "8fcef860-caef-4736-ae3a-cf2e08e3b674"]] SQL (0.1ms) DELETE FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 [["id", "8fcef860-caef-4736-ae3a-cf2e08e3b674"]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(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 Redirected to http://test.host/push_type/nodes/trash Completed 302 Found in 8ms (ActiveRecord: 1.5ms) Page Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "8fcef860-caef-4736-ae3a-cf2e08e3b674"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------ PushType::AssetsHelperTest::#asset_icon::with video asset: 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.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "video.mp4"], ["file_size", 424925], ["file_uid", "40"], ["created_at", "2016-06-15 18:08:46.013432"], ["updated_at", "2016-06-15 18:08:46.013432"], ["file_ext", "mp4"], ["mime_type", "video/mp4"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN ----------------------------------------------------- PushType::Admin::AssetsTest::#<<: 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::UsersControllerTest::GET #new: test_0002_anonymous ------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Processing by PushType::UsersController#new as HTML Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/users/_meta_table.html.haml (0.1ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/users/_form.html.haml (3.0ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/users/new.html.haml within layouts/push_type/admin (4.3ms) Completed 200 OK in 18ms (Views: 15.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PushType::UsersControllerTest::GET #new: test_0003_anonymous ------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Processing by PushType::UsersController#new as HTML Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/users/_meta_table.html.haml (0.1ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/users/_form.html.haml (3.0ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/users/new.html.haml within layouts/push_type/admin (4.0ms) Completed 200 OK in 18ms (Views: 16.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PushType::UsersControllerTest::GET #new: test_0001_anonymous ------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Processing by PushType::UsersController#new as HTML Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/users/_meta_table.html.haml (0.1ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/users/_form.html.haml (2.8ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/users/new.html.haml within layouts/push_type/admin (3.9ms) Completed 200 OK in 17ms (Views: 15.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------------------- PushType::AssetsControllerTest::POST #create::with in-valid asset: test_0001_anonymous --------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Processing by PushType::AssetsController#create as HTML Parameters: {"asset"=>{}}  (0.1ms) SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2 Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/assets/_meta_table.html.haml (0.1ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/assets/_form_submit.html.haml (0.1ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/assets/_form.html.haml (5.8ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/assets/new.html.haml within layouts/push_type/admin (8.4ms) Completed 200 OK in 25ms (Views: 22.3ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------------------- PushType::AssetsControllerTest::POST #create::with in-valid asset: test_0002_anonymous --------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Processing by PushType::AssetsController#create as HTML Parameters: {"asset"=>{}}  (0.1ms) SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2 Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/assets/_meta_table.html.haml (0.1ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/assets/_form_submit.html.haml (0.1ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/assets/_form.html.haml (5.8ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/assets/new.html.haml within layouts/push_type/admin (7.0ms) Completed 200 OK in 21ms (Views: 18.3ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------ PushType::AssetsHelperTest::#asset_icon::with image asset: 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_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "41"], ["created_at", "2016-06-15 18:08:46.135888"], ["updated_at", "2016-06-15 18:08:46.135888"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN ----------------------------------------------------------------- PushType::AssetsControllerTest::PUT #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 SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "42"], ["created_at", "2016-06-15 18:08:46.140163"], ["updated_at", "2016-06-15 18:08:46.140163"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) UPDATE "push_type_assets" SET "deleted_at" = $1, "updated_at" = $2 WHERE "push_type_assets"."id" = $3 [["deleted_at", "2016-06-15 18:08:46.141515"], ["updated_at", "2016-06-15 18:08:46.141802"], ["id", "75dfa45f-f252-43a4-a0bf-4900af119762"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::AssetsController#restore as HTML Parameters: {"id"=>"75dfa45f-f252-43a4-a0bf-4900af119762"} PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."id" = $1 ORDER BY "push_type_assets"."created_at" DESC LIMIT 1 [["id", "75dfa45f-f252-43a4-a0bf-4900af119762"]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) UPDATE "push_type_assets" SET "deleted_at" = $1, "updated_at" = $2 WHERE "push_type_assets"."id" = $3 [["deleted_at", nil], ["updated_at", "2016-06-15 18:08:46.147858"], ["id", "75dfa45f-f252-43a4-a0bf-4900af119762"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/push_type/media Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------- PushType::AssetsControllerTest::PUT #restore: 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_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "43"], ["created_at", "2016-06-15 18:08:46.153515"], ["updated_at", "2016-06-15 18:08:46.153515"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) UPDATE "push_type_assets" SET "deleted_at" = $1, "updated_at" = $2 WHERE "push_type_assets"."id" = $3 [["deleted_at", "2016-06-15 18:08:46.154679"], ["updated_at", "2016-06-15 18:08:46.154996"], ["id", "acb0f5bd-c6fc-4c16-9af2-8b5206ae04df"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::AssetsController#restore as HTML Parameters: {"id"=>"acb0f5bd-c6fc-4c16-9af2-8b5206ae04df"} PushType::Asset Load (0.1ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."id" = $1 ORDER BY "push_type_assets"."created_at" DESC LIMIT 1 [["id", "acb0f5bd-c6fc-4c16-9af2-8b5206ae04df"]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) UPDATE "push_type_assets" SET "deleted_at" = $1, "updated_at" = $2 WHERE "push_type_assets"."id" = $3 [["deleted_at", nil], ["updated_at", "2016-06-15 18:08:46.160255"], ["id", "acb0f5bd-c6fc-4c16-9af2-8b5206ae04df"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/push_type/media Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------- PushType::AssetsControllerTest::PUT #restore: test_0003_anonymous -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "44"], ["created_at", "2016-06-15 18:08:46.165223"], ["updated_at", "2016-06-15 18:08:46.165223"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) UPDATE "push_type_assets" SET "deleted_at" = $1, "updated_at" = $2 WHERE "push_type_assets"."id" = $3 [["deleted_at", "2016-06-15 18:08:46.166361"], ["updated_at", "2016-06-15 18:08:46.166672"], ["id", "2ed7ad98-95b5-42be-94d9-207c6bc75331"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::AssetsController#restore as HTML Parameters: {"id"=>"2ed7ad98-95b5-42be-94d9-207c6bc75331"} PushType::Asset Load (0.1ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."id" = $1 ORDER BY "push_type_assets"."created_at" DESC LIMIT 1 [["id", "2ed7ad98-95b5-42be-94d9-207c6bc75331"]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) UPDATE "push_type_assets" SET "deleted_at" = $1, "updated_at" = $2 WHERE "push_type_assets"."id" = $3 [["deleted_at", nil], ["updated_at", "2016-06-15 18:08:46.172486"], ["id", "2ed7ad98-95b5-42be-94d9-207c6bc75331"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/push_type/media Completed 302 Found in 4ms (ActiveRecord: 0.4ms) PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."id" = $1 LIMIT 1 [["id", "2ed7ad98-95b5-42be-94d9-207c6bc75331"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN ----------------------------------------------------------- PushType::Admin::AssetsTest::#register: 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::Admin::AssetsTest::#register: 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.1ms) BEGIN -------------------------------------------------------------------------------- PushType::NodesControllerTest::PUT #update::with valid node: test_0002_anonymous --------------------------------------------------------------------------------  (0.2ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-70' AND "push_type_nodes"."parent_id" IS NULL) 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-70"], ["status", 0], ["created_at", "2016-06-15 18:08:46.181023"], ["updated_at", "2016-06-15 18:08:46.181023"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t70aad676026a14d75686e7d80aea5cde SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "7c1d16b8-3d85-43eb-a29f-96a546f6ab3a"], ["descendant_id", "7c1d16b8-3d85-43eb-a29f-96a546f6ab3a"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id Page Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "7c1d16b8-3d85-43eb-a29f-96a546f6ab3a"]] 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", "7c1d16b8-3d85-43eb-a29f-96a546f6ab3a"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t1af62c01264494e86a89dcebb7705c87  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::NodesController#update as HTML Parameters: {"page"=>{"title"=>"Foo bar baz"}, "id"=>"7c1d16b8-3d85-43eb-a29f-96a546f6ab3a"} PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "7c1d16b8-3d85-43eb-a29f-96a546f6ab3a"]]  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-70' AND "push_type_nodes"."id" != '7c1d16b8-3d85-43eb-a29f-96a546f6ab3a' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.2ms) UPDATE "push_type_nodes" SET "title" = $1, "updated_at" = $2 WHERE "push_type_nodes"."id" = $3 [["title", "Foo bar baz"], ["updated_at", "2016-06-15 18:08:46.192182"], ["id", "7c1d16b8-3d85-43eb-a29f-96a546f6ab3a"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/push_type/nodes Completed 302 Found in 6ms (ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------------- PushType::NodesControllerTest::PUT #update::with valid node: 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" = 'foo-bar-71' AND "push_type_nodes"."parent_id" IS NULL) 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-71"], ["status", 0], ["created_at", "2016-06-15 18:08:46.198031"], ["updated_at", "2016-06-15 18:08:46.198031"]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS tff8ca42398879ff6d28f70634a1a6e11 SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "83cba5b9-0b5b-4db6-aa38-352187763cf5"], ["descendant_id", "83cba5b9-0b5b-4db6-aa38-352187763cf5"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  Page Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "83cba5b9-0b5b-4db6-aa38-352187763cf5"]] 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", "83cba5b9-0b5b-4db6-aa38-352187763cf5"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t0e8258a73f9f70a2718317076e1dd050  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::NodesController#update as HTML Parameters: {"page"=>{"title"=>"Foo bar baz"}, "id"=>"83cba5b9-0b5b-4db6-aa38-352187763cf5"} PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "83cba5b9-0b5b-4db6-aa38-352187763cf5"]]  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-71' AND "push_type_nodes"."id" != '83cba5b9-0b5b-4db6-aa38-352187763cf5' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.2ms) UPDATE "push_type_nodes" SET "title" = $1, "updated_at" = $2 WHERE "push_type_nodes"."id" = $3 [["title", "Foo bar baz"], ["updated_at", "2016-06-15 18:08:46.209429"], ["id", "83cba5b9-0b5b-4db6-aa38-352187763cf5"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/push_type/nodes Completed 302 Found in 6ms (ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------------- PushType::NodesControllerTest::PUT #update::with valid node: 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" = 'foo-bar-72' AND "push_type_nodes"."parent_id" IS NULL) 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-72"], ["status", 0], ["created_at", "2016-06-15 18:08:46.215242"], ["updated_at", "2016-06-15 18:08:46.215242"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t77a54a094dcbd0943a3afca7da04fcb6 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "d8d219e0-ed35-45ba-ba97-571fcce0f1d3"], ["descendant_id", "d8d219e0-ed35-45ba-ba97-571fcce0f1d3"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id Page Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "d8d219e0-ed35-45ba-ba97-571fcce0f1d3"]] 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", "d8d219e0-ed35-45ba-ba97-571fcce0f1d3"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS teaa1d1cb0218068d6e7769c8aeb46292  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::NodesController#update as HTML Parameters: {"page"=>{"title"=>"Foo bar baz"}, "id"=>"d8d219e0-ed35-45ba-ba97-571fcce0f1d3"} PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "d8d219e0-ed35-45ba-ba97-571fcce0f1d3"]]  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-72' AND "push_type_nodes"."id" != 'd8d219e0-ed35-45ba-ba97-571fcce0f1d3' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) UPDATE "push_type_nodes" SET "title" = $1, "updated_at" = $2 WHERE "push_type_nodes"."id" = $3 [["title", "Foo bar baz"], ["updated_at", "2016-06-15 18:08:46.225650"], ["id", "d8d219e0-ed35-45ba-ba97-571fcce0f1d3"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/push_type/nodes Completed 302 Found in 5ms (ActiveRecord: 0.6ms) Page Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "d8d219e0-ed35-45ba-ba97-571fcce0f1d3"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------ PushType::AssetsHelperTest::#asset_icon::with audio asset: 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.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "audio.m3u"], ["file_size", 64], ["file_uid", "45"], ["created_at", "2016-06-15 18:08:46.233034"], ["updated_at", "2016-06-15 18:08:46.233034"], ["file_ext", "m3u"], ["mime_type", "audio/x-mpegurl"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN -------------------------------------------------------------- PushType::UsersControllerTest::GET #index: 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::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-6@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-6@example.com"], ["created_at", "2016-06-15 18:08:46.237282"], ["updated_at", "2016-06-15 18:08:46.237282"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-7@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-7@example.com"], ["created_at", "2016-06-15 18:08:46.239010"], ["updated_at", "2016-06-15 18:08:46.239010"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-8@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-8@example.com"], ["created_at", "2016-06-15 18:08:46.240555"], ["updated_at", "2016-06-15 18:08:46.240555"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-9@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-9@example.com"], ["created_at", "2016-06-15 18:08:46.242043"], ["updated_at", "2016-06-15 18:08:46.242043"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-10@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-10@example.com"], ["created_at", "2016-06-15 18:08:46.243645"], ["updated_at", "2016-06-15 18:08:46.243645"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::UsersController#index as HTML  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_users" LIMIT 30 OFFSET 0) subquery_for_count PushType::User Load (0.3ms) SELECT "push_type_users".* FROM "push_type_users" ORDER BY "push_type_users"."name" ASC LIMIT 30 OFFSET 0 Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/users/_user.html.haml (3.2ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/users/_user.html.haml (1.0ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/users/_user.html.haml (1.0ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/users/_user.html.haml (1.0ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/users/_user.html.haml (1.0ms)  (0.2ms) SELECT COUNT(*) FROM "push_type_users" Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/users/index.html.haml within layouts/push_type/admin (16.1ms) Completed 200 OK in 31ms (Views: 29.2ms | ActiveRecord: 0.8ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PushType::UsersControllerTest::GET #index: 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::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-11@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-11@example.com"], ["created_at", "2016-06-15 18:08:46.280534"], ["updated_at", "2016-06-15 18:08:46.280534"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-12@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-12@example.com"], ["created_at", "2016-06-15 18:08:46.282374"], ["updated_at", "2016-06-15 18:08:46.282374"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-13@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-13@example.com"], ["created_at", "2016-06-15 18:08:46.284659"], ["updated_at", "2016-06-15 18:08:46.284659"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-14@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-14@example.com"], ["created_at", "2016-06-15 18:08:46.286628"], ["updated_at", "2016-06-15 18:08:46.286628"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-15@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-15@example.com"], ["created_at", "2016-06-15 18:08:46.288268"], ["updated_at", "2016-06-15 18:08:46.288268"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::UsersController#index as HTML  (0.2ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_users" LIMIT 30 OFFSET 0) subquery_for_count PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" ORDER BY "push_type_users"."name" ASC LIMIT 30 OFFSET 0 Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/users/_user.html.haml (1.2ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/users/_user.html.haml (1.0ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/users/_user.html.haml (1.1ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/users/_user.html.haml (1.0ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/users/_user.html.haml (1.4ms)  (0.2ms) SELECT COUNT(*) FROM "push_type_users" Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/users/index.html.haml within layouts/push_type/admin (9.4ms) Completed 200 OK in 22ms (Views: 19.8ms | ActiveRecord: 0.6ms)  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_users" LIMIT 30 OFFSET 0) subquery_for_count  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------- PushType::AssetsControllerTest::PUT #update::with valid asset: 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.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "46"], ["created_at", "2016-06-15 18:08:46.317179"], ["updated_at", "2016-06-15 18:08:46.317179"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::AssetsController#update as HTML Parameters: {"asset"=>{"description"=>"Foo bar baz"}, "id"=>"18be99e1-c7ad-4ef1-8379-4d0dd4cf71d9"} PushType::Asset Load (0.1ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."id" = $1 ORDER BY "push_type_assets"."created_at" DESC LIMIT 1 [["id", "18be99e1-c7ad-4ef1-8379-4d0dd4cf71d9"]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) UPDATE "push_type_assets" SET "description" = $1, "updated_at" = $2 WHERE "push_type_assets"."id" = $3 [["description", "Foo bar baz"], ["updated_at", "2016-06-15 18:08:46.323138"], ["id", "18be99e1-c7ad-4ef1-8379-4d0dd4cf71d9"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/push_type/media Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------- PushType::AssetsControllerTest::PUT #update::with valid asset: 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 SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "47"], ["created_at", "2016-06-15 18:08:46.328355"], ["updated_at", "2016-06-15 18:08:46.328355"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::AssetsController#update as HTML Parameters: {"asset"=>{"description"=>"Foo bar baz"}, "id"=>"71d8e913-6529-4b77-b778-57811191f94d"} PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."id" = $1 ORDER BY "push_type_assets"."created_at" DESC LIMIT 1 [["id", "71d8e913-6529-4b77-b778-57811191f94d"]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) UPDATE "push_type_assets" SET "description" = $1, "updated_at" = $2 WHERE "push_type_assets"."id" = $3 [["description", "Foo bar baz"], ["updated_at", "2016-06-15 18:08:46.333559"], ["id", "71d8e913-6529-4b77-b778-57811191f94d"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/push_type/media Completed 302 Found in 5ms (ActiveRecord: 0.5ms) PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."id" = $1 LIMIT 1 [["id", "71d8e913-6529-4b77-b778-57811191f94d"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------- PushType::AssetsControllerTest::PUT #update::with valid asset: 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.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "48"], ["created_at", "2016-06-15 18:08:46.340603"], ["updated_at", "2016-06-15 18:08:46.340603"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::AssetsController#update as HTML Parameters: {"asset"=>{"description"=>"Foo bar baz"}, "id"=>"11f1ffc9-e6dc-49a1-9204-4c66ed0cc413"} PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."id" = $1 ORDER BY "push_type_assets"."created_at" DESC LIMIT 1 [["id", "11f1ffc9-e6dc-49a1-9204-4c66ed0cc413"]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) UPDATE "push_type_assets" SET "description" = $1, "updated_at" = $2 WHERE "push_type_assets"."id" = $3 [["description", "Foo bar baz"], ["updated_at", "2016-06-15 18:08:46.356612"], ["id", "11f1ffc9-e6dc-49a1-9204-4c66ed0cc413"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/push_type/media Completed 302 Found in 15ms (ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN ------------------------------------------------------------ PushType::NodesControllerTest::GET #new: test_0001_anonymous ------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Processing by PushType::NodesController#new as HTML Parameters: {"kind"=>"page"} Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/_meta_table.html.haml (4.2ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/_form_submit.html.haml (0.3ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/_form_fields.html.haml (7.1ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/new.html.haml within layouts/push_type/admin (12.5ms) Completed 200 OK in 29ms (Views: 26.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PushType::NodesControllerTest::GET #new: test_0003_anonymous ------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Processing by PushType::NodesController#new as HTML Parameters: {"kind"=>"page"} Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/_meta_table.html.haml (4.0ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/_form_submit.html.haml (0.3ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/_form_fields.html.haml (7.1ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/new.html.haml within layouts/push_type/admin (9.5ms) Completed 200 OK in 23ms (Views: 20.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PushType::NodesControllerTest::GET #new: test_0002_anonymous ------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Processing by PushType::NodesController#new as HTML Parameters: {"kind"=>"page"} Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/_meta_table.html.haml (4.0ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/_form_submit.html.haml (0.3ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/_form_fields.html.haml (6.8ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/new.html.haml within layouts/push_type/admin (8.9ms) Completed 200 OK in 30ms (Views: 27.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------ PushType::NodesControllerTest::POST #create::with in-valid node: test_0001_anonymous ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Processing by PushType::NodesController#create as HTML Parameters: {"kind"=>"page", "page"=>{}}  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" IS NULL AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2 Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/_meta_table.html.haml (5.0ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/_form_submit.html.haml (0.4ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/_form_fields.html.haml (10.7ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/new.html.haml within layouts/push_type/admin (16.1ms) Completed 200 OK in 38ms (Views: 32.5ms | ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------ PushType::NodesControllerTest::POST #create::with in-valid node: test_0002_anonymous ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Processing by PushType::NodesController#create as HTML Parameters: {"kind"=>"page", "page"=>{}}  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" IS NULL AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2 Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/_meta_table.html.haml (5.8ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/_form_submit.html.haml (0.5ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/_form_fields.html.haml (9.1ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/new.html.haml within layouts/push_type/admin (12.2ms) Completed 200 OK in 31ms (Views: 25.6ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- PushType::NodesControllerTest::POST #create::with valid node: test_0002_anonymous ---------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Processing by PushType::NodesController#create as HTML Parameters: {"kind"=>"page", "page"=>{"title"=>"Foo bar", "slug"=>"foo-bar-73"}}  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-73' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("type", "status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-73"], ["created_at", "2016-06-15 18:08:46.539033"], ["updated_at", "2016-06-15 18:08:46.539033"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t656807de55dda73a9d65a8560442fde8 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "3fbc41e5-88fb-4c02-ba4c-827823b57da1"], ["descendant_id", "3fbc41e5-88fb-4c02-ba4c-827823b57da1"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id Page Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "3fbc41e5-88fb-4c02-ba4c-827823b57da1"]] 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", "3fbc41e5-88fb-4c02-ba4c-827823b57da1"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS taf8d7c4c486c2f7bab9ddc840757fc6a  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/push_type/nodes Completed 302 Found in 12ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- PushType::NodesControllerTest::POST #create::with valid node: test_0001_anonymous ---------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Processing by PushType::NodesController#create as HTML Parameters: {"kind"=>"page", "page"=>{"title"=>"Foo bar", "slug"=>"foo-bar-74"}}  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-74' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO "push_type_nodes" ("type", "status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-74"], ["created_at", "2016-06-15 18:08:46.555476"], ["updated_at", "2016-06-15 18:08:46.555476"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t3bba28990eac6228acf0610b0bd6f1a6 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "190a1180-1229-4906-829d-3fb8cfc3bf21"], ["descendant_id", "190a1180-1229-4906-829d-3fb8cfc3bf21"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id Page Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "190a1180-1229-4906-829d-3fb8cfc3bf21"]] 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", "190a1180-1229-4906-829d-3fb8cfc3bf21"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t92d6b9fbb972cffba0608dcf969c362f  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/push_type/nodes Completed 302 Found in 11ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PushType::AssetsControllerTest::GET #new: test_0003_anonymous -------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Processing by PushType::AssetsController#new as HTML Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/assets/_meta_table.html.haml (0.1ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/assets/_form_submit.html.haml (0.1ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/assets/_form.html.haml (5.2ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/assets/new.html.haml within layouts/push_type/admin (6.4ms) Completed 200 OK in 22ms (Views: 20.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PushType::AssetsControllerTest::GET #new: test_0002_anonymous -------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Processing by PushType::AssetsController#new as HTML Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/assets/_meta_table.html.haml (0.1ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/assets/_form_submit.html.haml (0.1ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/assets/_form.html.haml (5.8ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/assets/new.html.haml within layouts/push_type/admin (7.0ms) Completed 200 OK in 22ms (Views: 20.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PushType::AssetsControllerTest::GET #new: test_0001_anonymous -------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Processing by PushType::AssetsController#new as HTML Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/assets/_meta_table.html.haml (0.1ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/assets/_form_submit.html.haml (0.1ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/assets/_form.html.haml (6.2ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/assets/new.html.haml within layouts/push_type/admin (7.5ms) Completed 200 OK in 23ms (Views: 21.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------------- PushType::NodesControllerTest::DELETE #destroy::with untrashed node: 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" = 'foo-bar-75' AND "push_type_nodes"."parent_id" IS NULL) 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-75"], ["status", 0], ["created_at", "2016-06-15 18:08:46.645682"], ["updated_at", "2016-06-15 18:08:46.645682"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS taed78aa97da8dbcc66321b5b47e9132c SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "59180bbe-b432-4b4c-af73-14c3e599ee4b"], ["descendant_id", "59180bbe-b432-4b4c-af73-14c3e599ee4b"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id Page Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "59180bbe-b432-4b4c-af73-14c3e599ee4b"]] 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", "59180bbe-b432-4b4c-af73-14c3e599ee4b"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t06114b26e5a2191a41c9d711c7a10ab7  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::NodesController#destroy as HTML Parameters: {"id"=>"59180bbe-b432-4b4c-af73-14c3e599ee4b"} PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "59180bbe-b432-4b4c-af73-14c3e599ee4b"]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) UPDATE "push_type_nodes" SET "deleted_at" = $1, "updated_at" = $2 WHERE "push_type_nodes"."id" = $3 [["deleted_at", "2016-06-15 18:08:46.656442"], ["updated_at", "2016-06-15 18:08:46.656994"], ["id", "59180bbe-b432-4b4c-af73-14c3e599ee4b"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 SQL (0.3ms) UPDATE "push_type_nodes" SET "deleted_at" = '2016-06-15 18:08:46.659223' 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" != '59180bbe-b432-4b4c-af73-14c3e599ee4b') ORDER BY "push_type_node_hierarchies".generations asc, sort_order) [["ancestor_id", "59180bbe-b432-4b4c-af73-14c3e599ee4b"]] Redirected to http://test.host/push_type/nodes Completed 302 Found in 8ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------------- PushType::NodesControllerTest::DELETE #destroy::with untrashed node: 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" = 'foo-bar-76' AND "push_type_nodes"."parent_id" IS NULL) 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-76"], ["status", 0], ["created_at", "2016-06-15 18:08:46.665419"], ["updated_at", "2016-06-15 18:08:46.665419"]]  (0.2ms) SELECT pg_try_advisory_lock(1213021721,0) AS t2938b38a706fad135fd1e10f3c8b8527 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "8724e0c1-5c4d-4379-855d-edbf29e14a0d"], ["descendant_id", "8724e0c1-5c4d-4379-855d-edbf29e14a0d"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  Page Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "8724e0c1-5c4d-4379-855d-edbf29e14a0d"]] 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", "8724e0c1-5c4d-4379-855d-edbf29e14a0d"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tcbe40d2f7ec8d1b85cc95518d8445d18  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::NodesController#destroy as HTML Parameters: {"id"=>"8724e0c1-5c4d-4379-855d-edbf29e14a0d"} PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "8724e0c1-5c4d-4379-855d-edbf29e14a0d"]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) UPDATE "push_type_nodes" SET "deleted_at" = $1, "updated_at" = $2 WHERE "push_type_nodes"."id" = $3 [["deleted_at", "2016-06-15 18:08:46.675210"], ["updated_at", "2016-06-15 18:08:46.675828"], ["id", "8724e0c1-5c4d-4379-855d-edbf29e14a0d"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 SQL (0.3ms) UPDATE "push_type_nodes" SET "deleted_at" = '2016-06-15 18:08:46.677789' 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" != '8724e0c1-5c4d-4379-855d-edbf29e14a0d') ORDER BY "push_type_node_hierarchies".generations asc, sort_order) [["ancestor_id", "8724e0c1-5c4d-4379-855d-edbf29e14a0d"]] Redirected to http://test.host/push_type/nodes Completed 302 Found in 7ms (ActiveRecord: 0.7ms) Page Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "8724e0c1-5c4d-4379-855d-edbf29e14a0d"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------------- PushType::NodesControllerTest::DELETE #destroy::with untrashed node: test_0001_anonymous ----------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-77' AND "push_type_nodes"."parent_id" IS NULL) 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-77"], ["status", 0], ["created_at", "2016-06-15 18:08:46.685952"], ["updated_at", "2016-06-15 18:08:46.685952"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t583b2f64077e0aa5e73e52a1e101b9c4 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "8eb6949b-5597-4393-8f21-31ca1bec608b"], ["descendant_id", "8eb6949b-5597-4393-8f21-31ca1bec608b"], ["generations", 0]]  (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  Page Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "8eb6949b-5597-4393-8f21-31ca1bec608b"]] 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", "8eb6949b-5597-4393-8f21-31ca1bec608b"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t990458d86557b391ee255f0bbe1dee4d  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::NodesController#destroy as HTML Parameters: {"id"=>"8eb6949b-5597-4393-8f21-31ca1bec608b"} PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "8eb6949b-5597-4393-8f21-31ca1bec608b"]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) UPDATE "push_type_nodes" SET "deleted_at" = $1, "updated_at" = $2 WHERE "push_type_nodes"."id" = $3 [["deleted_at", "2016-06-15 18:08:46.695432"], ["updated_at", "2016-06-15 18:08:46.695892"], ["id", "8eb6949b-5597-4393-8f21-31ca1bec608b"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 SQL (0.3ms) UPDATE "push_type_nodes" SET "deleted_at" = '2016-06-15 18:08:46.697947' 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" != '8eb6949b-5597-4393-8f21-31ca1bec608b') ORDER BY "push_type_node_hierarchies".generations asc, sort_order) [["ancestor_id", "8eb6949b-5597-4393-8f21-31ca1bec608b"]] Redirected to http://test.host/push_type/nodes Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- PushType::Admin::AssetsTest::#+=: 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::Admin::AssetsTest::#+=: 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::UsersControllerTest::POST #create::user count: test_0001_anonymous ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "push_type_users" Processing by PushType::UsersController#create as HTML Parameters: {"user"=>{"name"=>"Joe Bloggs", "email"=>"joe-16@example.com"}}  (0.1ms) SAVEPOINT active_record_2 PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-16@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-16@example.com"], ["created_at", "2016-06-15 18:08:46.710679"], ["updated_at", "2016-06-15 18:08:46.710679"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/push_type/users Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "push_type_users"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------- PushType::NodesControllerTest::POST #create::node count: test_0001_anonymous ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') Processing by PushType::NodesController#create as HTML Parameters: {"kind"=>"page", "page"=>{"title"=>"Foo bar", "slug"=>"foo-bar-78"}}  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-78' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("type", "status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Page"], ["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-78"], ["created_at", "2016-06-15 18:08:46.723550"], ["updated_at", "2016-06-15 18:08:46.723550"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tdc8c0c6a2811038eb2fa9ed9a1e89bae SQL (0.2ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "f26bb7e3-8284-4cb3-8739-cd61a97f23c5"], ["descendant_id", "f26bb7e3-8284-4cb3-8739-cd61a97f23c5"], ["generations", 0]]  (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id  Page Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "f26bb7e3-8284-4cb3-8739-cd61a97f23c5"]] 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", "f26bb7e3-8284-4cb3-8739-cd61a97f23c5"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t48419b0f8d994758d5ccae50e31858c6  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/push_type/nodes Completed 302 Found in 10ms (ActiveRecord: 1.6ms)  (0.2ms) SELECT COUNT(*) 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::NodesControllerTest::GET #edit: 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.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-79' AND "push_type_nodes"."parent_id" IS NULL) 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-79"], ["status", 0], ["created_at", "2016-06-15 18:08:46.735046"], ["updated_at", "2016-06-15 18:08:46.735046"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS te155c151e2b2733d898dcd186e51d748 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "d9ed685b-fc1a-40d0-917c-0658708fc1c0"], ["descendant_id", "d9ed685b-fc1a-40d0-917c-0658708fc1c0"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(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 1 [["id", "d9ed685b-fc1a-40d0-917c-0658708fc1c0"]] 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", "d9ed685b-fc1a-40d0-917c-0658708fc1c0"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t0f74621dd3ece7c50dab98b5ae68449c  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::NodesController#edit as HTML Parameters: {"id"=>"d9ed685b-fc1a-40d0-917c-0658708fc1c0"} PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "d9ed685b-fc1a-40d0-917c-0658708fc1c0"]] PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" INNER JOIN "push_type_node_hierarchies" ON "push_type_nodes"."id" = "push_type_node_hierarchies"."ancestor_id" WHERE "push_type_node_hierarchies"."descendant_id" = $1 AND ("push_type_nodes"."id" != 'd9ed685b-fc1a-40d0-917c-0658708fc1c0') ORDER BY "push_type_node_hierarchies".generations asc [["descendant_id", "d9ed685b-fc1a-40d0-917c-0658708fc1c0"]] Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/_meta_table.html.haml (5.4ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/_form_submit.html.haml (1.9ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/_form_fields.html.haml (10.5ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/edit.html.haml within layouts/push_type/admin (14.7ms) Completed 200 OK in 31ms (Views: 28.6ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PushType::NodesControllerTest::GET #edit: 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" = 'foo-bar-80' AND "push_type_nodes"."parent_id" IS NULL) 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-80"], ["status", 0], ["created_at", "2016-06-15 18:08:46.777877"], ["updated_at", "2016-06-15 18:08:46.777877"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tcec70ed189a49c553e86e5c6da44c3a8 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "eaa75af2-a138-4a5f-a360-99151b027ad2"], ["descendant_id", "eaa75af2-a138-4a5f-a360-99151b027ad2"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id Page Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."type" IN ('Page') AND "push_type_nodes"."id" = $1 LIMIT 1 [["id", "eaa75af2-a138-4a5f-a360-99151b027ad2"]] 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", "eaa75af2-a138-4a5f-a360-99151b027ad2"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tcab9e7e1e139add4c48d9fd751031d3a  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::NodesController#edit as HTML Parameters: {"id"=>"eaa75af2-a138-4a5f-a360-99151b027ad2"} PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "eaa75af2-a138-4a5f-a360-99151b027ad2"]] PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" INNER JOIN "push_type_node_hierarchies" ON "push_type_nodes"."id" = "push_type_node_hierarchies"."ancestor_id" WHERE "push_type_node_hierarchies"."descendant_id" = $1 AND ("push_type_nodes"."id" != 'eaa75af2-a138-4a5f-a360-99151b027ad2') ORDER BY "push_type_node_hierarchies".generations asc [["descendant_id", "eaa75af2-a138-4a5f-a360-99151b027ad2"]] Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/_meta_table.html.haml (5.3ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/_form_submit.html.haml (3.1ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/_form_fields.html.haml (11.5ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/edit.html.haml within layouts/push_type/admin (15.6ms) Completed 200 OK in 31ms (Views: 28.8ms | ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------- PushType::UsersControllerTest::DELETE #destroy: 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::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-17@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-17@example.com"], ["created_at", "2016-06-15 18:08:46.820585"], ["updated_at", "2016-06-15 18:08:46.820585"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::UsersController#destroy as HTML Parameters: {"id"=>"207d4e9a-80fe-4a5d-b0c7-3844b5054701"} PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "207d4e9a-80fe-4a5d-b0c7-3844b5054701"]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM "push_type_users" WHERE "push_type_users"."id" = $1 [["id", "207d4e9a-80fe-4a5d-b0c7-3844b5054701"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/push_type/users Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------- PushType::UsersControllerTest::DELETE #destroy: test_0002_anonymous -------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 PushType::User Exists (0.1ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-18@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-18@example.com"], ["created_at", "2016-06-15 18:08:46.830573"], ["updated_at", "2016-06-15 18:08:46.830573"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::UsersController#destroy as HTML Parameters: {"id"=>"c56d22c9-cb76-42bf-8549-e9014d4c3c33"} PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "c56d22c9-cb76-42bf-8549-e9014d4c3c33"]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM "push_type_users" WHERE "push_type_users"."id" = $1 [["id", "c56d22c9-cb76-42bf-8549-e9014d4c3c33"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/push_type/users Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------- PushType::UsersControllerTest::DELETE #destroy: 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::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-19@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-19@example.com"], ["created_at", "2016-06-15 18:08:46.840355"], ["updated_at", "2016-06-15 18:08:46.840355"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::UsersController#destroy as HTML Parameters: {"id"=>"51ec5c4c-a0a2-45e2-8e0a-e609c3136d9b"} PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "51ec5c4c-a0a2-45e2-8e0a-e609c3136d9b"]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM "push_type_users" WHERE "push_type_users"."id" = $1 [["id", "51ec5c4c-a0a2-45e2-8e0a-e609c3136d9b"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/push_type/users Completed 302 Found in 3ms (ActiveRecord: 0.4ms) PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 LIMIT 1 [["id", "51ec5c4c-a0a2-45e2-8e0a-e609c3136d9b"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------- PushType::AssetsControllerTest::POST #create::with valid asset: test_0001_anonymous -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Processing by PushType::AssetsController#create as HTML Parameters: {"asset"=>{"file"=>#>}}  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "49"], ["created_at", "2016-06-15 18:08:46.855750"], ["updated_at", "2016-06-15 18:08:46.855750"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/push_type/media Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------- PushType::AssetsControllerTest::POST #create::with valid asset: test_0002_anonymous -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Processing by PushType::AssetsController#create as HTML Parameters: {"asset"=>{"file"=>#>}}  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "50"], ["created_at", "2016-06-15 18:08:46.864430"], ["updated_at", "2016-06-15 18:08:46.864430"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/push_type/media Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PushType::UsersControllerTest::GET #edit: 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::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-20@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-20@example.com"], ["created_at", "2016-06-15 18:08:46.870229"], ["updated_at", "2016-06-15 18:08:46.870229"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::UsersController#edit as HTML Parameters: {"id"=>"bafe27e6-846a-4ec0-afc0-0b7a1ecd3d28"} PushType::User Load (0.1ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "bafe27e6-846a-4ec0-afc0-0b7a1ecd3d28"]] Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/users/_meta_table.html.haml (0.1ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/users/_form.html.haml (3.9ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/users/edit.html.haml within layouts/push_type/admin (5.0ms) Completed 200 OK in 19ms (Views: 17.4ms | ActiveRecord: 0.1ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PushType::UsersControllerTest::GET #edit: 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::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-21@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-21@example.com"], ["created_at", "2016-06-15 18:08:46.895271"], ["updated_at", "2016-06-15 18:08:46.895271"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::UsersController#edit as HTML Parameters: {"id"=>"b68d3243-57ed-4478-902d-fee3ce69b9ad"} PushType::User Load (0.2ms) SELECT "push_type_users".* FROM "push_type_users" WHERE "push_type_users"."id" = $1 ORDER BY "push_type_users"."name" ASC LIMIT 1 [["id", "b68d3243-57ed-4478-902d-fee3ce69b9ad"]] Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/users/_meta_table.html.haml (0.1ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/users/_form.html.haml (4.0ms) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/users/edit.html.haml within layouts/push_type/admin (5.6ms) Completed 200 OK in 18ms (Views: 16.3ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------- PushType::AssetsHelperTest::#asset_preview_thumb_url: test_0002_anonymous -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "51"], ["created_at", "2016-06-15 18:08:46.920437"], ["updated_at", "2016-06-15 18:08:46.920437"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------- PushType::AssetsHelperTest::#asset_preview_thumb_url: test_0001_anonymous -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "52"], ["created_at", "2016-06-15 18:08:46.924103"], ["updated_at", "2016-06-15 18:08:46.924103"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN --------------------------------------------------------------------------------- PushType::AssetsHelperTest::#asset_icon::with document asset: test_0001_anonymous ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "53"], ["created_at", "2016-06-15 18:08:46.928607"], ["updated_at", "2016-06-15 18:08:46.928607"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN ---------------------------------------------------------- PushType::NodesHelperTest::#node_hash: 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.3ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-81' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-81"], ["created_at", "2016-06-15 18:08:46.933309"], ["updated_at", "2016-06-15 18:08:46.933309"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t1c7a1d3dbf40e3685be954ce7bfd1cf7 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "bef0d911-cf5c-42a5-aee3-44c06c526f27"], ["descendant_id", "bef0d911-cf5c-42a5-aee3-44c06c526f27"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "bef0d911-cf5c-42a5-aee3-44c06c526f27"]] 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", "bef0d911-cf5c-42a5-aee3-44c06c526f27"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tafd94ad3d84381da2a73fed8ee197f50  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PushType::NodesHelperTest::#node_hash: test_0009_anonymous ----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-82' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-82"], ["created_at", "2016-06-15 18:08:46.941335"], ["updated_at", "2016-06-15 18:08:46.941335"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS td341d234c98e63c4dba20a0b0228f19f SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "b60a1131-ee09-45bd-9d59-9f2db65a7173"], ["descendant_id", "b60a1131-ee09-45bd-9d59-9f2db65a7173"], ["generations", 0]]  (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "b60a1131-ee09-45bd-9d59-9f2db65a7173"]] 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", "b60a1131-ee09-45bd-9d59-9f2db65a7173"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tecd1bada857c41acddfd3322cd2b37ad  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PushType::NodesHelperTest::#node_hash: test_0007_anonymous ----------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-83' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-83"], ["created_at", "2016-06-15 18:08:46.947755"], ["updated_at", "2016-06-15 18:08:46.947755"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t53b2d165b243d89380a146b9739e9f38 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "764fd2d2-2d10-4904-a4c4-b63669fdc493"], ["descendant_id", "764fd2d2-2d10-4904-a4c4-b63669fdc493"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "764fd2d2-2d10-4904-a4c4-b63669fdc493"]] 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", "764fd2d2-2d10-4904-a4c4-b63669fdc493"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t5564f2c7204617ac9be7233ffa8f63a4  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PushType::NodesHelperTest::#node_hash: test_0008_anonymous ----------------------------------------------------------  (0.0ms) 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.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-84' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-84"], ["created_at", "2016-06-15 18:08:46.955236"], ["updated_at", "2016-06-15 18:08:46.955236"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t9c9315798d46c5f460be083947035be7 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "edad35f1-59da-40a8-a3be-17cf9b683b02"], ["descendant_id", "edad35f1-59da-40a8-a3be-17cf9b683b02"], ["generations", 0]]  (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "edad35f1-59da-40a8-a3be-17cf9b683b02"]] 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", "edad35f1-59da-40a8-a3be-17cf9b683b02"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS te81fcfc353f7060131365d1f3f9444c8  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PushType::NodesHelperTest::#node_hash: 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.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-85' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-85"], ["created_at", "2016-06-15 18:08:46.962223"], ["updated_at", "2016-06-15 18:08:46.962223"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t7df5ae073fa122eedcf7ed52bfd14807 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "86378aef-f64b-40e3-920d-b9a27f0aaa49"], ["descendant_id", "86378aef-f64b-40e3-920d-b9a27f0aaa49"], ["generations", 0]]  (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "86378aef-f64b-40e3-920d-b9a27f0aaa49"]] 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", "86378aef-f64b-40e3-920d-b9a27f0aaa49"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tf0b0e4c22fe2a57de01f556327471b8e  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PushType::NodesHelperTest::#node_hash: 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" = 'foo-bar-86' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-86"], ["created_at", "2016-06-15 18:08:46.970147"], ["updated_at", "2016-06-15 18:08:46.970147"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS te9729b150e34fbc213d24dec61e0559d SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "dfdeca45-da0e-4480-a04e-0515cf319621"], ["descendant_id", "dfdeca45-da0e-4480-a04e-0515cf319621"], ["generations", 0]]  (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "dfdeca45-da0e-4480-a04e-0515cf319621"]] 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", "dfdeca45-da0e-4480-a04e-0515cf319621"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tc660bdacdf024f97f1ba62297cfad00e  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PushType::NodesHelperTest::#node_hash: 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.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-87' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-87"], ["created_at", "2016-06-15 18:08:46.977446"], ["updated_at", "2016-06-15 18:08:46.977446"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t314ad456c48616a298dd3dbfa2927f5e SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "db5a4b78-30ea-4ce0-8fd5-73763850d42e"], ["descendant_id", "db5a4b78-30ea-4ce0-8fd5-73763850d42e"], ["generations", 0]]  (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "db5a4b78-30ea-4ce0-8fd5-73763850d42e"]] 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", "db5a4b78-30ea-4ce0-8fd5-73763850d42e"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t16e3fee4dc440abffc7237afd9981d46  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PushType::NodesHelperTest::#node_hash: 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" = 'foo-bar-88' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-88"], ["created_at", "2016-06-15 18:08:46.984291"], ["updated_at", "2016-06-15 18:08:46.984291"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t12b3e412862ff1b5b19629732b3319ed SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "bd532fcc-a9ef-4eb4-bca2-1cc59374e246"], ["descendant_id", "bd532fcc-a9ef-4eb4-bca2-1cc59374e246"], ["generations", 0]]  (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "bd532fcc-a9ef-4eb4-bca2-1cc59374e246"]] 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", "bd532fcc-a9ef-4eb4-bca2-1cc59374e246"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t9039a83f67cb458788a5e0079f245371  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PushType::NodesHelperTest::#node_hash: test_0003_anonymous ----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-89' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-89"], ["created_at", "2016-06-15 18:08:46.991010"], ["updated_at", "2016-06-15 18:08:46.991010"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t34f9887032fdb23487bc1d16609f6992 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "40d0d6b5-d15f-432e-8e4b-1ada490117dc"], ["descendant_id", "40d0d6b5-d15f-432e-8e4b-1ada490117dc"], ["generations", 0]]  (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "40d0d6b5-d15f-432e-8e4b-1ada490117dc"]] 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", "40d0d6b5-d15f-432e-8e4b-1ada490117dc"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t47ce05feb5d9fb1be2e9023ce273d853  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN --------------------------------------------------------------------------------- PushType::UsersControllerTest::POST #create::with valid user: test_0001_anonymous ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Processing by PushType::UsersController#create as HTML Parameters: {"user"=>{"name"=>"Joe Bloggs", "email"=>"joe-22@example.com"}}  (0.1ms) SAVEPOINT active_record_2 PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-22@example.com"], ["created_at", "2016-06-15 18:08:47.002835"], ["updated_at", "2016-06-15 18:08:47.002835"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/push_type/users Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- PushType::UsersControllerTest::POST #create::with valid user: test_0002_anonymous ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Processing by PushType::UsersController#create as HTML Parameters: {"user"=>{"name"=>"Joe Bloggs", "email"=>"joe-23@example.com"}}  (0.1ms) SAVEPOINT active_record_2 PushType::User Exists (0.2ms) SELECT 1 AS one FROM "push_type_users" WHERE "push_type_users"."email" = 'joe-23@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_users" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Joe Bloggs"], ["email", "joe-23@example.com"], ["created_at", "2016-06-15 18:08:47.012380"], ["updated_at", "2016-06-15 18:08:47.012380"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/push_type/users Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PushType::AssetsHelperTest::#asset_hash: 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 SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "54"], ["created_at", "2016-06-15 18:08:47.024488"], ["updated_at", "2016-06-15 18:08:47.024488"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PushType::AssetsHelperTest::#asset_hash: test_0001_anonymous ------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "55"], ["created_at", "2016-06-15 18:08:47.028632"], ["updated_at", "2016-06-15 18:08:47.028632"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PushType::AssetsHelperTest::#asset_hash: test_0005_anonymous ------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "56"], ["created_at", "2016-06-15 18:08:47.032426"], ["updated_at", "2016-06-15 18:08:47.032426"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PushType::AssetsHelperTest::#asset_hash: test_0006_anonymous ------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "57"], ["created_at", "2016-06-15 18:08:47.036133"], ["updated_at", "2016-06-15 18:08:47.036133"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PushType::AssetsHelperTest::#asset_hash: test_0008_anonymous ------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "58"], ["created_at", "2016-06-15 18:08:47.039781"], ["updated_at", "2016-06-15 18:08:47.039781"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PushType::AssetsHelperTest::#asset_hash: 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 SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "59"], ["created_at", "2016-06-15 18:08:47.043596"], ["updated_at", "2016-06-15 18:08:47.043596"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PushType::AssetsHelperTest::#asset_hash: 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 SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "60"], ["created_at", "2016-06-15 18:08:47.047309"], ["updated_at", "2016-06-15 18:08:47.047309"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PushType::AssetsHelperTest::#asset_hash: 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.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "61"], ["created_at", "2016-06-15 18:08:47.051185"], ["updated_at", "2016-06-15 18:08:47.051185"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PushType::AssetsHelperTest::#asset_hash: test_0002_anonymous ------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "62"], ["created_at", "2016-06-15 18:08:47.056184"], ["updated_at", "2016-06-15 18:08:47.056184"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PushType::AssetsHelperTest::#asset_hash: 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.3ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "63"], ["created_at", "2016-06-15 18:08:47.059700"], ["updated_at", "2016-06-15 18:08:47.059700"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------- PushType::AdminHelperTest::#ficon: test_0001_should return an element -------------------------------------------------------------------------  (0.0ms) 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::AdminHelperTest::#ficon: test_0002_should return any text -------------------------------------------------------------------  (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::NodesControllerTest::GET #trash: test_0001_anonymous --------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-90' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-90"], ["created_at", "2016-06-15 18:08:47.068320"], ["updated_at", "2016-06-15 18:08:47.068320"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tcbfc47578667d056b6d62092edfbc991 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "a7962142-b339-478c-a6e2-fb7784e171fd"], ["descendant_id", "a7962142-b339-478c-a6e2-fb7784e171fd"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "a7962142-b339-478c-a6e2-fb7784e171fd"]] 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", "a7962142-b339-478c-a6e2-fb7784e171fd"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t21506b3b9f11d154567d13083829f222  (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" = 'foo-bar-91' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-91"], ["created_at", "2016-06-15 18:08:47.074244"], ["updated_at", "2016-06-15 18:08:47.074244"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tdb776c381e6336deaa96db3649a9c6b9 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "34637a6e-8bf8-4f51-be3e-4f4da8f99cd6"], ["descendant_id", "34637a6e-8bf8-4f51-be3e-4f4da8f99cd6"], ["generations", 0]]  (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "34637a6e-8bf8-4f51-be3e-4f4da8f99cd6"]] 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", "34637a6e-8bf8-4f51-be3e-4f4da8f99cd6"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t6abfd97977abc1f0157fe125420e5015  (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" = 'foo-bar-92' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "deleted_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-92"], ["deleted_at", "2016-06-15 18:08:47.078656"], ["created_at", "2016-06-15 18:08:47.079959"], ["updated_at", "2016-06-15 18:08:47.079959"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t4f2d7e33b95466d73b6200be137ed096 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "63de5277-3f78-487d-9ce7-e96c7392c154"], ["descendant_id", "63de5277-3f78-487d-9ce7-e96c7392c154"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "63de5277-3f78-487d-9ce7-e96c7392c154"]] 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", "63de5277-3f78-487d-9ce7-e96c7392c154"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tada4044c272ccc17ad5eae0c036aec5c  (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" = 'foo-bar-93' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "deleted_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-93"], ["deleted_at", "2016-06-15 18:08:47.085212"], ["created_at", "2016-06-15 18:08:47.086645"], ["updated_at", "2016-06-15 18:08:47.086645"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tad668ee968764a2e065d06783e40dcd8 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "06d3518c-a8cf-4e7b-8676-104df0d0206a"], ["descendant_id", "06d3518c-a8cf-4e7b-8676-104df0d0206a"], ["generations", 0]]  (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "06d3518c-a8cf-4e7b-8676-104df0d0206a"]] 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", "06d3518c-a8cf-4e7b-8676-104df0d0206a"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t8cd79226f078e166fb315ed1ecaa1551  (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" = 'foo-bar-94' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "deleted_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-94"], ["deleted_at", "2016-06-15 18:08:47.091347"], ["created_at", "2016-06-15 18:08:47.092454"], ["updated_at", "2016-06-15 18:08:47.092454"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t54a5789f72bd626581deabd26888dd91 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "669e2926-2c01-4abf-ad06-002ed64243a3"], ["descendant_id", "669e2926-2c01-4abf-ad06-002ed64243a3"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "669e2926-2c01-4abf-ad06-002ed64243a3"]] 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", "669e2926-2c01-4abf-ad06-002ed64243a3"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t47d7f6317c5c3aeb9440bcc2bc9d4ec9  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::NodesController#trash as HTML  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE (deleted_at IS NOT NULL) LIMIT 30 OFFSET 0) subquery_for_count PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE (deleted_at IS NOT NULL) ORDER BY "push_type_nodes"."deleted_at" DESC LIMIT 30 OFFSET 0  (0.1ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 [["parent_id", "669e2926-2c01-4abf-ad06-002ed64243a3"]]  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 [["parent_id", "06d3518c-a8cf-4e7b-8676-104df0d0206a"]]  (0.3ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 [["parent_id", "63de5277-3f78-487d-9ce7-e96c7392c154"]]  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE (deleted_at IS NOT NULL) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/trash.html.haml within layouts/push_type/admin (23.6ms) Completed 200 OK in 40ms (Views: 37.4ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PushType::NodesControllerTest::GET #trash: test_0002_anonymous --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 PushType::Node Exists (0.2ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-95' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-95"], ["created_at", "2016-06-15 18:08:47.142064"], ["updated_at", "2016-06-15 18:08:47.142064"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t90e99f18761601f076af99518b41e5f9 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "2cba5641-79ef-43cf-a5f3-f957b608a37f"], ["descendant_id", "2cba5641-79ef-43cf-a5f3-f957b608a37f"], ["generations", 0]]  (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "2cba5641-79ef-43cf-a5f3-f957b608a37f"]] 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", "2cba5641-79ef-43cf-a5f3-f957b608a37f"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS t4e323c46985edf261ee8dc564ba7abb3  (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" = 'foo-bar-96' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-96"], ["created_at", "2016-06-15 18:08:47.147820"], ["updated_at", "2016-06-15 18:08:47.147820"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t8bc78b53a1c27e4de0182980108a492c SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "5e87af88-0ef3-4436-99dc-b4aa131c23a3"], ["descendant_id", "5e87af88-0ef3-4436-99dc-b4aa131c23a3"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "5e87af88-0ef3-4436-99dc-b4aa131c23a3"]] 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", "5e87af88-0ef3-4436-99dc-b4aa131c23a3"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tacf7b82509e7c490b22ecb870d647020  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-97' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "deleted_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-97"], ["deleted_at", "2016-06-15 18:08:47.152612"], ["created_at", "2016-06-15 18:08:47.153748"], ["updated_at", "2016-06-15 18:08:47.153748"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS tf87d594ace053a3b8bfaf083b7a61845 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "f15f996e-4fb3-47ae-922d-a31175e1ebb2"], ["descendant_id", "f15f996e-4fb3-47ae-922d-a31175e1ebb2"], ["generations", 0]]  (0.3ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "f15f996e-4fb3-47ae-922d-a31175e1ebb2"]] 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", "f15f996e-4fb3-47ae-922d-a31175e1ebb2"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tfb76d89d38b1d60fe914578cd92d9809  (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" = 'foo-bar-98' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "deleted_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-98"], ["deleted_at", "2016-06-15 18:08:47.158657"], ["created_at", "2016-06-15 18:08:47.159880"], ["updated_at", "2016-06-15 18:08:47.159880"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t49f06af8f5330120f98b398e9cd0859f SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "b1b18197-6694-48bf-b817-f65ef84cd011"], ["descendant_id", "b1b18197-6694-48bf-b817-f65ef84cd011"], ["generations", 0]]  (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "b1b18197-6694-48bf-b817-f65ef84cd011"]] 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", "b1b18197-6694-48bf-b817-f65ef84cd011"]]  (0.1ms) SELECT pg_advisory_unlock(1213021721,0) AS tfd50d1416c7f5f268cb51bf168e3edf4  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 PushType::Node Exists (0.1ms) SELECT 1 AS one FROM "push_type_nodes" WHERE ("push_type_nodes"."slug" = 'foo-bar-99' AND "push_type_nodes"."parent_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "push_type_nodes" ("status", "title", "slug", "deleted_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["status", 0], ["title", "Foo bar"], ["slug", "foo-bar-99"], ["deleted_at", "2016-06-15 18:08:47.164180"], ["created_at", "2016-06-15 18:08:47.165188"], ["updated_at", "2016-06-15 18:08:47.165188"]]  (0.1ms) SELECT pg_try_advisory_lock(1213021721,0) AS t149bafb681fdbc6051bd2b477bda1618 SQL (0.1ms) INSERT INTO "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES ($1, $2, $3) [["ancestor_id", "fd9eed6f-6ed4-4d50-afeb-4cbfae4ebb9b"], ["descendant_id", "fd9eed6f-6ed4-4d50-afeb-4cbfae4ebb9b"], ["generations", 0]]  (0.2ms) UPDATE "push_type_nodes" SET "sort_order" = t.seq + -1 FROM ( SELECT "id" AS id, row_number() OVER(ORDER BY sort_order) AS seq FROM "push_type_nodes" WHERE "parent_id" IS NULL ) AS t WHERE "push_type_nodes"."id" = t.id PushType::Node Load (0.1ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE "push_type_nodes"."id" = $1 LIMIT 1 [["id", "fd9eed6f-6ed4-4d50-afeb-4cbfae4ebb9b"]] 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", "fd9eed6f-6ed4-4d50-afeb-4cbfae4ebb9b"]]  (0.2ms) SELECT pg_advisory_unlock(1213021721,0) AS t389fbbb6a860c892ccd9b03477912519  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by PushType::NodesController#trash as HTML  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE (deleted_at IS NOT NULL) LIMIT 30 OFFSET 0) subquery_for_count PushType::Node Load (0.2ms) SELECT "push_type_nodes".* FROM "push_type_nodes" WHERE (deleted_at IS NOT NULL) ORDER BY "push_type_nodes"."deleted_at" DESC LIMIT 30 OFFSET 0  (0.1ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 [["parent_id", "fd9eed6f-6ed4-4d50-afeb-4cbfae4ebb9b"]]  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 [["parent_id", "b1b18197-6694-48bf-b817-f65ef84cd011"]]  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE "push_type_nodes"."parent_id" = $1 [["parent_id", "f15f996e-4fb3-47ae-922d-a31175e1ebb2"]]  (0.2ms) SELECT COUNT(*) FROM "push_type_nodes" WHERE (deleted_at IS NOT NULL) Rendered /Users/aaron/dev/pushcode/push_type/admin/app/views/push_type/nodes/trash.html.haml within layouts/push_type/admin (19.3ms) Completed 200 OK in 33ms (Views: 30.4ms | ActiveRecord: 1.2ms)  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "push_type_nodes" WHERE (deleted_at IS NOT NULL) LIMIT 30 OFFSET 0) subquery_for_count  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PushType::AssetsHelperTest::#assets_array: 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.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "64"], ["created_at", "2016-06-15 18:08:47.211294"], ["updated_at", "2016-06-15 18:08:47.211294"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "65"], ["created_at", "2016-06-15 18:08:47.213355"], ["updated_at", "2016-06-15 18:08:47.213355"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "66"], ["created_at", "2016-06-15 18:08:47.215353"], ["updated_at", "2016-06-15 18:08:47.215353"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "67"], ["created_at", "2016-06-15 18:08:47.217601"], ["updated_at", "2016-06-15 18:08:47.217601"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PushType::AssetsHelperTest::#assets_array: test_0002_anonymous --------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "68"], ["created_at", "2016-06-15 18:08:47.222120"], ["updated_at", "2016-06-15 18:08:47.222120"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "69"], ["created_at", "2016-06-15 18:08:47.224128"], ["updated_at", "2016-06-15 18:08:47.224128"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "70"], ["created_at", "2016-06-15 18:08:47.226122"], ["updated_at", "2016-06-15 18:08:47.226122"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "71"], ["created_at", "2016-06-15 18:08:47.228175"], ["updated_at", "2016-06-15 18:08:47.228175"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PushType::AssetsHelperTest::#assets_array: test_0003_anonymous --------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "72"], ["created_at", "2016-06-15 18:08:47.232650"], ["updated_at", "2016-06-15 18:08:47.232650"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "73"], ["created_at", "2016-06-15 18:08:47.234892"], ["updated_at", "2016-06-15 18:08:47.234892"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "74"], ["created_at", "2016-06-15 18:08:47.237075"], ["updated_at", "2016-06-15 18:08:47.237075"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "75"], ["created_at", "2016-06-15 18:08:47.239185"], ["updated_at", "2016-06-15 18:08:47.239185"], ["file_ext", "png"], ["mime_type", "image/png"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK