spec/dummy/log/test.log in rails_workflow-0.3.0 vs spec/dummy/log/test.log in rails_workflow-0.3.1

- old
+ new

@@ -433003,5 +433003,8479 @@ SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":968}]"], ["updated_at", "2015-06-25 04:19:27.363652"], ["id", 968]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 1261]]  (0.2ms) ROLLBACK +  (31.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)  +  (17.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") + ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" +Migrating to CreateWorkflowWfProcesses (20150123172243) +  (0.3ms) BEGIN +  (31.0ms) CREATE TABLE "workflow_processes" ("id" serial primary key, "status" integer, "async" boolean, "title" character varying, "created_at" timestamp, "updated_at" timestamp)  +  (5.0ms) CREATE TABLE "workflow_operations" ("id" serial primary key, "status" integer, "async" boolean, "title" character varying, "created_at" timestamp, "updated_at" timestamp) +  (6.0ms) CREATE TABLE "workflow_process_templates" ("id" serial primary key, "title" character varying, "source" text, "manager_class" character varying, "process_class" character varying, "created_at" timestamp, "updated_at" timestamp)  +  (3.2ms) CREATE TABLE "workflow_operation_templates" ("id" serial primary key, "title" character varying, "source" text, "dependencies" text, "operation_class" character varying, "process_template_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (0.8ms) ALTER TABLE "workflow_processes" ADD "template_id" integer +  (0.3ms) ALTER TABLE "workflow_processes" ADD "type" character varying +  (0.3ms) ALTER TABLE "workflow_operations" ADD "process_id" integer +  (0.4ms) ALTER TABLE "workflow_operations" ADD "template_id" integer +  (0.4ms) ALTER TABLE "workflow_operation_templates" ADD "async" boolean +  (0.3ms) ALTER TABLE "workflow_operations" ADD "dependencies" text +  (0.3ms) ALTER TABLE "workflow_operation_templates" ADD "child_process_id" integer +  (0.4ms) ALTER TABLE "workflow_operations" ADD "child_process_id" integer +  (0.3ms) ALTER TABLE "workflow_operation_templates" ADD "assignment_id" integer +  (0.3ms) ALTER TABLE "workflow_operation_templates" ADD "assignment_type" character varying +  (0.3ms) ALTER TABLE "workflow_operations" ADD "assignment_id" integer +  (0.3ms) ALTER TABLE "workflow_operations" ADD "assignment_type" character varying +  (0.4ms) ALTER TABLE "workflow_operations" ADD "assigned_at" timestamp +  (0.2ms) ALTER TABLE "workflow_operation_templates" ADD "kind" character varying +  (0.2ms) ALTER TABLE "workflow_operation_templates" ADD "role" character varying +  (1.4ms) ALTER TABLE "workflow_operation_templates" ADD "group" character varying +  (0.2ms) ALTER TABLE "workflow_operations" ADD "type" character varying +  (0.2ms) ALTER TABLE "workflow_operations" ADD "is_active" boolean +  (0.2ms) ALTER TABLE "workflow_operation_templates" ADD "instruction" text +  (2.7ms) CREATE TABLE "workflow_contexts" ("id" serial primary key, "parent_id" integer, "parent_type" character varying, "body" json, "created_at" timestamp, "updated_at" timestamp) +  (1.2ms) CREATE INDEX "index_workflow_contexts_on_parent_id_and_parent_type" ON "workflow_contexts" ("parent_id", "parent_type") +  (5.1ms) CREATE TABLE "workflow_errors" ("id" serial primary key, "message" character varying, "stack_trace" text, "parent_id" integer, "parent_type" character varying, "created_at" timestamp, "updated_at" timestamp) +  (0.6ms) ALTER TABLE "workflow_operations" ADD "completed_at" timestamp +  (27.1ms) ALTER TABLE "workflow_operation_templates" ADD "is_background" boolean DEFAULT 't' +  (0.3ms) ALTER TABLE "workflow_operations" ADD "is_background" boolean + SQL (6.0ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150123172243"]] +  (7.6ms) COMMIT +Migrating to DeviseCreateUsers (20150127171613) +  (28.8ms) BEGIN +  (5.6ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying DEFAULT '' NOT NULL, "encrypted_password" character varying DEFAULT '' NOT NULL, "reset_password_token" character varying, "reset_password_sent_at" timestamp, "remember_created_at" timestamp, "sign_in_count" integer DEFAULT 0 NOT NULL, "current_sign_in_at" timestamp, "last_sign_in_at" timestamp, "current_sign_in_ip" inet, "last_sign_in_ip" inet, "role" character varying, "created_at" timestamp, "updated_at" timestamp)  +  (1.9ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email") +  (0.9ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token") + SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150127171613"]] +  (0.5ms) COMMIT +Migrating to CreateSalesContacts (20150130042852) +  (6.2ms) BEGIN +  (19.2ms) CREATE TABLE "sales_contacts" ("id" serial primary key, "message" text, "email" character varying, "created_at" timestamp, "updated_at" timestamp)  + SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150130042852"]] +  (0.4ms) COMMIT +Migrating to CreateLeads (20150130043008) +  (6.0ms) BEGIN +  (20.2ms) CREATE TABLE "leads" ("id" serial primary key, "sales_contact_id" integer, "offer" text, "name" character varying, "created_at" timestamp, "updated_at" timestamp)  + SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150130043008"]] +  (0.4ms) COMMIT +Migrating to AddTypeToOperationTemplate (20150202091139) +  (6.2ms) BEGIN +  (0.4ms) ALTER TABLE "workflow_operation_templates" ADD "type" character varying + SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150202091139"]] +  (5.9ms) COMMIT +Migrating to AddTypeToProcessTemplates (20150206192702) +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "workflow_process_templates" ADD "type" character varying + SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150206192702"]] +  (11.9ms) COMMIT +Migrating to AddResolvedToError (20150207181058) +  (0.4ms) BEGIN +  (0.4ms) ALTER TABLE "workflow_errors" ADD "resolved" boolean + SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150207181058"]] +  (6.2ms) COMMIT +Migrating to ChangeNamespace (20150210070051) +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "workflow_processes" RENAME TO "rails_workflow_processes" +  (0.3ms) ALTER TABLE "public"."workflow_processes_id_seq" RENAME TO "rails_workflow_processes_id_seq" +  (0.3ms) ALTER INDEX "workflow_processes_pkey" RENAME TO "rails_workflow_processes_pkey" +  (0.3ms) ALTER TABLE "workflow_operations" RENAME TO "rails_workflow_operations" +  (0.2ms) ALTER TABLE "public"."workflow_operations_id_seq" RENAME TO "rails_workflow_operations_id_seq" +  (0.2ms) ALTER INDEX "workflow_operations_pkey" RENAME TO "rails_workflow_operations_pkey" +  (0.3ms) ALTER TABLE "workflow_process_templates" RENAME TO "rails_workflow_process_templates" +  (0.2ms) ALTER TABLE "public"."workflow_process_templates_id_seq" RENAME TO "rails_workflow_process_templates_id_seq" +  (0.3ms) ALTER INDEX "workflow_process_templates_pkey" RENAME TO "rails_workflow_process_templates_pkey" +  (0.4ms) ALTER TABLE "workflow_operation_templates" RENAME TO "rails_workflow_operation_templates" +  (0.2ms) ALTER TABLE "public"."workflow_operation_templates_id_seq" RENAME TO "rails_workflow_operation_templates_id_seq" +  (0.3ms) ALTER INDEX "workflow_operation_templates_pkey" RENAME TO "rails_workflow_operation_templates_pkey" +  (0.3ms) ALTER TABLE "workflow_contexts" RENAME TO "rails_workflow_contexts" +  (0.2ms) ALTER TABLE "public"."workflow_contexts_id_seq" RENAME TO "rails_workflow_contexts_id_seq" +  (0.2ms) ALTER INDEX "workflow_contexts_pkey" RENAME TO "rails_workflow_contexts_pkey" +  (0.4ms) ALTER INDEX "index_workflow_contexts_on_parent_id_and_parent_type" RENAME TO "index_rails_workflow_contexts_on_parent_id_and_parent_type" +  (0.4ms) ALTER TABLE "workflow_errors" RENAME TO "rails_workflow_errors" +  (0.2ms) ALTER TABLE "public"."workflow_errors_id_seq" RENAME TO "rails_workflow_errors_id_seq" +  (0.2ms) ALTER INDEX "workflow_errors_pkey" RENAME TO "rails_workflow_errors_pkey" + SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150210070051"]] +  (5.0ms) COMMIT +Migrating to AddPartialNameToContext (20150215164401) +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "rails_workflow_operation_templates" ADD "partial_name" character varying +  (0.2ms) ALTER TABLE "rails_workflow_process_templates" ADD "partial_name" character varying + SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150215164401"]] +  (6.0ms) COMMIT +Migrating to ChangeDependenciesToJson (20150217161051) +  (0.3ms) BEGIN +  (21.0ms) ALTER TABLE "rails_workflow_operation_templates" ALTER COLUMN "dependencies" TYPE JSON USING dependencies::JSON +  (3.7ms) ALTER TABLE "rails_workflow_operations" ALTER COLUMN "dependencies" TYPE JSON USING dependencies::JSON + SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150217161051"]] +  (1.8ms) COMMIT +Migrating to CreateWorkflowProcesses (20150629171932) +  (0.3ms) BEGIN +  (0.3ms) ALTER TABLE "rails_workflow_operation_templates" ADD "version" character varying +  (0.3ms) ALTER TABLE "rails_workflow_operation_templates" ADD "uuid" uuid +  (0.4ms) ALTER TABLE "rails_workflow_operation_templates" ADD "tag" character varying +  (0.3ms) ALTER TABLE "rails_workflow_operations" ADD "version" character varying +  (0.2ms) ALTER TABLE "rails_workflow_operations" ADD "tag" character varying +  (0.3ms) ALTER TABLE "rails_workflow_process_templates" ADD "uuid" uuid +  (0.4ms) ALTER TABLE "rails_workflow_process_templates" ADD "version" character varying +  (0.3ms) ALTER TABLE "rails_workflow_process_templates" ADD "tag" character varying +  (0.3ms) ALTER TABLE "rails_workflow_processes" ADD "version" character varying +  (0.5ms) ALTER TABLE "rails_workflow_processes" ADD "tag" character varying +  (20.1ms) ALTER TABLE "rails_workflow_operations" ALTER COLUMN "dependencies" TYPE text +  (3.5ms) ALTER TABLE "rails_workflow_operation_templates" ALTER COLUMN "dependencies" TYPE text +  (5.1ms) ALTER TABLE "rails_workflow_contexts" ALTER COLUMN "body" TYPE text +  (0.9ms) CREATE INDEX "index_rails_workflow_errors_on_parent_id_and_parent_type" ON "rails_workflow_errors" ("parent_id", "parent_type") +  (2.4ms) CREATE INDEX "index_rails_workflow_operation_templates_on_process_template_id" ON "rails_workflow_operation_templates" ("process_template_id") +  (1.1ms) CREATE INDEX "index_rails_workflow_operation_templates_on_uuid" ON "rails_workflow_operation_templates" ("uuid") +  (1.2ms) CREATE INDEX "index_rails_workflow_process_templates_on_uuid" ON "rails_workflow_process_templates" ("uuid") +  (1.1ms) CREATE INDEX "index_rails_workflow_operations_on_process_id" ON "rails_workflow_operations" ("process_id") +  (1.2ms) CREATE INDEX "index_rails_workflow_operations_on_template_id" ON "rails_workflow_operations" ("template_id") + SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150629171932"]] +  (1.7ms) COMMIT + ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (2.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 = 'leads' + AND t3.nspname = ANY (current_schemas(false)) +ORDER BY c.conname + +  (2.0ms) 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 = 'rails_workflow_contexts' + AND t3.nspname = ANY (current_schemas(false)) +ORDER BY c.conname + +  (1.9ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete +FROM pg_constraint c +JOIN pg_class t1 ON c.conrelid = t1.oid +JOIN pg_class t2 ON c.confrelid = t2.oid +JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid +JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid +JOIN pg_namespace t3 ON c.connamespace = t3.oid +WHERE c.contype = 'f' + AND t1.relname = 'rails_workflow_errors' + AND t3.nspname = ANY (current_schemas(false)) +ORDER BY c.conname + +  (2.2ms) 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 = 'rails_workflow_operation_templates' + AND t3.nspname = ANY (current_schemas(false)) +ORDER BY c.conname + +  (2.1ms) 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 = 'rails_workflow_operations' + AND t3.nspname = ANY (current_schemas(false)) +ORDER BY c.conname + +  (2.0ms) 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 = 'rails_workflow_process_templates' + AND t3.nspname = ANY (current_schemas(false)) +ORDER BY c.conname + +  (2.0ms) 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 = 'rails_workflow_processes' + AND t3.nspname = ANY (current_schemas(false)) +ORDER BY c.conname + +  (1.9ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete +FROM pg_constraint c +JOIN pg_class t1 ON c.conrelid = t1.oid +JOIN pg_class t2 ON c.confrelid = t2.oid +JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid +JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid +JOIN pg_namespace t3 ON c.connamespace = t3.oid +WHERE c.contype = 'f' + AND t1.relname = 'sales_contacts' + 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 = 'users' + AND t3.nspname = ANY (current_schemas(false)) +ORDER BY c.conname + + ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.3ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (11.5ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "e0c281ac-eb87-450a-e8cc-ce99eb07bc0c"], ["created_at", "2015-06-29 17:44:50.454838"], ["updated_at", "2015-06-29 17:44:50.454838"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (2.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 1], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "441cdc21-610b-92c6-6005-6943801d8660"], ["created_at", "2015-06-29 17:44:50.485855"], ["updated_at", "2015-06-29 17:44:50.485855"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "590d3cac-e3df-fbb5-87c1-f1cceb5b518c"], ["created_at", "2015-06-29 17:44:50.493647"], ["updated_at", "2015-06-29 17:44:50.493647"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 2], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "a01f7c88-9901-c9d8-762d-b7e99868e9e9"], ["created_at", "2015-06-29 17:44:50.496942"], ["updated_at", "2015-06-29 17:44:50.496942"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "685cd2a4-36c3-24be-0ec6-ed670cd16d43"], ["created_at", "2015-06-29 17:44:50.503217"], ["updated_at", "2015-06-29 17:44:50.503217"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "f3a66b5f-692f-b404-145e-7ddbe570a5cd"], ["created_at", "2015-06-29 17:44:50.505779"], ["updated_at", "2015-06-29 17:44:50.505779"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "69754429-422d-252d-d061-e155f9b637f8"], ["created_at", "2015-06-29 17:44:50.509640"], ["updated_at", "2015-06-29 17:44:50.509640"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 5], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "e9754767-8237-3f08-708c-aeee42edcce1"], ["created_at", "2015-06-29 17:44:50.512202"], ["updated_at", "2015-06-29 17:44:50.512202"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "d890856c-1336-d004-773b-ad8f429d283c"], ["created_at", "2015-06-29 17:44:50.516975"], ["updated_at", "2015-06-29 17:44:50.516975"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "b5705e32-bb5d-9840-08fb-d60e18a982ad"], ["created_at", "2015-06-29 17:44:50.524944"], ["updated_at", "2015-06-29 17:44:50.524944"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "60c84a38-3f0c-d4e1-2e14-78d3fd7bd569"], ["created_at", "2015-06-29 17:44:50.531775"], ["updated_at", "2015-06-29 17:44:50.531775"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "1d9df06b-f9d1-4d77-98d7-74ddf04f0470"], ["created_at", "2015-06-29 17:44:50.536023"], ["updated_at", "2015-06-29 17:44:50.536023"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "db4886a8-6cac-7cb6-f13d-d921f7ab6cd0"], ["created_at", "2015-06-29 17:44:50.540029"], ["updated_at", "2015-06-29 17:44:50.540029"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "860ef5c4-7edb-fde0-8819-83c0bcc6c83d"], ["created_at", "2015-06-29 17:44:50.543663"], ["updated_at", "2015-06-29 17:44:50.543663"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "60fc9477-0f9b-60ec-43f0-705c37a85ba1"], ["created_at", "2015-06-29 17:44:50.547908"], ["updated_at", "2015-06-29 17:44:50.547908"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "eb86cf80-fdb0-f234-e1c9-044daa0180cc"], ["created_at", "2015-06-29 17:44:50.550177"], ["updated_at", "2015-06-29 17:44:50.550177"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "58f8f43c-132d-e283-ac1a-0fe965e45b3f"], ["created_at", "2015-06-29 17:44:50.554892"], ["updated_at", "2015-06-29 17:44:50.554892"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 13], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "9c3fa811-9607-5341-af59-5d64bb2a9eb3"], ["created_at", "2015-06-29 17:44:50.557494"], ["updated_at", "2015-06-29 17:44:50.557494"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "16ba7ea6-3d43-492f-54b8-28958fd16586"], ["created_at", "2015-06-29 17:44:50.561395"], ["updated_at", "2015-06-29 17:44:50.561395"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 14], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "3f9380c4-7721-da51-90f1-4f67c34e759a"], ["created_at", "2015-06-29 17:44:50.564104"], ["updated_at", "2015-06-29 17:44:50.564104"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "fe1871cb-7e56-798e-5f90-186b89c046f9"], ["created_at", "2015-06-29 17:44:50.568828"], ["updated_at", "2015-06-29 17:44:50.568828"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 15], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "e4ee0766-2722-c103-2c57-f74f3a7451a9"], ["created_at", "2015-06-29 17:44:50.571416"], ["updated_at", "2015-06-29 17:44:50.571416"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "9056487c-0c6a-929e-9151-3a2092a219a2"], ["created_at", "2015-06-29 17:44:50.575351"], ["updated_at", "2015-06-29 17:44:50.575351"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 16], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "42f757d5-4bed-7116-fcdf-fb413a80278b"], ["created_at", "2015-06-29 17:44:50.577429"], ["updated_at", "2015-06-29 17:44:50.577429"]] +  (0.5ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "66c9a8d2-39a2-6d82-03b5-4367e74a1117"], ["created_at", "2015-06-29 17:44:50.584236"], ["updated_at", "2015-06-29 17:44:50.584236"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 17], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "984fa4c9-be55-2fdf-618d-9d0b3c65f61f"], ["created_at", "2015-06-29 17:44:50.586769"], ["updated_at", "2015-06-29 17:44:50.586769"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" + RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 17]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "a98796ba-54af-d222-b930-8a51237730b6"], ["created_at", "2015-06-29 17:44:50.647006"], ["updated_at", "2015-06-29 17:44:50.647006"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 18], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "0ea01afa-6e6e-16cc-b2c4-663808f6d46f"], ["created_at", "2015-06-29 17:44:50.649984"], ["updated_at", "2015-06-29 17:44:50.649984"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +  (5.4ms) SELECT COUNT(*) FROM "rails_workflow_operations" +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "03cbe2d8-35ba-e0e4-56af-cf1190931fa5"], ["created_at", "2015-06-29 17:44:50.684648"], ["updated_at", "2015-06-29 17:44:50.684648"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessTemplatesController#index as HTML + Rendered /Users/maxim/workflow/rails_workflow/app/views/rails_workflow/process_templates/index.html.slim within layouts/rails_workflow/application (0.3ms) +Completed 200 OK in 17ms (Views: 13.9ms | ActiveRecord: 0.0ms) + RailsWorkflow::ProcessTemplate Load (0.6ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" ORDER BY "rails_workflow_process_templates"."id" DESC +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "292be87e-6088-8ccc-fc14-4e71ce0a56ed"], ["created_at", "2015-06-29 17:44:50.713943"], ["updated_at", "2015-06-29 17:44:50.713943"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessTemplatesController#show as HTML + Parameters: {"id"=>"20"} + RailsWorkflow::ProcessTemplate Load (0.5ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 20]] + Rendered /Users/maxim/workflow/rails_workflow/app/views/rails_workflow/process_templates/show.html.slim within layouts/rails_workflow/application (0.3ms) +Completed 200 OK in 9ms (Views: 2.6ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +Processing by RailsWorkflow::ProcessTemplatesController#new as HTML + Rendered /Users/maxim/workflow/rails_workflow/app/views/rails_workflow/process_templates/new.html.slim within layouts/rails_workflow/application (0.2ms) +Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "7f93aa6c-9674-4866-c279-513536d9fd17"], ["created_at", "2015-06-29 17:44:50.744045"], ["updated_at", "2015-06-29 17:44:50.744045"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessTemplatesController#edit as HTML + Parameters: {"id"=>"21"} + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 21]] + Rendered /Users/maxim/workflow/rails_workflow/app/views/rails_workflow/process_templates/edit.html.slim within layouts/rails_workflow/application (0.2ms) +Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_process_templates" +Processing by RailsWorkflow::ProcessTemplatesController#create as HTML + Parameters: {"process_template"=>{"title"=>"First Test project"}} +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "9ac9e36f-4483-4d82-00ba-e397b95f20c1"], ["created_at", "2015-06-29 17:44:50.766962"], ["updated_at", "2015-06-29 17:44:50.766962"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config/22/operation_templates +Completed 302 Found in 5ms (ActiveRecord: 0.6ms) +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_process_templates" +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +Processing by RailsWorkflow::ProcessTemplatesController#create as HTML + Parameters: {"process_template"=>{"title"=>"First Test project"}} +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "5bfd7c9e-d7ee-ff9e-2e03-04f283e94aee"], ["created_at", "2015-06-29 17:44:50.778180"], ["updated_at", "2015-06-29 17:44:50.778180"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config/23/operation_templates +Completed 302 Found in 5ms (ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +Processing by RailsWorkflow::ProcessTemplatesController#create as HTML + Parameters: {"process_template"=>{"title"=>"First Test project"}} +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "6804dbd8-27ae-438d-cfc7-b5ebd58b9199"], ["created_at", "2015-06-29 17:44:50.789316"], ["updated_at", "2015-06-29 17:44:50.789316"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config/24/operation_templates +Completed 302 Found in 5ms (ActiveRecord: 0.6ms) + RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" ORDER BY "rails_workflow_process_templates"."id" DESC LIMIT 1 +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "b0c0fda3-8606-6a19-c41f-675b2ecfec69"], ["created_at", "2015-06-29 17:44:50.805287"], ["updated_at", "2015-06-29 17:44:50.805287"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "33f615e4-7abd-bebd-d0fb-dde996957ffe"], ["created_at", "2015-06-29 17:44:50.808905"], ["updated_at", "2015-06-29 17:44:50.808905"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessTemplatesController#update as HTML + Parameters: {"process_template"=>{"title"=>"First Test project"}, "id"=>"26"} + RailsWorkflow::ProcessTemplate Load (0.5ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 26]] +Unpermitted parameter: id +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config/26 +Completed 302 Found in 6ms (ActiveRecord: 0.8ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "2cc53b9d-4761-69f4-cd98-13c84d439334"], ["created_at", "2015-06-29 17:44:50.823248"], ["updated_at", "2015-06-29 17:44:50.823248"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessTemplatesController#update as HTML + Parameters: {"process_template"=>{"title"=>"First Test project"}, "id"=>"27"} + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 27]] +Unpermitted parameter: id +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config/27 +Completed 302 Found in 6ms (ActiveRecord: 0.6ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "01b9aed5-f63d-7e1f-d7cd-7dbbd2984464"], ["created_at", "2015-06-29 17:44:50.839746"], ["updated_at", "2015-06-29 17:44:50.839746"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "3f829c8d-26cc-ccb9-106a-f5b755a3e9b9"], ["created_at", "2015-06-29 17:44:50.843715"], ["updated_at", "2015-06-29 17:44:50.843715"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.4ms) BEGIN +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "962cc697-a37b-fbeb-1802-cf5551c254d3"], ["created_at", "2015-06-29 17:44:50.849198"], ["updated_at", "2015-06-29 17:44:50.849198"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_process_templates" +Processing by RailsWorkflow::ProcessTemplatesController#destroy as HTML + Parameters: {"id"=>"30"} + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 30]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) DELETE FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 [["id", 30]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config +Completed 302 Found in 6ms (ActiveRecord: 0.9ms) +  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_process_templates" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "c72ec338-c17b-633c-e608-6eef80a1015d"], ["created_at", "2015-06-29 17:44:50.863690"], ["updated_at", "2015-06-29 17:44:50.863690"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessTemplatesController#destroy as HTML + Parameters: {"id"=>"31"} + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 31]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) DELETE FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 [["id", 31]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config +Completed 302 Found in 5ms (ActiveRecord: 0.8ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "b2f9beda-68bc-be57-c0fb-7979d15f9471"], ["created_at", "2015-06-29 17:44:50.878876"], ["updated_at", "2015-06-29 17:44:50.878876"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 32], ["created_at", "2015-06-29 17:44:50.887793"], ["updated_at", "2015-06-29 17:44:50.887793"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessesController#index as HTML +  (0.5ms) SELECT COUNT(*) FROM "rails_workflow_processes" +  (0.4ms) select status, cnt from ( + select row_number() over (partition by status), + count(*) over (partition by status) cnt, + status from rails_workflow_processes)t + where row_number = 1 + Rendered /Users/maxim/workflow/rails_workflow/app/views/rails_workflow/processes/index.html.slim within layouts/rails_workflow/application (0.3ms) +Completed 200 OK in 16ms (Views: 4.4ms | ActiveRecord: 0.9ms) + RailsWorkflow::Process Load (0.6ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" ORDER BY "rails_workflow_processes"."created_at" DESC LIMIT 30 OFFSET 0 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "e351e838-ed19-e894-198d-b9d473944347"], ["created_at", "2015-06-29 17:44:50.915607"], ["updated_at", "2015-06-29 17:44:50.915607"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 33], ["created_at", "2015-06-29 17:44:50.918002"], ["updated_at", "2015-06-29 17:44:50.918002"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessesController#show as HTML + Parameters: {"id"=>"2"} + RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 2]] + Rendered /Users/maxim/workflow/rails_workflow/app/views/rails_workflow/processes/show.html.slim within layouts/rails_workflow/application (0.3ms) +Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "c53c651a-2d5d-7030-0593-fb6de49bedb9"], ["created_at", "2015-06-29 17:44:50.934102"], ["updated_at", "2015-06-29 17:44:50.934102"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessesController#new as HTML + Rendered /Users/maxim/workflow/rails_workflow/app/views/rails_workflow/processes/new.html.slim within layouts/rails_workflow/application (0.2ms) +Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "c2dc121b-1180-9108-c115-b0e7d3b9ef86"], ["created_at", "2015-06-29 17:44:50.945052"], ["updated_at", "2015-06-29 17:44:50.945052"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 35], ["created_at", "2015-06-29 17:44:50.947207"], ["updated_at", "2015-06-29 17:44:50.947207"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessesController#edit as HTML + Parameters: {"id"=>"3"} + RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 3]] + Rendered /Users/maxim/workflow/rails_workflow/app/views/rails_workflow/processes/edit.html.slim within layouts/rails_workflow/application (0.2ms) +Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "9ee32cfc-1338-0d5e-df50-2e3cf2fdcf8d"], ["created_at", "2015-06-29 17:44:50.967388"], ["updated_at", "2015-06-29 17:44:50.967388"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_processes" +Processing by RailsWorkflow::ProcessesController#create as HTML + Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"36"}} + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 36]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 36], ["created_at", "2015-06-29 17:44:50.976225"], ["updated_at", "2015-06-29 17:44:50.976225"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:44:50.978512"], ["id", 4]] + SQL (11.8ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 4], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2015-06-29 17:44:50.989930"], ["updated_at", "2015-06-29 17:44:50.989930"]] + RailsWorkflow::Context Load (0.4ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 4], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.5ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 36]] + RailsWorkflow::Process Load (0.4ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 4]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 4]] +Redirected to http://test.host/workflow/processes/4 +Completed 302 Found in 49ms (ActiveRecord: 16.1ms) +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_processes" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "00a310f4-b599-601e-57e5-e46f3ab28793"], ["created_at", "2015-06-29 17:44:51.025685"], ["updated_at", "2015-06-29 17:44:51.025685"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessesController#create as HTML + Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"37"}} + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 37]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 37], ["created_at", "2015-06-29 17:44:51.032422"], ["updated_at", "2015-06-29 17:44:51.032422"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:44:51.034810"], ["id", 5]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2015-06-29 17:44:51.037099"], ["updated_at", "2015-06-29 17:44:51.037099"]] + RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 37]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5]] +Redirected to http://test.host/workflow/processes/5 +Completed 302 Found in 15ms (ActiveRecord: 2.9ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "33879351-9ac3-6161-e93b-6a9c4737571b"], ["created_at", "2015-06-29 17:44:51.048228"], ["updated_at", "2015-06-29 17:44:51.048228"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessesController#create as HTML + Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"38"}} + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 38]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 38], ["created_at", "2015-06-29 17:44:51.055388"], ["updated_at", "2015-06-29 17:44:51.055388"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:44:51.057473"], ["id", 6]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 6], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2015-06-29 17:44:51.060452"], ["updated_at", "2015-06-29 17:44:51.060452"]] + RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.6ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 38]] + RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 6]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 6]] +Redirected to http://test.host/workflow/processes/6 +Completed 302 Found in 18ms (ActiveRecord: 3.3ms) + RailsWorkflow::Process Load (0.4ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" ORDER BY "rails_workflow_processes"."id" DESC LIMIT 1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "00929096-97b2-5bd1-59af-76f919512f83"], ["created_at", "2015-06-29 17:44:51.077916"], ["updated_at", "2015-06-29 17:44:51.077916"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "425c7e99-0bbc-7c9a-efe2-7562beaa7bd1"], ["created_at", "2015-06-29 17:44:51.081945"], ["updated_at", "2015-06-29 17:44:51.081945"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "7bd36efe-b2e0-fa0b-21c3-c6b757d51bc1"], ["created_at", "2015-06-29 17:44:51.085951"], ["updated_at", "2015-06-29 17:44:51.085951"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 41], ["created_at", "2015-06-29 17:44:51.087868"], ["updated_at", "2015-06-29 17:44:51.087868"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "cc745792-d950-c3ab-c301-93d1911e09ba"], ["created_at", "2015-06-29 17:44:51.092091"], ["updated_at", "2015-06-29 17:44:51.092091"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 42], ["created_at", "2015-06-29 17:44:51.094685"], ["updated_at", "2015-06-29 17:44:51.094685"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessesController#update as HTML + Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"42"}, "id"=>"8"} + RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 8]] +Unpermitted parameter: id +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/processes +Completed 302 Found in 6ms (ActiveRecord: 0.7ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "37ee6d1e-0068-c051-03d6-47ae09c37d3c"], ["created_at", "2015-06-29 17:44:51.108614"], ["updated_at", "2015-06-29 17:44:51.108614"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 43], ["created_at", "2015-06-29 17:44:51.111110"], ["updated_at", "2015-06-29 17:44:51.111110"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessesController#update as HTML + Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"43"}, "id"=>"9"} + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 9]] +Unpermitted parameter: id +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/processes +Completed 302 Found in 5ms (ActiveRecord: 0.5ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "4bc4e1df-6d62-3235-8085-7a3fd4b430e8"], ["created_at", "2015-06-29 17:44:51.127354"], ["updated_at", "2015-06-29 17:44:51.127354"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 44], ["created_at", "2015-06-29 17:44:51.129825"], ["updated_at", "2015-06-29 17:44:51.129825"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "684fa993-068b-0694-f9cc-c9b0507d94c3"], ["created_at", "2015-06-29 17:44:51.135554"], ["updated_at", "2015-06-29 17:44:51.135554"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 45], ["created_at", "2015-06-29 17:44:51.137497"], ["updated_at", "2015-06-29 17:44:51.137497"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "bbf0479e-e5ae-a5c6-48ef-da597a93c6ab"], ["created_at", "2015-06-29 17:44:51.141593"], ["updated_at", "2015-06-29 17:44:51.141593"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "90848df0-5158-9920-fde0-0584b2cf8497"], ["created_at", "2015-06-29 17:44:51.145482"], ["updated_at", "2015-06-29 17:44:51.145482"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "fd933774-b780-d245-d166-7502361368c6"], ["created_at", "2015-06-29 17:44:51.149088"], ["updated_at", "2015-06-29 17:44:51.149088"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 48], ["uuid", "f0d7019e-8834-66a6-2ee1-aaacd3ef3a54"], ["created_at", "2015-06-29 17:44:51.152491"], ["updated_at", "2015-06-29 17:44:51.152491"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 48], ["dependencies", "[{\"id\":11,\"statuses\":[2]}]"], ["uuid", "54188bae-3629-350c-5adb-33151f77695d"], ["created_at", "2015-06-29 17:44:51.156587"], ["updated_at", "2015-06-29 17:44:51.156587"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 48]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 48], ["created_at", "2015-06-29 17:44:51.160522"], ["updated_at", "2015-06-29 17:44:51.160522"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:44:51.162531"], ["id", 12]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 12], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:44:51.165042"], ["updated_at", "2015-06-29 17:44:51.165042"]] + RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 12], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 48]] + SQL (0.9ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11], ["process_id", 12], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:44:51.184531"], ["updated_at", "2015-06-29 17:44:51.184531"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 1], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:44:51.187709"], ["updated_at", "2015-06-29 17:44:51.187709"]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 12]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "3fd14d1c-4cf5-e5b0-b5c1-b4bb155fd76b"], ["created_at", "2015-06-29 17:44:51.195556"], ["updated_at", "2015-06-29 17:44:51.195556"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 49], ["uuid", "029b2558-a1aa-f25c-3a4b-4d0ef1ba1dfe"], ["created_at", "2015-06-29 17:44:51.198752"], ["updated_at", "2015-06-29 17:44:51.198752"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 49], ["dependencies", "[{\"id\":13,\"statuses\":[2]}]"], ["uuid", "ac03f123-c51e-9940-19fb-9d07dbe61e7b"], ["created_at", "2015-06-29 17:44:51.201999"], ["updated_at", "2015-06-29 17:44:51.201999"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 49]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 49], ["created_at", "2015-06-29 17:44:51.205357"], ["updated_at", "2015-06-29 17:44:51.205357"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:44:51.207503"], ["id", 13]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 13], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:44:51.210290"], ["updated_at", "2015-06-29 17:44:51.210290"]] + RailsWorkflow::Context Load (0.4ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 13], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 49]] + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 13], ["process_id", 13], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:44:51.216179"], ["updated_at", "2015-06-29 17:44:51.216179"]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 2], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:44:51.218747"], ["updated_at", "2015-06-29 17:44:51.218747"]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 13]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 49]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "6966fef3-3708-e130-c1c2-f5cbf0094070"], ["created_at", "2015-06-29 17:44:51.226282"], ["updated_at", "2015-06-29 17:44:51.226282"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 50], ["uuid", "6f2b46ff-be94-fd64-fd26-e4bc482b8463"], ["created_at", "2015-06-29 17:44:51.229203"], ["updated_at", "2015-06-29 17:44:51.229203"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 50], ["dependencies", "[{\"id\":15,\"statuses\":[2]}]"], ["uuid", "6c97c5c4-6a94-8ce5-f415-8230eee0f0b8"], ["created_at", "2015-06-29 17:44:51.232966"], ["updated_at", "2015-06-29 17:44:51.232966"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 50]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 50], ["created_at", "2015-06-29 17:44:51.236355"], ["updated_at", "2015-06-29 17:44:51.236355"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:44:51.238338"], ["id", 14]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 14], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:44:51.240638"], ["updated_at", "2015-06-29 17:44:51.240638"]] + RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 14], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 50]] + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 15], ["process_id", 14], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:44:51.248131"], ["updated_at", "2015-06-29 17:44:51.248131"]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 3], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:44:51.250631"], ["updated_at", "2015-06-29 17:44:51.250631"]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 14]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 14]] + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 14]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "56f60fea-83dd-95b2-f311-afbf76149fb4"], ["created_at", "2015-06-29 17:44:51.259779"], ["updated_at", "2015-06-29 17:44:51.259779"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 51], ["uuid", "d6439296-bcc3-19d7-e363-38c71d6e26ef"], ["created_at", "2015-06-29 17:44:51.262543"], ["updated_at", "2015-06-29 17:44:51.262543"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 51], ["dependencies", "[{\"id\":17,\"statuses\":[2]}]"], ["uuid", "d031b807-d6fe-b812-ff94-473d96760dfb"], ["created_at", "2015-06-29 17:44:51.266240"], ["updated_at", "2015-06-29 17:44:51.266240"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 51]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 51], ["created_at", "2015-06-29 17:44:51.269490"], ["updated_at", "2015-06-29 17:44:51.269490"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:44:51.271265"], ["id", 15]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 15], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:44:51.273530"], ["updated_at", "2015-06-29 17:44:51.273530"]] + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 15], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 51]] + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 17], ["process_id", 15], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:44:51.278932"], ["updated_at", "2015-06-29 17:44:51.278932"]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 4], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:44:51.280717"], ["updated_at", "2015-06-29 17:44:51.280717"]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 15]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 15], ["parent_type", "RailsWorkflow::Process"]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "48910b01-ded1-45f4-a8d5-7ab3354ea082"], ["created_at", "2015-06-29 17:44:51.288182"], ["updated_at", "2015-06-29 17:44:51.288182"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 52], ["uuid", "aee3788a-3908-d5f5-4674-4d656443a206"], ["created_at", "2015-06-29 17:44:51.290959"], ["updated_at", "2015-06-29 17:44:51.290959"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 52], ["dependencies", "[{\"id\":19,\"statuses\":[2]}]"], ["uuid", "d7a90e6b-7b01-cd16-c9c7-7537ce0d3fe1"], ["created_at", "2015-06-29 17:44:51.294793"], ["updated_at", "2015-06-29 17:44:51.294793"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 52]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 52], ["created_at", "2015-06-29 17:44:51.300462"], ["updated_at", "2015-06-29 17:44:51.300462"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:44:51.302433"], ["id", 16]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 16], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:44:51.304499"], ["updated_at", "2015-06-29 17:44:51.304499"]] + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 16], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 52]] + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 19], ["process_id", 16], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:44:51.309225"], ["updated_at", "2015-06-29 17:44:51.309225"]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:44:51.310812"], ["updated_at", "2015-06-29 17:44:51.310812"]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 16]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 16]] + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5], ["parent_type", "RailsWorkflow::Operation"]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "30abcfd3-1f39-6d77-e29b-ffbeaff8a2c3"], ["created_at", "2015-06-29 17:44:51.333053"], ["updated_at", "2015-06-29 17:44:51.333053"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 53], ["uuid", "c09ebc5f-0895-5195-7448-ddaa04eaf97b"], ["created_at", "2015-06-29 17:44:51.336541"], ["updated_at", "2015-06-29 17:44:51.336541"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 53], ["dependencies", "[{\"id\":21,\"statuses\":[2]}]"], ["uuid", "54d6db08-4956-d74b-c055-d251de4b762e"], ["created_at", "2015-06-29 17:44:51.339931"], ["updated_at", "2015-06-29 17:44:51.339931"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 53]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 53], ["created_at", "2015-06-29 17:44:51.343198"], ["updated_at", "2015-06-29 17:44:51.343198"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:44:51.345326"], ["id", 17]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 17], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:44:51.348130"], ["updated_at", "2015-06-29 17:44:51.348130"]] + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 17], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 53]] + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 21], ["process_id", 17], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:44:51.353057"], ["updated_at", "2015-06-29 17:44:51.353057"]] + SQL (0.4ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:44:51.354908"], ["updated_at", "2015-06-29 17:44:51.354908"]] + RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 17]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 53]] +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 17]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.8ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:44:51.362385"], ["id", 17]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 17], ["status", 0]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:44:51.368480"], ["id", 6]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6]] +  (0.2ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "5675b173-bc89-40ad-775e-5eda39fa32b2"], ["created_at", "2015-06-29 17:44:51.379458"], ["updated_at", "2015-06-29 17:44:51.379458"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 54], ["uuid", "94bab8d3-8874-4a42-5a47-c116f7aa31a4"], ["created_at", "2015-06-29 17:44:51.382975"], ["updated_at", "2015-06-29 17:44:51.382975"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 54], ["dependencies", "[{\"id\":23,\"statuses\":[2]}]"], ["uuid", "38a7f6b2-3f53-a7aa-f1f4-82358b7334fe"], ["created_at", "2015-06-29 17:44:51.386447"], ["updated_at", "2015-06-29 17:44:51.386447"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 54]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 54], ["created_at", "2015-06-29 17:44:51.389776"], ["updated_at", "2015-06-29 17:44:51.389776"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:44:51.391572"], ["id", 18]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 18], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:44:51.393904"], ["updated_at", "2015-06-29 17:44:51.393904"]] + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 18], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 54]] + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 23], ["process_id", 18], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:44:51.399465"], ["updated_at", "2015-06-29 17:44:51.399465"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 7], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:44:51.401264"], ["updated_at", "2015-06-29 17:44:51.401264"]] + RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 18]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 54]] +  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 18]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:44:51.410503"], ["id", 18]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 18], ["status", 0]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:44:51.416553"], ["id", 7]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 7]] +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.5ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 18]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "173c171f-6357-b866-6e15-12746888b035"], ["created_at", "2015-06-29 17:44:51.426230"], ["updated_at", "2015-06-29 17:44:51.426230"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 55], ["uuid", "b841e5ff-8acb-fb5e-9167-88a4cfaf3ca1"], ["created_at", "2015-06-29 17:44:51.429834"], ["updated_at", "2015-06-29 17:44:51.429834"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 55], ["dependencies", "[{\"id\":25,\"statuses\":[2]}]"], ["uuid", "1d6e14ee-094d-3dfe-9539-79c491bb6eba"], ["created_at", "2015-06-29 17:44:51.434325"], ["updated_at", "2015-06-29 17:44:51.434325"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 55]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 55], ["created_at", "2015-06-29 17:44:51.437986"], ["updated_at", "2015-06-29 17:44:51.437986"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:44:51.440321"], ["id", 19]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 19], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:44:51.442418"], ["updated_at", "2015-06-29 17:44:51.442418"]] + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 19], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 55]] + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 25], ["process_id", 19], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:44:51.447673"], ["updated_at", "2015-06-29 17:44:51.447673"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 8], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:44:51.449448"], ["updated_at", "2015-06-29 17:44:51.449448"]] + RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 19]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 55]] +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 19]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:44:51.456916"], ["id", 19]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 19], ["status", 0]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:44:51.460111"], ["id", 8]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 8]] +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2015-06-29 17:44:51.463104"], ["updated_at", "2015-06-29 17:44:51.464418"], ["id", 8]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 19]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 55]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 55]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 25]] + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 19]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 25]] + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 8], ["parent_type", "RailsWorkflow::Operation"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 26], ["process_id", 19], ["status", 0], ["dependencies", "[{\"operation_id\":8,\"status\":2}]"], ["created_at", "2015-06-29 17:44:51.477005"], ["updated_at", "2015-06-29 17:44:51.477005"]] + SQL (0.4ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 9], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:44:51.478900"], ["updated_at", "2015-06-29 17:44:51.478900"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:44:51.485201"], ["id", 9]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 9]] +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2015-06-29 17:44:51.488695"], ["updated_at", "2015-06-29 17:44:51.489816"], ["id", 9]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 19]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 55]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 55]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 26]] + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 19]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 26]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 25]] +  (0.5ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 19], ["parent_type", "RailsWorkflow::Process"]] +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 19], ["parent_type", "RailsWorkflow::Process"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2015-06-29 17:44:51.504636"], ["id", 19]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 19]] + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 19]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2015-06-29 17:44:51.509893"], ["updated_at", "2015-06-29 17:44:51.511139"], ["id", 8]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 19]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 55]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 55]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 25]] + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 19]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 26]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 25]] + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" DESC LIMIT 1 [["process_id", 19]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2015-06-29 17:44:51.520786"], ["updated_at", "2015-06-29 17:44:51.521960"], ["id", 9]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 19]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 55]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 55]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 26]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 19]] + RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 26]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 25]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 19]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "204572b6-1470-c160-26de-996993412c98"], ["created_at", "2015-06-29 17:44:51.533287"], ["updated_at", "2015-06-29 17:44:51.533287"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 56], ["uuid", "e8fbfbfd-264e-115b-c277-2e91c755f9ee"], ["created_at", "2015-06-29 17:44:51.537072"], ["updated_at", "2015-06-29 17:44:51.537072"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 56], ["dependencies", "[{\"id\":27,\"statuses\":[2]}]"], ["uuid", "a731b4eb-50c1-0783-f69e-4c0ab5781fbf"], ["created_at", "2015-06-29 17:44:51.541280"], ["updated_at", "2015-06-29 17:44:51.541280"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 56]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 56], ["created_at", "2015-06-29 17:44:51.545236"], ["updated_at", "2015-06-29 17:44:51.545236"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:44:51.547471"], ["id", 20]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 20], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:44:51.561402"], ["updated_at", "2015-06-29 17:44:51.561402"]] + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 20], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 56]] + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 27], ["process_id", 20], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:44:51.567890"], ["updated_at", "2015-06-29 17:44:51.567890"]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 10], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:44:51.569969"], ["updated_at", "2015-06-29 17:44:51.569969"]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 20]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 56]] +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 20]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:44:51.578223"], ["id", 20]] +  (0.5ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.5ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 20], ["status", 0]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:44:51.585012"], ["id", 10]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 10]] +  (0.2ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2015-06-29 17:44:51.588261"], ["updated_at", "2015-06-29 17:44:51.589336"], ["id", 10]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 20]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 56]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 56]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 27]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 20]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 27]] + RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 10], ["parent_type", "RailsWorkflow::Operation"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 28], ["process_id", 20], ["status", 0], ["dependencies", "[{\"operation_id\":10,\"status\":2}]"], ["created_at", "2015-06-29 17:44:51.599897"], ["updated_at", "2015-06-29 17:44:51.599897"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 11], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:44:51.601634"], ["updated_at", "2015-06-29 17:44:51.601634"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:44:51.607633"], ["id", 11]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 11]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2015-06-29 17:44:51.612786"], ["updated_at", "2015-06-29 17:44:51.614012"], ["id", 11]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 20]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 56]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 56]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 28]] + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 20]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 28]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 27]] +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 20], ["parent_type", "RailsWorkflow::Process"]] +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 20], ["parent_type", "RailsWorkflow::Process"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2015-06-29 17:44:51.625604"], ["id", 20]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 20]] + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 20]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2015-06-29 17:44:51.629244"], ["updated_at", "2015-06-29 17:44:51.630450"], ["id", 10]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 20]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 56]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 56]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 27]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 20]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 28]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 27]] + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" DESC LIMIT 1 [["process_id", 20]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 6], ["completed_at", "2015-06-29 17:44:51.638924"], ["updated_at", "2015-06-29 17:44:51.640135"], ["id", 11]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 20]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 56]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 56]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 28]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 20]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 28]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 27]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 20]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "74704c79-8c45-02f4-42a5-c701b30a7262"], ["created_at", "2015-06-29 17:44:51.651775"], ["updated_at", "2015-06-29 17:44:51.651775"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 57], ["uuid", "c2f6297d-94da-c56b-0783-bd18401e7b26"], ["created_at", "2015-06-29 17:44:51.654938"], ["updated_at", "2015-06-29 17:44:51.654938"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 57], ["dependencies", "[{\"id\":29,\"statuses\":[2]}]"], ["uuid", "e1925b6f-c4d5-3ce5-9b54-d6cc549f2d9e"], ["created_at", "2015-06-29 17:44:51.658164"], ["updated_at", "2015-06-29 17:44:51.658164"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 57]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 57], ["created_at", "2015-06-29 17:44:51.661882"], ["updated_at", "2015-06-29 17:44:51.661882"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:44:51.663612"], ["id", 21]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 21], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:44:51.665611"], ["updated_at", "2015-06-29 17:44:51.665611"]] + RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 21], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 57]] + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 29], ["process_id", 21], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:44:51.671430"], ["updated_at", "2015-06-29 17:44:51.671430"]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 12], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:44:51.673354"], ["updated_at", "2015-06-29 17:44:51.673354"]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 21]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 57]] +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 21]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:44:51.680401"], ["id", 21]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 21], ["status", 0]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:44:51.684074"], ["id", 12]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 12]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2015-06-29 17:44:51.687404"], ["updated_at", "2015-06-29 17:44:51.688425"], ["id", 12]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 21]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 57]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 57]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 29]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 21]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 29]] + RailsWorkflow::Context Load (0.4ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 12], ["parent_type", "RailsWorkflow::Operation"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 30], ["process_id", 21], ["status", 0], ["dependencies", "[{\"operation_id\":12,\"status\":2}]"], ["created_at", "2015-06-29 17:44:51.700957"], ["updated_at", "2015-06-29 17:44:51.700957"]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 13], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:44:51.703153"], ["updated_at", "2015-06-29 17:44:51.703153"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:44:51.708046"], ["id", 13]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 13]] +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2015-06-29 17:44:51.710973"], ["updated_at", "2015-06-29 17:44:51.712085"], ["id", 13]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 21]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 57]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 57]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 30]] + RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 21]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 30]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 29]] +  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 21], ["parent_type", "RailsWorkflow::Process"]] +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 21], ["parent_type", "RailsWorkflow::Process"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2015-06-29 17:44:51.722600"], ["id", 21]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 21]] + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 21]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2015-06-29 17:44:51.725881"], ["updated_at", "2015-06-29 17:44:51.726926"], ["id", 12]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 21]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 57]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 57]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 29]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 21]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 30]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 29]] + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" DESC LIMIT 1 [["process_id", 21]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 5], ["completed_at", "2015-06-29 17:44:51.734931"], ["updated_at", "2015-06-29 17:44:51.736248"], ["id", 13]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 21]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 57]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 57]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 30]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 21]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 30]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 29]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 21]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "9668d60c-02f4-1618-ce47-7ddd803d02ac"], ["created_at", "2015-06-29 17:44:51.748791"], ["updated_at", "2015-06-29 17:44:51.748791"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 58], ["uuid", "0eb715ba-688a-62ba-04ae-d3234d0b10cf"], ["created_at", "2015-06-29 17:44:51.751951"], ["updated_at", "2015-06-29 17:44:51.751951"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 58], ["dependencies", "[{\"id\":31,\"statuses\":[2]}]"], ["uuid", "ba71a629-3e93-ee00-cc06-0f2a6b629015"], ["created_at", "2015-06-29 17:44:51.755912"], ["updated_at", "2015-06-29 17:44:51.755912"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 58]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 58], ["created_at", "2015-06-29 17:44:51.759469"], ["updated_at", "2015-06-29 17:44:51.759469"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:44:51.761342"], ["id", 22]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 22], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:44:51.763359"], ["updated_at", "2015-06-29 17:44:51.763359"]] + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 22], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 58]] + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 31], ["process_id", 22], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:44:51.768982"], ["updated_at", "2015-06-29 17:44:51.768982"]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 14], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:44:51.770941"], ["updated_at", "2015-06-29 17:44:51.770941"]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 22]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 58]] +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 22]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:44:51.777992"], ["id", 22]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.5ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 22], ["status", 0]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:44:51.783729"], ["id", 14]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 14]] +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2015-06-29 17:44:51.787905"], ["updated_at", "2015-06-29 17:44:51.788899"], ["id", 14]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 22]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 58]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 58]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 31]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 22]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 31]] +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 22], ["parent_type", "RailsWorkflow::Process"]] +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 22], ["parent_type", "RailsWorkflow::Process"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2015-06-29 17:44:51.802048"], ["id", 22]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 22]] + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 22]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2015-06-29 17:44:51.805986"], ["updated_at", "2015-06-29 17:44:51.807088"], ["id", 14]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 22]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 58]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 58]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 31]] + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 22]] + RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 31]] +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 22]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "7a280384-dae3-54b0-b89e-35f618da361d"], ["created_at", "2015-06-29 17:44:51.819300"], ["updated_at", "2015-06-29 17:44:51.819300"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 59], ["uuid", "24559d86-0c6a-c70b-1c89-986c9a80f15a"], ["created_at", "2015-06-29 17:44:51.822622"], ["updated_at", "2015-06-29 17:44:51.822622"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 59], ["dependencies", "[{\"id\":33,\"statuses\":[2]}]"], ["uuid", "a1c96b90-c9e3-a527-45c9-48a8c3cf18e9"], ["created_at", "2015-06-29 17:44:51.826152"], ["updated_at", "2015-06-29 17:44:51.826152"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 59]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 59], ["created_at", "2015-06-29 17:44:51.829604"], ["updated_at", "2015-06-29 17:44:51.829604"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:44:51.831672"], ["id", 23]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 23], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:44:51.833928"], ["updated_at", "2015-06-29 17:44:51.833928"]] + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 23], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 59]] + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 33], ["process_id", 23], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:44:51.841354"], ["updated_at", "2015-06-29 17:44:51.841354"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 15], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:44:51.843641"], ["updated_at", "2015-06-29 17:44:51.843641"]] + RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 23]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 59]] +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 23]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:44:51.851217"], ["id", 23]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 23], ["status", 0]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:44:51.855274"], ["id", 15]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 15]] +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2015-06-29 17:44:51.858539"], ["updated_at", "2015-06-29 17:44:51.859469"], ["id", 15]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 23]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 59]] + RailsWorkflow::OperationTemplate Load (0.5ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 59]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 33]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 23]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 33]] + RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 15], ["parent_type", "RailsWorkflow::Operation"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 34], ["process_id", 23], ["status", 0], ["dependencies", "[{\"operation_id\":15,\"status\":2}]"], ["created_at", "2015-06-29 17:44:51.873236"], ["updated_at", "2015-06-29 17:44:51.873236"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 16], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:44:51.875069"], ["updated_at", "2015-06-29 17:44:51.875069"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:44:51.879678"], ["id", 16]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 16]] +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2015-06-29 17:44:51.883124"], ["updated_at", "2015-06-29 17:44:51.884307"], ["id", 16]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 23]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 59]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 59]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 34]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 23]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 34]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 33]] +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 23], ["parent_type", "RailsWorkflow::Process"]] +  (0.1ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 23], ["parent_type", "RailsWorkflow::Process"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2015-06-29 17:44:51.894584"], ["id", 23]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 23]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 23]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2015-06-29 17:44:51.898357"], ["updated_at", "2015-06-29 17:44:51.899522"], ["id", 15]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 23]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 59]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 59]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 33]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 23]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 34]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 33]] +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 23]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:44:51.914617"], ["updated_at", "2015-06-29 17:44:51.914617"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 4], ["created_at", "2015-06-29 17:44:51.917128"], ["updated_at", "2015-06-29 17:44:51.917128"]] + SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 17], ["updated_at", "2015-06-29 17:44:51.919043"], ["id", 32]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "7c51c2fa-7a42-7986-4d6e-635b66d14418"], ["created_at", "2015-06-29 17:44:51.922945"], ["updated_at", "2015-06-29 17:44:51.922945"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 60], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "1230a481-7a7b-4103-924b-afba91508ffe"], ["created_at", "2015-06-29 17:44:51.925498"], ["updated_at", "2015-06-29 17:44:51.925498"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:44:51.931325"], ["updated_at", "2015-06-29 17:44:51.931325"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:44:51.933563"], ["updated_at", "2015-06-29 17:44:51.933563"]] + SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 24], ["updated_at", "2015-06-29 17:44:51.935163"], ["id", 33]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 35], ["process_id", 24], ["status", 0], ["dependencies", "[{\"operation_id\":17,\"status\":4}]"], ["created_at", "2015-06-29 17:44:51.947385"], ["updated_at", "2015-06-29 17:44:51.947385"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 18], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:44:51.950167"], ["updated_at", "2015-06-29 17:44:51.950167"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"int\":1,\"date\":\"2015-06-29\",\"ary\":[1,2,3],\"msg\":\"Some string\"}"], ["created_at", "2015-06-29 17:44:51.958227"], ["updated_at", "2015-06-29 17:44:51.958227"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:44:51.965786"], ["updated_at", "2015-06-29 17:44:51.965786"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:44:51.968946"], ["updated_at", "2015-06-29 17:44:51.968946"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:44:51.971239"], ["updated_at", "2015-06-29 17:44:51.971239"]] + SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 25], ["updated_at", "2015-06-29 17:44:51.972905"], ["id", 36]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"resource\":{\"id\":19,\"class\":\"RailsWorkflow::Operation\"},\"process\":{\"id\":25,\"class\":\"RailsWorkflow::Process\"}}"], ["created_at", "2015-06-29 17:44:51.975684"], ["updated_at", "2015-06-29 17:44:51.975684"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:44:51.982416"], ["updated_at", "2015-06-29 17:44:51.982416"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:44:51.985506"], ["updated_at", "2015-06-29 17:44:51.985506"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:44:51.987727"], ["updated_at", "2015-06-29 17:44:51.987727"]] + SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 26], ["updated_at", "2015-06-29 17:44:51.989191"], ["id", 38]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"resources\":[{\"id\":20,\"class\":\"RailsWorkflow::Operation\"},{\"id\":26,\"class\":\"RailsWorkflow::Process\"}]}"], ["created_at", "2015-06-29 17:44:51.991638"], ["updated_at", "2015-06-29 17:44:51.991638"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:44:51.997077"], ["updated_at", "2015-06-29 17:44:51.997077"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 21], ["parent_type", "RailsWorkflow::Operation"], ["body", "{\"int\":1,\"date\":\"2015-06-29\",\"ary\":[1,2,3],\"msg\":\"Some string\"}"], ["created_at", "2015-06-29 17:44:52.000759"], ["updated_at", "2015-06-29 17:44:52.000759"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."id" = $1 LIMIT 1 [["id", 40]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:44:52.007454"], ["updated_at", "2015-06-29 17:44:52.007454"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:44:52.010317"], ["updated_at", "2015-06-29 17:44:52.010317"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:44:52.012604"], ["updated_at", "2015-06-29 17:44:52.012604"]] + SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 27], ["updated_at", "2015-06-29 17:44:52.016031"], ["id", 41]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 22], ["parent_type", "RailsWorkflow::Operation"], ["body", "{\"resource\":{\"id\":22,\"class\":\"RailsWorkflow::Operation\"},\"process\":{\"id\":27,\"class\":\"RailsWorkflow::Process\"}}"], ["created_at", "2015-06-29 17:44:52.019542"], ["updated_at", "2015-06-29 17:44:52.019542"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."id" = $1 LIMIT 1 [["id", 42]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 22]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 27]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:44:52.027237"], ["updated_at", "2015-06-29 17:44:52.027237"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:44:52.030064"], ["updated_at", "2015-06-29 17:44:52.030064"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:44:52.032396"], ["updated_at", "2015-06-29 17:44:52.032396"]] + SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 28], ["updated_at", "2015-06-29 17:44:52.034127"], ["id", 43]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"resources\":[{\"id\":23,\"class\":\"RailsWorkflow::Operation\"},{\"id\":28,\"class\":\"RailsWorkflow::Process\"}]}"], ["created_at", "2015-06-29 17:44:52.036852"], ["updated_at", "2015-06-29 17:44:52.036852"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."id" = $1 LIMIT 1 [["id", 44]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 23]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 28]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "c07cbfc9-3491-a2be-fbc7-9874937da8b9"], ["created_at", "2015-06-29 17:44:52.046323"], ["updated_at", "2015-06-29 17:44:52.046323"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 61], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "a9d54edb-fee3-3150-aade-3347c997cbc2"], ["created_at", "2015-06-29 17:44:52.049927"], ["updated_at", "2015-06-29 17:44:52.049927"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:44:52.053434"], ["updated_at", "2015-06-29 17:44:52.053434"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:44:52.055847"], ["updated_at", "2015-06-29 17:44:52.055847"]] + SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 29], ["updated_at", "2015-06-29 17:44:52.057319"], ["id", 45]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 36], ["process_id", 29], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:44:52.062214"], ["updated_at", "2015-06-29 17:44:52.062214"]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 24], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:44:52.065906"], ["updated_at", "2015-06-29 17:44:52.065906"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "b026f394-4be2-6660-dada-ea9ac8704342"], ["created_at", "2015-06-29 17:44:52.072413"], ["updated_at", "2015-06-29 17:44:52.072413"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 62], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "8301e761-5c35-d52b-4699-57313b4b6339"], ["created_at", "2015-06-29 17:44:52.075402"], ["updated_at", "2015-06-29 17:44:52.075402"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:44:52.078706"], ["updated_at", "2015-06-29 17:44:52.078706"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:44:52.081309"], ["updated_at", "2015-06-29 17:44:52.081309"]] + SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 30], ["updated_at", "2015-06-29 17:44:52.082799"], ["id", 47]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 37], ["process_id", 30], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:44:52.087386"], ["updated_at", "2015-06-29 17:44:52.087386"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 25], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:44:52.090213"], ["updated_at", "2015-06-29 17:44:52.090213"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "4792913f-2c96-83df-d1cd-01381ec4170b"], ["created_at", "2015-06-29 17:44:52.096391"], ["updated_at", "2015-06-29 17:44:52.096391"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 63], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "3acd725d-9fce-96a8-7f69-3b8130b74866"], ["created_at", "2015-06-29 17:44:52.099064"], ["updated_at", "2015-06-29 17:44:52.099064"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:44:52.102374"], ["updated_at", "2015-06-29 17:44:52.102374"]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:44:52.105411"], ["updated_at", "2015-06-29 17:44:52.105411"]] + SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 31], ["updated_at", "2015-06-29 17:44:52.107404"], ["id", 49]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 38], ["process_id", 31], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:44:52.111991"], ["updated_at", "2015-06-29 17:44:52.111991"]] + SQL (0.4ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 26], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:44:52.115449"], ["updated_at", "2015-06-29 17:44:52.115449"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "0b21d5be-dbf7-f4de-eab1-9f56de705641"], ["created_at", "2015-06-29 17:44:52.122526"], ["updated_at", "2015-06-29 17:44:52.122526"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 64], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "77691d7f-91b0-9d5a-b837-e3121a886abe"], ["created_at", "2015-06-29 17:44:52.125109"], ["updated_at", "2015-06-29 17:44:52.125109"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:44:52.127907"], ["updated_at", "2015-06-29 17:44:52.127907"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:44:52.130317"], ["updated_at", "2015-06-29 17:44:52.130317"]] + SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 32], ["updated_at", "2015-06-29 17:44:52.131777"], ["id", 51]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 39], ["process_id", 32], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:44:52.136717"], ["updated_at", "2015-06-29 17:44:52.136717"]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 27], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:44:52.138926"], ["updated_at", "2015-06-29 17:44:52.138926"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "d063f67b-d91f-f679-13ae-039d90b73004"], ["created_at", "2015-06-29 17:44:52.145636"], ["updated_at", "2015-06-29 17:44:52.145636"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 65], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "26d74b8e-d09f-318d-02c8-4cacb71e7e4e"], ["created_at", "2015-06-29 17:44:52.148723"], ["updated_at", "2015-06-29 17:44:52.148723"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:44:52.151308"], ["updated_at", "2015-06-29 17:44:52.151308"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:44:52.153340"], ["updated_at", "2015-06-29 17:44:52.153340"]] + SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 33], ["updated_at", "2015-06-29 17:44:52.155382"], ["id", 53]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 40], ["process_id", 33], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:44:52.160402"], ["updated_at", "2015-06-29 17:44:52.160402"]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 28], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:44:52.162256"], ["updated_at", "2015-06-29 17:44:52.162256"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "8c4b690a-5c56-d453-3614-f8e2a3be7809"], ["created_at", "2015-06-29 17:44:52.170487"], ["updated_at", "2015-06-29 17:44:52.170487"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 66], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "0879d323-4ea1-9993-ba5b-71cdbfb10730"], ["created_at", "2015-06-29 17:44:52.173559"], ["updated_at", "2015-06-29 17:44:52.173559"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:44:52.176472"], ["updated_at", "2015-06-29 17:44:52.176472"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:44:52.178652"], ["updated_at", "2015-06-29 17:44:52.178652"]] + SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 34], ["updated_at", "2015-06-29 17:44:52.180443"], ["id", 55]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 41], ["process_id", 34], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:44:52.184667"], ["updated_at", "2015-06-29 17:44:52.184667"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 29], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:44:52.186293"], ["updated_at", "2015-06-29 17:44:52.186293"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "e7b0f994-cd30-9213-1587-983dc7567e3f"], ["created_at", "2015-06-29 17:44:52.191710"], ["updated_at", "2015-06-29 17:44:52.191710"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "aae2d9d4-e7a0-aa11-d591-ee01017d239c"], ["created_at", "2015-06-29 17:44:52.193994"], ["updated_at", "2015-06-29 17:44:52.193994"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "child_process_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 67], ["child_process_id", 68], ["uuid", "e3341fd2-f2cd-365f-ef98-2d23cf408d2f"], ["created_at", "2015-06-29 17:44:52.196439"], ["updated_at", "2015-06-29 17:44:52.196439"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:44:52.199172"], ["updated_at", "2015-06-29 17:44:52.199172"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:44:52.201265"], ["updated_at", "2015-06-29 17:44:52.201265"]] + SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 35], ["updated_at", "2015-06-29 17:44:52.203091"], ["id", 57]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "47b2bab1-b45d-e5d5-4ac6-e9a892e9d529"], ["created_at", "2015-06-29 17:44:52.206777"], ["updated_at", "2015-06-29 17:44:52.206777"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 69], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "b9bb21d3-3ac7-79e4-3398-94be4d17c10a"], ["created_at", "2015-06-29 17:44:52.209634"], ["updated_at", "2015-06-29 17:44:52.209634"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 43], ["process_id", 35], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:44:52.214826"], ["updated_at", "2015-06-29 17:44:52.214826"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 30], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:44:52.217878"], ["updated_at", "2015-06-29 17:44:52.217878"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 42], ["process_id", 35], ["status", 0], ["dependencies", "[{\"operation_id\":30,\"status\":0}]"], ["created_at", "2015-06-29 17:44:52.222567"], ["updated_at", "2015-06-29 17:44:52.222567"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 31], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:44:52.224262"], ["updated_at", "2015-06-29 17:44:52.224262"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 68]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 68], ["created_at", "2015-06-29 17:44:52.227527"], ["updated_at", "2015-06-29 17:44:52.227527"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:44:52.229405"], ["id", 36]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 36], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:44:52.231451"], ["updated_at", "2015-06-29 17:44:52.231451"]] + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 36], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 68]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 36]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "8e721a1c-7f6c-d90b-1680-f05b03efc179"], ["created_at", "2015-06-29 17:44:52.240130"], ["updated_at", "2015-06-29 17:44:52.240130"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 70], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "577234e5-d11c-e402-076c-88fb5680c646"], ["created_at", "2015-06-29 17:44:52.242736"], ["updated_at", "2015-06-29 17:44:52.242736"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:44:52.245339"], ["updated_at", "2015-06-29 17:44:52.245339"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:44:52.247902"], ["updated_at", "2015-06-29 17:44:52.247902"]] + SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 37], ["updated_at", "2015-06-29 17:44:52.249417"], ["id", 61]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 44], ["process_id", 37], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:44:52.254057"], ["updated_at", "2015-06-29 17:44:52.254057"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 32], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:44:52.255934"], ["updated_at", "2015-06-29 17:44:52.255934"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 4], ["created_at", "2015-06-29 17:44:52.262644"], ["updated_at", "2015-06-29 17:44:52.262644"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "5aa1151d-1eaf-85b5-7702-9be91030a6b4"], ["created_at", "2015-06-29 17:44:52.265813"], ["updated_at", "2015-06-29 17:44:52.265813"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 71], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "62bf13ce-2169-793f-d7ab-372c0ff30170"], ["created_at", "2015-06-29 17:44:52.267979"], ["updated_at", "2015-06-29 17:44:52.267979"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:44:52.310876"], ["updated_at", "2015-06-29 17:44:52.310876"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:44:52.313183"], ["updated_at", "2015-06-29 17:44:52.313183"]] + SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 38], ["updated_at", "2015-06-29 17:44:52.314956"], ["id", 63]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 33], ["parent_type", "RailsWorkflow::Operation"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 45], ["process_id", 38], ["status", 0], ["dependencies", "[{\"operation_id\":33,\"status\":4}]"], ["created_at", "2015-06-29 17:44:52.320422"], ["updated_at", "2015-06-29 17:44:52.320422"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 34], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:44:52.322568"], ["updated_at", "2015-06-29 17:44:52.322568"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "c353d835-793a-07a4-2d1b-82a27573a198"], ["created_at", "2015-06-29 17:44:52.331180"], ["updated_at", "2015-06-29 17:44:52.331180"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 72], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "ed258bdd-3bc4-31dc-5290-828fe817f379"], ["created_at", "2015-06-29 17:44:52.334915"], ["updated_at", "2015-06-29 17:44:52.334915"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:44:52.339839"], ["updated_at", "2015-06-29 17:44:52.339839"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:44:52.341944"], ["updated_at", "2015-06-29 17:44:52.341944"]] + SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 39], ["updated_at", "2015-06-29 17:44:52.343211"], ["id", 65]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 46], ["process_id", 39], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:44:52.348032"], ["updated_at", "2015-06-29 17:44:52.348032"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 35], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:44:52.349933"], ["updated_at", "2015-06-29 17:44:52.349933"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:44:52.354482"], ["updated_at", "2015-06-29 17:44:52.354482"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 + SQL (18.9ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$VBWeK8E9xNToWng6FK6/sejGUH/up477dV3WQ6SXJGJvVGBV.Bx56"], ["created_at", "2015-06-29 17:44:52.378773"], ["updated_at", "2015-06-29 17:44:52.378773"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1], ["assignment_type", "User"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2015-06-29 17:44:52.402232"], ["updated_at", "2015-06-29 17:44:52.405052"], ["id", 36]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:44:52.410371"], ["updated_at", "2015-06-29 17:44:52.410371"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$aMHK0WUtJZ5Xht0pkpv79uhHrwWTCi408rhoXyD/F8dSnvvgmE8aG"], ["created_at", "2015-06-29 17:44:52.416827"], ["updated_at", "2015-06-29 17:44:52.416827"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 2], ["assignment_type", "User"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 2], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2015-06-29 17:44:52.419313"], ["updated_at", "2015-06-29 17:44:52.420915"], ["id", 37]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:44:52.423455"], ["updated_at", "2015-06-29 17:44:52.423455"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 2], ["assignment_type", "User"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 2], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2015-06-29 17:44:52.425241"], ["updated_at", "2015-06-29 17:44:52.427062"], ["id", 38]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 37]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:44:52.432332"], ["updated_at", "2015-06-29 17:44:52.432332"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$4uYRdkbHiNnWoeHo4NKUWuczNWrbV0BdhuAlrbwlT9X7p/fdusVX2"], ["created_at", "2015-06-29 17:44:52.437306"], ["updated_at", "2015-06-29 17:44:52.437306"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 3], ["assignment_type", "User"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 3], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2015-06-29 17:44:52.439603"], ["updated_at", "2015-06-29 17:44:52.441032"], ["id", 39]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "updated_at" = $4 WHERE "rails_workflow_operations"."id" = $5 [["assignment_id", nil], ["assignment_type", nil], ["is_active", "f"], ["updated_at", "2015-06-29 17:44:52.443278"], ["id", 39]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:44:52.447867"], ["updated_at", "2015-06-29 17:44:52.447867"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$P7Vgxoy/sWQn4bPXZz6y2ebe2XjP8GPjdThiBI5Vp.Z9er9t99vUG"], ["created_at", "2015-06-29 17:44:52.454896"], ["updated_at", "2015-06-29 17:44:52.454896"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 4], ["assignment_type", "User"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 4], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2015-06-29 17:44:52.456997"], ["updated_at", "2015-06-29 17:44:52.458650"], ["id", 40]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'other@user.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "other@user.com"], ["encrypted_password", "$2a$04$H0cfacBHA6GyoDVyX/O9BOlifSK6JjWJkGSq9ODxdYOt31ZVSh9fi"], ["created_at", "2015-06-29 17:44:52.464457"], ["updated_at", "2015-06-29 17:44:52.464457"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 40]] + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 4]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:44:52.471453"], ["updated_at", "2015-06-29 17:44:52.471453"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$BBe//vDgJ/7xnfhbJimAKOusBsRIOmVwQ9CbftdaF/mdH.ut2Xff6"], ["created_at", "2015-06-29 17:44:52.476796"], ["updated_at", "2015-06-29 17:44:52.476796"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 6], ["assignment_type", "User"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 6], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2015-06-29 17:44:52.478795"], ["updated_at", "2015-06-29 17:44:52.480260"], ["id", 41]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'other@user.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "other@user.com"], ["encrypted_password", "$2a$04$8NV29JfgCSC/i/TW2Hm3zunIr1WvuQ54QWhRkAXSLG/7v2tlxtsE6"], ["created_at", "2015-06-29 17:44:52.485962"], ["updated_at", "2015-06-29 17:44:52.485962"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:44:52.490021"], ["updated_at", "2015-06-29 17:44:52.490021"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$76YtxU0Esb.NNGCERHDZ/ewgOjZoXnonTSBqJTTz1xUn3Q5/rGEw."], ["created_at", "2015-06-29 17:44:52.495136"], ["updated_at", "2015-06-29 17:44:52.495136"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + SQL (0.5ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 8], ["assignment_type", "User"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 8], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2015-06-29 17:44:52.497041"], ["updated_at", "2015-06-29 17:44:52.500417"], ["id", 42]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'other@user.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "other@user.com"], ["encrypted_password", "$2a$04$tEfPSsO5RyJLfpaGEoSWE.RveeFz.tQIOvVmPHFFrxYSMr.6XB/Gq"], ["created_at", "2015-06-29 17:44:52.505586"], ["updated_at", "2015-06-29 17:44:52.505586"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "dfebe951-0685-9500-9ca6-8a6210a9536d"], ["created_at", "2015-06-29 17:44:52.510483"], ["updated_at", "2015-06-29 17:44:52.510483"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "role", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 73], ["role", "admin"], ["uuid", "844fb27f-03c3-8f45-b890-c020a757256d"], ["created_at", "2015-06-29 17:44:52.512878"], ["updated_at", "2015-06-29 17:44:52.512878"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "e38364d5-4cbf-9f26-1569-69d66ec6ae83"], ["created_at", "2015-06-29 17:44:52.516399"], ["updated_at", "2015-06-29 17:44:52.516399"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "group", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 74], ["group", "some_group"], ["uuid", "3b5485d7-2c24-d1e0-6043-d111d185da6d"], ["created_at", "2015-06-29 17:44:52.518547"], ["updated_at", "2015-06-29 17:44:52.518547"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Test Operation"], ["status", 3], ["template_id", 48], ["created_at", "2015-06-29 17:44:52.522376"], ["updated_at", "2015-06-29 17:44:52.522376"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Test Operation"], ["status", 3], ["template_id", 47], ["created_at", "2015-06-29 17:44:52.525581"], ["updated_at", "2015-06-29 17:44:52.525581"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$z/vtOjBj0abxOwCNSR8A6O0wDATefeVYlbrkp5yRMkTxzCoYmg6YC"], ["role", "admin"], ["created_at", "2015-06-29 17:44:52.531329"], ["updated_at", "2015-06-29 17:44:52.531329"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.7ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" INNER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."id" = "rails_workflow_operations"."template_id" WHERE "rails_workflow_operations"."status" = 3 AND "rails_workflow_operations"."assignment_id" IS NULL AND (rails_workflow_operation_templates.role = 'admin') +  (0.2ms) SAVEPOINT active_record_1 + User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'fake@email.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "fake@email.com"], ["encrypted_password", "$2a$04$Ktavb1dPZVzw9VykWkG7Mu6PWl3slFrCu7tn4P5gm3vZSLtPKFonW"], ["role", "fake"], ["created_at", "2015-06-29 17:44:52.542047"], ["updated_at", "2015-06-29 17:44:52.542047"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.5ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" INNER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."id" = "rails_workflow_operations"."template_id" WHERE "rails_workflow_operations"."status" = 3 AND "rails_workflow_operations"."assignment_id" IS NULL AND (rails_workflow_operation_templates.role = 'fake') + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 10], ["assignment_type", "User"]] +  (0.4ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 10], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2015-06-29 17:44:52.546304"], ["updated_at", "2015-06-29 17:44:52.549384"], ["id", 44]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."assignment_id" IS NULL +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:44:52.555863"], ["updated_at", "2015-06-29 17:44:52.555863"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:44:52.558224"], ["updated_at", "2015-06-29 17:44:52.558224"]] + SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 45], ["updated_at", "2015-06-29 17:44:52.559641"], ["id", 67]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 3], ["updated_at", "2015-06-29 17:44:52.561957"], ["id", 45]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:44:52.567254"], ["updated_at", "2015-06-29 17:44:52.567254"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:44:52.569887"], ["updated_at", "2015-06-29 17:44:52.569887"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:44:52.571903"], ["updated_at", "2015-06-29 17:44:52.571903"]] + SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 40], ["updated_at", "2015-06-29 17:44:52.573407"], ["id", 68]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operations" SET "child_process_id" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["child_process_id", 40], ["updated_at", "2015-06-29 17:44:52.575612"], ["id", 46]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:44:52.578093"], ["id", 46]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 46]] +  (0.1ms) SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 40]] + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:44:52.582631"], ["id", 40]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 40], ["status", 0]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 40]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("status", "completed_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["status", 2], ["completed_at", "2015-06-29 17:44:52.590626"], ["created_at", "2015-06-29 17:44:52.591567"], ["updated_at", "2015-06-29 17:44:52.591567"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "rails_workflow_operations" ("status", "completed_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["status", 6], ["completed_at", "2015-06-29 17:44:52.596043"], ["created_at", "2015-06-29 17:44:52.597148"], ["updated_at", "2015-06-29 17:44:52.597148"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("status", "completed_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["status", 5], ["completed_at", "2015-06-29 17:44:52.603957"], ["created_at", "2015-06-29 17:44:52.604676"], ["updated_at", "2015-06-29 17:44:52.604676"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "803d77d1-e07a-4198-2554-fb8391e4aa99"], ["created_at", "2015-06-29 17:44:52.609112"], ["updated_at", "2015-06-29 17:44:52.609112"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::CustomOperationTemplate"], ["title", "First Test project"], ["process_template_id", 75], ["uuid", "b5fd7727-1e9d-d49c-ce33-cd185b42e977"], ["created_at", "2015-06-29 17:44:52.620295"], ["updated_at", "2015-06-29 17:44:52.620295"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "8975b75f-c8ad-9698-bd9c-06b6de2bd7ba"], ["created_at", "2015-06-29 17:44:52.625885"], ["updated_at", "2015-06-29 17:44:52.625885"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 76], ["uuid", "f04a772a-e158-f3fe-f21e-f82c95267e08"], ["created_at", "2015-06-29 17:44:52.628933"], ["updated_at", "2015-06-29 17:44:52.628933"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 76], ["dependencies", "[{\"id\":50,\"statuses\":[2]}]"], ["uuid", "16e22d92-74a8-28e4-4c0e-a147239490a7"], ["created_at", "2015-06-29 17:44:52.632009"], ["updated_at", "2015-06-29 17:44:52.632009"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."dependencies" IS NULL +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "process_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Process Template"], ["process_class", "RailsWorkflow::TestProcess"], ["uuid", "f14571cc-8a50-7a1e-eb32-f5fe14f912c9"], ["created_at", "2015-06-29 17:44:52.638305"], ["updated_at", "2015-06-29 17:44:52.638305"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("type", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "RailsWorkflow::TestProcess"], ["template_id", 77], ["created_at", "2015-06-29 17:44:52.644584"], ["updated_at", "2015-06-29 17:44:52.644584"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:44:52.647045"], ["id", 41]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 41], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2015-06-29 17:44:52.650935"], ["updated_at", "2015-06-29 17:44:52.650935"]] + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 41], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 77]] + RailsWorkflow::TestProcess Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."type" IN ('RailsWorkflow::TestProcess') AND "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 41]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 77]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN + RailsWorkflow::ProcessTemplate Load (0.5ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2015-06-29 17:44:52.667654"], ["updated_at", "2015-06-29 17:44:52.667654"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2015-06-29 17:44:52.670973"], ["id", 78]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 78]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 78], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 78], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2015-06-29 17:44:52.676940"], ["updated_at", "2015-06-29 17:44:52.676940"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:44:52.681206"], ["id", 52]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 78], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 78], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2015-06-29 17:44:52.685524"], ["updated_at", "2015-06-29 17:44:52.685524"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:44:52.689688"], ["id", 53]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 78], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 78], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2015-06-29 17:44:52.693885"], ["updated_at", "2015-06-29 17:44:52.693885"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"9ee9a27e-0790-0d45-9534-a6469e5b9ce9\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:44:52.701098"], ["id", 54]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":53}]"], ["updated_at", "2015-06-29 17:44:52.708255"], ["id", 53]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":54}]"], ["updated_at", "2015-06-29 17:44:52.711942"], ["id", 54]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2015-06-29 17:44:52.719363"], ["updated_at", "2015-06-29 17:44:52.719363"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2015-06-29 17:44:52.721664"], ["id", 79]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 79]] + RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 79], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 79], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2015-06-29 17:44:52.727166"], ["updated_at", "2015-06-29 17:44:52.727166"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:44:52.731169"], ["id", 55]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 79], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 79], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2015-06-29 17:44:52.735064"], ["updated_at", "2015-06-29 17:44:52.735064"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:44:52.739165"], ["id", 56]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 79], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 79], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2015-06-29 17:44:52.743638"], ["updated_at", "2015-06-29 17:44:52.743638"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"9ee9a27e-0790-0d45-9534-a6469e5b9ce9\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:44:52.748251"], ["id", 57]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":56}]"], ["updated_at", "2015-06-29 17:44:52.752981"], ["id", 56]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":57}]"], ["updated_at", "2015-06-29 17:44:52.757037"], ["id", 57]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_process_templates"."id" = $3 [["title", "Some new name"], ["updated_at", "2015-06-29 17:44:52.760591"], ["id", 79]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.6ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_process_templates"."id" = $3 [["title", "Test Process"], ["updated_at", "2015-06-29 17:44:52.766886"], ["id", 79]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 79]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 79], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]] +  (0.2ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 79], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["updated_at", "2015-06-29 17:44:52.778686"], ["id", 56]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 79], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"9ee9a27e-0790-0d45-9534-a6469e5b9ce9\"}]"], ["updated_at", "2015-06-29 17:44:52.785830"], ["id", 57]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":56}]"], ["updated_at", "2015-06-29 17:44:52.790816"], ["id", 56]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":57}]"], ["updated_at", "2015-06-29 17:44:52.794363"], ["id", 57]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2015-06-29 17:44:52.801285"], ["updated_at", "2015-06-29 17:44:52.801285"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2015-06-29 17:44:52.803653"], ["id", 80]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 80]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 80], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 80], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2015-06-29 17:44:52.807833"], ["updated_at", "2015-06-29 17:44:52.807833"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:44:52.811927"], ["id", 58]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 80], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 80], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2015-06-29 17:44:52.816513"], ["updated_at", "2015-06-29 17:44:52.816513"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:44:52.821525"], ["id", 59]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 80], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 80], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2015-06-29 17:44:52.825886"], ["updated_at", "2015-06-29 17:44:52.825886"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"9ee9a27e-0790-0d45-9534-a6469e5b9ce9\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:44:52.831330"], ["id", 60]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":59}]"], ["updated_at", "2015-06-29 17:44:52.837498"], ["id", 59]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":60}]"], ["updated_at", "2015-06-29 17:44:52.841320"], ["id", 60]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 80]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN + RailsWorkflow::ProcessTemplate Load (0.6ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2015-06-29 17:44:52.851209"], ["updated_at", "2015-06-29 17:44:52.851209"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2015-06-29 17:44:52.853583"], ["id", 81]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 81]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 81], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 81], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2015-06-29 17:44:52.858142"], ["updated_at", "2015-06-29 17:44:52.858142"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:44:52.861831"], ["id", 61]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 81], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 81], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2015-06-29 17:44:52.865556"], ["updated_at", "2015-06-29 17:44:52.865556"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:44:52.870970"], ["id", 62]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 81], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 81], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2015-06-29 17:44:52.875082"], ["updated_at", "2015-06-29 17:44:52.875082"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"9ee9a27e-0790-0d45-9534-a6469e5b9ce9\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:44:52.879601"], ["id", 63]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":62}]"], ["updated_at", "2015-06-29 17:44:52.884105"], ["id", 62]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":63}]"], ["updated_at", "2015-06-29 17:44:52.887561"], ["id", 63]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 81]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["title", "Some new operation name"], ["updated_at", "2015-06-29 17:44:52.893156"], ["id", 61]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.6ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 81]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 81], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["title", "Default Operation 2"], ["updated_at", "2015-06-29 17:44:52.904520"], ["id", 61]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 81], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["updated_at", "2015-06-29 17:44:52.910577"], ["id", 62]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 81], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"9ee9a27e-0790-0d45-9534-a6469e5b9ce9\"}]"], ["updated_at", "2015-06-29 17:44:52.917491"], ["id", 63]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":62}]"], ["updated_at", "2015-06-29 17:44:52.921803"], ["id", 62]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":63}]"], ["updated_at", "2015-06-29 17:44:52.925175"], ["id", 63]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 61]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2015-06-29 17:44:52.932024"], ["updated_at", "2015-06-29 17:44:52.932024"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2015-06-29 17:44:52.934371"], ["id", 82]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 82]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 82], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 82], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2015-06-29 17:44:52.938870"], ["updated_at", "2015-06-29 17:44:52.938870"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:44:52.942825"], ["id", 64]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 82], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 82], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2015-06-29 17:44:52.946329"], ["updated_at", "2015-06-29 17:44:52.946329"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:44:52.951798"], ["id", 65]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 82], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 82], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2015-06-29 17:44:52.955650"], ["updated_at", "2015-06-29 17:44:52.955650"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"9ee9a27e-0790-0d45-9534-a6469e5b9ce9\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:44:52.960530"], ["id", 66]] +  (0.6ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":65}]"], ["updated_at", "2015-06-29 17:44:52.965656"], ["id", 65]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":66}]"], ["updated_at", "2015-06-29 17:44:52.968919"], ["id", 66]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Some new operation"], ["process_template_id", 82], ["uuid", "6e7f7994-6478-0662-1db0-8c318da818c5"], ["created_at", "2015-06-29 17:44:52.973455"], ["updated_at", "2015-06-29 17:44:52.973455"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 82]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 82]] + RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 82], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]] +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 82], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["updated_at", "2015-06-29 17:44:52.991499"], ["id", 65]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 82], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"9ee9a27e-0790-0d45-9534-a6469e5b9ce9\"}]"], ["updated_at", "2015-06-29 17:44:52.998273"], ["id", 66]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + SQL (0.3ms) DELETE FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = 67 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":65}]"], ["updated_at", "2015-06-29 17:44:53.002648"], ["id", 65]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":66}]"], ["updated_at", "2015-06-29 17:44:53.005536"], ["id", 66]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 82]] +  (0.2ms) ROLLBACK + ActiveRecord::SchemaMigration Load (1.5ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "d1f34c98-ce4a-b567-5488-249e09b91e92"], ["created_at", "2015-06-29 17:45:12.525932"], ["updated_at", "2015-06-29 17:45:12.525932"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 83], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "1314255c-619c-9a07-f6e7-d28e25e8a1ff"], ["created_at", "2015-06-29 17:45:12.544091"], ["updated_at", "2015-06-29 17:45:12.544091"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::OperationTemplatesController#index as HTML + Parameters: {"process_template_id"=>"83"} + RailsWorkflow::ProcessTemplate Load (0.6ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 83]] + Rendered /Users/maxim/workflow/rails_workflow/app/views/rails_workflow/operation_templates/index.html.slim within layouts/rails_workflow/application (0.3ms) +Completed 200 OK in 65ms (Views: 43.0ms | ActiveRecord: 0.6ms) + RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 83]] +  (0.5ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "13d9c328-2da3-45df-69b2-735e50976316"], ["created_at", "2015-06-29 17:45:12.625968"], ["updated_at", "2015-06-29 17:45:12.625968"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 84], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "e062e1b2-a877-10eb-f8a8-727647d11839"], ["created_at", "2015-06-29 17:45:12.628758"], ["updated_at", "2015-06-29 17:45:12.628758"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::OperationTemplatesController#show as HTML + Parameters: {"process_template_id"=>"84", "id"=>"69"} + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 69]] + RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 84]] + Rendered /Users/maxim/workflow/rails_workflow/app/views/rails_workflow/operation_templates/show.html.slim within layouts/rails_workflow/application (0.2ms) +Completed 200 OK in 5ms (Views: 1.4ms | ActiveRecord: 0.7ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "90360db2-d230-a43f-da34-a983b2f9a9f6"], ["created_at", "2015-06-29 17:45:12.646056"], ["updated_at", "2015-06-29 17:45:12.646056"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "41fc03e8-0174-e68e-4c75-11acf97dfbe2"], ["created_at", "2015-06-29 17:45:12.648244"], ["updated_at", "2015-06-29 17:45:12.648244"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::OperationTemplatesController#new as HTML + Parameters: {"process_template_id"=>"86"} + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 86]] +Unpermitted parameter: process_template_id + Rendered /Users/maxim/workflow/rails_workflow/app/views/rails_workflow/operation_templates/new.html.slim within layouts/rails_workflow/application (0.2ms) +Completed 200 OK in 9ms (Views: 1.7ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "cdfb9201-767c-f4fc-28b4-1e750b3947e3"], ["created_at", "2015-06-29 17:45:12.666015"], ["updated_at", "2015-06-29 17:45:12.666015"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 87], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "f7d8510f-c4c3-a1a1-196e-beba3c280818"], ["created_at", "2015-06-29 17:45:12.668705"], ["updated_at", "2015-06-29 17:45:12.668705"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::OperationTemplatesController#edit as HTML + Parameters: {"process_template_id"=>"87", "id"=>"70"} + RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 70]] + RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 87]] + Rendered /Users/maxim/workflow/rails_workflow/app/views/rails_workflow/operation_templates/edit.html.slim within layouts/rails_workflow/application (0.2ms) +Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.7ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "3ec53cdd-0d01-ab9e-cb6a-8ecca19e45df"], ["created_at", "2015-06-29 17:45:12.688285"], ["updated_at", "2015-06-29 17:45:12.688285"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" +Processing by RailsWorkflow::OperationTemplatesController#create as HTML + Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"88", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"88"} + RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 88]] +Unpermitted parameter: process_template_id +Unpermitted parameter: process_template_id +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "RailsWorkflow::OperationTemplate"], ["title", "First Test project"], ["uuid", "e4b92d81-afc8-d6c8-e024-035c68b01e74"], ["created_at", "2015-06-29 17:45:12.700332"], ["updated_at", "2015-06-29 17:45:12.700332"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config/88/operation_templates +Completed 302 Found in 8ms (ActiveRecord: 0.9ms) +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 88]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "d5709a8f-0003-a229-3811-f2485c5ff543"], ["created_at", "2015-06-29 17:45:12.711038"], ["updated_at", "2015-06-29 17:45:12.711038"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" +Processing by RailsWorkflow::OperationTemplatesController#create as HTML + Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"89", "type"=>"RailsWorkflow::CustomOperationTemplate"}, "process_template_id"=>"89"} + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 89]] +Unpermitted parameter: process_template_id +Unpermitted parameter: process_template_id +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "RailsWorkflow::CustomOperationTemplate"], ["title", "First Test project"], ["uuid", "25d86cb0-7660-32dd-8098-6775004a2e00"], ["created_at", "2015-06-29 17:45:12.731102"], ["updated_at", "2015-06-29 17:45:12.731102"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config/89/operation_templates +Completed 302 Found in 19ms (ActiveRecord: 1.1ms) +  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" + RailsWorkflow::OperationTemplate Load (0.6ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" ORDER BY "rails_workflow_operation_templates"."id" DESC LIMIT 1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "589cac0c-4415-bf94-9a48-7e16c10e0b20"], ["created_at", "2015-06-29 17:45:12.742765"], ["updated_at", "2015-06-29 17:45:12.742765"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::OperationTemplatesController#create as HTML + Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"90", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"90"} + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 90]] +Unpermitted parameter: process_template_id +Unpermitted parameter: process_template_id +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "RailsWorkflow::OperationTemplate"], ["title", "First Test project"], ["uuid", "922c7b14-1cb2-6367-2283-9870584cf655"], ["created_at", "2015-06-29 17:45:12.753096"], ["updated_at", "2015-06-29 17:45:12.753096"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config/90/operation_templates +Completed 302 Found in 12ms (ActiveRecord: 0.9ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "1c5b59d7-f482-7c17-782b-81c92c195174"], ["created_at", "2015-06-29 17:45:12.764144"], ["updated_at", "2015-06-29 17:45:12.764144"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::OperationTemplatesController#create as HTML + Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"91", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"91"} + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 91]] +Unpermitted parameter: process_template_id +Unpermitted parameter: process_template_id +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "RailsWorkflow::OperationTemplate"], ["title", "First Test project"], ["uuid", "2e287875-9a19-a3d8-da52-040677ee803d"], ["created_at", "2015-06-29 17:45:12.772222"], ["updated_at", "2015-06-29 17:45:12.772222"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config/91/operation_templates +Completed 302 Found in 9ms (ActiveRecord: 1.4ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "8a07639c-0afd-c6f3-5fb8-d430e159cdfa"], ["created_at", "2015-06-29 17:45:12.785053"], ["updated_at", "2015-06-29 17:45:12.785053"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "8839ffa3-287c-f6bf-733f-73cabb609b75"], ["created_at", "2015-06-29 17:45:12.790528"], ["updated_at", "2015-06-29 17:45:12.790528"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "b4092dc0-c8f0-7947-3825-6b0b38e48f18"], ["created_at", "2015-06-29 17:45:12.797160"], ["updated_at", "2015-06-29 17:45:12.797160"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 94], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "e6215247-6ce7-0d1b-74c6-e202e1510c82"], ["created_at", "2015-06-29 17:45:12.799784"], ["updated_at", "2015-06-29 17:45:12.799784"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "37fa498a-1a46-26f7-da46-37abfdbde73b"], ["created_at", "2015-06-29 17:45:12.804082"], ["updated_at", "2015-06-29 17:45:12.804082"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 95], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "f8a9bc08-8689-f0ac-c293-b9658e628335"], ["created_at", "2015-06-29 17:45:12.808021"], ["updated_at", "2015-06-29 17:45:12.808021"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::OperationTemplatesController#update as HTML + Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"95", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"95", "id"=>"76"} + RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 76]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 95]] +Unpermitted parameter: process_template_id +Unpermitted parameters: process_template_id, id +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config/95/operation_templates +Completed 302 Found in 8ms (ActiveRecord: 0.9ms) +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "4707f9ca-35c0-3096-4beb-c868f07ce085"], ["created_at", "2015-06-29 17:45:12.826979"], ["updated_at", "2015-06-29 17:45:12.826979"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 96], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "daa9c37a-84f9-ac64-2d6a-eae9d946c278"], ["created_at", "2015-06-29 17:45:12.830087"], ["updated_at", "2015-06-29 17:45:12.830087"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::OperationTemplatesController#update as HTML + Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"96", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"96", "id"=>"77"} + RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 77]] + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 96]] +Unpermitted parameter: process_template_id +Unpermitted parameters: process_template_id, id +  (0.2ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config/96/operation_templates +Completed 302 Found in 9ms (ActiveRecord: 1.1ms) +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "ead5e1fe-e1f7-5e4b-47d2-c2fb73afd5f1"], ["created_at", "2015-06-29 17:45:12.851223"], ["updated_at", "2015-06-29 17:45:12.851223"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 97], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "6754abdb-b6c9-ac0c-c438-a82d4a96e0b6"], ["created_at", "2015-06-29 17:45:12.854096"], ["updated_at", "2015-06-29 17:45:12.854096"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "61a20198-e002-7893-91a6-dd195cb82b58"], ["created_at", "2015-06-29 17:45:12.858205"], ["updated_at", "2015-06-29 17:45:12.858205"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 98], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "8c4cda8b-2431-726f-6416-9d6da3447bc6"], ["created_at", "2015-06-29 17:45:12.861905"], ["updated_at", "2015-06-29 17:45:12.861905"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "163c1f44-cc23-ecde-3fea-ee595e499f94"], ["created_at", "2015-06-29 17:45:12.866703"], ["updated_at", "2015-06-29 17:45:12.866703"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 99], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "daf5e637-af0b-c418-aa65-cb7158d8dacc"], ["created_at", "2015-06-29 17:45:12.869616"], ["updated_at", "2015-06-29 17:45:12.869616"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" + RailsWorkflow::ProcessTemplate Load (0.8ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 99]] +Processing by RailsWorkflow::OperationTemplatesController#destroy as HTML + Parameters: {"process_template_id"=>"99", "id"=>"80"} + RailsWorkflow::OperationTemplate Load (0.6ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 80]] + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 99]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) DELETE FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 [["id", 80]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config/99/operation_templates +Completed 302 Found in 9ms (ActiveRecord: 1.4ms) +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "12e09396-8efd-d9d6-5587-5302f3be216e"], ["created_at", "2015-06-29 17:45:12.893801"], ["updated_at", "2015-06-29 17:45:12.893801"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 100], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "d566c991-078c-98f1-e035-1686b71479dd"], ["created_at", "2015-06-29 17:45:12.896872"], ["updated_at", "2015-06-29 17:45:12.896872"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::OperationTemplatesController#destroy as HTML + Parameters: {"process_template_id"=>"100", "id"=>"81"} + RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 81]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 100]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) DELETE FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 [["id", 81]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config/100/operation_templates +Completed 302 Found in 6ms (ActiveRecord: 1.2ms) +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.5ms) SELECT COUNT(*) FROM "rails_workflow_operations" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.6ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.3ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "f68b1d42-06c5-19d6-c41f-96c79c163bfa"], ["created_at", "2015-06-29 17:45:12.941233"], ["updated_at", "2015-06-29 17:45:12.941233"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessTemplatesController#index as HTML + Rendered /Users/maxim/workflow/rails_workflow/app/views/rails_workflow/process_templates/index.html.slim within layouts/rails_workflow/application (0.3ms) +Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms) + RailsWorkflow::ProcessTemplate Load (0.5ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" ORDER BY "rails_workflow_process_templates"."id" DESC +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "e7903b22-866a-3eac-4628-0fb560fa329c"], ["created_at", "2015-06-29 17:45:12.956812"], ["updated_at", "2015-06-29 17:45:12.956812"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessTemplatesController#show as HTML + Parameters: {"id"=>"102"} + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 102]] + Rendered /Users/maxim/workflow/rails_workflow/app/views/rails_workflow/process_templates/show.html.slim within layouts/rails_workflow/application (0.2ms) +Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +Processing by RailsWorkflow::ProcessTemplatesController#new as HTML + Rendered /Users/maxim/workflow/rails_workflow/app/views/rails_workflow/process_templates/new.html.slim within layouts/rails_workflow/application (0.3ms) +Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "e2af02b2-be83-2fca-9754-60c494d076a2"], ["created_at", "2015-06-29 17:45:12.983535"], ["updated_at", "2015-06-29 17:45:12.983535"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessTemplatesController#edit as HTML + Parameters: {"id"=>"103"} + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 103]] + Rendered /Users/maxim/workflow/rails_workflow/app/views/rails_workflow/process_templates/edit.html.slim within layouts/rails_workflow/application (0.2ms) +Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_process_templates" +Processing by RailsWorkflow::ProcessTemplatesController#create as HTML + Parameters: {"process_template"=>{"title"=>"First Test project"}} +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "55d8b5f6-e06d-bef7-52d8-4334c3ff04b1"], ["created_at", "2015-06-29 17:45:13.004777"], ["updated_at", "2015-06-29 17:45:13.004777"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config/104/operation_templates +Completed 302 Found in 9ms (ActiveRecord: 0.7ms) +  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_process_templates" +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +Processing by RailsWorkflow::ProcessTemplatesController#create as HTML + Parameters: {"process_template"=>{"title"=>"First Test project"}} +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "695556e2-4102-aa49-81fc-8e4751295d31"], ["created_at", "2015-06-29 17:45:13.024770"], ["updated_at", "2015-06-29 17:45:13.024770"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config/105/operation_templates +Completed 302 Found in 6ms (ActiveRecord: 0.7ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +Processing by RailsWorkflow::ProcessTemplatesController#create as HTML + Parameters: {"process_template"=>{"title"=>"First Test project"}} +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "63a0a2cf-3634-0c0e-c417-14b04f2f092f"], ["created_at", "2015-06-29 17:45:13.040993"], ["updated_at", "2015-06-29 17:45:13.040993"]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config/106/operation_templates +Completed 302 Found in 10ms (ActiveRecord: 0.9ms) + RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" ORDER BY "rails_workflow_process_templates"."id" DESC LIMIT 1 +  (0.6ms) ROLLBACK +  (0.6ms) BEGIN +  (0.5ms) ROLLBACK +  (0.2ms) BEGIN +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "158aa06e-272d-bc7c-0002-a4446c4ce2f2"], ["created_at", "2015-06-29 17:45:13.111024"], ["updated_at", "2015-06-29 17:45:13.111024"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "b3ddecf4-7975-0c7d-e1a6-7458f9ff4fd2"], ["created_at", "2015-06-29 17:45:13.116534"], ["updated_at", "2015-06-29 17:45:13.116534"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessTemplatesController#update as HTML + Parameters: {"process_template"=>{"title"=>"First Test project"}, "id"=>"108"} + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 108]] +Unpermitted parameter: id +  (0.2ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config/108 +Completed 302 Found in 15ms (ActiveRecord: 0.8ms) +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "774f4c8e-53c2-5f70-c6c1-d140bacb13e8"], ["created_at", "2015-06-29 17:45:13.147532"], ["updated_at", "2015-06-29 17:45:13.147532"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessTemplatesController#update as HTML + Parameters: {"process_template"=>{"title"=>"First Test project"}, "id"=>"109"} + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 109]] +Unpermitted parameter: id +  (0.2ms) SAVEPOINT active_record_1 +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config/109 +Completed 302 Found in 7ms (ActiveRecord: 0.7ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "3582aa4f-c4b5-a948-8962-227eaadde313"], ["created_at", "2015-06-29 17:45:13.167391"], ["updated_at", "2015-06-29 17:45:13.167391"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "b3d0ed0a-a06e-ce8c-1cbd-549376051d51"], ["created_at", "2015-06-29 17:45:13.171366"], ["updated_at", "2015-06-29 17:45:13.171366"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "2d86bd3f-3828-f974-bdcb-2cf650fc56f4"], ["created_at", "2015-06-29 17:45:13.175206"], ["updated_at", "2015-06-29 17:45:13.175206"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_process_templates" +Processing by RailsWorkflow::ProcessTemplatesController#destroy as HTML + Parameters: {"id"=>"112"} + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 112]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) DELETE FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 [["id", 112]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config +Completed 302 Found in 6ms (ActiveRecord: 0.8ms) +  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_process_templates" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "a69bd4d4-b211-08ea-5f8d-4b603ca53ba2"], ["created_at", "2015-06-29 17:45:13.191161"], ["updated_at", "2015-06-29 17:45:13.191161"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessTemplatesController#destroy as HTML + Parameters: {"id"=>"113"} + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 113]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) DELETE FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 [["id", 113]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config +Completed 302 Found in 6ms (ActiveRecord: 0.9ms) +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "96acccbc-3fdd-ee51-b96e-c31d7bd9d216"], ["created_at", "2015-06-29 17:45:13.210742"], ["updated_at", "2015-06-29 17:45:13.210742"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 114], ["created_at", "2015-06-29 17:45:13.221332"], ["updated_at", "2015-06-29 17:45:13.221332"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessesController#index as HTML +  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_processes" +  (0.4ms) select status, cnt from ( + select row_number() over (partition by status), + count(*) over (partition by status) cnt, + status from rails_workflow_processes)t + where row_number = 1 + Rendered /Users/maxim/workflow/rails_workflow/app/views/rails_workflow/processes/index.html.slim within layouts/rails_workflow/application (0.3ms) +Completed 200 OK in 14ms (Views: 4.9ms | ActiveRecord: 0.8ms) + RailsWorkflow::Process Load (0.8ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" ORDER BY "rails_workflow_processes"."created_at" DESC LIMIT 30 OFFSET 0 +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "ef7c4660-a86f-e483-b6af-97845945f0be"], ["created_at", "2015-06-29 17:45:13.249228"], ["updated_at", "2015-06-29 17:45:13.249228"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 115], ["created_at", "2015-06-29 17:45:13.251861"], ["updated_at", "2015-06-29 17:45:13.251861"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessesController#show as HTML + Parameters: {"id"=>"43"} + RailsWorkflow::Process Load (0.4ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 43]] + Rendered /Users/maxim/workflow/rails_workflow/app/views/rails_workflow/processes/show.html.slim within layouts/rails_workflow/application (0.2ms) +Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "17db46e3-24f1-e372-9d37-c68c34877c3b"], ["created_at", "2015-06-29 17:45:13.271481"], ["updated_at", "2015-06-29 17:45:13.271481"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessesController#new as HTML + Rendered /Users/maxim/workflow/rails_workflow/app/views/rails_workflow/processes/new.html.slim within layouts/rails_workflow/application (0.2ms) +Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "8a603085-ac5c-42c9-76e2-0be54f8ead30"], ["created_at", "2015-06-29 17:45:13.282975"], ["updated_at", "2015-06-29 17:45:13.282975"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 117], ["created_at", "2015-06-29 17:45:13.285356"], ["updated_at", "2015-06-29 17:45:13.285356"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessesController#edit as HTML + Parameters: {"id"=>"44"} + RailsWorkflow::Process Load (0.4ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 44]] + Rendered /Users/maxim/workflow/rails_workflow/app/views/rails_workflow/processes/edit.html.slim within layouts/rails_workflow/application (0.2ms) +Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "e448accb-78aa-cc52-4a76-d11654ade822"], ["created_at", "2015-06-29 17:45:13.302825"], ["updated_at", "2015-06-29 17:45:13.302825"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_processes" +Processing by RailsWorkflow::ProcessesController#create as HTML + Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"118"}} + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 118]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 118], ["created_at", "2015-06-29 17:45:13.314905"], ["updated_at", "2015-06-29 17:45:13.314905"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:45:13.317678"], ["id", 45]] + SQL (0.4ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 45], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2015-06-29 17:45:13.329225"], ["updated_at", "2015-06-29 17:45:13.329225"]] + RailsWorkflow::Context Load (0.4ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 45], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 118]] + RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 45]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 45]] +Redirected to http://test.host/workflow/processes/45 +Completed 302 Found in 32ms (ActiveRecord: 4.4ms) +  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_processes" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "7e74b517-d2b8-dac4-a35f-6b636f6ab787"], ["created_at", "2015-06-29 17:45:13.347303"], ["updated_at", "2015-06-29 17:45:13.347303"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessesController#create as HTML + Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"119"}} + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 119]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 119], ["created_at", "2015-06-29 17:45:13.356262"], ["updated_at", "2015-06-29 17:45:13.356262"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:45:13.358911"], ["id", 46]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 46], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2015-06-29 17:45:13.363511"], ["updated_at", "2015-06-29 17:45:13.363511"]] + RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 46], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 119]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 46]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 46]] +Redirected to http://test.host/workflow/processes/46 +Completed 302 Found in 19ms (ActiveRecord: 3.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "f42672d9-8973-9418-6507-608e09b03c82"], ["created_at", "2015-06-29 17:45:13.376520"], ["updated_at", "2015-06-29 17:45:13.376520"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessesController#create as HTML + Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"120"}} + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 120]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 120], ["created_at", "2015-06-29 17:45:13.384179"], ["updated_at", "2015-06-29 17:45:13.384179"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:45:13.386424"], ["id", 47]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 47], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2015-06-29 17:45:13.389045"], ["updated_at", "2015-06-29 17:45:13.389045"]] + RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 47], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 120]] + RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 47]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 47]] +Redirected to http://test.host/workflow/processes/47 +Completed 302 Found in 18ms (ActiveRecord: 3.1ms) + RailsWorkflow::Process Load (0.4ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" ORDER BY "rails_workflow_processes"."id" DESC LIMIT 1 +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "eb8bc2ff-182b-d287-7aa4-9b5a91b5d466"], ["created_at", "2015-06-29 17:45:13.410806"], ["updated_at", "2015-06-29 17:45:13.410806"]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "443ea555-15eb-9630-a939-2133faf6a4df"], ["created_at", "2015-06-29 17:45:13.416240"], ["updated_at", "2015-06-29 17:45:13.416240"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "1e0e6361-efe8-a717-981e-82012f63c92f"], ["created_at", "2015-06-29 17:45:13.422030"], ["updated_at", "2015-06-29 17:45:13.422030"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 123], ["created_at", "2015-06-29 17:45:13.424519"], ["updated_at", "2015-06-29 17:45:13.424519"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "47d98a70-8be8-cb3e-56ea-b8eeac120772"], ["created_at", "2015-06-29 17:45:13.429379"], ["updated_at", "2015-06-29 17:45:13.429379"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 124], ["created_at", "2015-06-29 17:45:13.431783"], ["updated_at", "2015-06-29 17:45:13.431783"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessesController#update as HTML + Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"124"}, "id"=>"49"} + RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 49]] +Unpermitted parameter: id +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/processes +Completed 302 Found in 6ms (ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "49f2945a-a2c3-4afe-0243-56d9168660e3"], ["created_at", "2015-06-29 17:45:13.447289"], ["updated_at", "2015-06-29 17:45:13.447289"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 125], ["created_at", "2015-06-29 17:45:13.449448"], ["updated_at", "2015-06-29 17:45:13.449448"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessesController#update as HTML + Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"125"}, "id"=>"50"} + RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 50]] +Unpermitted parameter: id +  (0.2ms) SAVEPOINT active_record_1 +  (0.4ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/processes +Completed 302 Found in 7ms (ActiveRecord: 0.9ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "3c21c533-2d25-05eb-86fe-af34289a4ffb"], ["created_at", "2015-06-29 17:45:13.468277"], ["updated_at", "2015-06-29 17:45:13.468277"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 126], ["created_at", "2015-06-29 17:45:13.470569"], ["updated_at", "2015-06-29 17:45:13.470569"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "4706a9f7-3a78-94d3-d406-d9bfbc58af23"], ["created_at", "2015-06-29 17:45:13.475039"], ["updated_at", "2015-06-29 17:45:13.475039"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 127], ["created_at", "2015-06-29 17:45:13.477438"], ["updated_at", "2015-06-29 17:45:13.477438"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "1afd948a-3ae3-0809-4956-59c474580ca9"], ["created_at", "2015-06-29 17:45:13.482363"], ["updated_at", "2015-06-29 17:45:13.482363"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "21dec26d-ac4b-487f-e4f1-ad113b8dd1b4"], ["created_at", "2015-06-29 17:45:13.486374"], ["updated_at", "2015-06-29 17:45:13.486374"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "c487e814-ccde-c7f3-0a28-9a21be9f38d9"], ["created_at", "2015-06-29 17:45:13.490198"], ["updated_at", "2015-06-29 17:45:13.490198"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 130], ["uuid", "8440aecd-8baf-abd9-855a-911e05780f86"], ["created_at", "2015-06-29 17:45:13.493604"], ["updated_at", "2015-06-29 17:45:13.493604"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 130], ["dependencies", "[{\"id\":82,\"statuses\":[2]}]"], ["uuid", "a1250ea2-feb3-489f-208d-11a12ec6bfe0"], ["created_at", "2015-06-29 17:45:13.497650"], ["updated_at", "2015-06-29 17:45:13.497650"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 130]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 130], ["created_at", "2015-06-29 17:45:13.501815"], ["updated_at", "2015-06-29 17:45:13.501815"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:45:13.503830"], ["id", 53]] + SQL (0.5ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 53], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:13.506249"], ["updated_at", "2015-06-29 17:45:13.506249"]] + RailsWorkflow::Context Load (0.6ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 53], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 130]] + SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 82], ["process_id", 53], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:45:13.529104"], ["updated_at", "2015-06-29 17:45:13.529104"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 50], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:13.531727"], ["updated_at", "2015-06-29 17:45:13.531727"]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 53]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "5735eae4-e7f4-ce14-097c-c3f09588f893"], ["created_at", "2015-06-29 17:45:13.541007"], ["updated_at", "2015-06-29 17:45:13.541007"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 131], ["uuid", "58e19cf7-a16e-da59-a327-ce571349b42e"], ["created_at", "2015-06-29 17:45:13.543850"], ["updated_at", "2015-06-29 17:45:13.543850"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 131], ["dependencies", "[{\"id\":84,\"statuses\":[2]}]"], ["uuid", "d427e10d-7662-6e68-9065-f303ad044363"], ["created_at", "2015-06-29 17:45:13.547498"], ["updated_at", "2015-06-29 17:45:13.547498"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 131]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 131], ["created_at", "2015-06-29 17:45:13.551149"], ["updated_at", "2015-06-29 17:45:13.551149"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:45:13.553192"], ["id", 54]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 54], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:13.555414"], ["updated_at", "2015-06-29 17:45:13.555414"]] + RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 54], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 131]] + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 84], ["process_id", 54], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:45:13.561341"], ["updated_at", "2015-06-29 17:45:13.561341"]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 51], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:13.563018"], ["updated_at", "2015-06-29 17:45:13.563018"]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 54]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 131]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "260018eb-ca68-ee6d-b3f6-feb69d0c3667"], ["created_at", "2015-06-29 17:45:13.571236"], ["updated_at", "2015-06-29 17:45:13.571236"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 132], ["uuid", "d63b293c-7b9b-6c5d-849f-7e1054cd0d46"], ["created_at", "2015-06-29 17:45:13.574722"], ["updated_at", "2015-06-29 17:45:13.574722"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 132], ["dependencies", "[{\"id\":86,\"statuses\":[2]}]"], ["uuid", "8b23bd14-4f48-1a02-f360-9b3567767174"], ["created_at", "2015-06-29 17:45:13.578571"], ["updated_at", "2015-06-29 17:45:13.578571"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 132]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 132], ["created_at", "2015-06-29 17:45:13.582630"], ["updated_at", "2015-06-29 17:45:13.582630"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:45:13.584579"], ["id", 55]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 55], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:13.586969"], ["updated_at", "2015-06-29 17:45:13.586969"]] + RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 55], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.8ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 132]] + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 86], ["process_id", 55], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:45:13.595159"], ["updated_at", "2015-06-29 17:45:13.595159"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 52], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:13.596993"], ["updated_at", "2015-06-29 17:45:13.596993"]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 55]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 55]] + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 55]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "c235a558-c7b4-826b-10a6-7ac503d9c739"], ["created_at", "2015-06-29 17:45:13.606618"], ["updated_at", "2015-06-29 17:45:13.606618"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 133], ["uuid", "30e0b15d-060a-41f2-6aef-47e5d722b4da"], ["created_at", "2015-06-29 17:45:13.609776"], ["updated_at", "2015-06-29 17:45:13.609776"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 133], ["dependencies", "[{\"id\":88,\"statuses\":[2]}]"], ["uuid", "99989f49-b602-be38-82df-e6b6b91ac27c"], ["created_at", "2015-06-29 17:45:13.613397"], ["updated_at", "2015-06-29 17:45:13.613397"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 133]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 133], ["created_at", "2015-06-29 17:45:13.617876"], ["updated_at", "2015-06-29 17:45:13.617876"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:45:13.620339"], ["id", 56]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 56], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:13.622993"], ["updated_at", "2015-06-29 17:45:13.622993"]] + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 56], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 133]] + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 88], ["process_id", 56], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:45:13.628677"], ["updated_at", "2015-06-29 17:45:13.628677"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 53], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:13.630426"], ["updated_at", "2015-06-29 17:45:13.630426"]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 56]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 56], ["parent_type", "RailsWorkflow::Process"]] +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "be6962cf-1dac-e0af-3160-65041918ca7f"], ["created_at", "2015-06-29 17:45:13.638014"], ["updated_at", "2015-06-29 17:45:13.638014"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 134], ["uuid", "64fda7c2-c64b-0599-0596-9a304eb4839d"], ["created_at", "2015-06-29 17:45:13.641604"], ["updated_at", "2015-06-29 17:45:13.641604"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 134], ["dependencies", "[{\"id\":90,\"statuses\":[2]}]"], ["uuid", "acda316a-5a8d-45e7-c487-6afb231df95e"], ["created_at", "2015-06-29 17:45:13.645146"], ["updated_at", "2015-06-29 17:45:13.645146"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 134]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 134], ["created_at", "2015-06-29 17:45:13.649758"], ["updated_at", "2015-06-29 17:45:13.649758"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:45:13.651974"], ["id", 57]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 57], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:13.654124"], ["updated_at", "2015-06-29 17:45:13.654124"]] + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 57], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.7ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 134]] + SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 90], ["process_id", 57], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:45:13.662506"], ["updated_at", "2015-06-29 17:45:13.662506"]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 54], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:13.664702"], ["updated_at", "2015-06-29 17:45:13.664702"]] + RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 57]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 57]] + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 54], ["parent_type", "RailsWorkflow::Operation"]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "06a23a50-a6fb-3f92-522f-97b289b0748b"], ["created_at", "2015-06-29 17:45:13.687135"], ["updated_at", "2015-06-29 17:45:13.687135"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 135], ["uuid", "30bf93a5-84b8-be40-374c-2d674a2fc77b"], ["created_at", "2015-06-29 17:45:13.690842"], ["updated_at", "2015-06-29 17:45:13.690842"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 135], ["dependencies", "[{\"id\":92,\"statuses\":[2]}]"], ["uuid", "0e485a9c-8ce0-743e-5a89-b9e3ffcc234d"], ["created_at", "2015-06-29 17:45:13.694577"], ["updated_at", "2015-06-29 17:45:13.694577"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 135]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 135], ["created_at", "2015-06-29 17:45:13.698521"], ["updated_at", "2015-06-29 17:45:13.698521"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:45:13.700394"], ["id", 58]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 58], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:13.702507"], ["updated_at", "2015-06-29 17:45:13.702507"]] + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 58], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 135]] + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 92], ["process_id", 58], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:45:13.709047"], ["updated_at", "2015-06-29 17:45:13.709047"]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 55], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:13.711217"], ["updated_at", "2015-06-29 17:45:13.711217"]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 58]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 135]] +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 58]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:45:13.718988"], ["id", 58]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 58], ["status", 0]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (1.1ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:45:13.723045"], ["id", 55]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 55]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "e8882570-beef-ad13-568e-2c8f3a3c3b66"], ["created_at", "2015-06-29 17:45:13.736023"], ["updated_at", "2015-06-29 17:45:13.736023"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 136], ["uuid", "9c9839cc-c33b-3905-ade6-04b6ecc1e743"], ["created_at", "2015-06-29 17:45:13.739060"], ["updated_at", "2015-06-29 17:45:13.739060"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 136], ["dependencies", "[{\"id\":94,\"statuses\":[2]}]"], ["uuid", "3eafa1bf-916d-9fb3-3685-8195c14a5438"], ["created_at", "2015-06-29 17:45:13.743244"], ["updated_at", "2015-06-29 17:45:13.743244"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 136]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 136], ["created_at", "2015-06-29 17:45:13.747251"], ["updated_at", "2015-06-29 17:45:13.747251"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:45:13.749184"], ["id", 59]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 59], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:13.751370"], ["updated_at", "2015-06-29 17:45:13.751370"]] + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 59], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 136]] + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 94], ["process_id", 59], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:45:13.757932"], ["updated_at", "2015-06-29 17:45:13.757932"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 56], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:13.759789"], ["updated_at", "2015-06-29 17:45:13.759789"]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 59]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 136]] +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 59]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:45:13.766269"], ["id", 59]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 59], ["status", 0]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:45:13.769997"], ["id", 56]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.5ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 56]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 59]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "07a4665e-c2c4-0cf2-90c0-7522bdf2c321"], ["created_at", "2015-06-29 17:45:13.791582"], ["updated_at", "2015-06-29 17:45:13.791582"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 137], ["uuid", "eef294dd-3396-2642-fb89-2a68ddda369a"], ["created_at", "2015-06-29 17:45:13.794526"], ["updated_at", "2015-06-29 17:45:13.794526"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 137], ["dependencies", "[{\"id\":96,\"statuses\":[2]}]"], ["uuid", "eac62e55-ae17-3214-1e6a-513ced666485"], ["created_at", "2015-06-29 17:45:13.798043"], ["updated_at", "2015-06-29 17:45:13.798043"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 137]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 137], ["created_at", "2015-06-29 17:45:13.802361"], ["updated_at", "2015-06-29 17:45:13.802361"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:45:13.804510"], ["id", 60]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 60], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:13.807007"], ["updated_at", "2015-06-29 17:45:13.807007"]] + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 60], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 137]] + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 96], ["process_id", 60], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:45:13.812537"], ["updated_at", "2015-06-29 17:45:13.812537"]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 57], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:13.814512"], ["updated_at", "2015-06-29 17:45:13.814512"]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 60]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 137]] +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 60]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:45:13.820930"], ["id", 60]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 60], ["status", 0]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:45:13.826308"], ["id", 57]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 57]] +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2015-06-29 17:45:13.830552"], ["updated_at", "2015-06-29 17:45:13.831532"], ["id", 57]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 60]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 137]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 137]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 96]] + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 60]] + RailsWorkflow::OperationTemplate Load (0.6ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 96]] + RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 57], ["parent_type", "RailsWorkflow::Operation"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 97], ["process_id", 60], ["status", 0], ["dependencies", "[{\"operation_id\":57,\"status\":2}]"], ["created_at", "2015-06-29 17:45:13.848242"], ["updated_at", "2015-06-29 17:45:13.848242"]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 58], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:13.851767"], ["updated_at", "2015-06-29 17:45:13.851767"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:45:13.857519"], ["id", 58]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 58]] +  (0.2ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2015-06-29 17:45:13.861444"], ["updated_at", "2015-06-29 17:45:13.862515"], ["id", 58]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 60]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 137]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 137]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 97]] + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 60]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 97]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 96]] +  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 60], ["parent_type", "RailsWorkflow::Process"]] +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 60], ["parent_type", "RailsWorkflow::Process"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2015-06-29 17:45:13.877493"], ["id", 60]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 60]] + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 60]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2015-06-29 17:45:13.882917"], ["updated_at", "2015-06-29 17:45:13.884049"], ["id", 57]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 60]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 137]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 137]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 96]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 60]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 97]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 96]] + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" DESC LIMIT 1 [["process_id", 60]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2015-06-29 17:45:13.892964"], ["updated_at", "2015-06-29 17:45:13.894209"], ["id", 58]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 60]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 137]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 137]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 97]] + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 60]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 97]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 96]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 60]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "c837e34e-b6bc-d165-0d4d-68cdf6bc677c"], ["created_at", "2015-06-29 17:45:13.906027"], ["updated_at", "2015-06-29 17:45:13.906027"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 138], ["uuid", "8e16bc14-f746-36ae-72b7-e820ea5d3be9"], ["created_at", "2015-06-29 17:45:13.909007"], ["updated_at", "2015-06-29 17:45:13.909007"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 138], ["dependencies", "[{\"id\":98,\"statuses\":[2]}]"], ["uuid", "c367e77a-50da-6798-dcaf-c019c98733fc"], ["created_at", "2015-06-29 17:45:13.912446"], ["updated_at", "2015-06-29 17:45:13.912446"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 138]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 138], ["created_at", "2015-06-29 17:45:13.916009"], ["updated_at", "2015-06-29 17:45:13.916009"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:45:13.918205"], ["id", 61]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 61], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:13.920448"], ["updated_at", "2015-06-29 17:45:13.920448"]] + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 61], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 138]] + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 98], ["process_id", 61], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:45:13.925595"], ["updated_at", "2015-06-29 17:45:13.925595"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 59], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:13.927306"], ["updated_at", "2015-06-29 17:45:13.927306"]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 61]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 138]] +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 61]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:45:13.934271"], ["id", 61]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 61], ["status", 0]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:45:13.937567"], ["id", 59]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 59]] +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2015-06-29 17:45:13.941713"], ["updated_at", "2015-06-29 17:45:13.942935"], ["id", 59]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 61]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 138]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 138]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 98]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 61]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 98]] + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 59], ["parent_type", "RailsWorkflow::Operation"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 99], ["process_id", 61], ["status", 0], ["dependencies", "[{\"operation_id\":59,\"status\":2}]"], ["created_at", "2015-06-29 17:45:13.953588"], ["updated_at", "2015-06-29 17:45:13.953588"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 60], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:13.955469"], ["updated_at", "2015-06-29 17:45:13.955469"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:45:13.962701"], ["id", 60]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 60]] +  (0.2ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2015-06-29 17:45:13.966967"], ["updated_at", "2015-06-29 17:45:13.968109"], ["id", 60]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 61]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 138]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 138]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 99]] + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 61]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 99]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 98]] +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 61], ["parent_type", "RailsWorkflow::Process"]] +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 61], ["parent_type", "RailsWorkflow::Process"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2015-06-29 17:45:13.979515"], ["id", 61]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 61]] + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 61]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2015-06-29 17:45:13.983199"], ["updated_at", "2015-06-29 17:45:13.984315"], ["id", 59]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 61]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 138]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 138]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 98]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 61]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 99]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 98]] + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" DESC LIMIT 1 [["process_id", 61]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 6], ["completed_at", "2015-06-29 17:45:13.992708"], ["updated_at", "2015-06-29 17:45:13.993860"], ["id", 60]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 61]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 138]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 138]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 99]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 61]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 99]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 98]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 61]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "322466af-02b9-2dc3-3335-b0689a6cdfb5"], ["created_at", "2015-06-29 17:45:14.005628"], ["updated_at", "2015-06-29 17:45:14.005628"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 139], ["uuid", "5b3c2097-a49f-f8a7-7be6-7bdbc5063d18"], ["created_at", "2015-06-29 17:45:14.008987"], ["updated_at", "2015-06-29 17:45:14.008987"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 139], ["dependencies", "[{\"id\":100,\"statuses\":[2]}]"], ["uuid", "ebd753c7-aa44-5d52-8c45-6746b7d790ac"], ["created_at", "2015-06-29 17:45:14.012622"], ["updated_at", "2015-06-29 17:45:14.012622"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 139]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 139], ["created_at", "2015-06-29 17:45:14.016118"], ["updated_at", "2015-06-29 17:45:14.016118"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:45:14.017982"], ["id", 62]] + SQL (0.4ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 62], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:14.020267"], ["updated_at", "2015-06-29 17:45:14.020267"]] + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 62], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 139]] + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 100], ["process_id", 62], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:45:14.026034"], ["updated_at", "2015-06-29 17:45:14.026034"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 61], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:14.027727"], ["updated_at", "2015-06-29 17:45:14.027727"]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 62]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 139]] +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 62]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:45:14.033662"], ["id", 62]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 62], ["status", 0]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:45:14.036796"], ["id", 61]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 61]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2015-06-29 17:45:14.040185"], ["updated_at", "2015-06-29 17:45:14.041238"], ["id", 61]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 62]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 139]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 139]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 100]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 62]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 100]] + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 61], ["parent_type", "RailsWorkflow::Operation"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 101], ["process_id", 62], ["status", 0], ["dependencies", "[{\"operation_id\":61,\"status\":2}]"], ["created_at", "2015-06-29 17:45:14.050802"], ["updated_at", "2015-06-29 17:45:14.050802"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 62], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:14.052812"], ["updated_at", "2015-06-29 17:45:14.052812"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:45:14.058783"], ["id", 62]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 62]] +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2015-06-29 17:45:14.062413"], ["updated_at", "2015-06-29 17:45:14.063412"], ["id", 62]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 62]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 139]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 139]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 101]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 62]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 101]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 100]] +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 62], ["parent_type", "RailsWorkflow::Process"]] +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 62], ["parent_type", "RailsWorkflow::Process"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2015-06-29 17:45:14.073839"], ["id", 62]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 62]] + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 62]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2015-06-29 17:45:14.077489"], ["updated_at", "2015-06-29 17:45:14.078588"], ["id", 61]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 62]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 139]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 139]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 100]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 62]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 101]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 100]] + RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" DESC LIMIT 1 [["process_id", 62]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 5], ["completed_at", "2015-06-29 17:45:14.087734"], ["updated_at", "2015-06-29 17:45:14.088938"], ["id", 62]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 62]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 139]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 139]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 101]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 62]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 101]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 100]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 62]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "3abf4ffa-97f6-5af9-fad6-a924b6d59ed8"], ["created_at", "2015-06-29 17:45:14.102534"], ["updated_at", "2015-06-29 17:45:14.102534"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 140], ["uuid", "4c86d076-4445-6efe-52e8-8fd0a2bb7f99"], ["created_at", "2015-06-29 17:45:14.106259"], ["updated_at", "2015-06-29 17:45:14.106259"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 140], ["dependencies", "[{\"id\":102,\"statuses\":[2]}]"], ["uuid", "4a613b74-95b7-53e2-4d50-741df2c6e35c"], ["created_at", "2015-06-29 17:45:14.109933"], ["updated_at", "2015-06-29 17:45:14.109933"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 140]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 140], ["created_at", "2015-06-29 17:45:14.114101"], ["updated_at", "2015-06-29 17:45:14.114101"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:45:14.116522"], ["id", 63]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 63], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:14.119013"], ["updated_at", "2015-06-29 17:45:14.119013"]] + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 63], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 140]] + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 102], ["process_id", 63], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:45:14.125137"], ["updated_at", "2015-06-29 17:45:14.125137"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 63], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:14.127404"], ["updated_at", "2015-06-29 17:45:14.127404"]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 63]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 140]] +  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 63]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:45:14.134909"], ["id", 63]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 63], ["status", 0]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (1.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:45:14.139501"], ["id", 63]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 63]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2015-06-29 17:45:14.145942"], ["updated_at", "2015-06-29 17:45:14.146907"], ["id", 63]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 63]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 140]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 140]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 102]] + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 63]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 102]] +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 63], ["parent_type", "RailsWorkflow::Process"]] +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 63], ["parent_type", "RailsWorkflow::Process"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2015-06-29 17:45:14.160687"], ["id", 63]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 63]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 63]] +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2015-06-29 17:45:14.163757"], ["updated_at", "2015-06-29 17:45:14.165005"], ["id", 63]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 63]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 140]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 140]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 102]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 63]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 102]] +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 63]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "201a4e0c-032e-cc5d-34bc-31f4d6683a02"], ["created_at", "2015-06-29 17:45:14.177895"], ["updated_at", "2015-06-29 17:45:14.177895"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 141], ["uuid", "65104e0e-8338-e42e-1aa0-785fb37b365e"], ["created_at", "2015-06-29 17:45:14.180905"], ["updated_at", "2015-06-29 17:45:14.180905"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 141], ["dependencies", "[{\"id\":104,\"statuses\":[2]}]"], ["uuid", "54830882-5c82-aeea-84ae-62c4bce55aaf"], ["created_at", "2015-06-29 17:45:14.184593"], ["updated_at", "2015-06-29 17:45:14.184593"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 141]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 141], ["created_at", "2015-06-29 17:45:14.188263"], ["updated_at", "2015-06-29 17:45:14.188263"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:45:14.190300"], ["id", 64]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 64], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:14.192749"], ["updated_at", "2015-06-29 17:45:14.192749"]] + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 64], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 141]] + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 104], ["process_id", 64], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:45:14.198219"], ["updated_at", "2015-06-29 17:45:14.198219"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 64], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:14.199996"], ["updated_at", "2015-06-29 17:45:14.199996"]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 64]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 141]] +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 64]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:45:14.206772"], ["id", 64]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 64], ["status", 0]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:45:14.210596"], ["id", 64]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 64]] +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2015-06-29 17:45:14.214507"], ["updated_at", "2015-06-29 17:45:14.215510"], ["id", 64]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 64]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 141]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 141]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 104]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 64]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 104]] + RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 64], ["parent_type", "RailsWorkflow::Operation"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 105], ["process_id", 64], ["status", 0], ["dependencies", "[{\"operation_id\":64,\"status\":2}]"], ["created_at", "2015-06-29 17:45:14.228970"], ["updated_at", "2015-06-29 17:45:14.228970"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 65], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:14.231052"], ["updated_at", "2015-06-29 17:45:14.231052"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:45:14.235635"], ["id", 65]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 65]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2015-06-29 17:45:14.238824"], ["updated_at", "2015-06-29 17:45:14.240107"], ["id", 65]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 64]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 141]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 141]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 105]] + RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 64]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 105]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 104]] +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 64], ["parent_type", "RailsWorkflow::Process"]] +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 64], ["parent_type", "RailsWorkflow::Process"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2015-06-29 17:45:14.253375"], ["id", 64]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 64]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 64]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2015-06-29 17:45:14.257064"], ["updated_at", "2015-06-29 17:45:14.258094"], ["id", 64]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 64]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 141]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 141]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 104]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 64]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 105]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 104]] +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 64]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:14.272548"], ["updated_at", "2015-06-29 17:45:14.272548"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 4], ["created_at", "2015-06-29 17:45:14.275635"], ["updated_at", "2015-06-29 17:45:14.275635"]] + SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 66], ["updated_at", "2015-06-29 17:45:14.278003"], ["id", 101]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "b5396cd2-3330-ffe6-7caa-b749c836caa5"], ["created_at", "2015-06-29 17:45:14.282298"], ["updated_at", "2015-06-29 17:45:14.282298"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 142], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "9589d190-43a3-579d-aaac-fa1f22cf3290"], ["created_at", "2015-06-29 17:45:14.284919"], ["updated_at", "2015-06-29 17:45:14.284919"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:14.289908"], ["updated_at", "2015-06-29 17:45:14.289908"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:45:14.292776"], ["updated_at", "2015-06-29 17:45:14.292776"]] + SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 65], ["updated_at", "2015-06-29 17:45:14.294803"], ["id", 102]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 106], ["process_id", 65], ["status", 0], ["dependencies", "[{\"operation_id\":66,\"status\":4}]"], ["created_at", "2015-06-29 17:45:14.312273"], ["updated_at", "2015-06-29 17:45:14.312273"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 67], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:14.314797"], ["updated_at", "2015-06-29 17:45:14.314797"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"int\":1,\"date\":\"2015-06-29\",\"ary\":[1,2,3],\"msg\":\"Some string\"}"], ["created_at", "2015-06-29 17:45:14.321965"], ["updated_at", "2015-06-29 17:45:14.321965"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:45:14.327208"], ["updated_at", "2015-06-29 17:45:14.327208"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:14.330338"], ["updated_at", "2015-06-29 17:45:14.330338"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:45:14.332888"], ["updated_at", "2015-06-29 17:45:14.332888"]] + SQL (0.4ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 66], ["updated_at", "2015-06-29 17:45:14.334798"], ["id", 105]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"resource\":{\"id\":68,\"class\":\"RailsWorkflow::Operation\"},\"process\":{\"id\":66,\"class\":\"RailsWorkflow::Process\"}}"], ["created_at", "2015-06-29 17:45:14.337870"], ["updated_at", "2015-06-29 17:45:14.337870"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:45:14.344905"], ["updated_at", "2015-06-29 17:45:14.344905"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:14.347936"], ["updated_at", "2015-06-29 17:45:14.347936"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:45:14.350328"], ["updated_at", "2015-06-29 17:45:14.350328"]] + SQL (0.4ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 67], ["updated_at", "2015-06-29 17:45:14.352003"], ["id", 107]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"resources\":[{\"id\":69,\"class\":\"RailsWorkflow::Operation\"},{\"id\":67,\"class\":\"RailsWorkflow::Process\"}]}"], ["created_at", "2015-06-29 17:45:14.354945"], ["updated_at", "2015-06-29 17:45:14.354945"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:45:14.360991"], ["updated_at", "2015-06-29 17:45:14.360991"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 70], ["parent_type", "RailsWorkflow::Operation"], ["body", "{\"int\":1,\"date\":\"2015-06-29\",\"ary\":[1,2,3],\"msg\":\"Some string\"}"], ["created_at", "2015-06-29 17:45:14.364126"], ["updated_at", "2015-06-29 17:45:14.364126"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."id" = $1 LIMIT 1 [["id", 109]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:45:14.370966"], ["updated_at", "2015-06-29 17:45:14.370966"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:14.374033"], ["updated_at", "2015-06-29 17:45:14.374033"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:45:14.378297"], ["updated_at", "2015-06-29 17:45:14.378297"]] + SQL (0.4ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 68], ["updated_at", "2015-06-29 17:45:14.380121"], ["id", 110]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 71], ["parent_type", "RailsWorkflow::Operation"], ["body", "{\"resource\":{\"id\":71,\"class\":\"RailsWorkflow::Operation\"},\"process\":{\"id\":68,\"class\":\"RailsWorkflow::Process\"}}"], ["created_at", "2015-06-29 17:45:14.383347"], ["updated_at", "2015-06-29 17:45:14.383347"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."id" = $1 LIMIT 1 [["id", 111]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 71]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 68]] +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:45:14.391301"], ["updated_at", "2015-06-29 17:45:14.391301"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:14.394690"], ["updated_at", "2015-06-29 17:45:14.394690"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:45:14.396697"], ["updated_at", "2015-06-29 17:45:14.396697"]] + SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 69], ["updated_at", "2015-06-29 17:45:14.398026"], ["id", 112]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"resources\":[{\"id\":72,\"class\":\"RailsWorkflow::Operation\"},{\"id\":69,\"class\":\"RailsWorkflow::Process\"}]}"], ["created_at", "2015-06-29 17:45:14.400406"], ["updated_at", "2015-06-29 17:45:14.400406"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."id" = $1 LIMIT 1 [["id", 113]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 72]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 69]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "d877397c-cff2-a670-7401-e407f0f880aa"], ["created_at", "2015-06-29 17:45:14.408581"], ["updated_at", "2015-06-29 17:45:14.408581"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 143], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "709ed98d-353f-abdf-be1d-b950e6c372f7"], ["created_at", "2015-06-29 17:45:14.412095"], ["updated_at", "2015-06-29 17:45:14.412095"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:14.415841"], ["updated_at", "2015-06-29 17:45:14.415841"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:45:14.418871"], ["updated_at", "2015-06-29 17:45:14.418871"]] + SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 70], ["updated_at", "2015-06-29 17:45:14.420404"], ["id", 114]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 107], ["process_id", 70], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:45:14.427361"], ["updated_at", "2015-06-29 17:45:14.427361"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 73], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:14.429643"], ["updated_at", "2015-06-29 17:45:14.429643"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "e790b6df-4b24-d4ca-4022-8a2175a5f2d0"], ["created_at", "2015-06-29 17:45:14.435424"], ["updated_at", "2015-06-29 17:45:14.435424"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 144], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "e83760cf-83a9-8d20-596f-a5a534a7dc10"], ["created_at", "2015-06-29 17:45:14.437909"], ["updated_at", "2015-06-29 17:45:14.437909"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:14.441180"], ["updated_at", "2015-06-29 17:45:14.441180"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:45:14.443469"], ["updated_at", "2015-06-29 17:45:14.443469"]] + SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 71], ["updated_at", "2015-06-29 17:45:14.444922"], ["id", 116]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 108], ["process_id", 71], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:45:14.448905"], ["updated_at", "2015-06-29 17:45:14.448905"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 74], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:14.450564"], ["updated_at", "2015-06-29 17:45:14.450564"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "f331ed1c-e8ec-2460-f28f-2dbe67c59738"], ["created_at", "2015-06-29 17:45:14.456756"], ["updated_at", "2015-06-29 17:45:14.456756"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 145], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "d201e19a-21a9-1fd2-8d28-f9b8bcb1635e"], ["created_at", "2015-06-29 17:45:14.460711"], ["updated_at", "2015-06-29 17:45:14.460711"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:14.463868"], ["updated_at", "2015-06-29 17:45:14.463868"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:45:14.465996"], ["updated_at", "2015-06-29 17:45:14.465996"]] + SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 72], ["updated_at", "2015-06-29 17:45:14.467583"], ["id", 118]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 109], ["process_id", 72], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:45:14.472177"], ["updated_at", "2015-06-29 17:45:14.472177"]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 75], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:14.474697"], ["updated_at", "2015-06-29 17:45:14.474697"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "7eb3f8e9-16a0-29ec-ce36-5b6aa9d6a611"], ["created_at", "2015-06-29 17:45:14.482460"], ["updated_at", "2015-06-29 17:45:14.482460"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 146], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "12d46f13-66f0-a66c-924b-6a7f3c216ba8"], ["created_at", "2015-06-29 17:45:14.485117"], ["updated_at", "2015-06-29 17:45:14.485117"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:14.488133"], ["updated_at", "2015-06-29 17:45:14.488133"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:45:14.490392"], ["updated_at", "2015-06-29 17:45:14.490392"]] + SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 73], ["updated_at", "2015-06-29 17:45:14.492327"], ["id", 120]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 110], ["process_id", 73], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:45:14.496714"], ["updated_at", "2015-06-29 17:45:14.496714"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 76], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:14.498672"], ["updated_at", "2015-06-29 17:45:14.498672"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "520ac21d-3e99-3616-a6af-4b1c0ddbeee5"], ["created_at", "2015-06-29 17:45:14.504322"], ["updated_at", "2015-06-29 17:45:14.504322"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 147], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "5d324f6b-80f4-a22f-e7f4-11083eac205d"], ["created_at", "2015-06-29 17:45:14.506903"], ["updated_at", "2015-06-29 17:45:14.506903"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:14.509779"], ["updated_at", "2015-06-29 17:45:14.509779"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:45:14.511814"], ["updated_at", "2015-06-29 17:45:14.511814"]] + SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 74], ["updated_at", "2015-06-29 17:45:14.513233"], ["id", 122]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 111], ["process_id", 74], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:45:14.517899"], ["updated_at", "2015-06-29 17:45:14.517899"]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 77], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:14.519998"], ["updated_at", "2015-06-29 17:45:14.519998"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.4ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "24b40a66-0adf-db2d-1d04-6ffa6f94fc3d"], ["created_at", "2015-06-29 17:45:14.528724"], ["updated_at", "2015-06-29 17:45:14.528724"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 148], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "e61db8d1-e0b9-fe6c-eb11-166b43cd348e"], ["created_at", "2015-06-29 17:45:14.531366"], ["updated_at", "2015-06-29 17:45:14.531366"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:14.534205"], ["updated_at", "2015-06-29 17:45:14.534205"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:45:14.536333"], ["updated_at", "2015-06-29 17:45:14.536333"]] + SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 75], ["updated_at", "2015-06-29 17:45:14.537704"], ["id", 124]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 112], ["process_id", 75], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:45:14.541874"], ["updated_at", "2015-06-29 17:45:14.541874"]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 78], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:14.544031"], ["updated_at", "2015-06-29 17:45:14.544031"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "47f673c9-7727-f7f6-6740-627b4998320a"], ["created_at", "2015-06-29 17:45:14.594351"], ["updated_at", "2015-06-29 17:45:14.594351"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "c2d735f8-373c-88dc-ee6b-53173e6e6dc1"], ["created_at", "2015-06-29 17:45:14.597307"], ["updated_at", "2015-06-29 17:45:14.597307"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "child_process_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 149], ["child_process_id", 150], ["uuid", "b17220f1-89c7-977d-7ebf-42bca5f4db23"], ["created_at", "2015-06-29 17:45:14.599952"], ["updated_at", "2015-06-29 17:45:14.599952"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:14.603385"], ["updated_at", "2015-06-29 17:45:14.603385"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:45:14.605592"], ["updated_at", "2015-06-29 17:45:14.605592"]] + SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 76], ["updated_at", "2015-06-29 17:45:14.607023"], ["id", 126]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "3020bb6f-ff2c-87b9-cc2e-b0b8e84587cb"], ["created_at", "2015-06-29 17:45:14.610215"], ["updated_at", "2015-06-29 17:45:14.610215"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 151], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "9aa7bd80-4318-f4ed-f898-5af51c63102a"], ["created_at", "2015-06-29 17:45:14.614866"], ["updated_at", "2015-06-29 17:45:14.614866"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 114], ["process_id", 76], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:45:14.623146"], ["updated_at", "2015-06-29 17:45:14.623146"]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 79], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:14.627271"], ["updated_at", "2015-06-29 17:45:14.627271"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 113], ["process_id", 76], ["status", 0], ["dependencies", "[{\"operation_id\":79,\"status\":0}]"], ["created_at", "2015-06-29 17:45:14.632275"], ["updated_at", "2015-06-29 17:45:14.632275"]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 80], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:14.634246"], ["updated_at", "2015-06-29 17:45:14.634246"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 150]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 150], ["created_at", "2015-06-29 17:45:14.639771"], ["updated_at", "2015-06-29 17:45:14.639771"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:45:14.642045"], ["id", 77]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 77], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:14.644413"], ["updated_at", "2015-06-29 17:45:14.644413"]] + RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 77], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 150]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 77]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "c193c15b-aacc-4f02-b9f5-3af36b8697a9"], ["created_at", "2015-06-29 17:45:14.655158"], ["updated_at", "2015-06-29 17:45:14.655158"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 152], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "b8608ba8-ae14-bb81-267d-ff8b8aa7cc34"], ["created_at", "2015-06-29 17:45:14.657853"], ["updated_at", "2015-06-29 17:45:14.657853"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:14.660881"], ["updated_at", "2015-06-29 17:45:14.660881"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:45:14.663137"], ["updated_at", "2015-06-29 17:45:14.663137"]] + SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 78], ["updated_at", "2015-06-29 17:45:14.664832"], ["id", 130]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 115], ["process_id", 78], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:45:14.669542"], ["updated_at", "2015-06-29 17:45:14.669542"]] + SQL (0.4ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 81], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:14.671689"], ["updated_at", "2015-06-29 17:45:14.671689"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 4], ["created_at", "2015-06-29 17:45:14.680045"], ["updated_at", "2015-06-29 17:45:14.680045"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "0b82f6fe-5510-1bbb-9e95-4df0c795fd33"], ["created_at", "2015-06-29 17:45:14.683379"], ["updated_at", "2015-06-29 17:45:14.683379"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 153], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "05968f65-dbe6-3142-a04d-e3f1f1c73a69"], ["created_at", "2015-06-29 17:45:14.686271"], ["updated_at", "2015-06-29 17:45:14.686271"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:14.689608"], ["updated_at", "2015-06-29 17:45:14.689608"]] +  (0.5ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:45:14.693981"], ["updated_at", "2015-06-29 17:45:14.693981"]] + SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 79], ["updated_at", "2015-06-29 17:45:14.695980"], ["id", 132]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 82], ["parent_type", "RailsWorkflow::Operation"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 116], ["process_id", 79], ["status", 0], ["dependencies", "[{\"operation_id\":82,\"status\":4}]"], ["created_at", "2015-06-29 17:45:14.701672"], ["updated_at", "2015-06-29 17:45:14.701672"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 83], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:14.703973"], ["updated_at", "2015-06-29 17:45:14.703973"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "04ae747f-bca8-d6d2-3b53-01b807367eb1"], ["created_at", "2015-06-29 17:45:14.711228"], ["updated_at", "2015-06-29 17:45:14.711228"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 154], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "30b6d7f7-7706-7579-78a3-e6fca24bc3c7"], ["created_at", "2015-06-29 17:45:14.713732"], ["updated_at", "2015-06-29 17:45:14.713732"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:14.716366"], ["updated_at", "2015-06-29 17:45:14.716366"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:45:14.718662"], ["updated_at", "2015-06-29 17:45:14.718662"]] + SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 80], ["updated_at", "2015-06-29 17:45:14.720131"], ["id", 134]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 117], ["process_id", 80], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:45:14.724477"], ["updated_at", "2015-06-29 17:45:14.724477"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 84], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:14.726803"], ["updated_at", "2015-06-29 17:45:14.726803"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:45:14.732641"], ["updated_at", "2015-06-29 17:45:14.732641"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$ycGhsYqHJXSPZQs4aWM.Ju3GZWj0bqQLUnVMzo9vrJgtLiTaP2wlS"], ["created_at", "2015-06-29 17:45:14.755196"], ["updated_at", "2015-06-29 17:45:14.755196"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 12], ["assignment_type", "User"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 12], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2015-06-29 17:45:14.759029"], ["updated_at", "2015-06-29 17:45:14.761638"], ["id", 85]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:45:14.767381"], ["updated_at", "2015-06-29 17:45:14.767381"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$Uc/sHU1/giPrIQj3wP6iVupHGQtu9moYxgZ0bbRqDoDMI48iFOsaK"], ["created_at", "2015-06-29 17:45:14.773215"], ["updated_at", "2015-06-29 17:45:14.773215"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 13], ["assignment_type", "User"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 13], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2015-06-29 17:45:14.776000"], ["updated_at", "2015-06-29 17:45:14.777595"], ["id", 86]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:45:14.779990"], ["updated_at", "2015-06-29 17:45:14.779990"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 13], ["assignment_type", "User"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 13], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2015-06-29 17:45:14.781795"], ["updated_at", "2015-06-29 17:45:14.783126"], ["id", 87]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 86]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:45:14.788823"], ["updated_at", "2015-06-29 17:45:14.788823"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 + SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$rYBSewg9oRzwXE9J0GHlGOLGhGJ2kjHBxJe.lzBnu5pSAz5wqaRdO"], ["created_at", "2015-06-29 17:45:14.794126"], ["updated_at", "2015-06-29 17:45:14.794126"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 14], ["assignment_type", "User"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 14], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2015-06-29 17:45:14.796473"], ["updated_at", "2015-06-29 17:45:14.797965"], ["id", 88]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "updated_at" = $4 WHERE "rails_workflow_operations"."id" = $5 [["assignment_id", nil], ["assignment_type", nil], ["is_active", "f"], ["updated_at", "2015-06-29 17:45:14.801434"], ["id", 88]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:45:14.807237"], ["updated_at", "2015-06-29 17:45:14.807237"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$KsVqqh9WFAlFmgK0y0HhCutEjsltbWghETqd/yjF3NNfw.5lv0N6u"], ["created_at", "2015-06-29 17:45:14.815449"], ["updated_at", "2015-06-29 17:45:14.815449"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 15], ["assignment_type", "User"]] +  (0.4ms) SAVEPOINT active_record_1 + SQL (1.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 15], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2015-06-29 17:45:14.817528"], ["updated_at", "2015-06-29 17:45:14.820144"], ["id", 89]] +  (1.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'other@user.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "other@user.com"], ["encrypted_password", "$2a$04$l2u56VvNNBYrVPrNzXTQNeT9o8Rs9uc4bAbaEbRtuj2fyEfIa8k2C"], ["created_at", "2015-06-29 17:45:14.831900"], ["updated_at", "2015-06-29 17:45:14.831900"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 89]] + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 15]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:45:14.840935"], ["updated_at", "2015-06-29 17:45:14.840935"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$UD67WfFuO2BVwWcRmFsXd.Lhefup9q8dziTvTUI0AnzoOElDlS0b6"], ["created_at", "2015-06-29 17:45:14.846942"], ["updated_at", "2015-06-29 17:45:14.846942"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 17], ["assignment_type", "User"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 17], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2015-06-29 17:45:14.849057"], ["updated_at", "2015-06-29 17:45:14.850867"], ["id", 90]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'other@user.com' LIMIT 1 + SQL (0.9ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "other@user.com"], ["encrypted_password", "$2a$04$0dYPZzUWhm3T8yPA.lJHPOfTQI6ckLrKCIg1LJEFhdJ/87WBw0w.G"], ["created_at", "2015-06-29 17:45:14.856107"], ["updated_at", "2015-06-29 17:45:14.856107"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:45:14.861969"], ["updated_at", "2015-06-29 17:45:14.861969"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$9mRy64qM05dKLBlV6GE5BOJOPqnGnOhO2o5erjKCqnp/Fp3GQ1I6m"], ["created_at", "2015-06-29 17:45:14.867044"], ["updated_at", "2015-06-29 17:45:14.867044"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 19], ["assignment_type", "User"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 19], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2015-06-29 17:45:14.869397"], ["updated_at", "2015-06-29 17:45:14.871201"], ["id", 91]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'other@user.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "other@user.com"], ["encrypted_password", "$2a$04$QU3zEQ1QzdWBM/onYDt.Ve2MWEaK2ExkJQo3oxo3ha/nY9WehDQ.S"], ["created_at", "2015-06-29 17:45:14.876072"], ["updated_at", "2015-06-29 17:45:14.876072"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "ab4f2da4-5247-e50a-d0b1-cabd0fb38927"], ["created_at", "2015-06-29 17:45:14.880716"], ["updated_at", "2015-06-29 17:45:14.880716"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "role", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 155], ["role", "admin"], ["uuid", "388e96e9-35f0-bd21-3871-e4e85accd119"], ["created_at", "2015-06-29 17:45:14.883528"], ["updated_at", "2015-06-29 17:45:14.883528"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "eee5a26c-4c08-4b5e-3e61-ff36f8fd5283"], ["created_at", "2015-06-29 17:45:14.887058"], ["updated_at", "2015-06-29 17:45:14.887058"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "group", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 156], ["group", "some_group"], ["uuid", "91324a8d-a7c9-c93a-ce10-2be885824c81"], ["created_at", "2015-06-29 17:45:14.889548"], ["updated_at", "2015-06-29 17:45:14.889548"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Test Operation"], ["status", 3], ["template_id", 119], ["created_at", "2015-06-29 17:45:14.892988"], ["updated_at", "2015-06-29 17:45:14.892988"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Test Operation"], ["status", 3], ["template_id", 118], ["created_at", "2015-06-29 17:45:14.896665"], ["updated_at", "2015-06-29 17:45:14.896665"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$6j6xsmOcMhAPGh2HXX2.keggcBFWbS.rcTESC2oWp2hCiHmMxGhAS"], ["role", "admin"], ["created_at", "2015-06-29 17:45:14.902118"], ["updated_at", "2015-06-29 17:45:14.902118"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (1.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" INNER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."id" = "rails_workflow_operations"."template_id" WHERE "rails_workflow_operations"."status" = 3 AND "rails_workflow_operations"."assignment_id" IS NULL AND (rails_workflow_operation_templates.role = 'admin') +  (0.2ms) SAVEPOINT active_record_1 + User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'fake@email.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "fake@email.com"], ["encrypted_password", "$2a$04$Bk1SPjKd9x1B5l.SLz8xleTQgTDh89vpl/Qpd2C51HIILS5r1Gq2a"], ["role", "fake"], ["created_at", "2015-06-29 17:45:14.914333"], ["updated_at", "2015-06-29 17:45:14.914333"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.6ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" INNER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."id" = "rails_workflow_operations"."template_id" WHERE "rails_workflow_operations"."status" = 3 AND "rails_workflow_operations"."assignment_id" IS NULL AND (rails_workflow_operation_templates.role = 'fake') + SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 21], ["assignment_type", "User"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 21], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2015-06-29 17:45:14.918227"], ["updated_at", "2015-06-29 17:45:14.920065"], ["id", 93]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."assignment_id" IS NULL +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:14.926427"], ["updated_at", "2015-06-29 17:45:14.926427"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:45:14.929308"], ["updated_at", "2015-06-29 17:45:14.929308"]] + SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 94], ["updated_at", "2015-06-29 17:45:14.931046"], ["id", 136]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 3], ["updated_at", "2015-06-29 17:45:14.933322"], ["id", 94]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:45:14.938655"], ["updated_at", "2015-06-29 17:45:14.938655"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:14.941884"], ["updated_at", "2015-06-29 17:45:14.941884"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:45:14.944500"], ["updated_at", "2015-06-29 17:45:14.944500"]] + SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 81], ["updated_at", "2015-06-29 17:45:14.946200"], ["id", 137]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operations" SET "child_process_id" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["child_process_id", 81], ["updated_at", "2015-06-29 17:45:14.948678"], ["id", 95]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:45:14.951359"], ["id", 95]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 95]] +  (0.1ms) SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 81]] + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:45:14.956327"], ["id", 81]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 81], ["status", 0]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 81]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("status", "completed_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["status", 2], ["completed_at", "2015-06-29 17:45:14.964171"], ["created_at", "2015-06-29 17:45:14.965029"], ["updated_at", "2015-06-29 17:45:14.965029"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("status", "completed_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["status", 6], ["completed_at", "2015-06-29 17:45:14.969531"], ["created_at", "2015-06-29 17:45:14.970277"], ["updated_at", "2015-06-29 17:45:14.970277"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("status", "completed_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["status", 5], ["completed_at", "2015-06-29 17:45:14.976451"], ["created_at", "2015-06-29 17:45:14.977501"], ["updated_at", "2015-06-29 17:45:14.977501"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "1785f135-aabe-95ea-0ffd-d80580d528c4"], ["created_at", "2015-06-29 17:45:14.982173"], ["updated_at", "2015-06-29 17:45:14.982173"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::CustomOperationTemplate"], ["title", "First Test project"], ["process_template_id", 157], ["uuid", "944697d3-0ac3-ab73-3926-bc09bab4fd2a"], ["created_at", "2015-06-29 17:45:14.984798"], ["updated_at", "2015-06-29 17:45:14.984798"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "922c1ba4-91b1-e69e-d573-6dfdc6a6e465"], ["created_at", "2015-06-29 17:45:14.989160"], ["updated_at", "2015-06-29 17:45:14.989160"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 158], ["uuid", "0883bad1-7831-0286-9ddb-37d09b39d37b"], ["created_at", "2015-06-29 17:45:14.992137"], ["updated_at", "2015-06-29 17:45:14.992137"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 158], ["dependencies", "[{\"id\":121,\"statuses\":[2]}]"], ["uuid", "1f768640-2c01-6eec-6aaa-8bddf53a7fba"], ["created_at", "2015-06-29 17:45:14.996946"], ["updated_at", "2015-06-29 17:45:14.996946"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.5ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."dependencies" IS NULL +  (0.2ms) ROLLBACK +  (0.7ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "process_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Process Template"], ["process_class", "RailsWorkflow::TestProcess"], ["uuid", "8f297465-f601-bdcb-f491-92244e8e547b"], ["created_at", "2015-06-29 17:45:15.008063"], ["updated_at", "2015-06-29 17:45:15.008063"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("type", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "RailsWorkflow::TestProcess"], ["template_id", 159], ["created_at", "2015-06-29 17:45:15.017375"], ["updated_at", "2015-06-29 17:45:15.017375"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:45:15.019622"], ["id", 82]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 82], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2015-06-29 17:45:15.021939"], ["updated_at", "2015-06-29 17:45:15.021939"]] + RailsWorkflow::Context Load (0.4ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 82], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 159]] + RailsWorkflow::TestProcess Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."type" IN ('RailsWorkflow::TestProcess') AND "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 82]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 159]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2015-06-29 17:45:15.034397"], ["updated_at", "2015-06-29 17:45:15.034397"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2015-06-29 17:45:15.036871"], ["id", 160]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 160]] + RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 160], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 160], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2015-06-29 17:45:15.042113"], ["updated_at", "2015-06-29 17:45:15.042113"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:45:15.046256"], ["id", 123]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 160], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 160], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2015-06-29 17:45:15.050200"], ["updated_at", "2015-06-29 17:45:15.050200"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:45:15.054773"], ["id", 124]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 160], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 160], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2015-06-29 17:45:15.060296"], ["updated_at", "2015-06-29 17:45:15.060296"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"9ee9a27e-0790-0d45-9534-a6469e5b9ce9\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:45:15.064653"], ["id", 125]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":124}]"], ["updated_at", "2015-06-29 17:45:15.072920"], ["id", 124]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":125}]"], ["updated_at", "2015-06-29 17:45:15.077019"], ["id", 125]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2015-06-29 17:45:15.087079"], ["updated_at", "2015-06-29 17:45:15.087079"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2015-06-29 17:45:15.089444"], ["id", 161]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 161]] + RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 161], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 161], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2015-06-29 17:45:15.094664"], ["updated_at", "2015-06-29 17:45:15.094664"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:45:15.098268"], ["id", 126]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 161], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 161], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2015-06-29 17:45:15.102146"], ["updated_at", "2015-06-29 17:45:15.102146"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:45:15.106485"], ["id", 127]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 161], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 161], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2015-06-29 17:45:15.111592"], ["updated_at", "2015-06-29 17:45:15.111592"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"9ee9a27e-0790-0d45-9534-a6469e5b9ce9\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:45:15.116336"], ["id", 128]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":127}]"], ["updated_at", "2015-06-29 17:45:15.121425"], ["id", 127]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.9ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":128}]"], ["updated_at", "2015-06-29 17:45:15.126791"], ["id", 128]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_process_templates"."id" = $3 [["title", "Some new name"], ["updated_at", "2015-06-29 17:45:15.130964"], ["id", 161]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_process_templates"."id" = $3 [["title", "Test Process"], ["updated_at", "2015-06-29 17:45:15.134916"], ["id", 161]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 161]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 161], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]] +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 161], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["updated_at", "2015-06-29 17:45:15.146541"], ["id", 127]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 161], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"9ee9a27e-0790-0d45-9534-a6469e5b9ce9\"}]"], ["updated_at", "2015-06-29 17:45:15.153582"], ["id", 128]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":127}]"], ["updated_at", "2015-06-29 17:45:15.157852"], ["id", 127]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":128}]"], ["updated_at", "2015-06-29 17:45:15.161356"], ["id", 128]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2015-06-29 17:45:15.167271"], ["updated_at", "2015-06-29 17:45:15.167271"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2015-06-29 17:45:15.169736"], ["id", 162]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 162]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 162], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 162], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2015-06-29 17:45:15.175338"], ["updated_at", "2015-06-29 17:45:15.175338"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:45:15.179279"], ["id", 129]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 162], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 162], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2015-06-29 17:45:15.183111"], ["updated_at", "2015-06-29 17:45:15.183111"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:45:15.187748"], ["id", 130]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 162], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 162], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2015-06-29 17:45:15.191864"], ["updated_at", "2015-06-29 17:45:15.191864"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"9ee9a27e-0790-0d45-9534-a6469e5b9ce9\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:45:15.196407"], ["id", 131]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":130}]"], ["updated_at", "2015-06-29 17:45:15.201405"], ["id", 130]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":131}]"], ["updated_at", "2015-06-29 17:45:15.205258"], ["id", 131]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.5ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 162]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2015-06-29 17:45:15.214546"], ["updated_at", "2015-06-29 17:45:15.214546"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2015-06-29 17:45:15.217199"], ["id", 163]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 163]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 163], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 163], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2015-06-29 17:45:15.221549"], ["updated_at", "2015-06-29 17:45:15.221549"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:45:15.225111"], ["id", 132]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 163], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 163], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2015-06-29 17:45:15.228862"], ["updated_at", "2015-06-29 17:45:15.228862"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:45:15.233837"], ["id", 133]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 163], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 163], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2015-06-29 17:45:15.238110"], ["updated_at", "2015-06-29 17:45:15.238110"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"9ee9a27e-0790-0d45-9534-a6469e5b9ce9\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:45:15.242853"], ["id", 134]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 +  (0.6ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (1.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":133}]"], ["updated_at", "2015-06-29 17:45:15.250980"], ["id", 133]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":134}]"], ["updated_at", "2015-06-29 17:45:15.256259"], ["id", 134]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 163]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["title", "Some new operation name"], ["updated_at", "2015-06-29 17:45:15.263866"], ["id", 132]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 163]] + RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 163], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]] +  (1.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["title", "Default Operation 2"], ["updated_at", "2015-06-29 17:45:15.279282"], ["id", 132]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 163], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.4ms) SAVEPOINT active_record_1 + SQL (0.6ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["updated_at", "2015-06-29 17:45:15.291304"], ["id", 133]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 163], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"9ee9a27e-0790-0d45-9534-a6469e5b9ce9\"}]"], ["updated_at", "2015-06-29 17:45:15.300519"], ["id", 134]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":133}]"], ["updated_at", "2015-06-29 17:45:15.306285"], ["id", 133]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":134}]"], ["updated_at", "2015-06-29 17:45:15.311554"], ["id", 134]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 132]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2015-06-29 17:45:15.319781"], ["updated_at", "2015-06-29 17:45:15.319781"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2015-06-29 17:45:15.322589"], ["id", 164]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 164]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 164], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 164], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2015-06-29 17:45:15.327419"], ["updated_at", "2015-06-29 17:45:15.327419"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:45:15.334771"], ["id", 135]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 164], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 164], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2015-06-29 17:45:15.338838"], ["updated_at", "2015-06-29 17:45:15.338838"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:45:15.344720"], ["id", 136]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 164], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 164], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2015-06-29 17:45:15.349943"], ["updated_at", "2015-06-29 17:45:15.349943"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"9ee9a27e-0790-0d45-9534-a6469e5b9ce9\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:45:15.355621"], ["id", 137]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":136}]"], ["updated_at", "2015-06-29 17:45:15.361152"], ["id", 136]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":137}]"], ["updated_at", "2015-06-29 17:45:15.364854"], ["id", 137]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Some new operation"], ["process_template_id", 164], ["uuid", "0d438a0b-76ea-bdd6-9014-5b3da5890127"], ["created_at", "2015-06-29 17:45:15.370738"], ["updated_at", "2015-06-29 17:45:15.370738"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 164]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 164]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 164], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]] +  (0.2ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 164], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["updated_at", "2015-06-29 17:45:15.385526"], ["id", 136]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 164], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.4ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"9ee9a27e-0790-0d45-9534-a6469e5b9ce9\"}]"], ["updated_at", "2015-06-29 17:45:15.392371"], ["id", 137]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + SQL (0.4ms) DELETE FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = 138 +  (0.2ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":136}]"], ["updated_at", "2015-06-29 17:45:15.398289"], ["id", 136]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":137}]"], ["updated_at", "2015-06-29 17:45:15.401387"], ["id", 137]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 164]] +  (0.2ms) ROLLBACK + ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.2ms) BEGIN +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "a2d75d84-2fba-ac3c-37d4-97fad73411af"], ["created_at", "2015-06-29 17:45:37.461023"], ["updated_at", "2015-06-29 17:45:37.461023"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 165], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "2759407a-4bd7-2dd1-0d03-ce1b99d0a7f6"], ["created_at", "2015-06-29 17:45:37.477248"], ["updated_at", "2015-06-29 17:45:37.477248"]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::OperationTemplatesController#index as HTML + Parameters: {"process_template_id"=>"165"} + RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 165]] + Rendered /Users/maxim/workflow/rails_workflow/app/views/rails_workflow/operation_templates/index.html.slim within layouts/rails_workflow/application (0.3ms) +Completed 200 OK in 66ms (Views: 46.3ms | ActiveRecord: 0.4ms) + RailsWorkflow::OperationTemplate Load (0.5ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 165]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "7bbb5646-f551-dcbb-a1a3-03e51a96af3a"], ["created_at", "2015-06-29 17:45:37.560521"], ["updated_at", "2015-06-29 17:45:37.560521"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 166], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "24097e00-2358-f716-4a4e-0ec36fa12184"], ["created_at", "2015-06-29 17:45:37.563148"], ["updated_at", "2015-06-29 17:45:37.563148"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::OperationTemplatesController#show as HTML + Parameters: {"process_template_id"=>"166", "id"=>"140"} + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 140]] + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 166]] + Rendered /Users/maxim/workflow/rails_workflow/app/views/rails_workflow/operation_templates/show.html.slim within layouts/rails_workflow/application (0.2ms) +Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "559b340e-b15d-b621-73f6-d84ec5b3c05b"], ["created_at", "2015-06-29 17:45:37.580780"], ["updated_at", "2015-06-29 17:45:37.580780"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "bfc4cdf3-54de-996e-64f5-4eba5d7e1386"], ["created_at", "2015-06-29 17:45:37.583132"], ["updated_at", "2015-06-29 17:45:37.583132"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::OperationTemplatesController#new as HTML + Parameters: {"process_template_id"=>"168"} + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 168]] +Unpermitted parameter: process_template_id + Rendered /Users/maxim/workflow/rails_workflow/app/views/rails_workflow/operation_templates/new.html.slim within layouts/rails_workflow/application (0.9ms) +Completed 200 OK in 12ms (Views: 3.7ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "475f2675-901f-100f-16a2-c77ac38e6bf9"], ["created_at", "2015-06-29 17:45:37.605056"], ["updated_at", "2015-06-29 17:45:37.605056"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 169], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "4831f21f-0448-eaf9-4a5b-fe3b392dd0ac"], ["created_at", "2015-06-29 17:45:37.607922"], ["updated_at", "2015-06-29 17:45:37.607922"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::OperationTemplatesController#edit as HTML + Parameters: {"process_template_id"=>"169", "id"=>"141"} + RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 141]] + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 169]] + Rendered /Users/maxim/workflow/rails_workflow/app/views/rails_workflow/operation_templates/edit.html.slim within layouts/rails_workflow/application (0.3ms) +Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "371fd369-014b-4ac9-19e0-7cbda28e12eb"], ["created_at", "2015-06-29 17:45:37.627305"], ["updated_at", "2015-06-29 17:45:37.627305"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" +Processing by RailsWorkflow::OperationTemplatesController#create as HTML + Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"170", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"170"} + RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 170]] +Unpermitted parameter: process_template_id +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::OperationTemplate"], ["title", "First Test project"], ["process_template_id", 170], ["uuid", "7930bb0d-f432-6a3d-abc8-d3bc4920565f"], ["created_at", "2015-06-29 17:45:37.639597"], ["updated_at", "2015-06-29 17:45:37.639597"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config/170/operation_templates +Completed 302 Found in 9ms (ActiveRecord: 1.1ms) +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 170]] +  (0.7ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "03412eb3-68d9-2928-45da-eabe1697328b"], ["created_at", "2015-06-29 17:45:37.652792"], ["updated_at", "2015-06-29 17:45:37.652792"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" +Processing by RailsWorkflow::OperationTemplatesController#create as HTML + Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"171", "type"=>"RailsWorkflow::CustomOperationTemplate"}, "process_template_id"=>"171"} + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 171]] +Unpermitted parameter: process_template_id +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::CustomOperationTemplate"], ["title", "First Test project"], ["process_template_id", 171], ["uuid", "91cbc07a-dd39-aa77-1ec8-e6ec6db46e69"], ["created_at", "2015-06-29 17:45:37.671102"], ["updated_at", "2015-06-29 17:45:37.671102"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config/171/operation_templates +Completed 302 Found in 17ms (ActiveRecord: 1.0ms) +  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" + RailsWorkflow::OperationTemplate Load (0.7ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" ORDER BY "rails_workflow_operation_templates"."id" DESC LIMIT 1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "e0060f95-b955-5507-612a-844b35cec35e"], ["created_at", "2015-06-29 17:45:37.682408"], ["updated_at", "2015-06-29 17:45:37.682408"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::OperationTemplatesController#create as HTML + Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"172", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"172"} + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 172]] +Unpermitted parameter: process_template_id +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::OperationTemplate"], ["title", "First Test project"], ["process_template_id", 172], ["uuid", "37bba39c-e843-b52e-f101-27ef2eaa46ca"], ["created_at", "2015-06-29 17:45:37.691299"], ["updated_at", "2015-06-29 17:45:37.691299"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config/172/operation_templates +Completed 302 Found in 7ms (ActiveRecord: 0.8ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.5ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "0e268fff-7750-fc3a-5381-58f59b2b8ef9"], ["created_at", "2015-06-29 17:45:37.700173"], ["updated_at", "2015-06-29 17:45:37.700173"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::OperationTemplatesController#create as HTML + Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"173", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"173"} + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 173]] +Unpermitted parameter: process_template_id +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::OperationTemplate"], ["title", "First Test project"], ["process_template_id", 173], ["uuid", "813e8ba3-d59f-e8b0-279c-70360b0d9e29"], ["created_at", "2015-06-29 17:45:37.708926"], ["updated_at", "2015-06-29 17:45:37.708926"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config/173/operation_templates +Completed 302 Found in 8ms (ActiveRecord: 0.8ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "d6506aa3-a2fb-346c-1abe-2fc46bf9b273"], ["created_at", "2015-06-29 17:45:37.719748"], ["updated_at", "2015-06-29 17:45:37.719748"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "49bfb8b6-569a-5cd5-0d59-72befeb0cb3a"], ["created_at", "2015-06-29 17:45:37.723639"], ["updated_at", "2015-06-29 17:45:37.723639"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "648356ea-2f7e-6574-deb5-1b20c4bffdb5"], ["created_at", "2015-06-29 17:45:37.727880"], ["updated_at", "2015-06-29 17:45:37.727880"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 176], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "ad1067fa-8b0f-06ea-b966-07cdbf6de991"], ["created_at", "2015-06-29 17:45:37.730454"], ["updated_at", "2015-06-29 17:45:37.730454"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "8d8af3e7-ce87-a4f8-b6ff-b41b114ff0e7"], ["created_at", "2015-06-29 17:45:37.735363"], ["updated_at", "2015-06-29 17:45:37.735363"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 177], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "9c285264-6b70-5d38-c421-834cfaddb5f7"], ["created_at", "2015-06-29 17:45:37.737881"], ["updated_at", "2015-06-29 17:45:37.737881"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::OperationTemplatesController#update as HTML + Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"177", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"177", "id"=>"147"} + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 147]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 177]] +Unpermitted parameters: process_template_id, id +  (0.2ms) SAVEPOINT active_record_1 +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config/177/operation_templates +Completed 302 Found in 10ms (ActiveRecord: 1.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "da919e97-61e4-fafe-7924-2c802f7e3db0"], ["created_at", "2015-06-29 17:45:37.756668"], ["updated_at", "2015-06-29 17:45:37.756668"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 178], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "3256941f-2ddb-e83e-1dd8-a27a17e13d9a"], ["created_at", "2015-06-29 17:45:37.759324"], ["updated_at", "2015-06-29 17:45:37.759324"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::OperationTemplatesController#update as HTML + Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"178", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"178", "id"=>"148"} + RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 148]] + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 178]] +Unpermitted parameters: process_template_id, id +  (0.1ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config/178/operation_templates +Completed 302 Found in 8ms (ActiveRecord: 1.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "55949cec-7f2e-449c-d5a0-768ebe3a1999"], ["created_at", "2015-06-29 17:45:37.779565"], ["updated_at", "2015-06-29 17:45:37.779565"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 179], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "25681cfe-a2b0-e940-0d4c-c2c891dff5aa"], ["created_at", "2015-06-29 17:45:37.782425"], ["updated_at", "2015-06-29 17:45:37.782425"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "65151efa-ea84-a201-635a-0f2208b3a87c"], ["created_at", "2015-06-29 17:45:37.786666"], ["updated_at", "2015-06-29 17:45:37.786666"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 180], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "954abad5-a98b-4622-b0d1-18106e7a3731"], ["created_at", "2015-06-29 17:45:37.789406"], ["updated_at", "2015-06-29 17:45:37.789406"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "7bb6c433-577b-10b9-da33-4c022dc59c8e"], ["created_at", "2015-06-29 17:45:37.793985"], ["updated_at", "2015-06-29 17:45:37.793985"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 181], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "a1a45b11-8ff0-4ad2-7238-9c552b6da55f"], ["created_at", "2015-06-29 17:45:37.796446"], ["updated_at", "2015-06-29 17:45:37.796446"]] +  (0.5ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 181]] +Processing by RailsWorkflow::OperationTemplatesController#destroy as HTML + Parameters: {"process_template_id"=>"181", "id"=>"151"} + RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 151]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 181]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) DELETE FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 [["id", 151]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config/181/operation_templates +Completed 302 Found in 7ms (ActiveRecord: 1.2ms) +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "e9375d03-c9b7-55b4-74c1-644a3e924c04"], ["created_at", "2015-06-29 17:45:37.817239"], ["updated_at", "2015-06-29 17:45:37.817239"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 182], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "1bcfef30-923d-1585-a557-854b861effa0"], ["created_at", "2015-06-29 17:45:37.819640"], ["updated_at", "2015-06-29 17:45:37.819640"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::OperationTemplatesController#destroy as HTML + Parameters: {"process_template_id"=>"182", "id"=>"152"} + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 152]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 182]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) DELETE FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 [["id", 152]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config/182/operation_templates +Completed 302 Found in 7ms (ActiveRecord: 1.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.5ms) SELECT COUNT(*) FROM "rails_workflow_operations" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "46c2203f-d848-e963-78e0-0c4dad9e673c"], ["created_at", "2015-06-29 17:45:37.862590"], ["updated_at", "2015-06-29 17:45:37.862590"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessTemplatesController#index as HTML + Rendered /Users/maxim/workflow/rails_workflow/app/views/rails_workflow/process_templates/index.html.slim within layouts/rails_workflow/application (0.2ms) +Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) + RailsWorkflow::ProcessTemplate Load (0.5ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" ORDER BY "rails_workflow_process_templates"."id" DESC +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "7bd1825f-15cf-4d95-9ecd-ccdea911755d"], ["created_at", "2015-06-29 17:45:37.878239"], ["updated_at", "2015-06-29 17:45:37.878239"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessTemplatesController#show as HTML + Parameters: {"id"=>"184"} + RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 184]] + Rendered /Users/maxim/workflow/rails_workflow/app/views/rails_workflow/process_templates/show.html.slim within layouts/rails_workflow/application (0.3ms) +Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +Processing by RailsWorkflow::ProcessTemplatesController#new as HTML + Rendered /Users/maxim/workflow/rails_workflow/app/views/rails_workflow/process_templates/new.html.slim within layouts/rails_workflow/application (0.2ms) +Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "e3db7cd0-2e35-8da4-26bc-64d51cf2927e"], ["created_at", "2015-06-29 17:45:37.905421"], ["updated_at", "2015-06-29 17:45:37.905421"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessTemplatesController#edit as HTML + Parameters: {"id"=>"185"} + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 185]] + Rendered /Users/maxim/workflow/rails_workflow/app/views/rails_workflow/process_templates/edit.html.slim within layouts/rails_workflow/application (0.2ms) +Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_process_templates" +Processing by RailsWorkflow::ProcessTemplatesController#create as HTML + Parameters: {"process_template"=>{"title"=>"First Test project"}} +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "1f82736c-5b30-086f-91e8-963b8322c5b2"], ["created_at", "2015-06-29 17:45:37.925275"], ["updated_at", "2015-06-29 17:45:37.925275"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config/186/operation_templates +Completed 302 Found in 6ms (ActiveRecord: 0.6ms) +  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_process_templates" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +Processing by RailsWorkflow::ProcessTemplatesController#create as HTML + Parameters: {"process_template"=>{"title"=>"First Test project"}} +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "2bd39651-6452-7875-015a-3909a63b9d03"], ["created_at", "2015-06-29 17:45:37.938288"], ["updated_at", "2015-06-29 17:45:37.938288"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config/187/operation_templates +Completed 302 Found in 6ms (ActiveRecord: 0.7ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +Processing by RailsWorkflow::ProcessTemplatesController#create as HTML + Parameters: {"process_template"=>{"title"=>"First Test project"}} +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "7f7da7a2-f1dc-5ac1-600c-3ce4dc221851"], ["created_at", "2015-06-29 17:45:37.952074"], ["updated_at", "2015-06-29 17:45:37.952074"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config/188/operation_templates +Completed 302 Found in 6ms (ActiveRecord: 0.6ms) + RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" ORDER BY "rails_workflow_process_templates"."id" DESC LIMIT 1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "e73b0862-953f-dc0b-0df5-b013ac3fac4e"], ["created_at", "2015-06-29 17:45:37.967244"], ["updated_at", "2015-06-29 17:45:37.967244"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "4ad31ec1-4f1d-0750-64f4-6aeb5869d90d"], ["created_at", "2015-06-29 17:45:37.970932"], ["updated_at", "2015-06-29 17:45:37.970932"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessTemplatesController#update as HTML + Parameters: {"process_template"=>{"title"=>"First Test project"}, "id"=>"190"} + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 190]] +Unpermitted parameter: id +  (0.2ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config/190 +Completed 302 Found in 6ms (ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "618f670a-e621-106d-b329-1df8ff0bc05d"], ["created_at", "2015-06-29 17:45:37.985020"], ["updated_at", "2015-06-29 17:45:37.985020"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessTemplatesController#update as HTML + Parameters: {"process_template"=>{"title"=>"First Test project"}, "id"=>"191"} + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 191]] +Unpermitted parameter: id +  (0.2ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config/191 +Completed 302 Found in 6ms (ActiveRecord: 0.6ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "8b6c979e-74bf-aaaf-6d85-d7a26f31621c"], ["created_at", "2015-06-29 17:45:38.004245"], ["updated_at", "2015-06-29 17:45:38.004245"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "dc7ed03c-73b2-e227-aac7-8de18ecae25a"], ["created_at", "2015-06-29 17:45:38.008265"], ["updated_at", "2015-06-29 17:45:38.008265"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "87632f31-5d5d-4cdd-1461-5aeaf600b42a"], ["created_at", "2015-06-29 17:45:38.012070"], ["updated_at", "2015-06-29 17:45:38.012070"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_process_templates" +Processing by RailsWorkflow::ProcessTemplatesController#destroy as HTML + Parameters: {"id"=>"194"} + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 194]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) DELETE FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 [["id", 194]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config +Completed 302 Found in 6ms (ActiveRecord: 0.9ms) +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_process_templates" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "374f65fe-114e-2bbc-f914-896a52c09d86"], ["created_at", "2015-06-29 17:45:38.027593"], ["updated_at", "2015-06-29 17:45:38.027593"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessTemplatesController#destroy as HTML + Parameters: {"id"=>"195"} + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 195]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) DELETE FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 [["id", 195]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config +Completed 302 Found in 6ms (ActiveRecord: 0.9ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "7ff050a5-f2da-4b7a-9e97-1e2fd423f5a9"], ["created_at", "2015-06-29 17:45:38.043322"], ["updated_at", "2015-06-29 17:45:38.043322"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 196], ["created_at", "2015-06-29 17:45:38.053235"], ["updated_at", "2015-06-29 17:45:38.053235"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessesController#index as HTML +  (0.8ms) SELECT COUNT(*) FROM "rails_workflow_processes" +  (0.5ms) select status, cnt from ( + select row_number() over (partition by status), + count(*) over (partition by status) cnt, + status from rails_workflow_processes)t + where row_number = 1 + Rendered /Users/maxim/workflow/rails_workflow/app/views/rails_workflow/processes/index.html.slim within layouts/rails_workflow/application (0.2ms) +Completed 200 OK in 12ms (Views: 4.4ms | ActiveRecord: 1.2ms) + RailsWorkflow::Process Load (0.6ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" ORDER BY "rails_workflow_processes"."created_at" DESC LIMIT 30 OFFSET 0 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "0cfae78c-92d2-15ad-7af3-4f0161d2c211"], ["created_at", "2015-06-29 17:45:38.078356"], ["updated_at", "2015-06-29 17:45:38.078356"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 197], ["created_at", "2015-06-29 17:45:38.081223"], ["updated_at", "2015-06-29 17:45:38.081223"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessesController#show as HTML + Parameters: {"id"=>"84"} + RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 84]] + Rendered /Users/maxim/workflow/rails_workflow/app/views/rails_workflow/processes/show.html.slim within layouts/rails_workflow/application (0.2ms) +Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "238a4c38-2a35-27dd-8335-b186bcd3d432"], ["created_at", "2015-06-29 17:45:38.098866"], ["updated_at", "2015-06-29 17:45:38.098866"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessesController#new as HTML + Rendered /Users/maxim/workflow/rails_workflow/app/views/rails_workflow/processes/new.html.slim within layouts/rails_workflow/application (0.2ms) +Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "4e79749c-a167-b1d8-f3d2-a76257d8ae3c"], ["created_at", "2015-06-29 17:45:38.110987"], ["updated_at", "2015-06-29 17:45:38.110987"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 199], ["created_at", "2015-06-29 17:45:38.113571"], ["updated_at", "2015-06-29 17:45:38.113571"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessesController#edit as HTML + Parameters: {"id"=>"85"} + RailsWorkflow::Process Load (0.4ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 85]] + Rendered /Users/maxim/workflow/rails_workflow/app/views/rails_workflow/processes/edit.html.slim within layouts/rails_workflow/application (0.2ms) +Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "2b480c6a-05cb-a251-b4eb-7dbdd0f7c1cc"], ["created_at", "2015-06-29 17:45:38.128960"], ["updated_at", "2015-06-29 17:45:38.128960"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_processes" +Processing by RailsWorkflow::ProcessesController#create as HTML + Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"200"}} + RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 200]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 200], ["created_at", "2015-06-29 17:45:38.139543"], ["updated_at", "2015-06-29 17:45:38.139543"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:45:38.141831"], ["id", 86]] + SQL (0.4ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 86], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2015-06-29 17:45:38.154662"], ["updated_at", "2015-06-29 17:45:38.154662"]] + RailsWorkflow::Context Load (0.4ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 86], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 200]] + RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 86]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 86]] +Redirected to http://test.host/workflow/processes/86 +Completed 302 Found in 33ms (ActiveRecord: 4.6ms) +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_processes" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "3c3dea65-81a0-0f7f-7211-b3641b61f566"], ["created_at", "2015-06-29 17:45:38.172896"], ["updated_at", "2015-06-29 17:45:38.172896"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessesController#create as HTML + Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"201"}} + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 201]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 201], ["created_at", "2015-06-29 17:45:38.181002"], ["updated_at", "2015-06-29 17:45:38.181002"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:45:38.183528"], ["id", 87]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 87], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2015-06-29 17:45:38.185895"], ["updated_at", "2015-06-29 17:45:38.185895"]] + RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 87], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 201]] + RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 87]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 87]] +Redirected to http://test.host/workflow/processes/87 +Completed 302 Found in 16ms (ActiveRecord: 2.7ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "d16faa2f-0301-7f70-c8f8-f357e1ec2230"], ["created_at", "2015-06-29 17:45:38.198182"], ["updated_at", "2015-06-29 17:45:38.198182"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessesController#create as HTML + Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"202"}} + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 202]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 202], ["created_at", "2015-06-29 17:45:38.205650"], ["updated_at", "2015-06-29 17:45:38.205650"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:45:38.208268"], ["id", 88]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 88], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2015-06-29 17:45:38.210740"], ["updated_at", "2015-06-29 17:45:38.210740"]] + RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 88], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 202]] + RailsWorkflow::Process Load (0.8ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 88]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 88]] +Redirected to http://test.host/workflow/processes/88 +Completed 302 Found in 18ms (ActiveRecord: 3.6ms) + RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" ORDER BY "rails_workflow_processes"."id" DESC LIMIT 1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "8791ee70-e771-5e39-d761-ca9b07e62606"], ["created_at", "2015-06-29 17:45:38.229085"], ["updated_at", "2015-06-29 17:45:38.229085"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "859a17c8-fd5b-c6d8-c274-dd0fbf70b8b8"], ["created_at", "2015-06-29 17:45:38.233336"], ["updated_at", "2015-06-29 17:45:38.233336"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "59dd6893-3264-43e2-41f6-f18bab7aff6c"], ["created_at", "2015-06-29 17:45:38.237514"], ["updated_at", "2015-06-29 17:45:38.237514"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 205], ["created_at", "2015-06-29 17:45:38.239561"], ["updated_at", "2015-06-29 17:45:38.239561"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "43d9fc5a-ae68-d35c-7403-0040d89f9fa4"], ["created_at", "2015-06-29 17:45:38.243827"], ["updated_at", "2015-06-29 17:45:38.243827"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 206], ["created_at", "2015-06-29 17:45:38.246021"], ["updated_at", "2015-06-29 17:45:38.246021"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessesController#update as HTML + Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"206"}, "id"=>"90"} + RailsWorkflow::Process Load (0.4ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 90]] +Unpermitted parameter: id +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/processes +Completed 302 Found in 6ms (ActiveRecord: 0.7ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "81b709e6-46bb-9b56-cdc7-26dea9f036ba"], ["created_at", "2015-06-29 17:45:38.262163"], ["updated_at", "2015-06-29 17:45:38.262163"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 207], ["created_at", "2015-06-29 17:45:38.265269"], ["updated_at", "2015-06-29 17:45:38.265269"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessesController#update as HTML + Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"207"}, "id"=>"91"} + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 91]] +Unpermitted parameter: id +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/processes +Completed 302 Found in 5ms (ActiveRecord: 0.5ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "e7245ffb-dd95-991d-f623-e7b87a61b25d"], ["created_at", "2015-06-29 17:45:38.283539"], ["updated_at", "2015-06-29 17:45:38.283539"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 208], ["created_at", "2015-06-29 17:45:38.285695"], ["updated_at", "2015-06-29 17:45:38.285695"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "612b7b0c-a4e3-2974-0123-fec86e253d07"], ["created_at", "2015-06-29 17:45:38.290041"], ["updated_at", "2015-06-29 17:45:38.290041"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 209], ["created_at", "2015-06-29 17:45:38.292225"], ["updated_at", "2015-06-29 17:45:38.292225"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "ff68535f-9a55-4206-e3ec-f00396d3bf5c"], ["created_at", "2015-06-29 17:45:38.296067"], ["updated_at", "2015-06-29 17:45:38.296067"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "12c3419f-0918-3368-93ea-9b46b3d02198"], ["created_at", "2015-06-29 17:45:38.300100"], ["updated_at", "2015-06-29 17:45:38.300100"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "daca7591-4484-aa12-063d-ab63d59bd1c5"], ["created_at", "2015-06-29 17:45:38.304435"], ["updated_at", "2015-06-29 17:45:38.304435"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 212], ["uuid", "69c498fe-cb4e-98bb-9c52-768dfbdd5bcb"], ["created_at", "2015-06-29 17:45:38.307386"], ["updated_at", "2015-06-29 17:45:38.307386"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 212], ["dependencies", "[{\"id\":153,\"statuses\":[2]}]"], ["uuid", "1eb15abf-c4a9-b03f-44f6-a8da7b560c71"], ["created_at", "2015-06-29 17:45:38.311500"], ["updated_at", "2015-06-29 17:45:38.311500"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 212]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 212], ["created_at", "2015-06-29 17:45:38.315616"], ["updated_at", "2015-06-29 17:45:38.315616"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:45:38.318364"], ["id", 94]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 94], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:38.320934"], ["updated_at", "2015-06-29 17:45:38.320934"]] + RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 94], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 212]] + SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 153], ["process_id", 94], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:45:38.340934"], ["updated_at", "2015-06-29 17:45:38.340934"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 99], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:38.343356"], ["updated_at", "2015-06-29 17:45:38.343356"]] + RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 94]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "3a0bc70f-ea09-2cc9-6c0c-ed875138e635"], ["created_at", "2015-06-29 17:45:38.352609"], ["updated_at", "2015-06-29 17:45:38.352609"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 213], ["uuid", "5d2b2c51-b311-0089-d9c0-67d83bbd1656"], ["created_at", "2015-06-29 17:45:38.355638"], ["updated_at", "2015-06-29 17:45:38.355638"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 213], ["dependencies", "[{\"id\":155,\"statuses\":[2]}]"], ["uuid", "f4ce40d9-7e2c-fc25-7e89-524af2a1a7aa"], ["created_at", "2015-06-29 17:45:38.358967"], ["updated_at", "2015-06-29 17:45:38.358967"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 213]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 213], ["created_at", "2015-06-29 17:45:38.362296"], ["updated_at", "2015-06-29 17:45:38.362296"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:45:38.364124"], ["id", 95]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 95], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:38.366415"], ["updated_at", "2015-06-29 17:45:38.366415"]] + RailsWorkflow::Context Load (0.4ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 95], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 213]] + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 155], ["process_id", 95], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:45:38.372699"], ["updated_at", "2015-06-29 17:45:38.372699"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 100], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:38.374430"], ["updated_at", "2015-06-29 17:45:38.374430"]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 95]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 213]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "eb5e65ec-b10e-ddfe-1774-5d57ace76c93"], ["created_at", "2015-06-29 17:45:38.382415"], ["updated_at", "2015-06-29 17:45:38.382415"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 214], ["uuid", "023a0dbe-e58e-f9f9-02e0-dd0ac59e77d8"], ["created_at", "2015-06-29 17:45:38.386897"], ["updated_at", "2015-06-29 17:45:38.386897"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 214], ["dependencies", "[{\"id\":157,\"statuses\":[2]}]"], ["uuid", "8b5c3816-331a-3395-5d2e-a4bc278846e1"], ["created_at", "2015-06-29 17:45:38.390888"], ["updated_at", "2015-06-29 17:45:38.390888"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 214]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 214], ["created_at", "2015-06-29 17:45:38.395635"], ["updated_at", "2015-06-29 17:45:38.395635"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:45:38.398633"], ["id", 96]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 96], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:38.402048"], ["updated_at", "2015-06-29 17:45:38.402048"]] + RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 96], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 214]] + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 157], ["process_id", 96], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:45:38.408475"], ["updated_at", "2015-06-29 17:45:38.408475"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 101], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:38.410268"], ["updated_at", "2015-06-29 17:45:38.410268"]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 96]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 96]] + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 96]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "64984c91-08df-2a60-e422-0f7e65ff62c8"], ["created_at", "2015-06-29 17:45:38.419752"], ["updated_at", "2015-06-29 17:45:38.419752"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 215], ["uuid", "176a4171-c765-3b48-1157-9ea1755da276"], ["created_at", "2015-06-29 17:45:38.422775"], ["updated_at", "2015-06-29 17:45:38.422775"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 215], ["dependencies", "[{\"id\":159,\"statuses\":[2]}]"], ["uuid", "d7b9a3bb-3ffb-be69-446a-75d60b5dd349"], ["created_at", "2015-06-29 17:45:38.426169"], ["updated_at", "2015-06-29 17:45:38.426169"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 215]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 215], ["created_at", "2015-06-29 17:45:38.430265"], ["updated_at", "2015-06-29 17:45:38.430265"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:45:38.432585"], ["id", 97]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 97], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:38.434925"], ["updated_at", "2015-06-29 17:45:38.434925"]] + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 97], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 215]] + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 159], ["process_id", 97], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:45:38.440269"], ["updated_at", "2015-06-29 17:45:38.440269"]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 102], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:38.442011"], ["updated_at", "2015-06-29 17:45:38.442011"]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 97]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 97], ["parent_type", "RailsWorkflow::Process"]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "8c0aeff9-71f6-252e-9c58-507fd0630e70"], ["created_at", "2015-06-29 17:45:38.449717"], ["updated_at", "2015-06-29 17:45:38.449717"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 216], ["uuid", "ebc1772c-0b25-81b9-4878-a4db59dfc2ea"], ["created_at", "2015-06-29 17:45:38.452965"], ["updated_at", "2015-06-29 17:45:38.452965"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 216], ["dependencies", "[{\"id\":161,\"statuses\":[2]}]"], ["uuid", "b2e1b24c-9e24-e56b-c962-37d9b3ef136d"], ["created_at", "2015-06-29 17:45:38.456853"], ["updated_at", "2015-06-29 17:45:38.456853"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 216]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 216], ["created_at", "2015-06-29 17:45:38.460729"], ["updated_at", "2015-06-29 17:45:38.460729"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:45:38.463009"], ["id", 98]] + SQL (0.4ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 98], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:38.466088"], ["updated_at", "2015-06-29 17:45:38.466088"]] + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 98], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 216]] + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 161], ["process_id", 98], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:45:38.473054"], ["updated_at", "2015-06-29 17:45:38.473054"]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 103], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:38.475509"], ["updated_at", "2015-06-29 17:45:38.475509"]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 98]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 98]] + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 103], ["parent_type", "RailsWorkflow::Operation"]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "cae92e77-d22d-5172-f61f-81003d62af09"], ["created_at", "2015-06-29 17:45:38.492923"], ["updated_at", "2015-06-29 17:45:38.492923"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 217], ["uuid", "311b1cc0-2fc6-0840-8181-8452ac865f50"], ["created_at", "2015-06-29 17:45:38.496602"], ["updated_at", "2015-06-29 17:45:38.496602"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 217], ["dependencies", "[{\"id\":163,\"statuses\":[2]}]"], ["uuid", "b2f90e32-c480-04da-508b-eaf851d3cbcd"], ["created_at", "2015-06-29 17:45:38.500586"], ["updated_at", "2015-06-29 17:45:38.500586"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 217]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 217], ["created_at", "2015-06-29 17:45:38.504295"], ["updated_at", "2015-06-29 17:45:38.504295"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:45:38.506249"], ["id", 99]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 99], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:38.508687"], ["updated_at", "2015-06-29 17:45:38.508687"]] + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 99], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 217]] + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 163], ["process_id", 99], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:45:38.515207"], ["updated_at", "2015-06-29 17:45:38.515207"]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 104], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:38.516886"], ["updated_at", "2015-06-29 17:45:38.516886"]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 99]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 217]] +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 99]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:45:38.524377"], ["id", 99]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 99], ["status", 0]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:45:38.529082"], ["id", 104]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 104]] +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "bcc7b564-2cd6-6a2b-056d-8cb5d45626ad"], ["created_at", "2015-06-29 17:45:38.542176"], ["updated_at", "2015-06-29 17:45:38.542176"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 218], ["uuid", "7f2aa4c7-9bc3-574a-860f-7e8727263c0d"], ["created_at", "2015-06-29 17:45:38.545277"], ["updated_at", "2015-06-29 17:45:38.545277"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 218], ["dependencies", "[{\"id\":165,\"statuses\":[2]}]"], ["uuid", "75810929-8c92-ddf1-29f5-8e337262488c"], ["created_at", "2015-06-29 17:45:38.548476"], ["updated_at", "2015-06-29 17:45:38.548476"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 218]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 218], ["created_at", "2015-06-29 17:45:38.552215"], ["updated_at", "2015-06-29 17:45:38.552215"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:45:38.554219"], ["id", 100]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 100], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:38.556458"], ["updated_at", "2015-06-29 17:45:38.556458"]] + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 100], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 218]] + SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 165], ["process_id", 100], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:45:38.561622"], ["updated_at", "2015-06-29 17:45:38.561622"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 105], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:38.563425"], ["updated_at", "2015-06-29 17:45:38.563425"]] + RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 100]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 218]] +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 100]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:45:38.570618"], ["id", 100]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 100], ["status", 0]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:45:38.573966"], ["id", 105]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 105]] +  (0.2ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 100]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "32067707-5fca-f149-b7ab-f4f0a098f156"], ["created_at", "2015-06-29 17:45:38.595927"], ["updated_at", "2015-06-29 17:45:38.595927"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 219], ["uuid", "0dd9c67d-9c24-3527-43e8-f45734beea62"], ["created_at", "2015-06-29 17:45:38.599345"], ["updated_at", "2015-06-29 17:45:38.599345"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 219], ["dependencies", "[{\"id\":167,\"statuses\":[2]}]"], ["uuid", "6e53a314-5dbf-1b59-181a-5ec532443fbe"], ["created_at", "2015-06-29 17:45:38.603294"], ["updated_at", "2015-06-29 17:45:38.603294"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 219]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 219], ["created_at", "2015-06-29 17:45:38.606869"], ["updated_at", "2015-06-29 17:45:38.606869"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:45:38.608685"], ["id", 101]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 101], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:38.610733"], ["updated_at", "2015-06-29 17:45:38.610733"]] + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 101], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 219]] + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 167], ["process_id", 101], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:45:38.616588"], ["updated_at", "2015-06-29 17:45:38.616588"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 106], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:38.618456"], ["updated_at", "2015-06-29 17:45:38.618456"]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 101]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 219]] +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 101]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:45:38.624777"], ["id", 101]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 101], ["status", 0]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:45:38.628038"], ["id", 106]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 106]] +  (0.3ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2015-06-29 17:45:38.633382"], ["updated_at", "2015-06-29 17:45:38.634651"], ["id", 106]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 101]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 219]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 219]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 167]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 101]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 167]] + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 106], ["parent_type", "RailsWorkflow::Operation"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 168], ["process_id", 101], ["status", 0], ["dependencies", "[{\"operation_id\":106,\"status\":2}]"], ["created_at", "2015-06-29 17:45:38.646247"], ["updated_at", "2015-06-29 17:45:38.646247"]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 107], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:38.649278"], ["updated_at", "2015-06-29 17:45:38.649278"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:45:38.658652"], ["id", 107]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 107]] +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2015-06-29 17:45:38.663255"], ["updated_at", "2015-06-29 17:45:38.664284"], ["id", 107]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 101]] + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 219]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 219]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 168]] + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 101]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 168]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 167]] +  (0.6ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 101], ["parent_type", "RailsWorkflow::Process"]] +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 101], ["parent_type", "RailsWorkflow::Process"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2015-06-29 17:45:38.679982"], ["id", 101]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 101]] + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 101]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2015-06-29 17:45:38.685518"], ["updated_at", "2015-06-29 17:45:38.686790"], ["id", 106]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 101]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 219]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 219]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 167]] + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 101]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 168]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 167]] + RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" DESC LIMIT 1 [["process_id", 101]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2015-06-29 17:45:38.695861"], ["updated_at", "2015-06-29 17:45:38.697076"], ["id", 107]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 101]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 219]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 219]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 168]] + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 101]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 168]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 167]] + RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 101]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "bd47dcf1-d69f-bf2a-9cda-a3bae47c04c8"], ["created_at", "2015-06-29 17:45:38.710561"], ["updated_at", "2015-06-29 17:45:38.710561"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 220], ["uuid", "3c49bc0a-1ea5-92f4-eeaf-ac490b008f4d"], ["created_at", "2015-06-29 17:45:38.713523"], ["updated_at", "2015-06-29 17:45:38.713523"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 220], ["dependencies", "[{\"id\":169,\"statuses\":[2]}]"], ["uuid", "e38d0235-35f0-3dd5-c302-00256b357c36"], ["created_at", "2015-06-29 17:45:38.717342"], ["updated_at", "2015-06-29 17:45:38.717342"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 220]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 220], ["created_at", "2015-06-29 17:45:38.721205"], ["updated_at", "2015-06-29 17:45:38.721205"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:45:38.723379"], ["id", 102]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 102], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:38.725502"], ["updated_at", "2015-06-29 17:45:38.725502"]] + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 102], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 220]] + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 169], ["process_id", 102], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:45:38.731344"], ["updated_at", "2015-06-29 17:45:38.731344"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 108], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:38.733824"], ["updated_at", "2015-06-29 17:45:38.733824"]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 102]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 220]] +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 102]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:45:38.740382"], ["id", 102]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 102], ["status", 0]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:45:38.743932"], ["id", 108]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 108]] +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2015-06-29 17:45:38.747439"], ["updated_at", "2015-06-29 17:45:38.748724"], ["id", 108]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 102]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 220]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 220]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 169]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 102]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 169]] + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 108], ["parent_type", "RailsWorkflow::Operation"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 170], ["process_id", 102], ["status", 0], ["dependencies", "[{\"operation_id\":108,\"status\":2}]"], ["created_at", "2015-06-29 17:45:38.761603"], ["updated_at", "2015-06-29 17:45:38.761603"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 109], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:38.763608"], ["updated_at", "2015-06-29 17:45:38.763608"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:45:38.768073"], ["id", 109]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 109]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2015-06-29 17:45:38.771232"], ["updated_at", "2015-06-29 17:45:38.772358"], ["id", 109]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 102]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 220]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 220]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 170]] + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 102]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 170]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 169]] +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 102], ["parent_type", "RailsWorkflow::Process"]] +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 102], ["parent_type", "RailsWorkflow::Process"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2015-06-29 17:45:38.782585"], ["id", 102]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 102]] + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 102]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2015-06-29 17:45:38.785992"], ["updated_at", "2015-06-29 17:45:38.787272"], ["id", 108]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 102]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 220]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 220]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 169]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 102]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 170]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 169]] + RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" DESC LIMIT 1 [["process_id", 102]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 6], ["completed_at", "2015-06-29 17:45:38.795326"], ["updated_at", "2015-06-29 17:45:38.796601"], ["id", 109]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 102]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 220]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 220]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 170]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 102]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 170]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 169]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 102]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "69c79f0b-378f-531d-6009-50036c8e7cf8"], ["created_at", "2015-06-29 17:45:38.809043"], ["updated_at", "2015-06-29 17:45:38.809043"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 221], ["uuid", "c5842cce-9d96-b673-f019-2aa2d4109bf4"], ["created_at", "2015-06-29 17:45:38.812970"], ["updated_at", "2015-06-29 17:45:38.812970"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 221], ["dependencies", "[{\"id\":171,\"statuses\":[2]}]"], ["uuid", "04cb1588-2080-42c2-5425-721d32f32966"], ["created_at", "2015-06-29 17:45:38.816744"], ["updated_at", "2015-06-29 17:45:38.816744"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 221]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 221], ["created_at", "2015-06-29 17:45:38.820506"], ["updated_at", "2015-06-29 17:45:38.820506"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:45:38.822779"], ["id", 103]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 103], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:38.825092"], ["updated_at", "2015-06-29 17:45:38.825092"]] + RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 103], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 221]] + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 171], ["process_id", 103], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:45:38.832170"], ["updated_at", "2015-06-29 17:45:38.832170"]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 110], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:38.834279"], ["updated_at", "2015-06-29 17:45:38.834279"]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 103]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 221]] +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 103]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:45:38.841491"], ["id", 103]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 103], ["status", 0]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:45:38.845353"], ["id", 110]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 110]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2015-06-29 17:45:38.848303"], ["updated_at", "2015-06-29 17:45:38.849717"], ["id", 110]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 103]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 221]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 221]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 171]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 103]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 171]] + RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 110], ["parent_type", "RailsWorkflow::Operation"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 172], ["process_id", 103], ["status", 0], ["dependencies", "[{\"operation_id\":110,\"status\":2}]"], ["created_at", "2015-06-29 17:45:38.862517"], ["updated_at", "2015-06-29 17:45:38.862517"]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 111], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:38.864827"], ["updated_at", "2015-06-29 17:45:38.864827"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:45:38.869672"], ["id", 111]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 111]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2015-06-29 17:45:38.872651"], ["updated_at", "2015-06-29 17:45:38.873744"], ["id", 111]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 103]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 221]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 221]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 172]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 103]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 172]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 171]] +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 103], ["parent_type", "RailsWorkflow::Process"]] +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 103], ["parent_type", "RailsWorkflow::Process"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2015-06-29 17:45:38.883702"], ["id", 103]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 103]] + RailsWorkflow::Operation Load (0.5ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 103]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2015-06-29 17:45:38.887615"], ["updated_at", "2015-06-29 17:45:38.888794"], ["id", 110]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 103]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 221]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 221]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 171]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 103]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 172]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 171]] + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" DESC LIMIT 1 [["process_id", 103]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 5], ["completed_at", "2015-06-29 17:45:38.897192"], ["updated_at", "2015-06-29 17:45:38.898469"], ["id", 111]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 103]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 221]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 221]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 172]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 103]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 172]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 171]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 103]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "543fa3ee-902e-3717-62b3-9b7c68cd678f"], ["created_at", "2015-06-29 17:45:38.910414"], ["updated_at", "2015-06-29 17:45:38.910414"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 222], ["uuid", "388749c8-f2fc-2f61-b52c-e55f141ac3c6"], ["created_at", "2015-06-29 17:45:38.913873"], ["updated_at", "2015-06-29 17:45:38.913873"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 222], ["dependencies", "[{\"id\":173,\"statuses\":[2]}]"], ["uuid", "157ddfb7-123d-9202-de55-273ff2cc8ad2"], ["created_at", "2015-06-29 17:45:38.917421"], ["updated_at", "2015-06-29 17:45:38.917421"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 222]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 222], ["created_at", "2015-06-29 17:45:38.921148"], ["updated_at", "2015-06-29 17:45:38.921148"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:45:38.923090"], ["id", 104]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 104], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:38.925520"], ["updated_at", "2015-06-29 17:45:38.925520"]] + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 104], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 222]] + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 173], ["process_id", 104], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:45:38.931309"], ["updated_at", "2015-06-29 17:45:38.931309"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 112], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:38.933155"], ["updated_at", "2015-06-29 17:45:38.933155"]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 104]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 222]] +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 104]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:45:38.939846"], ["id", 104]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 104], ["status", 0]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:45:38.944709"], ["id", 112]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 112]] +  (0.2ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2015-06-29 17:45:38.948020"], ["updated_at", "2015-06-29 17:45:38.949546"], ["id", 112]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 104]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 222]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 222]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 173]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 104]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 173]] +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 104], ["parent_type", "RailsWorkflow::Process"]] +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 104], ["parent_type", "RailsWorkflow::Process"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2015-06-29 17:45:38.961752"], ["id", 104]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 104]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 104]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2015-06-29 17:45:38.964848"], ["updated_at", "2015-06-29 17:45:38.966147"], ["id", 112]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 104]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 222]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 222]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 173]] + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 104]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 173]] +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 104]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "9882cd86-da44-9769-b622-828304460e4a"], ["created_at", "2015-06-29 17:45:38.977578"], ["updated_at", "2015-06-29 17:45:38.977578"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 223], ["uuid", "1df7cddc-389c-4b72-7a39-2db121736153"], ["created_at", "2015-06-29 17:45:38.980784"], ["updated_at", "2015-06-29 17:45:38.980784"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 223], ["dependencies", "[{\"id\":175,\"statuses\":[2]}]"], ["uuid", "b68092a6-fc32-dada-a958-874f64119711"], ["created_at", "2015-06-29 17:45:38.984545"], ["updated_at", "2015-06-29 17:45:38.984545"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 223]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 223], ["created_at", "2015-06-29 17:45:38.988801"], ["updated_at", "2015-06-29 17:45:38.988801"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:45:38.990793"], ["id", 105]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 105], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:38.992992"], ["updated_at", "2015-06-29 17:45:38.992992"]] + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 105], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 223]] + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 175], ["process_id", 105], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:45:38.998815"], ["updated_at", "2015-06-29 17:45:38.998815"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 113], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:39.000644"], ["updated_at", "2015-06-29 17:45:39.000644"]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 105]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 223]] +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 105]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:45:39.008031"], ["id", 105]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 105], ["status", 0]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:45:39.011626"], ["id", 113]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 113]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2015-06-29 17:45:39.015048"], ["updated_at", "2015-06-29 17:45:39.017693"], ["id", 113]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 105]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 223]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 223]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 175]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 105]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 175]] + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 113], ["parent_type", "RailsWorkflow::Operation"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 176], ["process_id", 105], ["status", 0], ["dependencies", "[{\"operation_id\":113,\"status\":2}]"], ["created_at", "2015-06-29 17:45:39.029020"], ["updated_at", "2015-06-29 17:45:39.029020"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 114], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:39.031297"], ["updated_at", "2015-06-29 17:45:39.031297"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:45:39.035842"], ["id", 114]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 114]] +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2015-06-29 17:45:39.038791"], ["updated_at", "2015-06-29 17:45:39.039806"], ["id", 114]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 105]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 223]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 223]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 176]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 105]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 176]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 175]] +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 105], ["parent_type", "RailsWorkflow::Process"]] +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 105], ["parent_type", "RailsWorkflow::Process"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2015-06-29 17:45:39.049834"], ["id", 105]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 105]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 105]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2015-06-29 17:45:39.052959"], ["updated_at", "2015-06-29 17:45:39.054089"], ["id", 113]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 105]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 223]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 223]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 175]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 105]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 176]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 175]] +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 105]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:39.068464"], ["updated_at", "2015-06-29 17:45:39.068464"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 4], ["created_at", "2015-06-29 17:45:39.071108"], ["updated_at", "2015-06-29 17:45:39.071108"]] + SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 115], ["updated_at", "2015-06-29 17:45:39.073671"], ["id", 170]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "1c99a719-69bf-56b5-a3ec-38d1a0a42e34"], ["created_at", "2015-06-29 17:45:39.077915"], ["updated_at", "2015-06-29 17:45:39.077915"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 224], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "881073c3-560b-c046-9893-834e160cf917"], ["created_at", "2015-06-29 17:45:39.080817"], ["updated_at", "2015-06-29 17:45:39.080817"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:39.085902"], ["updated_at", "2015-06-29 17:45:39.085902"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:45:39.088588"], ["updated_at", "2015-06-29 17:45:39.088588"]] + SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 106], ["updated_at", "2015-06-29 17:45:39.090372"], ["id", 171]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 177], ["process_id", 106], ["status", 0], ["dependencies", "[{\"operation_id\":115,\"status\":4}]"], ["created_at", "2015-06-29 17:45:39.104296"], ["updated_at", "2015-06-29 17:45:39.104296"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 116], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:39.106744"], ["updated_at", "2015-06-29 17:45:39.106744"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.5ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"int\":1,\"date\":\"2015-06-29\",\"ary\":[1,2,3],\"msg\":\"Some string\"}"], ["created_at", "2015-06-29 17:45:39.114124"], ["updated_at", "2015-06-29 17:45:39.114124"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:45:39.121720"], ["updated_at", "2015-06-29 17:45:39.121720"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:39.125026"], ["updated_at", "2015-06-29 17:45:39.125026"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:45:39.127499"], ["updated_at", "2015-06-29 17:45:39.127499"]] + SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 107], ["updated_at", "2015-06-29 17:45:39.129101"], ["id", 174]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"resource\":{\"id\":117,\"class\":\"RailsWorkflow::Operation\"},\"process\":{\"id\":107,\"class\":\"RailsWorkflow::Process\"}}"], ["created_at", "2015-06-29 17:45:39.131799"], ["updated_at", "2015-06-29 17:45:39.131799"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:45:39.138517"], ["updated_at", "2015-06-29 17:45:39.138517"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:39.141372"], ["updated_at", "2015-06-29 17:45:39.141372"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:45:39.143618"], ["updated_at", "2015-06-29 17:45:39.143618"]] + SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 108], ["updated_at", "2015-06-29 17:45:39.145068"], ["id", 176]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"resources\":[{\"id\":118,\"class\":\"RailsWorkflow::Operation\"},{\"id\":108,\"class\":\"RailsWorkflow::Process\"}]}"], ["created_at", "2015-06-29 17:45:39.147767"], ["updated_at", "2015-06-29 17:45:39.147767"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:45:39.153371"], ["updated_at", "2015-06-29 17:45:39.153371"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 119], ["parent_type", "RailsWorkflow::Operation"], ["body", "{\"int\":1,\"date\":\"2015-06-29\",\"ary\":[1,2,3],\"msg\":\"Some string\"}"], ["created_at", "2015-06-29 17:45:39.157121"], ["updated_at", "2015-06-29 17:45:39.157121"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."id" = $1 LIMIT 1 [["id", 178]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.9ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:45:39.164536"], ["updated_at", "2015-06-29 17:45:39.164536"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:39.170186"], ["updated_at", "2015-06-29 17:45:39.170186"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:45:39.173047"], ["updated_at", "2015-06-29 17:45:39.173047"]] + SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 109], ["updated_at", "2015-06-29 17:45:39.174764"], ["id", 179]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 120], ["parent_type", "RailsWorkflow::Operation"], ["body", "{\"resource\":{\"id\":120,\"class\":\"RailsWorkflow::Operation\"},\"process\":{\"id\":109,\"class\":\"RailsWorkflow::Process\"}}"], ["created_at", "2015-06-29 17:45:39.177754"], ["updated_at", "2015-06-29 17:45:39.177754"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."id" = $1 LIMIT 1 [["id", 180]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 120]] + RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 109]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:45:39.186489"], ["updated_at", "2015-06-29 17:45:39.186489"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:39.189407"], ["updated_at", "2015-06-29 17:45:39.189407"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:45:39.191614"], ["updated_at", "2015-06-29 17:45:39.191614"]] + SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 110], ["updated_at", "2015-06-29 17:45:39.193464"], ["id", 181]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"resources\":[{\"id\":121,\"class\":\"RailsWorkflow::Operation\"},{\"id\":110,\"class\":\"RailsWorkflow::Process\"}]}"], ["created_at", "2015-06-29 17:45:39.195928"], ["updated_at", "2015-06-29 17:45:39.195928"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."id" = $1 LIMIT 1 [["id", 182]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 121]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 110]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "4cf714ae-611e-b38f-9354-343689bcf5c5"], ["created_at", "2015-06-29 17:45:39.205178"], ["updated_at", "2015-06-29 17:45:39.205178"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 225], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "acd4b23f-1466-9923-8794-9585939878ba"], ["created_at", "2015-06-29 17:45:39.207781"], ["updated_at", "2015-06-29 17:45:39.207781"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:39.210715"], ["updated_at", "2015-06-29 17:45:39.210715"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:45:39.212767"], ["updated_at", "2015-06-29 17:45:39.212767"]] + SQL (0.8ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 111], ["updated_at", "2015-06-29 17:45:39.214175"], ["id", 183]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 178], ["process_id", 111], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:45:39.220797"], ["updated_at", "2015-06-29 17:45:39.220797"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 122], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:39.222955"], ["updated_at", "2015-06-29 17:45:39.222955"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "8ff2c351-875c-672f-095c-f967115b44b0"], ["created_at", "2015-06-29 17:45:39.228877"], ["updated_at", "2015-06-29 17:45:39.228877"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 226], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "c4ba4da2-b07d-d24a-4fb3-0848055d6ff4"], ["created_at", "2015-06-29 17:45:39.231388"], ["updated_at", "2015-06-29 17:45:39.231388"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:39.234236"], ["updated_at", "2015-06-29 17:45:39.234236"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:45:39.236252"], ["updated_at", "2015-06-29 17:45:39.236252"]] + SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 112], ["updated_at", "2015-06-29 17:45:39.237714"], ["id", 185]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 179], ["process_id", 112], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:45:39.242198"], ["updated_at", "2015-06-29 17:45:39.242198"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 123], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:39.243912"], ["updated_at", "2015-06-29 17:45:39.243912"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "a84fc3fe-fecc-a1fc-a60f-9520808fe535"], ["created_at", "2015-06-29 17:45:39.249570"], ["updated_at", "2015-06-29 17:45:39.249570"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 227], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "1ea8eb3b-893c-e1f9-5fd4-0c3444d62add"], ["created_at", "2015-06-29 17:45:39.254169"], ["updated_at", "2015-06-29 17:45:39.254169"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:39.257332"], ["updated_at", "2015-06-29 17:45:39.257332"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:45:39.259427"], ["updated_at", "2015-06-29 17:45:39.259427"]] + SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 113], ["updated_at", "2015-06-29 17:45:39.260846"], ["id", 187]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 180], ["process_id", 113], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:45:39.266986"], ["updated_at", "2015-06-29 17:45:39.266986"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 124], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:39.269264"], ["updated_at", "2015-06-29 17:45:39.269264"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "496f3e46-658e-147b-5c55-538bd9cd262f"], ["created_at", "2015-06-29 17:45:39.275078"], ["updated_at", "2015-06-29 17:45:39.275078"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 228], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "c11b1b83-bc1d-ed6d-af3d-e73ff7b7c6bd"], ["created_at", "2015-06-29 17:45:39.277618"], ["updated_at", "2015-06-29 17:45:39.277618"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:39.280346"], ["updated_at", "2015-06-29 17:45:39.280346"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:45:39.282433"], ["updated_at", "2015-06-29 17:45:39.282433"]] + SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 114], ["updated_at", "2015-06-29 17:45:39.283786"], ["id", 189]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 181], ["process_id", 114], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:45:39.287969"], ["updated_at", "2015-06-29 17:45:39.287969"]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 125], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:39.289866"], ["updated_at", "2015-06-29 17:45:39.289866"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "9885802c-b07f-71bf-0341-acd18f8ecefa"], ["created_at", "2015-06-29 17:45:39.295391"], ["updated_at", "2015-06-29 17:45:39.295391"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 229], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "9597a8d9-2667-fd79-5815-88cdd825831a"], ["created_at", "2015-06-29 17:45:39.298338"], ["updated_at", "2015-06-29 17:45:39.298338"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:39.301773"], ["updated_at", "2015-06-29 17:45:39.301773"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:45:39.303935"], ["updated_at", "2015-06-29 17:45:39.303935"]] + SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 115], ["updated_at", "2015-06-29 17:45:39.305362"], ["id", 191]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 182], ["process_id", 115], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:45:39.310832"], ["updated_at", "2015-06-29 17:45:39.310832"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 126], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:39.312701"], ["updated_at", "2015-06-29 17:45:39.312701"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "a67425f3-b8e1-8383-811c-f0a1e23d2277"], ["created_at", "2015-06-29 17:45:39.320752"], ["updated_at", "2015-06-29 17:45:39.320752"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 230], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "b3026211-ae5e-8da7-9711-64b7bc74993e"], ["created_at", "2015-06-29 17:45:39.323695"], ["updated_at", "2015-06-29 17:45:39.323695"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:39.326637"], ["updated_at", "2015-06-29 17:45:39.326637"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:45:39.328866"], ["updated_at", "2015-06-29 17:45:39.328866"]] + SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 116], ["updated_at", "2015-06-29 17:45:39.330318"], ["id", 193]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 183], ["process_id", 116], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:45:39.336317"], ["updated_at", "2015-06-29 17:45:39.336317"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 127], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:39.338280"], ["updated_at", "2015-06-29 17:45:39.338280"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "48b313c9-3c71-b753-ddfe-de00888352d0"], ["created_at", "2015-06-29 17:45:39.385322"], ["updated_at", "2015-06-29 17:45:39.385322"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "411a88fa-1387-8c07-ae5c-d3596864f897"], ["created_at", "2015-06-29 17:45:39.388653"], ["updated_at", "2015-06-29 17:45:39.388653"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "child_process_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 231], ["child_process_id", 232], ["uuid", "995052b7-d590-d5d7-b3ab-2487968c6f1f"], ["created_at", "2015-06-29 17:45:39.391524"], ["updated_at", "2015-06-29 17:45:39.391524"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:39.395108"], ["updated_at", "2015-06-29 17:45:39.395108"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:45:39.397251"], ["updated_at", "2015-06-29 17:45:39.397251"]] + SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 117], ["updated_at", "2015-06-29 17:45:39.398774"], ["id", 195]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "22db743b-58e9-86be-7094-2dba99b175a8"], ["created_at", "2015-06-29 17:45:39.401855"], ["updated_at", "2015-06-29 17:45:39.401855"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 233], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "0f738029-fb83-bf83-2ded-d23fb8a45bb1"], ["created_at", "2015-06-29 17:45:39.404181"], ["updated_at", "2015-06-29 17:45:39.404181"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 185], ["process_id", 117], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:45:39.410694"], ["updated_at", "2015-06-29 17:45:39.410694"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 128], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:39.416414"], ["updated_at", "2015-06-29 17:45:39.416414"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 184], ["process_id", 117], ["status", 0], ["dependencies", "[{\"operation_id\":128,\"status\":0}]"], ["created_at", "2015-06-29 17:45:39.422950"], ["updated_at", "2015-06-29 17:45:39.422950"]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 129], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:39.424979"], ["updated_at", "2015-06-29 17:45:39.424979"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 232]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 232], ["created_at", "2015-06-29 17:45:39.428985"], ["updated_at", "2015-06-29 17:45:39.428985"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:45:39.430848"], ["id", 118]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 118], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:39.433534"], ["updated_at", "2015-06-29 17:45:39.433534"]] + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 118], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 232]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 118]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "55af90c9-55d7-1fe7-bd29-32b4b6b09b9b"], ["created_at", "2015-06-29 17:45:39.443946"], ["updated_at", "2015-06-29 17:45:39.443946"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 234], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "e77a4748-c396-e9bc-6d9f-0128670027e5"], ["created_at", "2015-06-29 17:45:39.446434"], ["updated_at", "2015-06-29 17:45:39.446434"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:39.449514"], ["updated_at", "2015-06-29 17:45:39.449514"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:45:39.451959"], ["updated_at", "2015-06-29 17:45:39.451959"]] + SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 119], ["updated_at", "2015-06-29 17:45:39.453583"], ["id", 199]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 186], ["process_id", 119], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:45:39.458175"], ["updated_at", "2015-06-29 17:45:39.458175"]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 130], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:39.460145"], ["updated_at", "2015-06-29 17:45:39.460145"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 4], ["created_at", "2015-06-29 17:45:39.466915"], ["updated_at", "2015-06-29 17:45:39.466915"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "2a15dc5a-70f9-cca4-a0a8-d7da579f0d9b"], ["created_at", "2015-06-29 17:45:39.470179"], ["updated_at", "2015-06-29 17:45:39.470179"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 235], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "265a8833-a680-c745-cfb7-6a59489c8757"], ["created_at", "2015-06-29 17:45:39.472825"], ["updated_at", "2015-06-29 17:45:39.472825"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:39.476112"], ["updated_at", "2015-06-29 17:45:39.476112"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:45:39.478593"], ["updated_at", "2015-06-29 17:45:39.478593"]] + SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 120], ["updated_at", "2015-06-29 17:45:39.480107"], ["id", 201]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 131], ["parent_type", "RailsWorkflow::Operation"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 187], ["process_id", 120], ["status", 0], ["dependencies", "[{\"operation_id\":131,\"status\":4}]"], ["created_at", "2015-06-29 17:45:39.487916"], ["updated_at", "2015-06-29 17:45:39.487916"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 132], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:39.490108"], ["updated_at", "2015-06-29 17:45:39.490108"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "93e8933b-cd08-d916-4efe-c98ec38a991a"], ["created_at", "2015-06-29 17:45:39.496538"], ["updated_at", "2015-06-29 17:45:39.496538"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 236], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "6dab4d6b-4e0c-3193-aff5-17164b98d327"], ["created_at", "2015-06-29 17:45:39.499219"], ["updated_at", "2015-06-29 17:45:39.499219"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:39.502101"], ["updated_at", "2015-06-29 17:45:39.502101"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:45:39.504298"], ["updated_at", "2015-06-29 17:45:39.504298"]] + SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 121], ["updated_at", "2015-06-29 17:45:39.505700"], ["id", 203]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 188], ["process_id", 121], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:45:39.510360"], ["updated_at", "2015-06-29 17:45:39.510360"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 133], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:39.512135"], ["updated_at", "2015-06-29 17:45:39.512135"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:45:39.517063"], ["updated_at", "2015-06-29 17:45:39.517063"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 + SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$lfySbROmsd5N3CkimLS8IuuhDDHIBFWb2SR33srMZZYCicGOkvnuC"], ["created_at", "2015-06-29 17:45:39.539615"], ["updated_at", "2015-06-29 17:45:39.539615"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 23], ["assignment_type", "User"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 23], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2015-06-29 17:45:39.542549"], ["updated_at", "2015-06-29 17:45:39.544470"], ["id", 134]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:45:39.549189"], ["updated_at", "2015-06-29 17:45:39.549189"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$56c1xOxC.gdZ4dKLgToaFevOYz8B/grM23fMITqpuhkbxvY1Hl7MG"], ["created_at", "2015-06-29 17:45:39.554790"], ["updated_at", "2015-06-29 17:45:39.554790"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 24], ["assignment_type", "User"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 24], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2015-06-29 17:45:39.556735"], ["updated_at", "2015-06-29 17:45:39.558112"], ["id", 135]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:45:39.560502"], ["updated_at", "2015-06-29 17:45:39.560502"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 24], ["assignment_type", "User"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 24], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2015-06-29 17:45:39.562439"], ["updated_at", "2015-06-29 17:45:39.563770"], ["id", 136]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 135]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:45:39.569186"], ["updated_at", "2015-06-29 17:45:39.569186"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 + SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$LiR21SYwp4OQrBTS7RhmqetcyTHkfj5Tgg5smNuRwTzDOp3N3CB2S"], ["created_at", "2015-06-29 17:45:39.574120"], ["updated_at", "2015-06-29 17:45:39.574120"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 25], ["assignment_type", "User"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 25], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2015-06-29 17:45:39.576576"], ["updated_at", "2015-06-29 17:45:39.578039"], ["id", 137]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "updated_at" = $4 WHERE "rails_workflow_operations"."id" = $5 [["assignment_id", nil], ["assignment_type", nil], ["is_active", "f"], ["updated_at", "2015-06-29 17:45:39.580179"], ["id", 137]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:45:39.585041"], ["updated_at", "2015-06-29 17:45:39.585041"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$oTF1ZIsgLSL6wevGTVdyy.2F7xfg4FD3OWOXCINY/ax4Mvq4ydOcO"], ["created_at", "2015-06-29 17:45:39.590715"], ["updated_at", "2015-06-29 17:45:39.590715"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 26], ["assignment_type", "User"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 26], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2015-06-29 17:45:39.592681"], ["updated_at", "2015-06-29 17:45:39.594078"], ["id", 138]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'other@user.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "other@user.com"], ["encrypted_password", "$2a$04$rBrawwTTru6SDz.cPBW87Oc.XGbLdYqopdRmHeG6SFt03eXkMOX2C"], ["created_at", "2015-06-29 17:45:39.601622"], ["updated_at", "2015-06-29 17:45:39.601622"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 138]] + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 26]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:45:39.609054"], ["updated_at", "2015-06-29 17:45:39.609054"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$UFsN4vjpivWP2VmVAa9li.4y5QCRTM55x5E/YvQD7Ea7i7U4CGNIC"], ["created_at", "2015-06-29 17:45:39.614346"], ["updated_at", "2015-06-29 17:45:39.614346"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 28], ["assignment_type", "User"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 28], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2015-06-29 17:45:39.616265"], ["updated_at", "2015-06-29 17:45:39.617757"], ["id", 139]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'other@user.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "other@user.com"], ["encrypted_password", "$2a$04$PtR6Xc8pJg6SomaR5s4.qOD3N7fezwlsQ56YBn/eOhmG69qjrnH/i"], ["created_at", "2015-06-29 17:45:39.623169"], ["updated_at", "2015-06-29 17:45:39.623169"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:45:39.627365"], ["updated_at", "2015-06-29 17:45:39.627365"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$vUgpMNfXG6LFHHdH37sxcu.m1iqidAs8bl.S5Q716biDXJw.TkH2q"], ["created_at", "2015-06-29 17:45:39.632493"], ["updated_at", "2015-06-29 17:45:39.632493"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 30], ["assignment_type", "User"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 30], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2015-06-29 17:45:39.634968"], ["updated_at", "2015-06-29 17:45:39.636637"], ["id", 140]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'other@user.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "other@user.com"], ["encrypted_password", "$2a$04$R5OEN/IrQ68S5.it/ANfj.6gEjsZXBLUNOsBrDkcT09GdioKf1Q0m"], ["created_at", "2015-06-29 17:45:39.641560"], ["updated_at", "2015-06-29 17:45:39.641560"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "44214d6c-e809-a417-fc1c-9b4e6f7e9c6a"], ["created_at", "2015-06-29 17:45:39.646608"], ["updated_at", "2015-06-29 17:45:39.646608"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "role", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 237], ["role", "admin"], ["uuid", "6f63d826-5ff2-4363-0c40-9a57102c2be1"], ["created_at", "2015-06-29 17:45:39.650065"], ["updated_at", "2015-06-29 17:45:39.650065"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "8264e00f-c2fc-ea24-ea32-84d0d5fa78bd"], ["created_at", "2015-06-29 17:45:39.654456"], ["updated_at", "2015-06-29 17:45:39.654456"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "group", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 238], ["group", "some_group"], ["uuid", "5a54b8e7-653b-d2c8-ffd6-5fefa367d094"], ["created_at", "2015-06-29 17:45:39.657070"], ["updated_at", "2015-06-29 17:45:39.657070"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Test Operation"], ["status", 3], ["template_id", 190], ["created_at", "2015-06-29 17:45:39.660243"], ["updated_at", "2015-06-29 17:45:39.660243"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Test Operation"], ["status", 3], ["template_id", 189], ["created_at", "2015-06-29 17:45:39.663377"], ["updated_at", "2015-06-29 17:45:39.663377"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$pA0jSzc7eeNfq4Dw8lTeoOLoryuKEE2rejQdzGzgDW0Ypm6X2WgYW"], ["role", "admin"], ["created_at", "2015-06-29 17:45:39.669139"], ["updated_at", "2015-06-29 17:45:39.669139"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.7ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" INNER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."id" = "rails_workflow_operations"."template_id" WHERE "rails_workflow_operations"."status" = 3 AND "rails_workflow_operations"."assignment_id" IS NULL AND (rails_workflow_operation_templates.role = 'admin') +  (0.2ms) SAVEPOINT active_record_1 + User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'fake@email.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "fake@email.com"], ["encrypted_password", "$2a$04$NMhk6eiZUSmdFjtvLYuRi.iAnySmSTt7x4tQWEZrmfcm9ZMvP5fUG"], ["role", "fake"], ["created_at", "2015-06-29 17:45:39.678973"], ["updated_at", "2015-06-29 17:45:39.678973"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (1.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" INNER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."id" = "rails_workflow_operations"."template_id" WHERE "rails_workflow_operations"."status" = 3 AND "rails_workflow_operations"."assignment_id" IS NULL AND (rails_workflow_operation_templates.role = 'fake') + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 32], ["assignment_type", "User"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 32], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2015-06-29 17:45:39.683650"], ["updated_at", "2015-06-29 17:45:39.685415"], ["id", 142]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."assignment_id" IS NULL +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:45:39.691577"], ["updated_at", "2015-06-29 17:45:39.691577"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:45:39.693944"], ["updated_at", "2015-06-29 17:45:39.693944"]] + SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 143], ["updated_at", "2015-06-29 17:45:39.695433"], ["id", 205]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 3], ["updated_at", "2015-06-29 17:45:39.697841"], ["id", 143]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:45:39.705826"], ["updated_at", "2015-06-29 17:45:39.705826"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:45:39.708950"], ["updated_at", "2015-06-29 17:45:39.708950"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:45:39.711035"], ["updated_at", "2015-06-29 17:45:39.711035"]] + SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 122], ["updated_at", "2015-06-29 17:45:39.712589"], ["id", 206]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "child_process_id" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["child_process_id", 122], ["updated_at", "2015-06-29 17:45:39.715244"], ["id", 144]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:45:39.717567"], ["id", 144]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 144]] +  (0.1ms) SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 122]] + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:45:39.721571"], ["id", 122]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 122], ["status", 0]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 122]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("status", "completed_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["status", 2], ["completed_at", "2015-06-29 17:45:39.728466"], ["created_at", "2015-06-29 17:45:39.729358"], ["updated_at", "2015-06-29 17:45:39.729358"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.5ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("status", "completed_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["status", 6], ["completed_at", "2015-06-29 17:45:39.734436"], ["created_at", "2015-06-29 17:45:39.735642"], ["updated_at", "2015-06-29 17:45:39.735642"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("status", "completed_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["status", 5], ["completed_at", "2015-06-29 17:45:39.740582"], ["created_at", "2015-06-29 17:45:39.741433"], ["updated_at", "2015-06-29 17:45:39.741433"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "22fb2cd7-2c72-7f09-f62b-1e53dba2729c"], ["created_at", "2015-06-29 17:45:39.745815"], ["updated_at", "2015-06-29 17:45:39.745815"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.9ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::CustomOperationTemplate"], ["title", "First Test project"], ["process_template_id", 239], ["uuid", "c0d6be2d-eb4c-654c-dee1-5e8ec767e88b"], ["created_at", "2015-06-29 17:45:39.748577"], ["updated_at", "2015-06-29 17:45:39.748577"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "c2232cdc-6543-841f-299e-977101196734"], ["created_at", "2015-06-29 17:45:39.754438"], ["updated_at", "2015-06-29 17:45:39.754438"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 240], ["uuid", "655214ee-70c4-85dc-d12f-82a38afb7d61"], ["created_at", "2015-06-29 17:45:39.757503"], ["updated_at", "2015-06-29 17:45:39.757503"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 240], ["dependencies", "[{\"id\":192,\"statuses\":[2]}]"], ["uuid", "756ed928-1b0c-795b-f63e-8b700be37e09"], ["created_at", "2015-06-29 17:45:39.760934"], ["updated_at", "2015-06-29 17:45:39.760934"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."dependencies" IS NULL +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "process_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Process Template"], ["process_class", "RailsWorkflow::TestProcess"], ["uuid", "b32ebff1-b514-63c4-81cc-fb6ec99c7108"], ["created_at", "2015-06-29 17:45:39.767407"], ["updated_at", "2015-06-29 17:45:39.767407"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("type", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "RailsWorkflow::TestProcess"], ["template_id", 241], ["created_at", "2015-06-29 17:45:39.773890"], ["updated_at", "2015-06-29 17:45:39.773890"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:45:39.776292"], ["id", 123]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 123], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2015-06-29 17:45:39.778631"], ["updated_at", "2015-06-29 17:45:39.778631"]] + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 123], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 241]] + RailsWorkflow::TestProcess Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."type" IN ('RailsWorkflow::TestProcess') AND "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 123]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 241]] +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2015-06-29 17:45:39.789584"], ["updated_at", "2015-06-29 17:45:39.789584"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2015-06-29 17:45:39.792087"], ["id", 242]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 242]] + RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 242], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 242], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2015-06-29 17:45:39.797737"], ["updated_at", "2015-06-29 17:45:39.797737"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:45:39.803573"], ["id", 194]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 242], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 242], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2015-06-29 17:45:39.808127"], ["updated_at", "2015-06-29 17:45:39.808127"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:45:39.812486"], ["id", 195]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 242], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 242], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2015-06-29 17:45:39.817199"], ["updated_at", "2015-06-29 17:45:39.817199"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"9ee9a27e-0790-0d45-9534-a6469e5b9ce9\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:45:39.821691"], ["id", 196]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":195}]"], ["updated_at", "2015-06-29 17:45:39.828513"], ["id", 195]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":196}]"], ["updated_at", "2015-06-29 17:45:39.832286"], ["id", 196]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2015-06-29 17:45:39.839950"], ["updated_at", "2015-06-29 17:45:39.839950"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2015-06-29 17:45:39.842538"], ["id", 243]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 243]] + RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 243], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 243], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2015-06-29 17:45:39.847173"], ["updated_at", "2015-06-29 17:45:39.847173"]] +  (0.5ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:45:39.853167"], ["id", 197]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 243], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 243], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2015-06-29 17:45:39.857871"], ["updated_at", "2015-06-29 17:45:39.857871"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:45:39.862132"], ["id", 198]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 243], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 243], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2015-06-29 17:45:39.866244"], ["updated_at", "2015-06-29 17:45:39.866244"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"9ee9a27e-0790-0d45-9534-a6469e5b9ce9\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:45:39.870698"], ["id", 199]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":198}]"], ["updated_at", "2015-06-29 17:45:39.874786"], ["id", 198]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":199}]"], ["updated_at", "2015-06-29 17:45:39.878128"], ["id", 199]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_process_templates"."id" = $3 [["title", "Some new name"], ["updated_at", "2015-06-29 17:45:39.881685"], ["id", 243]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.5ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.4ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_process_templates"."id" = $3 [["title", "Test Process"], ["updated_at", "2015-06-29 17:45:39.887338"], ["id", 243]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 243]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 243], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]] +  (0.2ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 243], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["updated_at", "2015-06-29 17:45:39.900970"], ["id", 198]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 243], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"9ee9a27e-0790-0d45-9534-a6469e5b9ce9\"}]"], ["updated_at", "2015-06-29 17:45:39.908970"], ["id", 199]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":198}]"], ["updated_at", "2015-06-29 17:45:39.913701"], ["id", 198]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":199}]"], ["updated_at", "2015-06-29 17:45:39.917103"], ["id", 199]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2015-06-29 17:45:39.923876"], ["updated_at", "2015-06-29 17:45:39.923876"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2015-06-29 17:45:39.926665"], ["id", 244]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 244]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 244], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 244], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2015-06-29 17:45:39.931611"], ["updated_at", "2015-06-29 17:45:39.931611"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:45:39.935623"], ["id", 200]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 244], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 244], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2015-06-29 17:45:39.939545"], ["updated_at", "2015-06-29 17:45:39.939545"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:45:39.944292"], ["id", 201]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 244], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 244], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2015-06-29 17:45:39.948346"], ["updated_at", "2015-06-29 17:45:39.948346"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"9ee9a27e-0790-0d45-9534-a6469e5b9ce9\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:45:39.952870"], ["id", 202]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":201}]"], ["updated_at", "2015-06-29 17:45:39.957962"], ["id", 201]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":202}]"], ["updated_at", "2015-06-29 17:45:39.962127"], ["id", 202]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 244]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2015-06-29 17:45:39.971794"], ["updated_at", "2015-06-29 17:45:39.971794"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2015-06-29 17:45:39.974191"], ["id", 245]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 245]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 245], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 245], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2015-06-29 17:45:39.978860"], ["updated_at", "2015-06-29 17:45:39.978860"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:45:39.982969"], ["id", 203]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 245], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 245], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2015-06-29 17:45:39.986812"], ["updated_at", "2015-06-29 17:45:39.986812"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:45:39.991087"], ["id", 204]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 245], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 245], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2015-06-29 17:45:39.995170"], ["updated_at", "2015-06-29 17:45:39.995170"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"9ee9a27e-0790-0d45-9534-a6469e5b9ce9\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:45:39.999405"], ["id", 205]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":204}]"], ["updated_at", "2015-06-29 17:45:40.003916"], ["id", 204]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":205}]"], ["updated_at", "2015-06-29 17:45:40.007718"], ["id", 205]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 245]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["title", "Some new operation name"], ["updated_at", "2015-06-29 17:45:40.013003"], ["id", 203]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (1.0ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.2ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 245]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 245], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["title", "Default Operation 2"], ["updated_at", "2015-06-29 17:45:40.025279"], ["id", 203]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 245], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["updated_at", "2015-06-29 17:45:40.032085"], ["id", 204]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 245], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"9ee9a27e-0790-0d45-9534-a6469e5b9ce9\"}]"], ["updated_at", "2015-06-29 17:45:40.038769"], ["id", 205]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":204}]"], ["updated_at", "2015-06-29 17:45:40.042950"], ["id", 204]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":205}]"], ["updated_at", "2015-06-29 17:45:40.045934"], ["id", 205]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 203]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2015-06-29 17:45:40.052329"], ["updated_at", "2015-06-29 17:45:40.052329"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2015-06-29 17:45:40.054874"], ["id", 246]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 246]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 246], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 246], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2015-06-29 17:45:40.059155"], ["updated_at", "2015-06-29 17:45:40.059155"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:45:40.062711"], ["id", 206]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 246], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 246], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2015-06-29 17:45:40.066825"], ["updated_at", "2015-06-29 17:45:40.066825"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:45:40.071091"], ["id", 207]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 246], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 246], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2015-06-29 17:45:40.075298"], ["updated_at", "2015-06-29 17:45:40.075298"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"9ee9a27e-0790-0d45-9534-a6469e5b9ce9\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:45:40.080039"], ["id", 208]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":207}]"], ["updated_at", "2015-06-29 17:45:40.084335"], ["id", 207]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":208}]"], ["updated_at", "2015-06-29 17:45:40.089280"], ["id", 208]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Some new operation"], ["process_template_id", 246], ["uuid", "e2d8b8c8-4672-6fcc-e878-64f222a86146"], ["created_at", "2015-06-29 17:45:40.093496"], ["updated_at", "2015-06-29 17:45:40.093496"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 246]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 246]] + RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 246], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]] +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 246], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["updated_at", "2015-06-29 17:45:40.109686"], ["id", 207]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 246], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"9ee9a27e-0790-0d45-9534-a6469e5b9ce9\"}]"], ["updated_at", "2015-06-29 17:45:40.115631"], ["id", 208]] +  (0.9ms) RELEASE SAVEPOINT active_record_1 + SQL (0.5ms) DELETE FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = 209 +  (0.2ms) SAVEPOINT active_record_1 +  (0.3ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":207}]"], ["updated_at", "2015-06-29 17:45:40.124865"], ["id", 207]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":208}]"], ["updated_at", "2015-06-29 17:45:40.129838"], ["id", 208]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 246]] +  (0.2ms) ROLLBACK + ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (7.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "e0818a7c-4889-6e80-c577-6d4ddf6eb9bb"], ["created_at", "2015-06-29 17:51:56.445895"], ["updated_at", "2015-06-29 17:51:56.445895"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 247], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "fe045f02-2fab-202f-7a6a-f7fd196152ff"], ["created_at", "2015-06-29 17:51:56.472511"], ["updated_at", "2015-06-29 17:51:56.472511"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::OperationTemplatesController#index as HTML + Parameters: {"process_template_id"=>"247"} + RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 247]] + Rendered /Users/maxim/workflow/rails_workflow/app/views/rails_workflow/operation_templates/index.html.slim within layouts/rails_workflow/application (0.3ms) +Completed 200 OK in 75ms (Views: 47.4ms | ActiveRecord: 0.4ms) + RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 247]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "f5188406-22a9-5bea-40c6-f7422846af91"], ["created_at", "2015-06-29 17:51:56.565266"], ["updated_at", "2015-06-29 17:51:56.565266"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 248], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "275d13b6-2ec6-ca0c-d1dd-408f774e2f09"], ["created_at", "2015-06-29 17:51:56.568280"], ["updated_at", "2015-06-29 17:51:56.568280"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::OperationTemplatesController#show as HTML + Parameters: {"process_template_id"=>"248", "id"=>"211"} + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 211]] + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 248]] + Rendered /Users/maxim/workflow/rails_workflow/app/views/rails_workflow/operation_templates/show.html.slim within layouts/rails_workflow/application (0.2ms) +Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "6d4aacac-3cdb-3796-4beb-59c8ee9a92ec"], ["created_at", "2015-06-29 17:51:56.586286"], ["updated_at", "2015-06-29 17:51:56.586286"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "08b6b898-a22e-da50-5924-4abc3c31c0c9"], ["created_at", "2015-06-29 17:51:56.588690"], ["updated_at", "2015-06-29 17:51:56.588690"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::OperationTemplatesController#new as HTML + Parameters: {"process_template_id"=>"250"} + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 250]] +Unpermitted parameter: process_template_id + Rendered /Users/maxim/workflow/rails_workflow/app/views/rails_workflow/operation_templates/new.html.slim within layouts/rails_workflow/application (0.3ms) +Completed 200 OK in 9ms (Views: 2.2ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "b307d963-1608-bac7-8113-c0d32e8b076d"], ["created_at", "2015-06-29 17:51:56.606443"], ["updated_at", "2015-06-29 17:51:56.606443"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 251], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "42e00aa7-6b19-435f-f434-a4502a5106a7"], ["created_at", "2015-06-29 17:51:56.609161"], ["updated_at", "2015-06-29 17:51:56.609161"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::OperationTemplatesController#edit as HTML + Parameters: {"process_template_id"=>"251", "id"=>"212"} + RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 212]] + RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 251]] + Rendered /Users/maxim/workflow/rails_workflow/app/views/rails_workflow/operation_templates/edit.html.slim within layouts/rails_workflow/application (0.3ms) +Completed 200 OK in 5ms (Views: 1.8ms | ActiveRecord: 0.8ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "dada393e-92e2-7118-d6d1-cefb69fef558"], ["created_at", "2015-06-29 17:51:56.630652"], ["updated_at", "2015-06-29 17:51:56.630652"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" +Processing by RailsWorkflow::OperationTemplatesController#create as HTML + Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"252", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"252"} + RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 252]] +Unpermitted parameter: process_template_id +Unpermitted parameter: process_template_id +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::OperationTemplate"], ["title", "First Test project"], ["process_template_id", 252], ["uuid", "75460057-715f-085f-0e3c-dfd36f1e3c99"], ["created_at", "2015-06-29 17:51:56.644296"], ["updated_at", "2015-06-29 17:51:56.644296"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config/252/operation_templates +Completed 302 Found in 9ms (ActiveRecord: 0.9ms) +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 252]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "26985a68-aeab-34ed-fd22-34da9850d4ab"], ["created_at", "2015-06-29 17:51:56.654496"], ["updated_at", "2015-06-29 17:51:56.654496"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" +Processing by RailsWorkflow::OperationTemplatesController#create as HTML + Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"253", "type"=>"RailsWorkflow::CustomOperationTemplate"}, "process_template_id"=>"253"} + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 253]] +Unpermitted parameter: process_template_id +Unpermitted parameter: process_template_id +  (0.4ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::CustomOperationTemplate"], ["title", "First Test project"], ["process_template_id", 253], ["uuid", "8b57534a-2fdc-d1a1-c45f-82bb787d836a"], ["created_at", "2015-06-29 17:51:56.674679"], ["updated_at", "2015-06-29 17:51:56.674679"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config/253/operation_templates +Completed 302 Found in 19ms (ActiveRecord: 1.2ms) +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" + RailsWorkflow::OperationTemplate Load (0.5ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" ORDER BY "rails_workflow_operation_templates"."id" DESC LIMIT 1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "b5b4fed0-ca04-3f0d-eccb-a8875102e7b1"], ["created_at", "2015-06-29 17:51:56.685030"], ["updated_at", "2015-06-29 17:51:56.685030"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::OperationTemplatesController#create as HTML + Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"254", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"254"} + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 254]] +Unpermitted parameter: process_template_id +Unpermitted parameter: process_template_id +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::OperationTemplate"], ["title", "First Test project"], ["process_template_id", 254], ["uuid", "b9862aa2-a457-e4e2-9822-83349245f5f6"], ["created_at", "2015-06-29 17:51:56.693477"], ["updated_at", "2015-06-29 17:51:56.693477"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config/254/operation_templates +Completed 302 Found in 8ms (ActiveRecord: 1.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "73662d6c-25c3-8c08-6915-d65dfba0bb2d"], ["created_at", "2015-06-29 17:51:56.701375"], ["updated_at", "2015-06-29 17:51:56.701375"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::OperationTemplatesController#create as HTML + Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"255", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"255"} + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 255]] +Unpermitted parameter: process_template_id +Unpermitted parameter: process_template_id +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::OperationTemplate"], ["title", "First Test project"], ["process_template_id", 255], ["uuid", "b84bcf85-0965-b714-03b4-a8c510942c78"], ["created_at", "2015-06-29 17:51:56.709882"], ["updated_at", "2015-06-29 17:51:56.709882"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config/255/operation_templates +Completed 302 Found in 10ms (ActiveRecord: 1.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "f25e21c0-3d8e-66bd-006e-d58c75a0c03d"], ["created_at", "2015-06-29 17:51:56.722536"], ["updated_at", "2015-06-29 17:51:56.722536"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "62cc0bec-4a1d-b308-c8df-693845de8d13"], ["created_at", "2015-06-29 17:51:56.726445"], ["updated_at", "2015-06-29 17:51:56.726445"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "f974a8c6-c06c-2588-bfe6-d01355bd0f2f"], ["created_at", "2015-06-29 17:51:56.730699"], ["updated_at", "2015-06-29 17:51:56.730699"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 258], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "c6725d11-7757-6f8b-2660-03ae1e4dd582"], ["created_at", "2015-06-29 17:51:56.732975"], ["updated_at", "2015-06-29 17:51:56.732975"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "8292e880-2697-4bbb-51f3-0bdc0b8ef64d"], ["created_at", "2015-06-29 17:51:56.736843"], ["updated_at", "2015-06-29 17:51:56.736843"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 259], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "0adb7257-d987-ccf7-77b0-3351dbe4fd38"], ["created_at", "2015-06-29 17:51:56.739334"], ["updated_at", "2015-06-29 17:51:56.739334"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::OperationTemplatesController#update as HTML + Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"259", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"259", "id"=>"218"} + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 218]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 259]] +Unpermitted parameter: process_template_id +Unpermitted parameters: process_template_id, id +  (0.2ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config/259/operation_templates +Completed 302 Found in 7ms (ActiveRecord: 0.9ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "b95aea83-931e-d933-408f-58a1a6c19158"], ["created_at", "2015-06-29 17:51:56.754742"], ["updated_at", "2015-06-29 17:51:56.754742"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 260], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "e419dab5-20ea-d505-67da-8345503f4a21"], ["created_at", "2015-06-29 17:51:56.757444"], ["updated_at", "2015-06-29 17:51:56.757444"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::OperationTemplatesController#update as HTML + Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"260", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"260", "id"=>"219"} + RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 219]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 260]] +Unpermitted parameter: process_template_id +Unpermitted parameters: process_template_id, id +  (0.2ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config/260/operation_templates +Completed 302 Found in 7ms (ActiveRecord: 1.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "694e83ce-24c4-e838-652d-1f055e81c73f"], ["created_at", "2015-06-29 17:51:56.777158"], ["updated_at", "2015-06-29 17:51:56.777158"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 261], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "a174d427-2340-bb63-822c-7c758c036e4e"], ["created_at", "2015-06-29 17:51:56.780014"], ["updated_at", "2015-06-29 17:51:56.780014"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "58642c35-b628-f088-e32c-ecb4e88fd907"], ["created_at", "2015-06-29 17:51:56.784071"], ["updated_at", "2015-06-29 17:51:56.784071"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 262], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "728a6be0-edf9-c9bf-80b0-d73494f41881"], ["created_at", "2015-06-29 17:51:56.786331"], ["updated_at", "2015-06-29 17:51:56.786331"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "a874ad62-539a-49d6-bece-57e0192d75fd"], ["created_at", "2015-06-29 17:51:56.790860"], ["updated_at", "2015-06-29 17:51:56.790860"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 263], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "f9696721-d285-e89e-79a0-35ee2af41c9b"], ["created_at", "2015-06-29 17:51:56.793428"], ["updated_at", "2015-06-29 17:51:56.793428"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 263]] +Processing by RailsWorkflow::OperationTemplatesController#destroy as HTML + Parameters: {"process_template_id"=>"263", "id"=>"222"} + RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 222]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 263]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) DELETE FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 [["id", 222]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config/263/operation_templates +Completed 302 Found in 7ms (ActiveRecord: 1.2ms) +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "821bcac1-6ea4-3a87-5319-0f81e2d73178"], ["created_at", "2015-06-29 17:51:56.811189"], ["updated_at", "2015-06-29 17:51:56.811189"]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 264], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "62d0b6be-0418-fdfa-db91-525895dc0a31"], ["created_at", "2015-06-29 17:51:56.815555"], ["updated_at", "2015-06-29 17:51:56.815555"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::OperationTemplatesController#destroy as HTML + Parameters: {"process_template_id"=>"264", "id"=>"223"} + RailsWorkflow::OperationTemplate Load (0.5ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 223]] + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 264]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) DELETE FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 [["id", 223]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config/264/operation_templates +Completed 302 Found in 7ms (ActiveRecord: 1.3ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operations" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "1ae41105-d61f-7d9d-c83a-cf9da72f4d9e"], ["created_at", "2015-06-29 17:51:56.855646"], ["updated_at", "2015-06-29 17:51:56.855646"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessTemplatesController#index as HTML + Rendered /Users/maxim/workflow/rails_workflow/app/views/rails_workflow/process_templates/index.html.slim within layouts/rails_workflow/application (0.3ms) +Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.0ms) + RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" ORDER BY "rails_workflow_process_templates"."id" DESC +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "9a11a172-5ae1-1ee3-db66-e4653a164ef0"], ["created_at", "2015-06-29 17:51:56.872733"], ["updated_at", "2015-06-29 17:51:56.872733"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessTemplatesController#show as HTML + Parameters: {"id"=>"266"} + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 266]] + Rendered /Users/maxim/workflow/rails_workflow/app/views/rails_workflow/process_templates/show.html.slim within layouts/rails_workflow/application (0.2ms) +Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +Processing by RailsWorkflow::ProcessTemplatesController#new as HTML + Rendered /Users/maxim/workflow/rails_workflow/app/views/rails_workflow/process_templates/new.html.slim within layouts/rails_workflow/application (0.2ms) +Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "73a84555-ad8a-de07-a85c-bebd957a8778"], ["created_at", "2015-06-29 17:51:56.896151"], ["updated_at", "2015-06-29 17:51:56.896151"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessTemplatesController#edit as HTML + Parameters: {"id"=>"267"} + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 267]] + Rendered /Users/maxim/workflow/rails_workflow/app/views/rails_workflow/process_templates/edit.html.slim within layouts/rails_workflow/application (0.2ms) +Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_process_templates" +Processing by RailsWorkflow::ProcessTemplatesController#create as HTML + Parameters: {"process_template"=>{"title"=>"First Test project"}} +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "30862206-3d7d-75be-ae4d-88eabd43d4d8"], ["created_at", "2015-06-29 17:51:56.917478"], ["updated_at", "2015-06-29 17:51:56.917478"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config/268/operation_templates +Completed 302 Found in 5ms (ActiveRecord: 0.5ms) +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_process_templates" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +Processing by RailsWorkflow::ProcessTemplatesController#create as HTML + Parameters: {"process_template"=>{"title"=>"First Test project"}} +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "f6fad3ea-2f47-a011-e241-cdc623b06457"], ["created_at", "2015-06-29 17:51:56.929141"], ["updated_at", "2015-06-29 17:51:56.929141"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config/269/operation_templates +Completed 302 Found in 6ms (ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +Processing by RailsWorkflow::ProcessTemplatesController#create as HTML + Parameters: {"process_template"=>{"title"=>"First Test project"}} +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "df513049-afa0-42fb-4c62-5d738bf7129a"], ["created_at", "2015-06-29 17:51:56.941091"], ["updated_at", "2015-06-29 17:51:56.941091"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config/270/operation_templates +Completed 302 Found in 6ms (ActiveRecord: 0.7ms) + RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" ORDER BY "rails_workflow_process_templates"."id" DESC LIMIT 1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "51f38198-aae2-ce34-b3c2-5743f8dab7bb"], ["created_at", "2015-06-29 17:51:56.954755"], ["updated_at", "2015-06-29 17:51:56.954755"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "81338034-abf4-dea8-8516-4aa21de0fc0a"], ["created_at", "2015-06-29 17:51:56.958695"], ["updated_at", "2015-06-29 17:51:56.958695"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessTemplatesController#update as HTML + Parameters: {"process_template"=>{"title"=>"First Test project"}, "id"=>"272"} + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 272]] +Unpermitted parameter: id +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config/272 +Completed 302 Found in 5ms (ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "87d85ad0-9302-b2d7-1b82-66d1ecda4414"], ["created_at", "2015-06-29 17:51:56.973809"], ["updated_at", "2015-06-29 17:51:56.973809"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessTemplatesController#update as HTML + Parameters: {"process_template"=>{"title"=>"First Test project"}, "id"=>"273"} + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 273]] +Unpermitted parameter: id +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config/273 +Completed 302 Found in 5ms (ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "17453714-78c0-ad80-8aad-d4fc0345f363"], ["created_at", "2015-06-29 17:51:56.989518"], ["updated_at", "2015-06-29 17:51:56.989518"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "35eda6ff-d6f6-49ce-ef5d-3310b05e2519"], ["created_at", "2015-06-29 17:51:56.993230"], ["updated_at", "2015-06-29 17:51:56.993230"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "1d81dea4-c20d-dc8a-dca7-a56702858cb3"], ["created_at", "2015-06-29 17:51:56.997401"], ["updated_at", "2015-06-29 17:51:56.997401"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_process_templates" +Processing by RailsWorkflow::ProcessTemplatesController#destroy as HTML + Parameters: {"id"=>"276"} + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 276]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) DELETE FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 [["id", 276]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config +Completed 302 Found in 6ms (ActiveRecord: 0.9ms) +  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_process_templates" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "0ba7e245-e48d-f990-b7af-b0379441e051"], ["created_at", "2015-06-29 17:51:57.013475"], ["updated_at", "2015-06-29 17:51:57.013475"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessTemplatesController#destroy as HTML + Parameters: {"id"=>"277"} + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 277]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) DELETE FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 [["id", 277]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/config +Completed 302 Found in 5ms (ActiveRecord: 0.9ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "5e683520-3882-4fce-5c58-26a9aa163221"], ["created_at", "2015-06-29 17:51:57.029649"], ["updated_at", "2015-06-29 17:51:57.029649"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (1.0ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 278], ["created_at", "2015-06-29 17:51:57.037629"], ["updated_at", "2015-06-29 17:51:57.037629"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessesController#index as HTML +  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_processes" +  (0.4ms) select status, cnt from ( + select row_number() over (partition by status), + count(*) over (partition by status) cnt, + status from rails_workflow_processes)t + where row_number = 1 + Rendered /Users/maxim/workflow/rails_workflow/app/views/rails_workflow/processes/index.html.slim within layouts/rails_workflow/application (0.2ms) +Completed 200 OK in 14ms (Views: 5.6ms | ActiveRecord: 0.8ms) + RailsWorkflow::Process Load (0.6ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" ORDER BY "rails_workflow_processes"."created_at" DESC LIMIT 30 OFFSET 0 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "c103004c-ab82-bde0-4783-408a84c1b4af"], ["created_at", "2015-06-29 17:51:57.065410"], ["updated_at", "2015-06-29 17:51:57.065410"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 279], ["created_at", "2015-06-29 17:51:57.067600"], ["updated_at", "2015-06-29 17:51:57.067600"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessesController#show as HTML + Parameters: {"id"=>"125"} + RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 125]] + Rendered /Users/maxim/workflow/rails_workflow/app/views/rails_workflow/processes/show.html.slim within layouts/rails_workflow/application (0.2ms) +Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "98e6977c-fabb-c118-5436-3d31c8c8bbd1"], ["created_at", "2015-06-29 17:51:57.084840"], ["updated_at", "2015-06-29 17:51:57.084840"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessesController#new as HTML + Rendered /Users/maxim/workflow/rails_workflow/app/views/rails_workflow/processes/new.html.slim within layouts/rails_workflow/application (0.2ms) +Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "56b71ead-d995-d2fa-7568-8cd37422a536"], ["created_at", "2015-06-29 17:51:57.096697"], ["updated_at", "2015-06-29 17:51:57.096697"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 281], ["created_at", "2015-06-29 17:51:57.099297"], ["updated_at", "2015-06-29 17:51:57.099297"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessesController#edit as HTML + Parameters: {"id"=>"126"} + RailsWorkflow::Process Load (0.5ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 126]] + Rendered /Users/maxim/workflow/rails_workflow/app/views/rails_workflow/processes/edit.html.slim within layouts/rails_workflow/application (0.4ms) +Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.5ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "6fcb7f40-8ba9-9314-a833-2f3469b6205a"], ["created_at", "2015-06-29 17:51:57.117621"], ["updated_at", "2015-06-29 17:51:57.117621"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_processes" +Processing by RailsWorkflow::ProcessesController#create as HTML + Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"282"}} + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 282]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 282], ["created_at", "2015-06-29 17:51:57.127298"], ["updated_at", "2015-06-29 17:51:57.127298"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:51:57.129457"], ["id", 127]] + SQL (0.4ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 127], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2015-06-29 17:51:57.140381"], ["updated_at", "2015-06-29 17:51:57.140381"]] + RailsWorkflow::Context Load (0.4ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 127], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 282]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 127]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 127]] +Redirected to http://test.host/workflow/processes/127 +Completed 302 Found in 29ms (ActiveRecord: 4.3ms) +  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_processes" +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "2952deb7-2bd4-159a-a6cb-f2e8174eefc8"], ["created_at", "2015-06-29 17:51:57.157333"], ["updated_at", "2015-06-29 17:51:57.157333"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessesController#create as HTML + Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"283"}} + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 283]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 283], ["created_at", "2015-06-29 17:51:57.166530"], ["updated_at", "2015-06-29 17:51:57.166530"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:51:57.168839"], ["id", 128]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 128], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2015-06-29 17:51:57.171272"], ["updated_at", "2015-06-29 17:51:57.171272"]] + RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 128], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 283]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 128]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 128]] +Redirected to http://test.host/workflow/processes/128 +Completed 302 Found in 16ms (ActiveRecord: 2.6ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "a43ea375-d381-1add-41e8-a1a17207f54e"], ["created_at", "2015-06-29 17:51:57.183567"], ["updated_at", "2015-06-29 17:51:57.183567"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessesController#create as HTML + Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"284"}} + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 284]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 284], ["created_at", "2015-06-29 17:51:57.191066"], ["updated_at", "2015-06-29 17:51:57.191066"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:51:57.193156"], ["id", 129]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 129], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2015-06-29 17:51:57.195668"], ["updated_at", "2015-06-29 17:51:57.195668"]] + RailsWorkflow::Context Load (0.4ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 129], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 284]] + RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 129]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 129]] +Redirected to http://test.host/workflow/processes/129 +Completed 302 Found in 16ms (ActiveRecord: 3.0ms) + RailsWorkflow::Process Load (0.4ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" ORDER BY "rails_workflow_processes"."id" DESC LIMIT 1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "f705a9c1-3c32-2eb5-8b96-d976920154f5"], ["created_at", "2015-06-29 17:51:57.213859"], ["updated_at", "2015-06-29 17:51:57.213859"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "96842bf9-07a9-71ad-1421-5be6774d2bd2"], ["created_at", "2015-06-29 17:51:57.219814"], ["updated_at", "2015-06-29 17:51:57.219814"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "01d114f6-6592-d1e4-435e-c8ca64e5d74a"], ["created_at", "2015-06-29 17:51:57.224299"], ["updated_at", "2015-06-29 17:51:57.224299"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 287], ["created_at", "2015-06-29 17:51:57.226456"], ["updated_at", "2015-06-29 17:51:57.226456"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "1d4430ee-3592-9024-8547-4fe71c1bdd59"], ["created_at", "2015-06-29 17:51:57.230728"], ["updated_at", "2015-06-29 17:51:57.230728"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 288], ["created_at", "2015-06-29 17:51:57.232796"], ["updated_at", "2015-06-29 17:51:57.232796"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessesController#update as HTML + Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"288"}, "id"=>"131"} + RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 131]] +Unpermitted parameter: id +  (0.2ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/processes +Completed 302 Found in 6ms (ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "cac57cb3-f090-9f53-7adb-8f94a022a683"], ["created_at", "2015-06-29 17:51:57.247454"], ["updated_at", "2015-06-29 17:51:57.247454"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 289], ["created_at", "2015-06-29 17:51:57.249973"], ["updated_at", "2015-06-29 17:51:57.249973"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by RailsWorkflow::ProcessesController#update as HTML + Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"289"}, "id"=>"132"} + RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 132]] +Unpermitted parameter: id +  (0.2ms) SAVEPOINT active_record_1 +  (0.6ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/workflow/processes +Completed 302 Found in 9ms (ActiveRecord: 1.0ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "674757d6-86e2-160c-52b5-431f63ecc79e"], ["created_at", "2015-06-29 17:51:57.271293"], ["updated_at", "2015-06-29 17:51:57.271293"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 290], ["created_at", "2015-06-29 17:51:57.273575"], ["updated_at", "2015-06-29 17:51:57.273575"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "a884dd5c-3972-55cb-5d15-f6a91f187834"], ["created_at", "2015-06-29 17:51:57.277917"], ["updated_at", "2015-06-29 17:51:57.277917"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 291], ["created_at", "2015-06-29 17:51:57.280340"], ["updated_at", "2015-06-29 17:51:57.280340"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "afe181ec-4b7c-9d52-0fa5-6179502e3e0d"], ["created_at", "2015-06-29 17:51:57.284742"], ["updated_at", "2015-06-29 17:51:57.284742"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "319e25b8-b988-440d-34cd-249c29ac863d"], ["created_at", "2015-06-29 17:51:57.288553"], ["updated_at", "2015-06-29 17:51:57.288553"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "fde4cc04-2dfd-a665-03c7-18b64a2875c6"], ["created_at", "2015-06-29 17:51:57.292453"], ["updated_at", "2015-06-29 17:51:57.292453"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 294], ["uuid", "2715950b-2bf1-d95f-f0d8-59c7dc70bab7"], ["created_at", "2015-06-29 17:51:57.295636"], ["updated_at", "2015-06-29 17:51:57.295636"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 294], ["dependencies", "[{\"id\":224,\"statuses\":[2]}]"], ["uuid", "47b72766-fe92-91a0-2d2d-c4e7f67f7fa7"], ["created_at", "2015-06-29 17:51:57.299459"], ["updated_at", "2015-06-29 17:51:57.299459"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 294]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 294], ["created_at", "2015-06-29 17:51:57.303514"], ["updated_at", "2015-06-29 17:51:57.303514"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:51:57.305913"], ["id", 135]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 135], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:51:57.308479"], ["updated_at", "2015-06-29 17:51:57.308479"]] + RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 135], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 294]] + SQL (1.0ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 224], ["process_id", 135], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:51:57.328074"], ["updated_at", "2015-06-29 17:51:57.328074"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 148], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:51:57.331273"], ["updated_at", "2015-06-29 17:51:57.331273"]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 135]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "8e182cc6-bdb4-b696-3d1b-22b0fcb0d0e3"], ["created_at", "2015-06-29 17:51:57.340048"], ["updated_at", "2015-06-29 17:51:57.340048"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 295], ["uuid", "3fea582b-21b7-e68b-2170-f99a30927254"], ["created_at", "2015-06-29 17:51:57.342858"], ["updated_at", "2015-06-29 17:51:57.342858"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 295], ["dependencies", "[{\"id\":226,\"statuses\":[2]}]"], ["uuid", "d2d99d90-2d32-b935-e18b-b8f21a27c4b8"], ["created_at", "2015-06-29 17:51:57.346516"], ["updated_at", "2015-06-29 17:51:57.346516"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 295]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 295], ["created_at", "2015-06-29 17:51:57.350289"], ["updated_at", "2015-06-29 17:51:57.350289"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:51:57.352166"], ["id", 136]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 136], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:51:57.354401"], ["updated_at", "2015-06-29 17:51:57.354401"]] + RailsWorkflow::Context Load (0.4ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 136], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 295]] + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 226], ["process_id", 136], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:51:57.360672"], ["updated_at", "2015-06-29 17:51:57.360672"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 149], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:51:57.362444"], ["updated_at", "2015-06-29 17:51:57.362444"]] + RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 136]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 295]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "4e77dae6-ec3b-82fe-2b2c-807bb996f2b9"], ["created_at", "2015-06-29 17:51:57.370861"], ["updated_at", "2015-06-29 17:51:57.370861"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 296], ["uuid", "393355f4-b696-bb2f-e940-b4219a635281"], ["created_at", "2015-06-29 17:51:57.374098"], ["updated_at", "2015-06-29 17:51:57.374098"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 296], ["dependencies", "[{\"id\":228,\"statuses\":[2]}]"], ["uuid", "ef4e8b21-a165-c4ee-49c3-7b294f8d88b9"], ["created_at", "2015-06-29 17:51:57.377842"], ["updated_at", "2015-06-29 17:51:57.377842"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 296]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 296], ["created_at", "2015-06-29 17:51:57.383482"], ["updated_at", "2015-06-29 17:51:57.383482"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:51:57.385422"], ["id", 137]] + SQL (0.4ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 137], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:51:57.387754"], ["updated_at", "2015-06-29 17:51:57.387754"]] + RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 137], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 296]] + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 228], ["process_id", 137], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:51:57.393773"], ["updated_at", "2015-06-29 17:51:57.393773"]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 150], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:51:57.395691"], ["updated_at", "2015-06-29 17:51:57.395691"]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 137]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 137]] + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 137]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "69a2e07a-40d6-0f6e-b0c8-d6c6e59ec7b9"], ["created_at", "2015-06-29 17:51:57.405580"], ["updated_at", "2015-06-29 17:51:57.405580"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 297], ["uuid", "3fbb1fc6-4a45-9ba6-ed4b-54c9d8126423"], ["created_at", "2015-06-29 17:51:57.408618"], ["updated_at", "2015-06-29 17:51:57.408618"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 297], ["dependencies", "[{\"id\":230,\"statuses\":[2]}]"], ["uuid", "b9e434ca-c46f-3485-5590-b35827419ceb"], ["created_at", "2015-06-29 17:51:57.412024"], ["updated_at", "2015-06-29 17:51:57.412024"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 297]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 297], ["created_at", "2015-06-29 17:51:57.415768"], ["updated_at", "2015-06-29 17:51:57.415768"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:51:57.417693"], ["id", 138]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 138], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:51:57.419889"], ["updated_at", "2015-06-29 17:51:57.419889"]] + RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 138], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 297]] + SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 230], ["process_id", 138], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:51:57.425391"], ["updated_at", "2015-06-29 17:51:57.425391"]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 151], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:51:57.428056"], ["updated_at", "2015-06-29 17:51:57.428056"]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 138]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 138], ["parent_type", "RailsWorkflow::Process"]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "e84ec3c0-05e2-0784-9297-399a0664c32f"], ["created_at", "2015-06-29 17:51:57.436326"], ["updated_at", "2015-06-29 17:51:57.436326"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 298], ["uuid", "dfc5abbe-a1d7-e374-236d-cd20bf683221"], ["created_at", "2015-06-29 17:51:57.439918"], ["updated_at", "2015-06-29 17:51:57.439918"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 298], ["dependencies", "[{\"id\":232,\"statuses\":[2]}]"], ["uuid", "ab01bf08-a0f0-de3e-935f-0129510a6bcc"], ["created_at", "2015-06-29 17:51:57.443645"], ["updated_at", "2015-06-29 17:51:57.443645"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 298]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 298], ["created_at", "2015-06-29 17:51:57.449354"], ["updated_at", "2015-06-29 17:51:57.449354"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:51:57.451606"], ["id", 139]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 139], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:51:57.453681"], ["updated_at", "2015-06-29 17:51:57.453681"]] + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 139], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 298]] + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 232], ["process_id", 139], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:51:57.459096"], ["updated_at", "2015-06-29 17:51:57.459096"]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 152], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:51:57.461053"], ["updated_at", "2015-06-29 17:51:57.461053"]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 139]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 139]] + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 152], ["parent_type", "RailsWorkflow::Operation"]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "959a2c6c-da15-4a36-2910-6e5d3f583043"], ["created_at", "2015-06-29 17:51:57.482657"], ["updated_at", "2015-06-29 17:51:57.482657"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 299], ["uuid", "76153cd8-e3c4-d5a1-5f4e-24c7d73320d2"], ["created_at", "2015-06-29 17:51:57.485925"], ["updated_at", "2015-06-29 17:51:57.485925"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 299], ["dependencies", "[{\"id\":234,\"statuses\":[2]}]"], ["uuid", "de7720e7-dbcb-7652-181b-c7015f04100a"], ["created_at", "2015-06-29 17:51:57.489460"], ["updated_at", "2015-06-29 17:51:57.489460"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 299]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 299], ["created_at", "2015-06-29 17:51:57.493021"], ["updated_at", "2015-06-29 17:51:57.493021"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:51:57.495136"], ["id", 140]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 140], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:51:57.497484"], ["updated_at", "2015-06-29 17:51:57.497484"]] + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 140], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 299]] + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 234], ["process_id", 140], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:51:57.502693"], ["updated_at", "2015-06-29 17:51:57.502693"]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 153], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:51:57.504675"], ["updated_at", "2015-06-29 17:51:57.504675"]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 140]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 299]] +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 140]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.8ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:51:57.511707"], ["id", 140]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 140], ["status", 0]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:51:57.517890"], ["id", 153]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 153]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "e0b4a0da-8ef0-60c8-f85f-548d9b0ea135"], ["created_at", "2015-06-29 17:51:57.529583"], ["updated_at", "2015-06-29 17:51:57.529583"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 300], ["uuid", "a53e66fe-1618-dfdd-908b-fe0ac5214d4a"], ["created_at", "2015-06-29 17:51:57.533060"], ["updated_at", "2015-06-29 17:51:57.533060"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 300], ["dependencies", "[{\"id\":236,\"statuses\":[2]}]"], ["uuid", "1ba1ea2e-124f-b54e-dd32-0e9d8f10a583"], ["created_at", "2015-06-29 17:51:57.536198"], ["updated_at", "2015-06-29 17:51:57.536198"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 300]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 300], ["created_at", "2015-06-29 17:51:57.539631"], ["updated_at", "2015-06-29 17:51:57.539631"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:51:57.541509"], ["id", 141]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 141], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:51:57.544963"], ["updated_at", "2015-06-29 17:51:57.544963"]] + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 141], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 300]] + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 236], ["process_id", 141], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:51:57.551303"], ["updated_at", "2015-06-29 17:51:57.551303"]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 154], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:51:57.553287"], ["updated_at", "2015-06-29 17:51:57.553287"]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 141]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 300]] +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 141]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:51:57.560186"], ["id", 141]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 141], ["status", 0]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:51:57.576205"], ["id", 154]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 154]] +  (0.3ms) SAVEPOINT active_record_1 +  (0.4ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 141]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "8c118dc9-4fee-d403-f264-4a0a9a3b86e2"], ["created_at", "2015-06-29 17:51:57.586707"], ["updated_at", "2015-06-29 17:51:57.586707"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 301], ["uuid", "d45516c0-3907-c9f1-63a4-032dd732a15f"], ["created_at", "2015-06-29 17:51:57.589905"], ["updated_at", "2015-06-29 17:51:57.589905"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 301], ["dependencies", "[{\"id\":238,\"statuses\":[2]}]"], ["uuid", "3dbf3773-c1cc-7e9c-ebb7-237e0dd5ada7"], ["created_at", "2015-06-29 17:51:57.593579"], ["updated_at", "2015-06-29 17:51:57.593579"]] +  (0.7ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 301]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 301], ["created_at", "2015-06-29 17:51:57.598953"], ["updated_at", "2015-06-29 17:51:57.598953"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:51:57.601375"], ["id", 142]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 142], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:51:57.603845"], ["updated_at", "2015-06-29 17:51:57.603845"]] + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 142], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 301]] + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 238], ["process_id", 142], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:51:57.609715"], ["updated_at", "2015-06-29 17:51:57.609715"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 155], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:51:57.611708"], ["updated_at", "2015-06-29 17:51:57.611708"]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 142]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 301]] +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 142]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:51:57.620482"], ["id", 142]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 142], ["status", 0]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:51:57.624326"], ["id", 155]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 155]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2015-06-29 17:51:57.627907"], ["updated_at", "2015-06-29 17:51:57.629675"], ["id", 155]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 142]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 301]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 301]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 238]] + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 142]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 238]] + RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 155], ["parent_type", "RailsWorkflow::Operation"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 239], ["process_id", 142], ["status", 0], ["dependencies", "[{\"operation_id\":155,\"status\":2}]"], ["created_at", "2015-06-29 17:51:57.647662"], ["updated_at", "2015-06-29 17:51:57.647662"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 156], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:51:57.649691"], ["updated_at", "2015-06-29 17:51:57.649691"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:51:57.653939"], ["id", 156]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 156]] +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2015-06-29 17:51:57.657354"], ["updated_at", "2015-06-29 17:51:57.658587"], ["id", 156]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 142]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 301]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 301]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 239]] + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 142]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 239]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 238]] +  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 142], ["parent_type", "RailsWorkflow::Process"]] +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 142], ["parent_type", "RailsWorkflow::Process"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2015-06-29 17:51:57.674188"], ["id", 142]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 142]] + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 142]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2015-06-29 17:51:57.679798"], ["updated_at", "2015-06-29 17:51:57.681201"], ["id", 155]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 142]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 301]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 301]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 238]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 142]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 239]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 238]] + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" DESC LIMIT 1 [["process_id", 142]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2015-06-29 17:51:57.690626"], ["updated_at", "2015-06-29 17:51:57.691843"], ["id", 156]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 142]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 301]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 301]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 239]] + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 142]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 239]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 238]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 142]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "03cae33b-cf7d-1923-a5fb-fb43853eacb2"], ["created_at", "2015-06-29 17:51:57.703328"], ["updated_at", "2015-06-29 17:51:57.703328"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 302], ["uuid", "6e734c06-5b30-a24f-be9f-41be3af5a98e"], ["created_at", "2015-06-29 17:51:57.706493"], ["updated_at", "2015-06-29 17:51:57.706493"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 302], ["dependencies", "[{\"id\":240,\"statuses\":[2]}]"], ["uuid", "ffe34d19-e81b-560c-5e8c-5cee5d0f6489"], ["created_at", "2015-06-29 17:51:57.709639"], ["updated_at", "2015-06-29 17:51:57.709639"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 302]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 302], ["created_at", "2015-06-29 17:51:57.713195"], ["updated_at", "2015-06-29 17:51:57.713195"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:51:57.715085"], ["id", 143]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 143], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:51:57.717567"], ["updated_at", "2015-06-29 17:51:57.717567"]] + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 143], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 302]] + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 240], ["process_id", 143], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:51:57.722791"], ["updated_at", "2015-06-29 17:51:57.722791"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 157], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:51:57.724492"], ["updated_at", "2015-06-29 17:51:57.724492"]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 143]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 302]] +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 143]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:51:57.730803"], ["id", 143]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 143], ["status", 0]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:51:57.734181"], ["id", 157]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 157]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2015-06-29 17:51:57.737689"], ["updated_at", "2015-06-29 17:51:57.738791"], ["id", 157]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 143]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 302]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 302]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 240]] + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 143]] + RailsWorkflow::OperationTemplate Load (0.8ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 240]] + RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 157], ["parent_type", "RailsWorkflow::Operation"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 241], ["process_id", 143], ["status", 0], ["dependencies", "[{\"operation_id\":157,\"status\":2}]"], ["created_at", "2015-06-29 17:51:57.752187"], ["updated_at", "2015-06-29 17:51:57.752187"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 158], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:51:57.754053"], ["updated_at", "2015-06-29 17:51:57.754053"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:51:57.758321"], ["id", 158]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 158]] +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2015-06-29 17:51:57.761768"], ["updated_at", "2015-06-29 17:51:57.762926"], ["id", 158]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 143]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 302]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 302]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 241]] + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 143]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 241]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 240]] +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 143], ["parent_type", "RailsWorkflow::Process"]] +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 143], ["parent_type", "RailsWorkflow::Process"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2015-06-29 17:51:57.773577"], ["id", 143]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 143]] + RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 143]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2015-06-29 17:51:57.777220"], ["updated_at", "2015-06-29 17:51:57.778340"], ["id", 157]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 143]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 302]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 302]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 240]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 143]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 241]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 240]] + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" DESC LIMIT 1 [["process_id", 143]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 6], ["completed_at", "2015-06-29 17:51:57.787945"], ["updated_at", "2015-06-29 17:51:57.789337"], ["id", 158]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 143]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 302]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 302]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 241]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 143]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 241]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 240]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 143]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "c3b516a8-e314-1c75-c667-65b4c7ed9204"], ["created_at", "2015-06-29 17:51:57.800335"], ["updated_at", "2015-06-29 17:51:57.800335"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 303], ["uuid", "f6a132b6-7175-3884-c91f-a2a0037c72fe"], ["created_at", "2015-06-29 17:51:57.803492"], ["updated_at", "2015-06-29 17:51:57.803492"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 303], ["dependencies", "[{\"id\":242,\"statuses\":[2]}]"], ["uuid", "725b8b24-8ab6-c4aa-f61a-8ef407824beb"], ["created_at", "2015-06-29 17:51:57.806654"], ["updated_at", "2015-06-29 17:51:57.806654"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 303]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 303], ["created_at", "2015-06-29 17:51:57.810124"], ["updated_at", "2015-06-29 17:51:57.810124"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:51:57.811938"], ["id", 144]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 144], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:51:57.814328"], ["updated_at", "2015-06-29 17:51:57.814328"]] + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 144], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 303]] + SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 242], ["process_id", 144], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:51:57.819571"], ["updated_at", "2015-06-29 17:51:57.819571"]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 159], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:51:57.821757"], ["updated_at", "2015-06-29 17:51:57.821757"]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 144]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 303]] +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 144]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:51:57.829538"], ["id", 144]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 144], ["status", 0]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:51:57.833196"], ["id", 159]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 159]] +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2015-06-29 17:51:57.836558"], ["updated_at", "2015-06-29 17:51:57.837674"], ["id", 159]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 144]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 303]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 303]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 242]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 144]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 242]] + RailsWorkflow::Context Load (0.5ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 159], ["parent_type", "RailsWorkflow::Operation"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 243], ["process_id", 144], ["status", 0], ["dependencies", "[{\"operation_id\":159,\"status\":2}]"], ["created_at", "2015-06-29 17:51:57.850155"], ["updated_at", "2015-06-29 17:51:57.850155"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 160], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:51:57.852238"], ["updated_at", "2015-06-29 17:51:57.852238"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:51:57.856952"], ["id", 160]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 160]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2015-06-29 17:51:57.859883"], ["updated_at", "2015-06-29 17:51:57.861279"], ["id", 160]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 144]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 303]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 303]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 243]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 144]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 243]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 242]] +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 144], ["parent_type", "RailsWorkflow::Process"]] +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 144], ["parent_type", "RailsWorkflow::Process"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2015-06-29 17:51:57.871473"], ["id", 144]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 144]] + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 144]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2015-06-29 17:51:57.874832"], ["updated_at", "2015-06-29 17:51:57.875908"], ["id", 159]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 144]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 303]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 303]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 242]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 144]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 243]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 242]] + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" DESC LIMIT 1 [["process_id", 144]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 5], ["completed_at", "2015-06-29 17:51:57.885335"], ["updated_at", "2015-06-29 17:51:57.886637"], ["id", 160]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 144]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 303]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 303]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 243]] + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 144]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 243]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 242]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 144]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "f86b105b-8def-5ba1-2c57-92b52c3c8e99"], ["created_at", "2015-06-29 17:51:57.900369"], ["updated_at", "2015-06-29 17:51:57.900369"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 304], ["uuid", "79c8cef0-f2d2-cbad-61f9-c5020e43657f"], ["created_at", "2015-06-29 17:51:57.903472"], ["updated_at", "2015-06-29 17:51:57.903472"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 304], ["dependencies", "[{\"id\":244,\"statuses\":[2]}]"], ["uuid", "3ea85d0e-7089-2bd2-236f-0adfe93fb4d3"], ["created_at", "2015-06-29 17:51:57.906691"], ["updated_at", "2015-06-29 17:51:57.906691"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 304]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 304], ["created_at", "2015-06-29 17:51:57.910035"], ["updated_at", "2015-06-29 17:51:57.910035"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:51:57.911915"], ["id", 145]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 145], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:51:57.914711"], ["updated_at", "2015-06-29 17:51:57.914711"]] + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 145], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 304]] + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 244], ["process_id", 145], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:51:57.920565"], ["updated_at", "2015-06-29 17:51:57.920565"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 161], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:51:57.922490"], ["updated_at", "2015-06-29 17:51:57.922490"]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 145]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 304]] +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 145]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:51:57.929879"], ["id", 145]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 145], ["status", 0]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:51:57.933565"], ["id", 161]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 161]] +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2015-06-29 17:51:57.936888"], ["updated_at", "2015-06-29 17:51:57.937940"], ["id", 161]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 145]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 304]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 304]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 244]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 145]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 244]] +  (0.6ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 145], ["parent_type", "RailsWorkflow::Process"]] +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 145], ["parent_type", "RailsWorkflow::Process"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2015-06-29 17:51:57.950341"], ["id", 145]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 145]] + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 145]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2015-06-29 17:51:57.953691"], ["updated_at", "2015-06-29 17:51:57.954865"], ["id", 161]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 145]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 304]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 304]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 244]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 145]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 244]] +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 145]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "503acb18-27fd-e1bf-3f5e-90987fce88e8"], ["created_at", "2015-06-29 17:51:57.965179"], ["updated_at", "2015-06-29 17:51:57.965179"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 305], ["uuid", "dafacbee-1d2a-a58b-a651-c79c0828414a"], ["created_at", "2015-06-29 17:51:57.968548"], ["updated_at", "2015-06-29 17:51:57.968548"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 305], ["dependencies", "[{\"id\":246,\"statuses\":[2]}]"], ["uuid", "3978dc8f-2923-d1bb-2a5b-0cb3fb3319ec"], ["created_at", "2015-06-29 17:51:57.971969"], ["updated_at", "2015-06-29 17:51:57.971969"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 305]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 305], ["created_at", "2015-06-29 17:51:57.976245"], ["updated_at", "2015-06-29 17:51:57.976245"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:51:57.978162"], ["id", 146]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 146], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:51:57.980642"], ["updated_at", "2015-06-29 17:51:57.980642"]] + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 146], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 305]] + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 246], ["process_id", 146], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:51:57.986623"], ["updated_at", "2015-06-29 17:51:57.986623"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 162], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:51:57.988400"], ["updated_at", "2015-06-29 17:51:57.988400"]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 146]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 305]] +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 146]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:51:57.994878"], ["id", 146]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 146], ["status", 0]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:51:57.998659"], ["id", 162]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 162]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2015-06-29 17:51:58.002022"], ["updated_at", "2015-06-29 17:51:58.003109"], ["id", 162]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 146]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 305]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 305]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 246]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 146]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 246]] + RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 162], ["parent_type", "RailsWorkflow::Operation"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 247], ["process_id", 146], ["status", 0], ["dependencies", "[{\"operation_id\":162,\"status\":2}]"], ["created_at", "2015-06-29 17:51:58.015867"], ["updated_at", "2015-06-29 17:51:58.015867"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 163], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:51:58.018050"], ["updated_at", "2015-06-29 17:51:58.018050"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:51:58.022681"], ["id", 163]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 163]] +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2015-06-29 17:51:58.025723"], ["updated_at", "2015-06-29 17:51:58.026882"], ["id", 163]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 146]] + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 305]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 305]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 247]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 146]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 247]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 246]] +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 146], ["parent_type", "RailsWorkflow::Process"]] +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 146], ["parent_type", "RailsWorkflow::Process"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2015-06-29 17:51:58.037698"], ["id", 146]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 146]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 146]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2015-06-29 17:51:58.041367"], ["updated_at", "2015-06-29 17:51:58.042555"], ["id", 162]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 146]] + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 305]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 305]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 246]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 146]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 247]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 246]] +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 146]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:51:58.058755"], ["updated_at", "2015-06-29 17:51:58.058755"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 4], ["created_at", "2015-06-29 17:51:58.061429"], ["updated_at", "2015-06-29 17:51:58.061429"]] + SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 164], ["updated_at", "2015-06-29 17:51:58.063620"], ["id", 239]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "f4afa20a-7bab-9a56-2bf5-99afd0612ceb"], ["created_at", "2015-06-29 17:51:58.067491"], ["updated_at", "2015-06-29 17:51:58.067491"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 306], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "b7bc45b0-d6e9-81bb-a29b-2bb99bc54542"], ["created_at", "2015-06-29 17:51:58.070285"], ["updated_at", "2015-06-29 17:51:58.070285"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:51:58.075738"], ["updated_at", "2015-06-29 17:51:58.075738"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:51:58.078441"], ["updated_at", "2015-06-29 17:51:58.078441"]] + SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 147], ["updated_at", "2015-06-29 17:51:58.080236"], ["id", 240]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 248], ["process_id", 147], ["status", 0], ["dependencies", "[{\"operation_id\":164,\"status\":4}]"], ["created_at", "2015-06-29 17:51:58.093495"], ["updated_at", "2015-06-29 17:51:58.093495"]] + SQL (0.5ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 165], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:51:58.096491"], ["updated_at", "2015-06-29 17:51:58.096491"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"int\":1,\"date\":\"2015-06-29\",\"ary\":[1,2,3],\"msg\":\"Some string\"}"], ["created_at", "2015-06-29 17:51:58.105504"], ["updated_at", "2015-06-29 17:51:58.105504"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:51:58.111419"], ["updated_at", "2015-06-29 17:51:58.111419"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:51:58.114930"], ["updated_at", "2015-06-29 17:51:58.114930"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:51:58.117232"], ["updated_at", "2015-06-29 17:51:58.117232"]] + SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 148], ["updated_at", "2015-06-29 17:51:58.118941"], ["id", 243]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"resource\":{\"id\":166,\"class\":\"RailsWorkflow::Operation\"},\"process\":{\"id\":148,\"class\":\"RailsWorkflow::Process\"}}"], ["created_at", "2015-06-29 17:51:58.121853"], ["updated_at", "2015-06-29 17:51:58.121853"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:51:58.129019"], ["updated_at", "2015-06-29 17:51:58.129019"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:51:58.132006"], ["updated_at", "2015-06-29 17:51:58.132006"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:51:58.134199"], ["updated_at", "2015-06-29 17:51:58.134199"]] + SQL (0.4ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 149], ["updated_at", "2015-06-29 17:51:58.135802"], ["id", 245]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"resources\":[{\"id\":167,\"class\":\"RailsWorkflow::Operation\"},{\"id\":149,\"class\":\"RailsWorkflow::Process\"}]}"], ["created_at", "2015-06-29 17:51:58.138952"], ["updated_at", "2015-06-29 17:51:58.138952"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (1.1ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:51:58.145178"], ["updated_at", "2015-06-29 17:51:58.145178"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 168], ["parent_type", "RailsWorkflow::Operation"], ["body", "{\"int\":1,\"date\":\"2015-06-29\",\"ary\":[1,2,3],\"msg\":\"Some string\"}"], ["created_at", "2015-06-29 17:51:58.150240"], ["updated_at", "2015-06-29 17:51:58.150240"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."id" = $1 LIMIT 1 [["id", 247]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:51:58.157384"], ["updated_at", "2015-06-29 17:51:58.157384"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:51:58.161197"], ["updated_at", "2015-06-29 17:51:58.161197"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:51:58.163473"], ["updated_at", "2015-06-29 17:51:58.163473"]] + SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 150], ["updated_at", "2015-06-29 17:51:58.165000"], ["id", 248]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 169], ["parent_type", "RailsWorkflow::Operation"], ["body", "{\"resource\":{\"id\":169,\"class\":\"RailsWorkflow::Operation\"},\"process\":{\"id\":150,\"class\":\"RailsWorkflow::Process\"}}"], ["created_at", "2015-06-29 17:51:58.167824"], ["updated_at", "2015-06-29 17:51:58.167824"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."id" = $1 LIMIT 1 [["id", 249]] + RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 169]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 150]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:51:58.176872"], ["updated_at", "2015-06-29 17:51:58.176872"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:51:58.179783"], ["updated_at", "2015-06-29 17:51:58.179783"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:51:58.182458"], ["updated_at", "2015-06-29 17:51:58.182458"]] + SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 151], ["updated_at", "2015-06-29 17:51:58.184302"], ["id", 250]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"resources\":[{\"id\":170,\"class\":\"RailsWorkflow::Operation\"},{\"id\":151,\"class\":\"RailsWorkflow::Process\"}]}"], ["created_at", "2015-06-29 17:51:58.186947"], ["updated_at", "2015-06-29 17:51:58.186947"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."id" = $1 LIMIT 1 [["id", 251]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 170]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 151]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.9ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "52ff16bd-c8cb-bf8b-806a-bb93579b826a"], ["created_at", "2015-06-29 17:51:58.195389"], ["updated_at", "2015-06-29 17:51:58.195389"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 307], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "73297d7c-2c3e-a831-f2c0-8da2b6b9467b"], ["created_at", "2015-06-29 17:51:58.199950"], ["updated_at", "2015-06-29 17:51:58.199950"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:51:58.202820"], ["updated_at", "2015-06-29 17:51:58.202820"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:51:58.205093"], ["updated_at", "2015-06-29 17:51:58.205093"]] + SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 152], ["updated_at", "2015-06-29 17:51:58.206492"], ["id", 252]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 249], ["process_id", 152], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:51:58.210938"], ["updated_at", "2015-06-29 17:51:58.210938"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 171], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:51:58.212719"], ["updated_at", "2015-06-29 17:51:58.212719"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "72a5e424-f70a-c90b-685f-6f4bda4dfb16"], ["created_at", "2015-06-29 17:51:58.218603"], ["updated_at", "2015-06-29 17:51:58.218603"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 308], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "a43a7d3a-bf97-b560-96a0-0b66a34bb0f6"], ["created_at", "2015-06-29 17:51:58.221147"], ["updated_at", "2015-06-29 17:51:58.221147"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:51:58.224152"], ["updated_at", "2015-06-29 17:51:58.224152"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:51:58.226041"], ["updated_at", "2015-06-29 17:51:58.226041"]] + SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 153], ["updated_at", "2015-06-29 17:51:58.227569"], ["id", 254]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 250], ["process_id", 153], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:51:58.232372"], ["updated_at", "2015-06-29 17:51:58.232372"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 172], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:51:58.234637"], ["updated_at", "2015-06-29 17:51:58.234637"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "eb64b5a8-6176-e6a8-b297-beb2337222c7"], ["created_at", "2015-06-29 17:51:58.240476"], ["updated_at", "2015-06-29 17:51:58.240476"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 309], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "08dd65d9-61c0-6701-5c85-1fdb11d673af"], ["created_at", "2015-06-29 17:51:58.242761"], ["updated_at", "2015-06-29 17:51:58.242761"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:51:58.247501"], ["updated_at", "2015-06-29 17:51:58.247501"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:51:58.250748"], ["updated_at", "2015-06-29 17:51:58.250748"]] + SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 154], ["updated_at", "2015-06-29 17:51:58.252117"], ["id", 256]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 251], ["process_id", 154], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:51:58.256135"], ["updated_at", "2015-06-29 17:51:58.256135"]] + SQL (0.4ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 173], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:51:58.257972"], ["updated_at", "2015-06-29 17:51:58.257972"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "380edce2-cec5-9c11-4e0d-d622817ea647"], ["created_at", "2015-06-29 17:51:58.267837"], ["updated_at", "2015-06-29 17:51:58.267837"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 310], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "288ccb2a-cbcc-1f00-0ad7-1e932215b64e"], ["created_at", "2015-06-29 17:51:58.270503"], ["updated_at", "2015-06-29 17:51:58.270503"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:51:58.273613"], ["updated_at", "2015-06-29 17:51:58.273613"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:51:58.275806"], ["updated_at", "2015-06-29 17:51:58.275806"]] + SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 155], ["updated_at", "2015-06-29 17:51:58.277774"], ["id", 258]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (2.5ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 252], ["process_id", 155], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:51:58.287180"], ["updated_at", "2015-06-29 17:51:58.287180"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 174], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:51:58.290198"], ["updated_at", "2015-06-29 17:51:58.290198"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "aef1be5b-3ed6-ad26-c30f-741a332652e7"], ["created_at", "2015-06-29 17:51:58.301323"], ["updated_at", "2015-06-29 17:51:58.301323"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 311], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "afa7979a-7d4b-ad20-4242-44e4de07a5b7"], ["created_at", "2015-06-29 17:51:58.304008"], ["updated_at", "2015-06-29 17:51:58.304008"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:51:58.307000"], ["updated_at", "2015-06-29 17:51:58.307000"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:51:58.309033"], ["updated_at", "2015-06-29 17:51:58.309033"]] + SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 156], ["updated_at", "2015-06-29 17:51:58.310701"], ["id", 260]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 253], ["process_id", 156], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:51:58.316640"], ["updated_at", "2015-06-29 17:51:58.316640"]] + SQL (0.4ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 175], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:51:58.319525"], ["updated_at", "2015-06-29 17:51:58.319525"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "820a9790-c830-451c-08de-ed85708eb4c0"], ["created_at", "2015-06-29 17:51:58.327312"], ["updated_at", "2015-06-29 17:51:58.327312"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 312], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "7f3a8970-779c-0458-9f51-ea4c8797a9d3"], ["created_at", "2015-06-29 17:51:58.330081"], ["updated_at", "2015-06-29 17:51:58.330081"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:51:58.333435"], ["updated_at", "2015-06-29 17:51:58.333435"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:51:58.335934"], ["updated_at", "2015-06-29 17:51:58.335934"]] + SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 157], ["updated_at", "2015-06-29 17:51:58.337557"], ["id", 262]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 254], ["process_id", 157], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:51:58.341935"], ["updated_at", "2015-06-29 17:51:58.341935"]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 176], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:51:58.385271"], ["updated_at", "2015-06-29 17:51:58.385271"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "9a82428a-9baf-735e-4147-e001fbcc610d"], ["created_at", "2015-06-29 17:51:58.391819"], ["updated_at", "2015-06-29 17:51:58.391819"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "0b68bfb6-f7b9-692d-dcfd-6294a7be9eaa"], ["created_at", "2015-06-29 17:51:58.394500"], ["updated_at", "2015-06-29 17:51:58.394500"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "child_process_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 313], ["child_process_id", 314], ["uuid", "47860466-c990-f40c-8acf-f7cf6927f661"], ["created_at", "2015-06-29 17:51:58.397088"], ["updated_at", "2015-06-29 17:51:58.397088"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:51:58.400308"], ["updated_at", "2015-06-29 17:51:58.400308"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:51:58.402616"], ["updated_at", "2015-06-29 17:51:58.402616"]] + SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 158], ["updated_at", "2015-06-29 17:51:58.405766"], ["id", 264]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "9958a6d0-931f-1f52-3160-476b6d291287"], ["created_at", "2015-06-29 17:51:58.412440"], ["updated_at", "2015-06-29 17:51:58.412440"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (1.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 315], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "88f9c922-513a-1fbd-1861-4b21b91709a5"], ["created_at", "2015-06-29 17:51:58.416275"], ["updated_at", "2015-06-29 17:51:58.416275"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 256], ["process_id", 158], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:51:58.422375"], ["updated_at", "2015-06-29 17:51:58.422375"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 177], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:51:58.424674"], ["updated_at", "2015-06-29 17:51:58.424674"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 255], ["process_id", 158], ["status", 0], ["dependencies", "[{\"operation_id\":177,\"status\":0}]"], ["created_at", "2015-06-29 17:51:58.430781"], ["updated_at", "2015-06-29 17:51:58.430781"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 178], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:51:58.433019"], ["updated_at", "2015-06-29 17:51:58.433019"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 314]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 314], ["created_at", "2015-06-29 17:51:58.437078"], ["updated_at", "2015-06-29 17:51:58.437078"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:51:58.438885"], ["id", 159]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 159], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:51:58.441353"], ["updated_at", "2015-06-29 17:51:58.441353"]] + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 159], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 314]] + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 159]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "c222c245-390c-db67-197d-eeb007ad7c99"], ["created_at", "2015-06-29 17:51:58.451943"], ["updated_at", "2015-06-29 17:51:58.451943"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 316], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "c3148ae1-62d4-f73a-7f5a-188660322fc7"], ["created_at", "2015-06-29 17:51:58.454643"], ["updated_at", "2015-06-29 17:51:58.454643"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:51:58.457554"], ["updated_at", "2015-06-29 17:51:58.457554"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:51:58.459904"], ["updated_at", "2015-06-29 17:51:58.459904"]] + SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 160], ["updated_at", "2015-06-29 17:51:58.461515"], ["id", 268]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 257], ["process_id", 160], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:51:58.466816"], ["updated_at", "2015-06-29 17:51:58.466816"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 179], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:51:58.468734"], ["updated_at", "2015-06-29 17:51:58.468734"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 4], ["created_at", "2015-06-29 17:51:58.475809"], ["updated_at", "2015-06-29 17:51:58.475809"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "e2fe722b-a831-bdf3-eed1-be5d48910707"], ["created_at", "2015-06-29 17:51:58.479032"], ["updated_at", "2015-06-29 17:51:58.479032"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 317], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "164ed9e8-292f-6aed-e3af-82a2ac7e7a55"], ["created_at", "2015-06-29 17:51:58.481831"], ["updated_at", "2015-06-29 17:51:58.481831"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:51:58.485753"], ["updated_at", "2015-06-29 17:51:58.485753"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:51:58.487988"], ["updated_at", "2015-06-29 17:51:58.487988"]] + SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 161], ["updated_at", "2015-06-29 17:51:58.489404"], ["id", 270]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 180], ["parent_type", "RailsWorkflow::Operation"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 258], ["process_id", 161], ["status", 0], ["dependencies", "[{\"operation_id\":180,\"status\":4}]"], ["created_at", "2015-06-29 17:51:58.497220"], ["updated_at", "2015-06-29 17:51:58.497220"]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 181], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:51:58.500092"], ["updated_at", "2015-06-29 17:51:58.500092"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "e425f945-fcf3-da04-6867-efdf6227399a"], ["created_at", "2015-06-29 17:51:58.506850"], ["updated_at", "2015-06-29 17:51:58.506850"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 318], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "20c2ad67-249c-e107-8eaa-7ec037f56e32"], ["created_at", "2015-06-29 17:51:58.509630"], ["updated_at", "2015-06-29 17:51:58.509630"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:51:58.512462"], ["updated_at", "2015-06-29 17:51:58.512462"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:51:58.514624"], ["updated_at", "2015-06-29 17:51:58.514624"]] + SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 162], ["updated_at", "2015-06-29 17:51:58.516372"], ["id", 272]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 259], ["process_id", 162], ["status", 0], ["dependencies", "[]"], ["created_at", "2015-06-29 17:51:58.521372"], ["updated_at", "2015-06-29 17:51:58.521372"]] + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 182], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:51:58.523430"], ["updated_at", "2015-06-29 17:51:58.523430"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:51:58.528181"], ["updated_at", "2015-06-29 17:51:58.528181"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + User Exists (7.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 + SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$fkqKb7P4fAkunHu5zOJ3i.H6oemxplBxkn6YzcW9ZK1gDcroRQTEa"], ["created_at", "2015-06-29 17:51:58.559734"], ["updated_at", "2015-06-29 17:51:58.559734"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 34], ["assignment_type", "User"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 34], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2015-06-29 17:51:58.562763"], ["updated_at", "2015-06-29 17:51:58.564997"], ["id", 183]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:51:58.570468"], ["updated_at", "2015-06-29 17:51:58.570468"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$Ejm6bc0OkQ6aEh/TL7rzHe05jnLnntaME6tw6NwDQt.HOuFg1KLny"], ["created_at", "2015-06-29 17:51:58.576150"], ["updated_at", "2015-06-29 17:51:58.576150"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 35], ["assignment_type", "User"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 35], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2015-06-29 17:51:58.578523"], ["updated_at", "2015-06-29 17:51:58.580036"], ["id", 184]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:51:58.582509"], ["updated_at", "2015-06-29 17:51:58.582509"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 35], ["assignment_type", "User"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 35], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2015-06-29 17:51:58.584634"], ["updated_at", "2015-06-29 17:51:58.585879"], ["id", 185]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 184]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:51:58.590836"], ["updated_at", "2015-06-29 17:51:58.590836"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$ghG4NNYvZG3LfDYKlcdUHuigkLZ4bXkGOHqOWeeqBhzocSYfqcQ8G"], ["created_at", "2015-06-29 17:51:58.595661"], ["updated_at", "2015-06-29 17:51:58.595661"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 36], ["assignment_type", "User"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 36], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2015-06-29 17:51:58.597550"], ["updated_at", "2015-06-29 17:51:58.599240"], ["id", 186]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "updated_at" = $4 WHERE "rails_workflow_operations"."id" = $5 [["assignment_id", nil], ["assignment_type", nil], ["is_active", "f"], ["updated_at", "2015-06-29 17:51:58.601583"], ["id", 186]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:51:58.606197"], ["updated_at", "2015-06-29 17:51:58.606197"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$wAivUCtUhZXktv1f70dr9u5uXAE1BilQXefPcrqFTCkzBH9yJHnLC"], ["created_at", "2015-06-29 17:51:58.611585"], ["updated_at", "2015-06-29 17:51:58.611585"]] +  (0.5ms) RELEASE SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 37], ["assignment_type", "User"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 37], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2015-06-29 17:51:58.615360"], ["updated_at", "2015-06-29 17:51:58.616990"], ["id", 187]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'other@user.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "other@user.com"], ["encrypted_password", "$2a$04$MUn3JtXPlpuzj6vc2BT2CutfAQwqH2j4ch44P73ikX3R6gLTpezNa"], ["created_at", "2015-06-29 17:51:58.622446"], ["updated_at", "2015-06-29 17:51:58.622446"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 187]] + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 37]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:51:58.629925"], ["updated_at", "2015-06-29 17:51:58.629925"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$5hPRNSkcgiPGmFc6V6NvgO8OKYkm1Ghz6N2cu2N6Ay5zgAyYeImQ2"], ["created_at", "2015-06-29 17:51:58.635643"], ["updated_at", "2015-06-29 17:51:58.635643"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 39], ["assignment_type", "User"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 39], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2015-06-29 17:51:58.637755"], ["updated_at", "2015-06-29 17:51:58.639283"], ["id", 188]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'other@user.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "other@user.com"], ["encrypted_password", "$2a$04$PtVdPS6HCkAAgLNooJvKiOZG2I.pOVfVI0yRz2UHuFblu8Jhd1wZ6"], ["created_at", "2015-06-29 17:51:58.645071"], ["updated_at", "2015-06-29 17:51:58.645071"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:51:58.649952"], ["updated_at", "2015-06-29 17:51:58.649952"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$mj0T72RsjnsC33iyCkR0luBV/7V./KmpkQ51bxv4nvp42voMHo.yC"], ["created_at", "2015-06-29 17:51:58.655701"], ["updated_at", "2015-06-29 17:51:58.655701"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 41], ["assignment_type", "User"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 41], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2015-06-29 17:51:58.657864"], ["updated_at", "2015-06-29 17:51:58.659184"], ["id", 189]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SAVEPOINT active_record_1 + User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'other@user.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "other@user.com"], ["encrypted_password", "$2a$04$F04Zl9TSb60BxUjzbyWeSuRa7XzNSUU1WTUtZdCZBHOlih3eaeEze"], ["created_at", "2015-06-29 17:51:58.666906"], ["updated_at", "2015-06-29 17:51:58.666906"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "5190dc53-2d90-92a0-74a0-02c4a03718e8"], ["created_at", "2015-06-29 17:51:58.672539"], ["updated_at", "2015-06-29 17:51:58.672539"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "role", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 319], ["role", "admin"], ["uuid", "16298144-3eef-62ca-a5da-0a6fe85a8664"], ["created_at", "2015-06-29 17:51:58.675226"], ["updated_at", "2015-06-29 17:51:58.675226"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "f7d42a55-5045-1209-2ff4-61b2da22200e"], ["created_at", "2015-06-29 17:51:58.679019"], ["updated_at", "2015-06-29 17:51:58.679019"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "group", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 320], ["group", "some_group"], ["uuid", "40fb8045-f739-220b-7c3e-cb0e364e58f2"], ["created_at", "2015-06-29 17:51:58.681792"], ["updated_at", "2015-06-29 17:51:58.681792"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Test Operation"], ["status", 3], ["template_id", 261], ["created_at", "2015-06-29 17:51:58.685058"], ["updated_at", "2015-06-29 17:51:58.685058"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Test Operation"], ["status", 3], ["template_id", 260], ["created_at", "2015-06-29 17:51:58.688384"], ["updated_at", "2015-06-29 17:51:58.688384"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$71Bkvv/kOmMWb1GwpG/T8.vpdHfAmLslczVSTA.QqpRo2mjH.n4G6"], ["role", "admin"], ["created_at", "2015-06-29 17:51:58.693908"], ["updated_at", "2015-06-29 17:51:58.693908"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.7ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" INNER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."id" = "rails_workflow_operations"."template_id" WHERE "rails_workflow_operations"."status" = 3 AND "rails_workflow_operations"."assignment_id" IS NULL AND (rails_workflow_operation_templates.role = 'admin') +  (0.8ms) SAVEPOINT active_record_1 + User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'fake@email.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "fake@email.com"], ["encrypted_password", "$2a$04$zC/Bpip0gI3Ft1p2F.rA3e3GgrstNqLIQWRIiVfWxswNqUr3a/cOy"], ["role", "fake"], ["created_at", "2015-06-29 17:51:58.705885"], ["updated_at", "2015-06-29 17:51:58.705885"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.6ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" INNER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."id" = "rails_workflow_operations"."template_id" WHERE "rails_workflow_operations"."status" = 3 AND "rails_workflow_operations"."assignment_id" IS NULL AND (rails_workflow_operation_templates.role = 'fake') + SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 43], ["assignment_type", "User"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 43], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2015-06-29 17:51:58.709972"], ["updated_at", "2015-06-29 17:51:58.711527"], ["id", 191]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.9ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."assignment_id" IS NULL +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test\"}"], ["created_at", "2015-06-29 17:51:58.720047"], ["updated_at", "2015-06-29 17:51:58.720047"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:51:58.722331"], ["updated_at", "2015-06-29 17:51:58.722331"]] + SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 192], ["updated_at", "2015-06-29 17:51:58.723904"], ["id", 274]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 3], ["updated_at", "2015-06-29 17:51:58.726814"], ["id", 192]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2015-06-29 17:51:58.732591"], ["updated_at", "2015-06-29 17:51:58.732591"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2015-06-29 17:51:58.735743"], ["updated_at", "2015-06-29 17:51:58.735743"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2015-06-29 17:51:58.738036"], ["updated_at", "2015-06-29 17:51:58.738036"]] + SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 163], ["updated_at", "2015-06-29 17:51:58.739565"], ["id", 275]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operations" SET "child_process_id" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["child_process_id", 163], ["updated_at", "2015-06-29 17:51:58.741930"], ["id", 193]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:51:58.744230"], ["id", 193]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 193]] +  (0.2ms) SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 163]] + SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2015-06-29 17:51:58.748799"], ["id", 163]] + RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 163], ["status", 0]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 163]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.4ms) INSERT INTO "rails_workflow_operations" ("status", "completed_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["status", 2], ["completed_at", "2015-06-29 17:51:58.756159"], ["created_at", "2015-06-29 17:51:58.756979"], ["updated_at", "2015-06-29 17:51:58.756979"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("status", "completed_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["status", 6], ["completed_at", "2015-06-29 17:51:58.764852"], ["created_at", "2015-06-29 17:51:58.765871"], ["updated_at", "2015-06-29 17:51:58.765871"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("status", "completed_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["status", 5], ["completed_at", "2015-06-29 17:51:58.770403"], ["created_at", "2015-06-29 17:51:58.771258"], ["updated_at", "2015-06-29 17:51:58.771258"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "6d47765c-31d2-63b8-822d-f8b56e726da2"], ["created_at", "2015-06-29 17:51:58.776543"], ["updated_at", "2015-06-29 17:51:58.776543"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::CustomOperationTemplate"], ["title", "First Test project"], ["process_template_id", 321], ["uuid", "9059b1a8-ecd4-a2bf-1da2-60d13329a303"], ["created_at", "2015-06-29 17:51:58.779912"], ["updated_at", "2015-06-29 17:51:58.779912"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "30c654fb-c05c-f534-5df6-1dee53de8ef4"], ["created_at", "2015-06-29 17:51:58.784353"], ["updated_at", "2015-06-29 17:51:58.784353"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 322], ["uuid", "59217436-d1e1-5c89-f5ac-1b3326ef2020"], ["created_at", "2015-06-29 17:51:58.787196"], ["updated_at", "2015-06-29 17:51:58.787196"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 322], ["dependencies", "[{\"id\":263,\"statuses\":[2]}]"], ["uuid", "1e0806fc-e0b9-7f49-c9e4-ed95e52da7bb"], ["created_at", "2015-06-29 17:51:58.790627"], ["updated_at", "2015-06-29 17:51:58.790627"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."dependencies" IS NULL +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "process_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Process Template"], ["process_class", "RailsWorkflow::TestProcess"], ["uuid", "aa36fee0-609b-6d8d-d085-97d8a81c7da5"], ["created_at", "2015-06-29 17:51:58.796735"], ["updated_at", "2015-06-29 17:51:58.796735"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("type", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "RailsWorkflow::TestProcess"], ["template_id", 323], ["created_at", "2015-06-29 17:51:58.804201"], ["updated_at", "2015-06-29 17:51:58.804201"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2015-06-29 17:51:58.806640"], ["id", 164]] + SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 164], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2015-06-29 17:51:58.809473"], ["updated_at", "2015-06-29 17:51:58.809473"]] + RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 164], ["parent_type", "RailsWorkflow::Process"]] + RailsWorkflow::OperationTemplate Load (0.5ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."dependencies" IS NULL [["process_template_id", 323]] + RailsWorkflow::TestProcess Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."type" IN ('RailsWorkflow::TestProcess') AND "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 164]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 323]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2015-06-29 17:51:58.822612"], ["updated_at", "2015-06-29 17:51:58.822612"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2015-06-29 17:51:58.825378"], ["id", 324]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 324]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 324], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]] +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 324], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2015-06-29 17:51:58.831344"], ["updated_at", "2015-06-29 17:51:58.831344"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:51:58.835309"], ["id", 265]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 324], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 324], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2015-06-29 17:51:58.839137"], ["updated_at", "2015-06-29 17:51:58.839137"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:51:58.843975"], ["id", 266]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 324], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 324], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2015-06-29 17:51:58.848547"], ["updated_at", "2015-06-29 17:51:58.848547"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"9ee9a27e-0790-0d45-9534-a6469e5b9ce9\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:51:58.852936"], ["id", 267]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":266}]"], ["updated_at", "2015-06-29 17:51:58.860197"], ["id", 266]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.6ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":267}]"], ["updated_at", "2015-06-29 17:51:58.865484"], ["id", 267]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2015-06-29 17:51:58.873691"], ["updated_at", "2015-06-29 17:51:58.873691"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2015-06-29 17:51:58.876232"], ["id", 325]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 325]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 325], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 325], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2015-06-29 17:51:58.881022"], ["updated_at", "2015-06-29 17:51:58.881022"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:51:58.884861"], ["id", 268]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 325], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 325], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2015-06-29 17:51:58.888457"], ["updated_at", "2015-06-29 17:51:58.888457"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:51:58.893163"], ["id", 269]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 325], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 325], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2015-06-29 17:51:58.897418"], ["updated_at", "2015-06-29 17:51:58.897418"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"9ee9a27e-0790-0d45-9534-a6469e5b9ce9\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:51:58.902149"], ["id", 270]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":269}]"], ["updated_at", "2015-06-29 17:51:58.907133"], ["id", 269]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":270}]"], ["updated_at", "2015-06-29 17:51:58.911011"], ["id", 270]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.6ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_process_templates"."id" = $3 [["title", "Some new name"], ["updated_at", "2015-06-29 17:51:58.916842"], ["id", 325]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_process_templates"."id" = $3 [["title", "Test Process"], ["updated_at", "2015-06-29 17:51:58.920891"], ["id", 325]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 325]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 325], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]] +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 325], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["updated_at", "2015-06-29 17:51:58.933598"], ["id", 269]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 325], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"9ee9a27e-0790-0d45-9534-a6469e5b9ce9\"}]"], ["updated_at", "2015-06-29 17:51:58.940468"], ["id", 270]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":269}]"], ["updated_at", "2015-06-29 17:51:58.944602"], ["id", 269]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":270}]"], ["updated_at", "2015-06-29 17:51:58.947896"], ["id", 270]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2015-06-29 17:51:58.954433"], ["updated_at", "2015-06-29 17:51:58.954433"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2015-06-29 17:51:58.956849"], ["id", 326]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 326]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 326], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 326], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2015-06-29 17:51:58.962273"], ["updated_at", "2015-06-29 17:51:58.962273"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:51:58.966915"], ["id", 271]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 326], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 326], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2015-06-29 17:51:58.970827"], ["updated_at", "2015-06-29 17:51:58.970827"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:51:58.975392"], ["id", 272]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 326], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 326], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2015-06-29 17:51:58.979551"], ["updated_at", "2015-06-29 17:51:58.979551"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"9ee9a27e-0790-0d45-9534-a6469e5b9ce9\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:51:58.984883"], ["id", 273]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":272}]"], ["updated_at", "2015-06-29 17:51:58.989551"], ["id", 272]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":273}]"], ["updated_at", "2015-06-29 17:51:58.992590"], ["id", 273]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 326]] +  (0.5ms) ROLLBACK +  (0.2ms) BEGIN + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2015-06-29 17:51:59.002309"], ["updated_at", "2015-06-29 17:51:59.002309"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2015-06-29 17:51:59.004893"], ["id", 327]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 327]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 327], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 327], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2015-06-29 17:51:59.009222"], ["updated_at", "2015-06-29 17:51:59.009222"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:51:59.012975"], ["id", 274]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 327], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 327], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2015-06-29 17:51:59.016765"], ["updated_at", "2015-06-29 17:51:59.016765"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:51:59.021799"], ["id", 275]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 327], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 327], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2015-06-29 17:51:59.025805"], ["updated_at", "2015-06-29 17:51:59.025805"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"9ee9a27e-0790-0d45-9534-a6469e5b9ce9\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:51:59.030759"], ["id", 276]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":275}]"], ["updated_at", "2015-06-29 17:51:59.035619"], ["id", 275]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":276}]"], ["updated_at", "2015-06-29 17:51:59.038969"], ["id", 276]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 327]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["title", "Some new operation name"], ["updated_at", "2015-06-29 17:51:59.044277"], ["id", 274]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (1.0ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.2ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 327]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 327], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["title", "Default Operation 2"], ["updated_at", "2015-06-29 17:51:59.056450"], ["id", 274]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 327], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["updated_at", "2015-06-29 17:51:59.063392"], ["id", 275]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 327], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"9ee9a27e-0790-0d45-9534-a6469e5b9ce9\"}]"], ["updated_at", "2015-06-29 17:51:59.071111"], ["id", 276]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":275}]"], ["updated_at", "2015-06-29 17:51:59.075182"], ["id", 275]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":276}]"], ["updated_at", "2015-06-29 17:51:59.078349"], ["id", 276]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 274]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2015-06-29 17:51:59.085676"], ["updated_at", "2015-06-29 17:51:59.085676"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2015-06-29 17:51:59.088734"], ["id", 328]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 328]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 328], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 328], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2015-06-29 17:51:59.093206"], ["updated_at", "2015-06-29 17:51:59.093206"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:51:59.096955"], ["id", 277]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 328], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 328], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2015-06-29 17:51:59.100692"], ["updated_at", "2015-06-29 17:51:59.100692"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:51:59.104673"], ["id", 278]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 328], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 328], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2015-06-29 17:51:59.108893"], ["updated_at", "2015-06-29 17:51:59.108893"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"9ee9a27e-0790-0d45-9534-a6469e5b9ce9\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2015-06-29 17:51:59.113563"], ["id", 279]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":278}]"], ["updated_at", "2015-06-29 17:51:59.117724"], ["id", 278]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":279}]"], ["updated_at", "2015-06-29 17:51:59.121062"], ["id", 279]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Some new operation"], ["process_template_id", 328], ["uuid", "c95a4b65-49bb-2721-1525-9e1f69b39a9e"], ["created_at", "2015-06-29 17:51:59.125322"], ["updated_at", "2015-06-29 17:51:59.125322"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 328]] + RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.2ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 328]] + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 328], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]] +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 328], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["updated_at", "2015-06-29 17:51:59.143355"], ["id", 278]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 328], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"9ee9a27e-0790-0d45-9534-a6469e5b9ce9\"}]"], ["updated_at", "2015-06-29 17:51:59.150071"], ["id", 279]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + SQL (0.3ms) DELETE FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = 280 +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":278}]"], ["updated_at", "2015-06-29 17:51:59.154787"], ["id", 278]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":279}]"], ["updated_at", "2015-06-29 17:51:59.157884"], ["id", 279]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] +  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 328]] +  (0.2ms) ROLLBACK