panda_pal 5.6.8 → 5.6.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -18552,3 +18552,1049 @@ Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
18552
18552
  ActiveRecord::InternalMetadata Create (0.6ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2022-12-20 23:36:03.634659"], ["updated_at", "2022-12-20 23:36:03.634659"]]
18553
18553
   (0.2ms) RELEASE SAVEPOINT active_record_1
18554
18554
   (2.3ms) ROLLBACK
18555
+  (2.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
18556
+ SQL (1.0ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
18557
+  (7.5ms) DROP TABLE IF EXISTS "panda_pal_api_calls" CASCADE
18558
+  (17.5ms) CREATE TABLE "panda_pal_api_calls" ("id" serial NOT NULL PRIMARY KEY, "logic" text, "expiration" character varying, "uses_remaining" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
18559
+  (3.1ms) DROP TABLE IF EXISTS "panda_pal_organizations" CASCADE
18560
+  (10.0ms) CREATE TABLE "panda_pal_organizations" ("id" serial NOT NULL PRIMARY KEY, "name" character varying, "key" character varying, "secret" character varying, "canvas_account_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "salesforce_id" character varying, "encrypted_settings" text, "encrypted_settings_iv" character varying)
18561
+  (6.0ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_key" ON "panda_pal_organizations" ("key")
18562
+  (4.9ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_name" ON "panda_pal_organizations" ("name")
18563
+  (2.2ms) DROP TABLE IF EXISTS "panda_pal_sessions" CASCADE
18564
+  (9.2ms) CREATE TABLE "panda_pal_sessions" ("id" serial NOT NULL PRIMARY KEY, "session_key" character varying, "data" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "panda_pal_organization_id" integer)
18565
+  (5.1ms) CREATE INDEX "index_panda_pal_sessions_on_panda_pal_organization_id" ON "panda_pal_sessions" ("panda_pal_organization_id")
18566
+  (4.7ms) CREATE UNIQUE INDEX "index_panda_pal_sessions_on_session_key" ON "panda_pal_sessions" ("session_key")
18567
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
18568
+ ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
18569
+  (0.2ms) BEGIN
18570
+  (0.2ms) COMMIT
18571
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
18572
+  (0.1ms) BEGIN
18573
+  (0.2ms) SAVEPOINT active_record_1
18574
+ PandaPal::ApiCall Create (0.6ms) INSERT INTO "panda_pal_api_calls" ("logic", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logic", "\"\#{p[:foo]}_bar\""], ["created_at", "2023-04-17 17:41:23.644232"], ["updated_at", "2023-04-17 17:41:23.644232"]]
18575
+  (0.2ms) RELEASE SAVEPOINT active_record_1
18576
+ PandaPal::Organization Load (0.3ms) SELECT "public"."panda_pal_organizations".* FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."name" = $1 LIMIT $2 [["name", "public"], ["LIMIT", 1]]
18577
+ Processing by PandaPal::ApiCallController#call as HTML
18578
+ Parameters: {"foo"=>"bar", "token"=>"eyJhbGciOiJIUzI1NiJ9.eyJhcGlfY2FsbF9pZCI6MSwib3JnYW5pemF0aW9uX2lkIjpudWxsfQ.FdMR5USchKdhBKWiebOhptm6ZSVF8ObhQ2Z7PvWGhwU", "use_route"=>"panda_pal"}
18579
+ PandaPal::ApiCall Load (0.2ms) SELECT "panda_pal_api_calls".* FROM "panda_pal_api_calls" WHERE "panda_pal_api_calls"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]]
18580
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms)
18581
+  (0.4ms) ROLLBACK
18582
+  (0.2ms) BEGIN
18583
+  (0.2ms) SAVEPOINT active_record_1
18584
+ PandaPal::ApiCall Create (0.4ms) INSERT INTO "panda_pal_api_calls" ("logic", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logic", "\"\#{p[:foo]}_bar\""], ["created_at", "2023-04-17 17:41:23.749717"], ["updated_at", "2023-04-17 17:41:23.749717"]]
18585
+  (0.2ms) RELEASE SAVEPOINT active_record_1
18586
+ Processing by PandaPal::ApiCallController#call as HTML
18587
+ Parameters: {"foo"=>"bar", "token"=>"bad.jwt.token", "use_route"=>"panda_pal"}
18588
+ Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
18589
+  (0.2ms) ROLLBACK
18590
+  (0.1ms) BEGIN
18591
+  (0.1ms) SAVEPOINT active_record_1
18592
+ PandaPal::ApiCall Create (0.3ms) INSERT INTO "panda_pal_api_calls" ("logic", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logic", "\"\#{p[:foo]}_bar\""], ["created_at", "2023-04-17 17:41:23.755678"], ["updated_at", "2023-04-17 17:41:23.755678"]]
18593
+  (0.1ms) RELEASE SAVEPOINT active_record_1
18594
+ PandaPal::Organization Load (0.2ms) SELECT "public"."panda_pal_organizations".* FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."name" = $1 LIMIT $2 [["name", "public"], ["LIMIT", 1]]
18595
+ PandaPal::ApiCall Load (0.2ms) SELECT "panda_pal_api_calls".* FROM "panda_pal_api_calls" WHERE "panda_pal_api_calls"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]]
18596
+  (0.2ms) ROLLBACK
18597
+  (0.1ms) BEGIN
18598
+  (0.2ms) SAVEPOINT active_record_1
18599
+ PandaPal::ApiCall Create (0.3ms) INSERT INTO "panda_pal_api_calls" ("logic", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logic", "\"\#{p[:foo]}_bar\""], ["created_at", "2023-04-17 17:41:23.759773"], ["updated_at", "2023-04-17 17:41:23.759773"]]
18600
+  (0.1ms) RELEASE SAVEPOINT active_record_1
18601
+ PandaPal::Organization Load (0.3ms) SELECT "public"."panda_pal_organizations".* FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."name" = $1 LIMIT $2 [["name", "public"], ["LIMIT", 1]]
18602
+  (0.2ms) ROLLBACK
18603
+  (0.1ms) BEGIN
18604
+  (0.1ms) SAVEPOINT active_record_1
18605
+ PandaPal::ApiCall Create (0.3ms) INSERT INTO "panda_pal_api_calls" ("logic", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logic", "\"\#{p[:foo]}_bar\""], ["created_at", "2023-04-17 17:41:23.772086"], ["updated_at", "2023-04-17 17:41:23.772086"]]
18606
+  (0.1ms) RELEASE SAVEPOINT active_record_1
18607
+ PandaPal::Organization Load (0.2ms) SELECT "public"."panda_pal_organizations".* FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."name" = $1 LIMIT $2 [["name", "public"], ["LIMIT", 1]]
18608
+  (0.2ms) ROLLBACK
18609
+  (0.1ms) BEGIN
18610
+  (0.2ms) SAVEPOINT active_record_1
18611
+ PandaPal::ApiCall Create (0.3ms) INSERT INTO "panda_pal_api_calls" ("logic", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["logic", "\"\#{p[:foo]}_bar\""], ["created_at", "2023-04-17 17:41:23.775779"], ["updated_at", "2023-04-17 17:41:23.775779"]]
18612
+  (0.2ms) RELEASE SAVEPOINT active_record_1
18613
+ PandaPal::Organization Load (0.2ms) SELECT "public"."panda_pal_organizations".* FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."name" = $1 LIMIT $2 [["name", "public"], ["LIMIT", 1]]
18614
+ PandaPal::Organization Load (0.4ms) SELECT "public"."panda_pal_organizations".* FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."name" = $1 LIMIT $2 [["name", "public"], ["LIMIT", 1]]
18615
+  (0.2ms) ROLLBACK
18616
+  (0.2ms) BEGIN
18617
+  (0.2ms) SAVEPOINT active_record_1
18618
+ PandaPal::Organization Exists (0.5ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) LIMIT $2 [["key", "206baf0f7d338bd5f5519e6861797be6"], ["LIMIT", 1]]
18619
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) LIMIT $2 [["name", "0570b6e93fb832697c61d3cf89bc2ee5"], ["LIMIT", 1]]
18620
+ PandaPal::Organization Exists (0.3ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 LIMIT $2 [["salesforce_id", "151725495545a41c655a6d84ce2684bf"], ["LIMIT", 1]]
18621
+ PandaPal::Organization Create (0.9ms) INSERT INTO "public"."panda_pal_organizations" ("name", "key", "secret", "canvas_account_id", "created_at", "updated_at", "salesforce_id", "encrypted_settings_iv") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["name", "0570b6e93fb832697c61d3cf89bc2ee5"], ["key", "206baf0f7d338bd5f5519e6861797be6"], ["secret", "a210d05e7a5f343fc69731292fccfae1"], ["canvas_account_id", "4429"], ["created_at", "2023-04-17 17:41:23.795640"], ["updated_at", "2023-04-17 17:41:23.795640"], ["salesforce_id", "151725495545a41c655a6d84ce2684bf"], ["encrypted_settings_iv", "GTt3eLfAWi1hC+AJ\n"]]
18622
+  (0.7ms) CREATE SCHEMA "0570b6e93fb832697c61d3cf89bc2ee5"
18623
+ SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
18624
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_api_calls" CASCADE
18625
+  (17.4ms) CREATE TABLE "panda_pal_api_calls" ("id" serial NOT NULL PRIMARY KEY, "logic" text, "expiration" character varying, "uses_remaining" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
18626
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_organizations" CASCADE
18627
+  (7.7ms) CREATE TABLE "panda_pal_organizations" ("id" serial NOT NULL PRIMARY KEY, "name" character varying, "key" character varying, "secret" character varying, "canvas_account_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "salesforce_id" character varying, "encrypted_settings" text, "encrypted_settings_iv" character varying)
18628
+  (5.0ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_key" ON "panda_pal_organizations" ("key")
18629
+  (4.0ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_name" ON "panda_pal_organizations" ("name")
18630
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_sessions" CASCADE
18631
+  (9.8ms) CREATE TABLE "panda_pal_sessions" ("id" serial NOT NULL PRIMARY KEY, "session_key" character varying, "data" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "panda_pal_organization_id" integer)
18632
+  (3.5ms) CREATE INDEX "index_panda_pal_sessions_on_panda_pal_organization_id" ON "panda_pal_sessions" ("panda_pal_organization_id")
18633
+  (3.6ms) CREATE UNIQUE INDEX "index_panda_pal_sessions_on_session_key" ON "panda_pal_sessions" ("session_key")
18634
+  (9.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
18635
+  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
18636
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES (20220721095653)
18637
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES
18638
+ (20160413135653),
18639
+ (20160425130344),
18640
+ (20171205194657),
18641
+ (20170106165533),
18642
+ (20160412205931),
18643
+ (20171205183457);
18644
+
18645
+ 
18646
+  (8.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
18647
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
18648
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2023-04-17 17:41:23.884515"], ["updated_at", "2023-04-17 17:41:23.884515"]]
18649
+  (0.2ms) RELEASE SAVEPOINT active_record_1
18650
+ PandaPal::Organization Exists (0.5ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["key", "206baf0f7d338bd5f5519e6861797be6"], ["id", 1], ["LIMIT", 1]]
18651
+ PandaPal::Organization Exists (0.3ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["name", "0570b6e93fb832697c61d3cf89bc2ee5"], ["id", 1], ["LIMIT", 1]]
18652
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["salesforce_id", "151725495545a41c655a6d84ce2684bf"], ["id", 1], ["LIMIT", 1]]
18653
+  (2.0ms) ROLLBACK
18654
+  (0.3ms) BEGIN
18655
+  (0.3ms) SAVEPOINT active_record_1
18656
+ PandaPal::Organization Exists (0.5ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) LIMIT $2 [["key", "05cb16db6957346f1c5360db168a2dd3"], ["LIMIT", 1]]
18657
+ PandaPal::Organization Exists (0.3ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) LIMIT $2 [["name", "b24c840b5bfcba784ab66cbc55d268a3"], ["LIMIT", 1]]
18658
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 LIMIT $2 [["salesforce_id", "73e8bbe609c6690a98412620a81a2361"], ["LIMIT", 1]]
18659
+ PandaPal::Organization Create (0.2ms) INSERT INTO "public"."panda_pal_organizations" ("name", "key", "secret", "canvas_account_id", "created_at", "updated_at", "salesforce_id", "encrypted_settings_iv") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["name", "b24c840b5bfcba784ab66cbc55d268a3"], ["key", "05cb16db6957346f1c5360db168a2dd3"], ["secret", "2798c66647ad130e1d42ab9018095a99"], ["canvas_account_id", "6862"], ["created_at", "2023-04-17 17:41:23.901181"], ["updated_at", "2023-04-17 17:41:23.901181"], ["salesforce_id", "73e8bbe609c6690a98412620a81a2361"], ["encrypted_settings_iv", "BJpHnkNp2vzmUxww\n"]]
18660
+  (0.2ms) CREATE SCHEMA "b24c840b5bfcba784ab66cbc55d268a3"
18661
+ SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
18662
+  (0.1ms) DROP TABLE IF EXISTS "panda_pal_api_calls" CASCADE
18663
+  (8.1ms) CREATE TABLE "panda_pal_api_calls" ("id" serial NOT NULL PRIMARY KEY, "logic" text, "expiration" character varying, "uses_remaining" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
18664
+  (0.3ms) DROP TABLE IF EXISTS "panda_pal_organizations" CASCADE
18665
+  (9.0ms) CREATE TABLE "panda_pal_organizations" ("id" serial NOT NULL PRIMARY KEY, "name" character varying, "key" character varying, "secret" character varying, "canvas_account_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "salesforce_id" character varying, "encrypted_settings" text, "encrypted_settings_iv" character varying)
18666
+  (4.0ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_key" ON "panda_pal_organizations" ("key")
18667
+  (3.9ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_name" ON "panda_pal_organizations" ("name")
18668
+  (0.1ms) DROP TABLE IF EXISTS "panda_pal_sessions" CASCADE
18669
+  (12.1ms) CREATE TABLE "panda_pal_sessions" ("id" serial NOT NULL PRIMARY KEY, "session_key" character varying, "data" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "panda_pal_organization_id" integer)
18670
+  (3.3ms) CREATE INDEX "index_panda_pal_sessions_on_panda_pal_organization_id" ON "panda_pal_sessions" ("panda_pal_organization_id")
18671
+  (3.7ms) CREATE UNIQUE INDEX "index_panda_pal_sessions_on_session_key" ON "panda_pal_sessions" ("session_key")
18672
+  (8.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
18673
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
18674
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES (20220721095653)
18675
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES
18676
+ (20160413135653),
18677
+ (20160425130344),
18678
+ (20171205194657),
18679
+ (20170106165533),
18680
+ (20160412205931),
18681
+ (20171205183457);
18682
+
18683
+ 
18684
+  (8.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
18685
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
18686
+ ActiveRecord::InternalMetadata Create (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2023-04-17 17:41:23.982794"], ["updated_at", "2023-04-17 17:41:23.982794"]]
18687
+  (0.2ms) RELEASE SAVEPOINT active_record_1
18688
+ PandaPal::Organization Exists (0.3ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["key", "05cb16db6957346f1c5360db168a2dd3"], ["id", 2], ["LIMIT", 1]]
18689
+ PandaPal::Organization Exists (0.3ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["name", "b24c840b5bfcba784ab66cbc55d268a3"], ["id", 2], ["LIMIT", 1]]
18690
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["salesforce_id", "73e8bbe609c6690a98412620a81a2361"], ["id", 2], ["LIMIT", 1]]
18691
+  (2.4ms) ROLLBACK
18692
+  (0.1ms) BEGIN
18693
+  (0.2ms) SAVEPOINT active_record_1
18694
+ PandaPal::Organization Exists (0.4ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) LIMIT $2 [["key", "5b86fc447e89e824eefbee31dae4010d"], ["LIMIT", 1]]
18695
+ PandaPal::Organization Exists (0.4ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) LIMIT $2 [["name", "3fca45e97f7a7673c712833391256b8e"], ["LIMIT", 1]]
18696
+ PandaPal::Organization Exists (0.3ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 LIMIT $2 [["salesforce_id", "4b76b12f306bb223e05d260cca3c8edc"], ["LIMIT", 1]]
18697
+ PandaPal::Organization Create (0.4ms) INSERT INTO "public"."panda_pal_organizations" ("name", "key", "secret", "canvas_account_id", "created_at", "updated_at", "salesforce_id", "encrypted_settings_iv") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["name", "3fca45e97f7a7673c712833391256b8e"], ["key", "5b86fc447e89e824eefbee31dae4010d"], ["secret", "5c36a1d2ac6151dc0f8de3da3b8eb8fc"], ["canvas_account_id", "5758"], ["created_at", "2023-04-17 17:41:24.003418"], ["updated_at", "2023-04-17 17:41:24.003418"], ["salesforce_id", "4b76b12f306bb223e05d260cca3c8edc"], ["encrypted_settings_iv", "cm9cF2xZgj2gpsDj\n"]]
18698
+  (0.3ms) CREATE SCHEMA "3fca45e97f7a7673c712833391256b8e"
18699
+ SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
18700
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_api_calls" CASCADE
18701
+  (9.7ms) CREATE TABLE "panda_pal_api_calls" ("id" serial NOT NULL PRIMARY KEY, "logic" text, "expiration" character varying, "uses_remaining" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
18702
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_organizations" CASCADE
18703
+  (8.6ms) CREATE TABLE "panda_pal_organizations" ("id" serial NOT NULL PRIMARY KEY, "name" character varying, "key" character varying, "secret" character varying, "canvas_account_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "salesforce_id" character varying, "encrypted_settings" text, "encrypted_settings_iv" character varying)
18704
+  (3.7ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_key" ON "panda_pal_organizations" ("key")
18705
+  (3.8ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_name" ON "panda_pal_organizations" ("name")
18706
+  (0.5ms) DROP TABLE IF EXISTS "panda_pal_sessions" CASCADE
18707
+  (21.0ms) CREATE TABLE "panda_pal_sessions" ("id" serial NOT NULL PRIMARY KEY, "session_key" character varying, "data" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "panda_pal_organization_id" integer)
18708
+  (4.6ms) CREATE INDEX "index_panda_pal_sessions_on_panda_pal_organization_id" ON "panda_pal_sessions" ("panda_pal_organization_id")
18709
+  (4.4ms) CREATE UNIQUE INDEX "index_panda_pal_sessions_on_session_key" ON "panda_pal_sessions" ("session_key")
18710
+  (8.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
18711
+  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
18712
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES (20220721095653)
18713
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES
18714
+ (20160413135653),
18715
+ (20160425130344),
18716
+ (20171205194657),
18717
+ (20170106165533),
18718
+ (20160412205931),
18719
+ (20171205183457);
18720
+
18721
+ 
18722
+  (9.1ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
18723
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
18724
+ ActiveRecord::InternalMetadata Create (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2023-04-17 17:41:24.112764"], ["updated_at", "2023-04-17 17:41:24.112764"]]
18725
+  (0.2ms) RELEASE SAVEPOINT active_record_1
18726
+ PandaPal::Organization Exists (0.4ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["key", "5b86fc447e89e824eefbee31dae4010d"], ["id", 3], ["LIMIT", 1]]
18727
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["name", "3fca45e97f7a7673c712833391256b8e"], ["id", 3], ["LIMIT", 1]]
18728
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["salesforce_id", "4b76b12f306bb223e05d260cca3c8edc"], ["id", 3], ["LIMIT", 1]]
18729
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["key", "5b86fc447e89e824eefbee31dae4010d"], ["id", 3], ["LIMIT", 1]]
18730
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["name", "3fca45e97f7a7673c712833391256b8e"], ["id", 3], ["LIMIT", 1]]
18731
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["salesforce_id", "4b76b12f306bb223e05d260cca3c8edc"], ["id", 3], ["LIMIT", 1]]
18732
+  (1.8ms) ROLLBACK
18733
+  (0.1ms) BEGIN
18734
+  (0.1ms) SAVEPOINT active_record_1
18735
+ PandaPal::Organization Exists (0.3ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) LIMIT $2 [["key", "507f3ce2d7ebc267e30a1398dedeb776"], ["LIMIT", 1]]
18736
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) LIMIT $2 [["name", "b4a207e9f26fa4f06f6865493978a238"], ["LIMIT", 1]]
18737
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 LIMIT $2 [["salesforce_id", "65953295f04312dcc4426d0fd2f101e3"], ["LIMIT", 1]]
18738
+ PandaPal::Organization Create (0.4ms) INSERT INTO "public"."panda_pal_organizations" ("name", "key", "secret", "canvas_account_id", "created_at", "updated_at", "salesforce_id", "encrypted_settings_iv") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["name", "b4a207e9f26fa4f06f6865493978a238"], ["key", "507f3ce2d7ebc267e30a1398dedeb776"], ["secret", "404f5404c6a1410b08b2b7d2a6165af3"], ["canvas_account_id", "5642"], ["created_at", "2023-04-17 17:41:24.138129"], ["updated_at", "2023-04-17 17:41:24.138129"], ["salesforce_id", "65953295f04312dcc4426d0fd2f101e3"], ["encrypted_settings_iv", "l3ilfeWgKnSpvR5c\n"]]
18739
+  (0.3ms) CREATE SCHEMA "b4a207e9f26fa4f06f6865493978a238"
18740
+ SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
18741
+  (0.4ms) DROP TABLE IF EXISTS "panda_pal_api_calls" CASCADE
18742
+  (9.0ms) CREATE TABLE "panda_pal_api_calls" ("id" serial NOT NULL PRIMARY KEY, "logic" text, "expiration" character varying, "uses_remaining" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
18743
+  (0.3ms) DROP TABLE IF EXISTS "panda_pal_organizations" CASCADE
18744
+  (11.2ms) CREATE TABLE "panda_pal_organizations" ("id" serial NOT NULL PRIMARY KEY, "name" character varying, "key" character varying, "secret" character varying, "canvas_account_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "salesforce_id" character varying, "encrypted_settings" text, "encrypted_settings_iv" character varying)
18745
+  (7.1ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_key" ON "panda_pal_organizations" ("key")
18746
+  (8.8ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_name" ON "panda_pal_organizations" ("name")
18747
+  (0.3ms) DROP TABLE IF EXISTS "panda_pal_sessions" CASCADE
18748
+  (19.0ms) CREATE TABLE "panda_pal_sessions" ("id" serial NOT NULL PRIMARY KEY, "session_key" character varying, "data" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "panda_pal_organization_id" integer)
18749
+  (8.4ms) CREATE INDEX "index_panda_pal_sessions_on_panda_pal_organization_id" ON "panda_pal_sessions" ("panda_pal_organization_id")
18750
+  (8.4ms) CREATE UNIQUE INDEX "index_panda_pal_sessions_on_session_key" ON "panda_pal_sessions" ("session_key")
18751
+  (13.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
18752
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
18753
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES (20220721095653)
18754
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES
18755
+ (20160413135653),
18756
+ (20160425130344),
18757
+ (20171205194657),
18758
+ (20170106165533),
18759
+ (20160412205931),
18760
+ (20171205183457);
18761
+
18762
+ 
18763
+  (7.9ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
18764
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
18765
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2023-04-17 17:41:24.271080"], ["updated_at", "2023-04-17 17:41:24.271080"]]
18766
+  (0.2ms) RELEASE SAVEPOINT active_record_1
18767
+ PandaPal::Organization Exists (0.4ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["key", "507f3ce2d7ebc267e30a1398dedeb776"], ["id", 4], ["LIMIT", 1]]
18768
+ PandaPal::Organization Exists (0.4ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["name", "b4a207e9f26fa4f06f6865493978a238"], ["id", 4], ["LIMIT", 1]]
18769
+ PandaPal::Organization Exists (0.4ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["salesforce_id", "65953295f04312dcc4426d0fd2f101e3"], ["id", 4], ["LIMIT", 1]]
18770
+  (1.8ms) ROLLBACK
18771
+  (0.1ms) BEGIN
18772
+  (0.1ms) SAVEPOINT active_record_1
18773
+ PandaPal::Organization Exists (0.4ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) LIMIT $2 [["key", "38c8e3fb0a4fb7d507e212334c593312"], ["LIMIT", 1]]
18774
+ PandaPal::Organization Exists (0.4ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) LIMIT $2 [["name", "0abe6023ce47d3ba8352bdc62bd7dc41"], ["LIMIT", 1]]
18775
+ PandaPal::Organization Exists (0.3ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 LIMIT $2 [["salesforce_id", "d002f4742005946d027011bcaaaa119f"], ["LIMIT", 1]]
18776
+ PandaPal::Organization Create (0.3ms) INSERT INTO "public"."panda_pal_organizations" ("name", "key", "secret", "canvas_account_id", "created_at", "updated_at", "salesforce_id", "encrypted_settings_iv") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["name", "0abe6023ce47d3ba8352bdc62bd7dc41"], ["key", "38c8e3fb0a4fb7d507e212334c593312"], ["secret", "e351460499738dd6e5da13b4b6958a0a"], ["canvas_account_id", "6220"], ["created_at", "2023-04-17 17:41:24.292646"], ["updated_at", "2023-04-17 17:41:24.292646"], ["salesforce_id", "d002f4742005946d027011bcaaaa119f"], ["encrypted_settings_iv", "AsAgIz2FX2PHmAGT\n"]]
18777
+  (0.2ms) CREATE SCHEMA "0abe6023ce47d3ba8352bdc62bd7dc41"
18778
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
18779
+  (0.3ms) DROP TABLE IF EXISTS "panda_pal_api_calls" CASCADE
18780
+  (9.0ms) CREATE TABLE "panda_pal_api_calls" ("id" serial NOT NULL PRIMARY KEY, "logic" text, "expiration" character varying, "uses_remaining" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
18781
+  (0.3ms) DROP TABLE IF EXISTS "panda_pal_organizations" CASCADE
18782
+  (8.6ms) CREATE TABLE "panda_pal_organizations" ("id" serial NOT NULL PRIMARY KEY, "name" character varying, "key" character varying, "secret" character varying, "canvas_account_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "salesforce_id" character varying, "encrypted_settings" text, "encrypted_settings_iv" character varying)
18783
+  (4.0ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_key" ON "panda_pal_organizations" ("key")
18784
+  (3.8ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_name" ON "panda_pal_organizations" ("name")
18785
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_sessions" CASCADE
18786
+  (7.9ms) CREATE TABLE "panda_pal_sessions" ("id" serial NOT NULL PRIMARY KEY, "session_key" character varying, "data" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "panda_pal_organization_id" integer)
18787
+  (4.1ms) CREATE INDEX "index_panda_pal_sessions_on_panda_pal_organization_id" ON "panda_pal_sessions" ("panda_pal_organization_id")
18788
+  (3.4ms) CREATE UNIQUE INDEX "index_panda_pal_sessions_on_session_key" ON "panda_pal_sessions" ("session_key")
18789
+  (7.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
18790
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
18791
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES (20220721095653)
18792
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES
18793
+ (20160413135653),
18794
+ (20160425130344),
18795
+ (20171205194657),
18796
+ (20170106165533),
18797
+ (20160412205931),
18798
+ (20171205183457);
18799
+
18800
+ 
18801
+  (8.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
18802
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
18803
+ ActiveRecord::InternalMetadata Create (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2023-04-17 17:41:24.380654"], ["updated_at", "2023-04-17 17:41:24.380654"]]
18804
+  (0.2ms) RELEASE SAVEPOINT active_record_1
18805
+ PandaPal::Organization Exists (0.4ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["key", "38c8e3fb0a4fb7d507e212334c593312"], ["id", 5], ["LIMIT", 1]]
18806
+ PandaPal::Organization Exists (0.3ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["name", "0abe6023ce47d3ba8352bdc62bd7dc41"], ["id", 5], ["LIMIT", 1]]
18807
+ PandaPal::Organization Exists (0.3ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["salesforce_id", "d002f4742005946d027011bcaaaa119f"], ["id", 5], ["LIMIT", 1]]
18808
+  (1.6ms) ROLLBACK
18809
+  (0.2ms) BEGIN
18810
+  (0.1ms) SAVEPOINT active_record_1
18811
+ PandaPal::Organization Exists (0.3ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) LIMIT $2 [["key", "b1ef0fc1873738db05efba4fae31349f"], ["LIMIT", 1]]
18812
+ PandaPal::Organization Exists (0.3ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) LIMIT $2 [["name", "8e9bf9b287c6710b72be8e0139abb1f0"], ["LIMIT", 1]]
18813
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 LIMIT $2 [["salesforce_id", "ff221cc18baecb300293901c3d2a1667"], ["LIMIT", 1]]
18814
+ PandaPal::Organization Create (0.4ms) INSERT INTO "public"."panda_pal_organizations" ("name", "key", "secret", "canvas_account_id", "created_at", "updated_at", "salesforce_id", "encrypted_settings_iv") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["name", "8e9bf9b287c6710b72be8e0139abb1f0"], ["key", "b1ef0fc1873738db05efba4fae31349f"], ["secret", "d6d8ac72df6d9db432c514d5ada2434d"], ["canvas_account_id", "4157"], ["created_at", "2023-04-17 17:41:24.394741"], ["updated_at", "2023-04-17 17:41:24.394741"], ["salesforce_id", "ff221cc18baecb300293901c3d2a1667"], ["encrypted_settings_iv", "+A+jfyfJVr9y6IxW\n"]]
18815
+  (0.4ms) CREATE SCHEMA "8e9bf9b287c6710b72be8e0139abb1f0"
18816
+ SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
18817
+  (0.4ms) DROP TABLE IF EXISTS "panda_pal_api_calls" CASCADE
18818
+  (8.1ms) CREATE TABLE "panda_pal_api_calls" ("id" serial NOT NULL PRIMARY KEY, "logic" text, "expiration" character varying, "uses_remaining" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
18819
+  (0.1ms) DROP TABLE IF EXISTS "panda_pal_organizations" CASCADE
18820
+  (8.0ms) CREATE TABLE "panda_pal_organizations" ("id" serial NOT NULL PRIMARY KEY, "name" character varying, "key" character varying, "secret" character varying, "canvas_account_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "salesforce_id" character varying, "encrypted_settings" text, "encrypted_settings_iv" character varying)
18821
+  (4.2ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_key" ON "panda_pal_organizations" ("key")
18822
+  (4.2ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_name" ON "panda_pal_organizations" ("name")
18823
+  (0.5ms) DROP TABLE IF EXISTS "panda_pal_sessions" CASCADE
18824
+  (8.8ms) CREATE TABLE "panda_pal_sessions" ("id" serial NOT NULL PRIMARY KEY, "session_key" character varying, "data" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "panda_pal_organization_id" integer)
18825
+  (14.1ms) CREATE INDEX "index_panda_pal_sessions_on_panda_pal_organization_id" ON "panda_pal_sessions" ("panda_pal_organization_id")
18826
+  (3.8ms) CREATE UNIQUE INDEX "index_panda_pal_sessions_on_session_key" ON "panda_pal_sessions" ("session_key")
18827
+  (8.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
18828
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
18829
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES (20220721095653)
18830
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES
18831
+ (20160413135653),
18832
+ (20160425130344),
18833
+ (20171205194657),
18834
+ (20170106165533),
18835
+ (20160412205931),
18836
+ (20171205183457);
18837
+
18838
+ 
18839
+  (9.3ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
18840
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
18841
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2023-04-17 17:41:24.482604"], ["updated_at", "2023-04-17 17:41:24.482604"]]
18842
+  (0.1ms) RELEASE SAVEPOINT active_record_1
18843
+ PandaPal::Organization Exists (0.3ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["key", "b1ef0fc1873738db05efba4fae31349f"], ["id", 6], ["LIMIT", 1]]
18844
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["name", "8e9bf9b287c6710b72be8e0139abb1f0"], ["id", 6], ["LIMIT", 1]]
18845
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["salesforce_id", "ff221cc18baecb300293901c3d2a1667"], ["id", 6], ["LIMIT", 1]]
18846
+  (1.7ms) ROLLBACK
18847
+  (0.1ms) BEGIN
18848
+  (0.2ms) SAVEPOINT active_record_1
18849
+ PandaPal::Organization Exists (0.3ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) LIMIT $2 [["key", "0f95a929ecb04c2feffb7a05ecc5abd2"], ["LIMIT", 1]]
18850
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) LIMIT $2 [["name", "78a4b28da7dae41bb3c515a1519a21c2"], ["LIMIT", 1]]
18851
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 LIMIT $2 [["salesforce_id", "e4dfea371af316ccc5f47e8407dfc189"], ["LIMIT", 1]]
18852
+ PandaPal::Organization Create (0.3ms) INSERT INTO "public"."panda_pal_organizations" ("name", "key", "secret", "canvas_account_id", "created_at", "updated_at", "salesforce_id", "encrypted_settings_iv") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["name", "78a4b28da7dae41bb3c515a1519a21c2"], ["key", "0f95a929ecb04c2feffb7a05ecc5abd2"], ["secret", "41f72335adaa904a8f6b764875e60ea7"], ["canvas_account_id", "2284"], ["created_at", "2023-04-17 17:41:24.493079"], ["updated_at", "2023-04-17 17:41:24.493079"], ["salesforce_id", "e4dfea371af316ccc5f47e8407dfc189"], ["encrypted_settings_iv", "6cRE3oJa9zAnfyKv\n"]]
18853
+  (0.2ms) CREATE SCHEMA "78a4b28da7dae41bb3c515a1519a21c2"
18854
+ SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
18855
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_api_calls" CASCADE
18856
+  (8.9ms) CREATE TABLE "panda_pal_api_calls" ("id" serial NOT NULL PRIMARY KEY, "logic" text, "expiration" character varying, "uses_remaining" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
18857
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_organizations" CASCADE
18858
+  (8.2ms) CREATE TABLE "panda_pal_organizations" ("id" serial NOT NULL PRIMARY KEY, "name" character varying, "key" character varying, "secret" character varying, "canvas_account_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "salesforce_id" character varying, "encrypted_settings" text, "encrypted_settings_iv" character varying)
18859
+  (3.5ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_key" ON "panda_pal_organizations" ("key")
18860
+  (3.9ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_name" ON "panda_pal_organizations" ("name")
18861
+  (0.3ms) DROP TABLE IF EXISTS "panda_pal_sessions" CASCADE
18862
+  (11.4ms) CREATE TABLE "panda_pal_sessions" ("id" serial NOT NULL PRIMARY KEY, "session_key" character varying, "data" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "panda_pal_organization_id" integer)
18863
+  (3.7ms) CREATE INDEX "index_panda_pal_sessions_on_panda_pal_organization_id" ON "panda_pal_sessions" ("panda_pal_organization_id")
18864
+  (3.9ms) CREATE UNIQUE INDEX "index_panda_pal_sessions_on_session_key" ON "panda_pal_sessions" ("session_key")
18865
+  (7.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
18866
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
18867
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES (20220721095653)
18868
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES
18869
+ (20160413135653),
18870
+ (20160425130344),
18871
+ (20171205194657),
18872
+ (20170106165533),
18873
+ (20160412205931),
18874
+ (20171205183457);
18875
+
18876
+ 
18877
+  (7.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
18878
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
18879
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2023-04-17 17:41:24.567246"], ["updated_at", "2023-04-17 17:41:24.567246"]]
18880
+  (0.2ms) RELEASE SAVEPOINT active_record_1
18881
+ PandaPal::Organization Exists (0.4ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["key", "0f95a929ecb04c2feffb7a05ecc5abd2"], ["id", 7], ["LIMIT", 1]]
18882
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["name", "78a4b28da7dae41bb3c515a1519a21c2"], ["id", 7], ["LIMIT", 1]]
18883
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["salesforce_id", "e4dfea371af316ccc5f47e8407dfc189"], ["id", 7], ["LIMIT", 1]]
18884
+  (1.6ms) ROLLBACK
18885
+  (0.1ms) BEGIN
18886
+  (0.1ms) SAVEPOINT active_record_1
18887
+ PandaPal::Organization Exists (0.3ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) LIMIT $2 [["key", "6c1a221cd6e74fe2c9e1d6491e0d9b4a"], ["LIMIT", 1]]
18888
+ PandaPal::Organization Exists (0.3ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) LIMIT $2 [["name", "bb98fdd015ee02ffcdfdce036bb1e6e6"], ["LIMIT", 1]]
18889
+ PandaPal::Organization Exists (0.5ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 LIMIT $2 [["salesforce_id", "46adc1eb54cceca617de35c86caee6a7"], ["LIMIT", 1]]
18890
+ PandaPal::Organization Create (0.4ms) INSERT INTO "public"."panda_pal_organizations" ("name", "key", "secret", "canvas_account_id", "created_at", "updated_at", "salesforce_id", "encrypted_settings_iv") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["name", "bb98fdd015ee02ffcdfdce036bb1e6e6"], ["key", "6c1a221cd6e74fe2c9e1d6491e0d9b4a"], ["secret", "45b7d75622b13756e66e44675525103b"], ["canvas_account_id", "8145"], ["created_at", "2023-04-17 17:41:24.581013"], ["updated_at", "2023-04-17 17:41:24.581013"], ["salesforce_id", "46adc1eb54cceca617de35c86caee6a7"], ["encrypted_settings_iv", "ap8t+EEWXgZfsMN8\n"]]
18891
+  (0.2ms) CREATE SCHEMA "bb98fdd015ee02ffcdfdce036bb1e6e6"
18892
+ SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
18893
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_api_calls" CASCADE
18894
+  (7.9ms) CREATE TABLE "panda_pal_api_calls" ("id" serial NOT NULL PRIMARY KEY, "logic" text, "expiration" character varying, "uses_remaining" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
18895
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_organizations" CASCADE
18896
+  (8.4ms) CREATE TABLE "panda_pal_organizations" ("id" serial NOT NULL PRIMARY KEY, "name" character varying, "key" character varying, "secret" character varying, "canvas_account_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "salesforce_id" character varying, "encrypted_settings" text, "encrypted_settings_iv" character varying)
18897
+  (3.7ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_key" ON "panda_pal_organizations" ("key")
18898
+  (3.6ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_name" ON "panda_pal_organizations" ("name")
18899
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_sessions" CASCADE
18900
+  (8.7ms) CREATE TABLE "panda_pal_sessions" ("id" serial NOT NULL PRIMARY KEY, "session_key" character varying, "data" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "panda_pal_organization_id" integer)
18901
+  (3.6ms) CREATE INDEX "index_panda_pal_sessions_on_panda_pal_organization_id" ON "panda_pal_sessions" ("panda_pal_organization_id")
18902
+  (3.7ms) CREATE UNIQUE INDEX "index_panda_pal_sessions_on_session_key" ON "panda_pal_sessions" ("session_key")
18903
+  (7.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
18904
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
18905
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES (20220721095653)
18906
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES
18907
+ (20160413135653),
18908
+ (20160425130344),
18909
+ (20171205194657),
18910
+ (20170106165533),
18911
+ (20160412205931),
18912
+ (20171205183457);
18913
+
18914
+ 
18915
+  (7.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
18916
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
18917
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2023-04-17 17:41:24.652785"], ["updated_at", "2023-04-17 17:41:24.652785"]]
18918
+  (0.1ms) RELEASE SAVEPOINT active_record_1
18919
+ PandaPal::Organization Exists (0.3ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["key", "6c1a221cd6e74fe2c9e1d6491e0d9b4a"], ["id", 8], ["LIMIT", 1]]
18920
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["name", "bb98fdd015ee02ffcdfdce036bb1e6e6"], ["id", 8], ["LIMIT", 1]]
18921
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["salesforce_id", "46adc1eb54cceca617de35c86caee6a7"], ["id", 8], ["LIMIT", 1]]
18922
+  (1.3ms) ROLLBACK
18923
+  (0.1ms) BEGIN
18924
+  (0.3ms) SAVEPOINT active_record_1
18925
+ PandaPal::Organization Exists (0.5ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) LIMIT $2 [["key", "c5498bd78423777e30e461f713b10967"], ["LIMIT", 1]]
18926
+ PandaPal::Organization Exists (0.5ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) LIMIT $2 [["name", "3450b1c315c17eda4052efbcb6b7d1e6"], ["LIMIT", 1]]
18927
+ PandaPal::Organization Exists (0.5ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 LIMIT $2 [["salesforce_id", "2ec7a22f1961aeed6364d6124e7642ec"], ["LIMIT", 1]]
18928
+ PandaPal::Organization Create (0.5ms) INSERT INTO "public"."panda_pal_organizations" ("name", "key", "secret", "canvas_account_id", "created_at", "updated_at", "salesforce_id", "encrypted_settings_iv") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["name", "3450b1c315c17eda4052efbcb6b7d1e6"], ["key", "c5498bd78423777e30e461f713b10967"], ["secret", "56d9bc5e4c4f7a8b4c65519b9fca20c2"], ["canvas_account_id", "2657"], ["created_at", "2023-04-17 17:41:24.667038"], ["updated_at", "2023-04-17 17:41:24.667038"], ["salesforce_id", "2ec7a22f1961aeed6364d6124e7642ec"], ["encrypted_settings_iv", "Xt81tJPcdN9t0Hse\n"]]
18929
+  (0.3ms) CREATE SCHEMA "3450b1c315c17eda4052efbcb6b7d1e6"
18930
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
18931
+  (0.3ms) DROP TABLE IF EXISTS "panda_pal_api_calls" CASCADE
18932
+  (9.1ms) CREATE TABLE "panda_pal_api_calls" ("id" serial NOT NULL PRIMARY KEY, "logic" text, "expiration" character varying, "uses_remaining" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
18933
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_organizations" CASCADE
18934
+  (9.4ms) CREATE TABLE "panda_pal_organizations" ("id" serial NOT NULL PRIMARY KEY, "name" character varying, "key" character varying, "secret" character varying, "canvas_account_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "salesforce_id" character varying, "encrypted_settings" text, "encrypted_settings_iv" character varying)
18935
+  (4.1ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_key" ON "panda_pal_organizations" ("key")
18936
+  (3.6ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_name" ON "panda_pal_organizations" ("name")
18937
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_sessions" CASCADE
18938
+  (8.2ms) CREATE TABLE "panda_pal_sessions" ("id" serial NOT NULL PRIMARY KEY, "session_key" character varying, "data" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "panda_pal_organization_id" integer)
18939
+  (3.8ms) CREATE INDEX "index_panda_pal_sessions_on_panda_pal_organization_id" ON "panda_pal_sessions" ("panda_pal_organization_id")
18940
+  (3.7ms) CREATE UNIQUE INDEX "index_panda_pal_sessions_on_session_key" ON "panda_pal_sessions" ("session_key")
18941
+  (8.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
18942
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
18943
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES (20220721095653)
18944
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES
18945
+ (20160413135653),
18946
+ (20160425130344),
18947
+ (20171205194657),
18948
+ (20170106165533),
18949
+ (20160412205931),
18950
+ (20171205183457);
18951
+
18952
+ 
18953
+  (7.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
18954
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
18955
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2023-04-17 17:41:24.746357"], ["updated_at", "2023-04-17 17:41:24.746357"]]
18956
+  (0.1ms) RELEASE SAVEPOINT active_record_1
18957
+ PandaPal::Organization Exists (0.3ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["key", "c5498bd78423777e30e461f713b10967"], ["id", 9], ["LIMIT", 1]]
18958
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["name", "3450b1c315c17eda4052efbcb6b7d1e6"], ["id", 9], ["LIMIT", 1]]
18959
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["salesforce_id", "2ec7a22f1961aeed6364d6124e7642ec"], ["id", 9], ["LIMIT", 1]]
18960
+  (1.4ms) ROLLBACK
18961
+  (0.1ms) BEGIN
18962
+  (0.1ms) SAVEPOINT active_record_1
18963
+ PandaPal::Organization Exists (0.3ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) LIMIT $2 [["key", "4d3a614c7cba09597eb9dc9c3a66d790"], ["LIMIT", 1]]
18964
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) LIMIT $2 [["name", "9a00d1e41c32123e4c436001a39de6fc"], ["LIMIT", 1]]
18965
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 LIMIT $2 [["salesforce_id", "9db4bb5a4f7b6b7a93470b24e2a9066e"], ["LIMIT", 1]]
18966
+ PandaPal::Organization Create (0.2ms) INSERT INTO "public"."panda_pal_organizations" ("name", "key", "secret", "canvas_account_id", "created_at", "updated_at", "salesforce_id", "encrypted_settings_iv") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["name", "9a00d1e41c32123e4c436001a39de6fc"], ["key", "4d3a614c7cba09597eb9dc9c3a66d790"], ["secret", "63712ba8f882cd419ee2595e696d83d8"], ["canvas_account_id", "1534"], ["created_at", "2023-04-17 17:41:24.757384"], ["updated_at", "2023-04-17 17:41:24.757384"], ["salesforce_id", "9db4bb5a4f7b6b7a93470b24e2a9066e"], ["encrypted_settings_iv", "gMAp7L76uGT5qWhp\n"]]
18967
+  (0.2ms) CREATE SCHEMA "9a00d1e41c32123e4c436001a39de6fc"
18968
+ SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
18969
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_api_calls" CASCADE
18970
+  (8.4ms) CREATE TABLE "panda_pal_api_calls" ("id" serial NOT NULL PRIMARY KEY, "logic" text, "expiration" character varying, "uses_remaining" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
18971
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_organizations" CASCADE
18972
+  (8.0ms) CREATE TABLE "panda_pal_organizations" ("id" serial NOT NULL PRIMARY KEY, "name" character varying, "key" character varying, "secret" character varying, "canvas_account_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "salesforce_id" character varying, "encrypted_settings" text, "encrypted_settings_iv" character varying)
18973
+  (4.1ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_key" ON "panda_pal_organizations" ("key")
18974
+  (3.9ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_name" ON "panda_pal_organizations" ("name")
18975
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_sessions" CASCADE
18976
+  (7.9ms) CREATE TABLE "panda_pal_sessions" ("id" serial NOT NULL PRIMARY KEY, "session_key" character varying, "data" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "panda_pal_organization_id" integer)
18977
+  (3.9ms) CREATE INDEX "index_panda_pal_sessions_on_panda_pal_organization_id" ON "panda_pal_sessions" ("panda_pal_organization_id")
18978
+  (3.6ms) CREATE UNIQUE INDEX "index_panda_pal_sessions_on_session_key" ON "panda_pal_sessions" ("session_key")
18979
+  (7.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
18980
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
18981
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES (20220721095653)
18982
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES
18983
+ (20160413135653),
18984
+ (20160425130344),
18985
+ (20171205194657),
18986
+ (20170106165533),
18987
+ (20160412205931),
18988
+ (20171205183457);
18989
+
18990
+ 
18991
+  (8.3ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
18992
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
18993
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2023-04-17 17:41:24.827836"], ["updated_at", "2023-04-17 17:41:24.827836"]]
18994
+  (0.2ms) RELEASE SAVEPOINT active_record_1
18995
+ PandaPal::Organization Exists (0.4ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["key", "4d3a614c7cba09597eb9dc9c3a66d790"], ["id", 10], ["LIMIT", 1]]
18996
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["name", "9a00d1e41c32123e4c436001a39de6fc"], ["id", 10], ["LIMIT", 1]]
18997
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["salesforce_id", "9db4bb5a4f7b6b7a93470b24e2a9066e"], ["id", 10], ["LIMIT", 1]]
18998
+  (2.2ms) ROLLBACK
18999
+  (0.2ms) BEGIN
19000
+  (0.1ms) SAVEPOINT active_record_1
19001
+ PandaPal::Organization Exists (0.3ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) LIMIT $2 [["key", "057f2e329dc09c1960fcbee3d8b6e77d"], ["LIMIT", 1]]
19002
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) LIMIT $2 [["name", "be4bcab5cb292edb5f570858269d9552"], ["LIMIT", 1]]
19003
+ PandaPal::Organization Exists (0.1ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 LIMIT $2 [["salesforce_id", "e5303f604ecf8bd086fbea3c78fc6214"], ["LIMIT", 1]]
19004
+ PandaPal::Organization Create (0.2ms) INSERT INTO "public"."panda_pal_organizations" ("name", "key", "secret", "canvas_account_id", "created_at", "updated_at", "salesforce_id", "encrypted_settings_iv") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["name", "be4bcab5cb292edb5f570858269d9552"], ["key", "057f2e329dc09c1960fcbee3d8b6e77d"], ["secret", "7b44a6a2850ce5f5991b76aba1cf9e53"], ["canvas_account_id", "6757"], ["created_at", "2023-04-17 17:41:24.841737"], ["updated_at", "2023-04-17 17:41:24.841737"], ["salesforce_id", "e5303f604ecf8bd086fbea3c78fc6214"], ["encrypted_settings_iv", "IR2aQBSJ300LzHu6\n"]]
19005
+  (0.2ms) CREATE SCHEMA "be4bcab5cb292edb5f570858269d9552"
19006
+ SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
19007
+  (0.3ms) DROP TABLE IF EXISTS "panda_pal_api_calls" CASCADE
19008
+  (8.5ms) CREATE TABLE "panda_pal_api_calls" ("id" serial NOT NULL PRIMARY KEY, "logic" text, "expiration" character varying, "uses_remaining" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
19009
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_organizations" CASCADE
19010
+  (7.7ms) CREATE TABLE "panda_pal_organizations" ("id" serial NOT NULL PRIMARY KEY, "name" character varying, "key" character varying, "secret" character varying, "canvas_account_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "salesforce_id" character varying, "encrypted_settings" text, "encrypted_settings_iv" character varying)
19011
+  (3.7ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_key" ON "panda_pal_organizations" ("key")
19012
+  (3.5ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_name" ON "panda_pal_organizations" ("name")
19013
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_sessions" CASCADE
19014
+  (7.9ms) CREATE TABLE "panda_pal_sessions" ("id" serial NOT NULL PRIMARY KEY, "session_key" character varying, "data" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "panda_pal_organization_id" integer)
19015
+  (4.0ms) CREATE INDEX "index_panda_pal_sessions_on_panda_pal_organization_id" ON "panda_pal_sessions" ("panda_pal_organization_id")
19016
+  (3.7ms) CREATE UNIQUE INDEX "index_panda_pal_sessions_on_session_key" ON "panda_pal_sessions" ("session_key")
19017
+  (7.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
19018
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
19019
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES (20220721095653)
19020
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES
19021
+ (20160413135653),
19022
+ (20160425130344),
19023
+ (20171205194657),
19024
+ (20170106165533),
19025
+ (20160412205931),
19026
+ (20171205183457);
19027
+
19028
+ 
19029
+  (7.9ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
19030
+ ActiveRecord::InternalMetadata Load (0.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
19031
+ ActiveRecord::InternalMetadata Create (1.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2023-04-17 17:41:24.914737"], ["updated_at", "2023-04-17 17:41:24.914737"]]
19032
+  (0.4ms) RELEASE SAVEPOINT active_record_1
19033
+ PandaPal::Organization Exists (1.1ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["key", "057f2e329dc09c1960fcbee3d8b6e77d"], ["id", 11], ["LIMIT", 1]]
19034
+ PandaPal::Organization Exists (0.8ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["name", "be4bcab5cb292edb5f570858269d9552"], ["id", 11], ["LIMIT", 1]]
19035
+ PandaPal::Organization Exists (0.6ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["salesforce_id", "e5303f604ecf8bd086fbea3c78fc6214"], ["id", 11], ["LIMIT", 1]]
19036
+  (2.7ms) ROLLBACK
19037
+  (0.1ms) BEGIN
19038
+  (0.1ms) SAVEPOINT active_record_1
19039
+ PandaPal::Organization Exists (0.3ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) LIMIT $2 [["key", "a47e80991649733e6d8730184a6cfc55"], ["LIMIT", 1]]
19040
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) LIMIT $2 [["name", "171a24990f75757bdb1986ebc3b10611"], ["LIMIT", 1]]
19041
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 LIMIT $2 [["salesforce_id", "11722fb232e8c4fcf092ddc4327629f7"], ["LIMIT", 1]]
19042
+ PandaPal::Organization Create (0.4ms) INSERT INTO "public"."panda_pal_organizations" ("name", "key", "secret", "canvas_account_id", "created_at", "updated_at", "salesforce_id", "encrypted_settings_iv") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["name", "171a24990f75757bdb1986ebc3b10611"], ["key", "a47e80991649733e6d8730184a6cfc55"], ["secret", "5c30b159887e9cb47fab527426edbc18"], ["canvas_account_id", "8745"], ["created_at", "2023-04-17 17:41:24.946473"], ["updated_at", "2023-04-17 17:41:24.946473"], ["salesforce_id", "11722fb232e8c4fcf092ddc4327629f7"], ["encrypted_settings_iv", "RCTpXMgb/fDrvyln\n"]]
19043
+  (0.2ms) CREATE SCHEMA "171a24990f75757bdb1986ebc3b10611"
19044
+ SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
19045
+  (0.3ms) DROP TABLE IF EXISTS "panda_pal_api_calls" CASCADE
19046
+  (8.9ms) CREATE TABLE "panda_pal_api_calls" ("id" serial NOT NULL PRIMARY KEY, "logic" text, "expiration" character varying, "uses_remaining" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
19047
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_organizations" CASCADE
19048
+  (8.3ms) CREATE TABLE "panda_pal_organizations" ("id" serial NOT NULL PRIMARY KEY, "name" character varying, "key" character varying, "secret" character varying, "canvas_account_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "salesforce_id" character varying, "encrypted_settings" text, "encrypted_settings_iv" character varying)
19049
+  (3.6ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_key" ON "panda_pal_organizations" ("key")
19050
+  (3.8ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_name" ON "panda_pal_organizations" ("name")
19051
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_sessions" CASCADE
19052
+  (8.6ms) CREATE TABLE "panda_pal_sessions" ("id" serial NOT NULL PRIMARY KEY, "session_key" character varying, "data" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "panda_pal_organization_id" integer)
19053
+  (3.6ms) CREATE INDEX "index_panda_pal_sessions_on_panda_pal_organization_id" ON "panda_pal_sessions" ("panda_pal_organization_id")
19054
+  (3.8ms) CREATE UNIQUE INDEX "index_panda_pal_sessions_on_session_key" ON "panda_pal_sessions" ("session_key")
19055
+  (8.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
19056
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
19057
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES (20220721095653)
19058
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES
19059
+ (20160413135653),
19060
+ (20160425130344),
19061
+ (20171205194657),
19062
+ (20170106165533),
19063
+ (20160412205931),
19064
+ (20171205183457);
19065
+
19066
+ 
19067
+  (7.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
19068
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
19069
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2023-04-17 17:41:25.020815"], ["updated_at", "2023-04-17 17:41:25.020815"]]
19070
+  (0.2ms) RELEASE SAVEPOINT active_record_1
19071
+ PandaPal::Organization Exists (0.3ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["key", "a47e80991649733e6d8730184a6cfc55"], ["id", 12], ["LIMIT", 1]]
19072
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["name", "171a24990f75757bdb1986ebc3b10611"], ["id", 12], ["LIMIT", 1]]
19073
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["salesforce_id", "11722fb232e8c4fcf092ddc4327629f7"], ["id", 12], ["LIMIT", 1]]
19074
+  (1.4ms) ROLLBACK
19075
+  (0.2ms) BEGIN
19076
+  (0.2ms) SAVEPOINT active_record_1
19077
+ PandaPal::Organization Exists (0.4ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) LIMIT $2 [["key", "a54be87a5582705a0f1b792dac4e02f6"], ["LIMIT", 1]]
19078
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) LIMIT $2 [["name", "766736fd77a0f495595af01eb1316ab0"], ["LIMIT", 1]]
19079
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 LIMIT $2 [["salesforce_id", "6c653a8df7f958aab9e96f4407b1fd4c"], ["LIMIT", 1]]
19080
+ PandaPal::Organization Create (0.3ms) INSERT INTO "public"."panda_pal_organizations" ("name", "key", "secret", "canvas_account_id", "created_at", "updated_at", "salesforce_id", "encrypted_settings_iv") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["name", "766736fd77a0f495595af01eb1316ab0"], ["key", "a54be87a5582705a0f1b792dac4e02f6"], ["secret", "b373145bba3516a1fe193008cd31dd62"], ["canvas_account_id", "7368"], ["created_at", "2023-04-17 17:41:25.033112"], ["updated_at", "2023-04-17 17:41:25.033112"], ["salesforce_id", "6c653a8df7f958aab9e96f4407b1fd4c"], ["encrypted_settings_iv", "md3DL5Ry+jRFXIUE\n"]]
19081
+  (0.2ms) CREATE SCHEMA "766736fd77a0f495595af01eb1316ab0"
19082
+ SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
19083
+  (0.1ms) DROP TABLE IF EXISTS "panda_pal_api_calls" CASCADE
19084
+  (8.7ms) CREATE TABLE "panda_pal_api_calls" ("id" serial NOT NULL PRIMARY KEY, "logic" text, "expiration" character varying, "uses_remaining" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
19085
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_organizations" CASCADE
19086
+  (13.4ms) CREATE TABLE "panda_pal_organizations" ("id" serial NOT NULL PRIMARY KEY, "name" character varying, "key" character varying, "secret" character varying, "canvas_account_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "salesforce_id" character varying, "encrypted_settings" text, "encrypted_settings_iv" character varying)
19087
+  (3.1ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_key" ON "panda_pal_organizations" ("key")
19088
+  (3.8ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_name" ON "panda_pal_organizations" ("name")
19089
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_sessions" CASCADE
19090
+  (9.1ms) CREATE TABLE "panda_pal_sessions" ("id" serial NOT NULL PRIMARY KEY, "session_key" character varying, "data" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "panda_pal_organization_id" integer)
19091
+  (3.5ms) CREATE INDEX "index_panda_pal_sessions_on_panda_pal_organization_id" ON "panda_pal_sessions" ("panda_pal_organization_id")
19092
+  (3.8ms) CREATE UNIQUE INDEX "index_panda_pal_sessions_on_session_key" ON "panda_pal_sessions" ("session_key")
19093
+  (7.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
19094
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
19095
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES (20220721095653)
19096
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES
19097
+ (20160413135653),
19098
+ (20160425130344),
19099
+ (20171205194657),
19100
+ (20170106165533),
19101
+ (20160412205931),
19102
+ (20171205183457);
19103
+
19104
+ 
19105
+  (8.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
19106
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
19107
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2023-04-17 17:41:25.111281"], ["updated_at", "2023-04-17 17:41:25.111281"]]
19108
+  (0.2ms) RELEASE SAVEPOINT active_record_1
19109
+ PandaPal::Organization Exists (0.3ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["key", "a54be87a5582705a0f1b792dac4e02f6"], ["id", 13], ["LIMIT", 1]]
19110
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["name", "766736fd77a0f495595af01eb1316ab0"], ["id", 13], ["LIMIT", 1]]
19111
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["salesforce_id", "6c653a8df7f958aab9e96f4407b1fd4c"], ["id", 13], ["LIMIT", 1]]
19112
+  (1.9ms) ROLLBACK
19113
+  (0.2ms) BEGIN
19114
+  (0.2ms) SAVEPOINT active_record_1
19115
+ PandaPal::Organization Exists (0.4ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) LIMIT $2 [["key", "7b53903d4e76860f4e3f8257824d0bc6"], ["LIMIT", 1]]
19116
+ PandaPal::Organization Exists (0.3ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) LIMIT $2 [["name", "cbb44f773f83ceab6eb5b32a0e8eeb8e"], ["LIMIT", 1]]
19117
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 LIMIT $2 [["salesforce_id", "b9a023264352d4a812c6ed9ba090beff"], ["LIMIT", 1]]
19118
+ PandaPal::Organization Create (0.3ms) INSERT INTO "public"."panda_pal_organizations" ("name", "key", "secret", "canvas_account_id", "created_at", "updated_at", "salesforce_id", "encrypted_settings_iv") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["name", "cbb44f773f83ceab6eb5b32a0e8eeb8e"], ["key", "7b53903d4e76860f4e3f8257824d0bc6"], ["secret", "78393ea10fa80d589702ea5d4f9c2aee"], ["canvas_account_id", "9221"], ["created_at", "2023-04-17 17:41:25.124353"], ["updated_at", "2023-04-17 17:41:25.124353"], ["salesforce_id", "b9a023264352d4a812c6ed9ba090beff"], ["encrypted_settings_iv", "wtXCwoO3AQHZBgXs\n"]]
19119
+  (0.2ms) CREATE SCHEMA "cbb44f773f83ceab6eb5b32a0e8eeb8e"
19120
+ SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
19121
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_api_calls" CASCADE
19122
+  (8.3ms) CREATE TABLE "panda_pal_api_calls" ("id" serial NOT NULL PRIMARY KEY, "logic" text, "expiration" character varying, "uses_remaining" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
19123
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_organizations" CASCADE
19124
+  (8.1ms) CREATE TABLE "panda_pal_organizations" ("id" serial NOT NULL PRIMARY KEY, "name" character varying, "key" character varying, "secret" character varying, "canvas_account_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "salesforce_id" character varying, "encrypted_settings" text, "encrypted_settings_iv" character varying)
19125
+  (3.8ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_key" ON "panda_pal_organizations" ("key")
19126
+  (3.6ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_name" ON "panda_pal_organizations" ("name")
19127
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_sessions" CASCADE
19128
+  (10.2ms) CREATE TABLE "panda_pal_sessions" ("id" serial NOT NULL PRIMARY KEY, "session_key" character varying, "data" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "panda_pal_organization_id" integer)
19129
+  (3.6ms) CREATE INDEX "index_panda_pal_sessions_on_panda_pal_organization_id" ON "panda_pal_sessions" ("panda_pal_organization_id")
19130
+  (3.5ms) CREATE UNIQUE INDEX "index_panda_pal_sessions_on_session_key" ON "panda_pal_sessions" ("session_key")
19131
+  (7.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
19132
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
19133
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES (20220721095653)
19134
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES
19135
+ (20160413135653),
19136
+ (20160425130344),
19137
+ (20171205194657),
19138
+ (20170106165533),
19139
+ (20160412205931),
19140
+ (20171205183457);
19141
+
19142
+ 
19143
+  (7.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
19144
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
19145
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2023-04-17 17:41:25.196673"], ["updated_at", "2023-04-17 17:41:25.196673"]]
19146
+  (0.1ms) RELEASE SAVEPOINT active_record_1
19147
+ PandaPal::Organization Exists (0.3ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["key", "7b53903d4e76860f4e3f8257824d0bc6"], ["id", 14], ["LIMIT", 1]]
19148
+ PandaPal::Organization Exists (0.3ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["name", "cbb44f773f83ceab6eb5b32a0e8eeb8e"], ["id", 14], ["LIMIT", 1]]
19149
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["salesforce_id", "b9a023264352d4a812c6ed9ba090beff"], ["id", 14], ["LIMIT", 1]]
19150
+  (1.9ms) ROLLBACK
19151
+  (0.1ms) BEGIN
19152
+  (0.1ms) SAVEPOINT active_record_1
19153
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) LIMIT $2 [["key", "af07ac395c131b6fbdfd2661a9c36995"], ["LIMIT", 1]]
19154
+ PandaPal::Organization Exists (0.3ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) LIMIT $2 [["name", "1d6b02d340c2ed2a864a354bddc553db"], ["LIMIT", 1]]
19155
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 LIMIT $2 [["salesforce_id", "cc8be39431cfa1125cac773c216f2fc2"], ["LIMIT", 1]]
19156
+ PandaPal::Organization Create (0.3ms) INSERT INTO "public"."panda_pal_organizations" ("name", "key", "secret", "canvas_account_id", "created_at", "updated_at", "salesforce_id", "encrypted_settings_iv") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["name", "1d6b02d340c2ed2a864a354bddc553db"], ["key", "af07ac395c131b6fbdfd2661a9c36995"], ["secret", "0bf07622ea97d0a711c82460e6edc3c8"], ["canvas_account_id", "6527"], ["created_at", "2023-04-17 17:41:25.209815"], ["updated_at", "2023-04-17 17:41:25.209815"], ["salesforce_id", "cc8be39431cfa1125cac773c216f2fc2"], ["encrypted_settings_iv", "lErj9wrqq8rPzJp5\n"]]
19157
+  (0.2ms) CREATE SCHEMA "1d6b02d340c2ed2a864a354bddc553db"
19158
+ SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
19159
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_api_calls" CASCADE
19160
+  (9.9ms) CREATE TABLE "panda_pal_api_calls" ("id" serial NOT NULL PRIMARY KEY, "logic" text, "expiration" character varying, "uses_remaining" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
19161
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_organizations" CASCADE
19162
+  (9.1ms) CREATE TABLE "panda_pal_organizations" ("id" serial NOT NULL PRIMARY KEY, "name" character varying, "key" character varying, "secret" character varying, "canvas_account_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "salesforce_id" character varying, "encrypted_settings" text, "encrypted_settings_iv" character varying)
19163
+  (4.0ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_key" ON "panda_pal_organizations" ("key")
19164
+  (3.9ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_name" ON "panda_pal_organizations" ("name")
19165
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_sessions" CASCADE
19166
+  (8.6ms) CREATE TABLE "panda_pal_sessions" ("id" serial NOT NULL PRIMARY KEY, "session_key" character varying, "data" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "panda_pal_organization_id" integer)
19167
+  (3.5ms) CREATE INDEX "index_panda_pal_sessions_on_panda_pal_organization_id" ON "panda_pal_sessions" ("panda_pal_organization_id")
19168
+  (4.1ms) CREATE UNIQUE INDEX "index_panda_pal_sessions_on_session_key" ON "panda_pal_sessions" ("session_key")
19169
+  (8.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
19170
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
19171
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES (20220721095653)
19172
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES
19173
+ (20160413135653),
19174
+ (20160425130344),
19175
+ (20171205194657),
19176
+ (20170106165533),
19177
+ (20160412205931),
19178
+ (20171205183457);
19179
+
19180
+ 
19181
+  (7.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
19182
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
19183
+ ActiveRecord::InternalMetadata Create (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2023-04-17 17:41:25.284844"], ["updated_at", "2023-04-17 17:41:25.284844"]]
19184
+  (0.1ms) RELEASE SAVEPOINT active_record_1
19185
+ PandaPal::Organization Exists (0.3ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["key", "af07ac395c131b6fbdfd2661a9c36995"], ["id", 15], ["LIMIT", 1]]
19186
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["name", "1d6b02d340c2ed2a864a354bddc553db"], ["id", 15], ["LIMIT", 1]]
19187
+ PandaPal::Organization Exists (0.1ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["salesforce_id", "cc8be39431cfa1125cac773c216f2fc2"], ["id", 15], ["LIMIT", 1]]
19188
+  (1.9ms) ROLLBACK
19189
+  (0.1ms) BEGIN
19190
+  (0.1ms) SAVEPOINT active_record_1
19191
+ PandaPal::Organization Exists (0.3ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) LIMIT $2 [["key", "b327acac60ed1a80c7258d2d8272f4b8"], ["LIMIT", 1]]
19192
+ PandaPal::Organization Exists (0.4ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) LIMIT $2 [["name", "4cd31a18b35b8dd527a401c72d43b284"], ["LIMIT", 1]]
19193
+ PandaPal::Organization Exists (0.4ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 LIMIT $2 [["salesforce_id", "bbe56d2e137b92b101943d67979140d7"], ["LIMIT", 1]]
19194
+ PandaPal::Organization Create (0.3ms) INSERT INTO "public"."panda_pal_organizations" ("name", "key", "secret", "canvas_account_id", "created_at", "updated_at", "salesforce_id", "encrypted_settings_iv") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["name", "4cd31a18b35b8dd527a401c72d43b284"], ["key", "b327acac60ed1a80c7258d2d8272f4b8"], ["secret", "da4f80fd30f7dc5d58e0ae5c11fc8944"], ["canvas_account_id", "8737"], ["created_at", "2023-04-17 17:41:25.296987"], ["updated_at", "2023-04-17 17:41:25.296987"], ["salesforce_id", "bbe56d2e137b92b101943d67979140d7"], ["encrypted_settings_iv", "VFzp8B4/jiZoCCJq\n"]]
19195
+  (0.3ms) CREATE SCHEMA "4cd31a18b35b8dd527a401c72d43b284"
19196
+ SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
19197
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_api_calls" CASCADE
19198
+  (8.8ms) CREATE TABLE "panda_pal_api_calls" ("id" serial NOT NULL PRIMARY KEY, "logic" text, "expiration" character varying, "uses_remaining" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
19199
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_organizations" CASCADE
19200
+  (8.8ms) CREATE TABLE "panda_pal_organizations" ("id" serial NOT NULL PRIMARY KEY, "name" character varying, "key" character varying, "secret" character varying, "canvas_account_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "salesforce_id" character varying, "encrypted_settings" text, "encrypted_settings_iv" character varying)
19201
+  (3.8ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_key" ON "panda_pal_organizations" ("key")
19202
+  (3.7ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_name" ON "panda_pal_organizations" ("name")
19203
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_sessions" CASCADE
19204
+  (7.4ms) CREATE TABLE "panda_pal_sessions" ("id" serial NOT NULL PRIMARY KEY, "session_key" character varying, "data" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "panda_pal_organization_id" integer)
19205
+  (3.7ms) CREATE INDEX "index_panda_pal_sessions_on_panda_pal_organization_id" ON "panda_pal_sessions" ("panda_pal_organization_id")
19206
+  (4.1ms) CREATE UNIQUE INDEX "index_panda_pal_sessions_on_session_key" ON "panda_pal_sessions" ("session_key")
19207
+  (8.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
19208
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
19209
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES (20220721095653)
19210
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES
19211
+ (20160413135653),
19212
+ (20160425130344),
19213
+ (20171205194657),
19214
+ (20170106165533),
19215
+ (20160412205931),
19216
+ (20171205183457);
19217
+
19218
+ 
19219
+  (8.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
19220
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
19221
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2023-04-17 17:41:25.370000"], ["updated_at", "2023-04-17 17:41:25.370000"]]
19222
+  (0.2ms) RELEASE SAVEPOINT active_record_1
19223
+ PandaPal::Organization Exists (0.3ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["key", "b327acac60ed1a80c7258d2d8272f4b8"], ["id", 16], ["LIMIT", 1]]
19224
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["name", "4cd31a18b35b8dd527a401c72d43b284"], ["id", 16], ["LIMIT", 1]]
19225
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["salesforce_id", "bbe56d2e137b92b101943d67979140d7"], ["id", 16], ["LIMIT", 1]]
19226
+ PandaPal::Organization Exists (0.3ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["key", "b327acac60ed1a80c7258d2d8272f4b8"], ["id", 16], ["LIMIT", 1]]
19227
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["name", "4cd31a18b35b8dd527a401c72d43b284"], ["id", 16], ["LIMIT", 1]]
19228
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["salesforce_id", "bbe56d2e137b92b101943d67979140d7"], ["id", 16], ["LIMIT", 1]]
19229
+  (2.3ms) ROLLBACK
19230
+  (0.2ms) BEGIN
19231
+  (0.1ms) SAVEPOINT active_record_1
19232
+ PandaPal::Organization Exists (0.4ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) LIMIT $2 [["key", "f6c6d72d97e82c8187d652ce4500e551"], ["LIMIT", 1]]
19233
+ PandaPal::Organization Exists (0.3ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) LIMIT $2 [["name", "d5620762068bf35496ebc08dcc8b4ef5"], ["LIMIT", 1]]
19234
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 LIMIT $2 [["salesforce_id", "5dd1347a5315c76df7f874865341b233"], ["LIMIT", 1]]
19235
+ PandaPal::Organization Create (0.3ms) INSERT INTO "public"."panda_pal_organizations" ("name", "key", "secret", "canvas_account_id", "created_at", "updated_at", "salesforce_id", "encrypted_settings_iv") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["name", "d5620762068bf35496ebc08dcc8b4ef5"], ["key", "f6c6d72d97e82c8187d652ce4500e551"], ["secret", "c97deb01bdef2aa99550e4a632177dbb"], ["canvas_account_id", "2894"], ["created_at", "2023-04-17 17:41:25.384755"], ["updated_at", "2023-04-17 17:41:25.384755"], ["salesforce_id", "5dd1347a5315c76df7f874865341b233"], ["encrypted_settings_iv", "cezVOXYwCvf7I5tR\n"]]
19236
+  (0.2ms) CREATE SCHEMA "d5620762068bf35496ebc08dcc8b4ef5"
19237
+ SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
19238
+  (0.1ms) DROP TABLE IF EXISTS "panda_pal_api_calls" CASCADE
19239
+  (8.5ms) CREATE TABLE "panda_pal_api_calls" ("id" serial NOT NULL PRIMARY KEY, "logic" text, "expiration" character varying, "uses_remaining" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
19240
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_organizations" CASCADE
19241
+  (10.3ms) CREATE TABLE "panda_pal_organizations" ("id" serial NOT NULL PRIMARY KEY, "name" character varying, "key" character varying, "secret" character varying, "canvas_account_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "salesforce_id" character varying, "encrypted_settings" text, "encrypted_settings_iv" character varying)
19242
+  (3.7ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_key" ON "panda_pal_organizations" ("key")
19243
+  (4.1ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_name" ON "panda_pal_organizations" ("name")
19244
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_sessions" CASCADE
19245
+  (8.3ms) CREATE TABLE "panda_pal_sessions" ("id" serial NOT NULL PRIMARY KEY, "session_key" character varying, "data" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "panda_pal_organization_id" integer)
19246
+  (3.8ms) CREATE INDEX "index_panda_pal_sessions_on_panda_pal_organization_id" ON "panda_pal_sessions" ("panda_pal_organization_id")
19247
+  (3.8ms) CREATE UNIQUE INDEX "index_panda_pal_sessions_on_session_key" ON "panda_pal_sessions" ("session_key")
19248
+  (8.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
19249
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
19250
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES (20220721095653)
19251
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES
19252
+ (20160413135653),
19253
+ (20160425130344),
19254
+ (20171205194657),
19255
+ (20170106165533),
19256
+ (20160412205931),
19257
+ (20171205183457);
19258
+
19259
+ 
19260
+  (8.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
19261
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
19262
+ ActiveRecord::InternalMetadata Create (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2023-04-17 17:41:25.462536"], ["updated_at", "2023-04-17 17:41:25.462536"]]
19263
+  (0.2ms) RELEASE SAVEPOINT active_record_1
19264
+ PandaPal::Organization Exists (0.7ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["key", "f6c6d72d97e82c8187d652ce4500e551"], ["id", 17], ["LIMIT", 1]]
19265
+ PandaPal::Organization Exists (0.4ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["name", "d5620762068bf35496ebc08dcc8b4ef5"], ["id", 17], ["LIMIT", 1]]
19266
+ PandaPal::Organization Exists (0.3ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["salesforce_id", "5dd1347a5315c76df7f874865341b233"], ["id", 17], ["LIMIT", 1]]
19267
+  (3.4ms) ROLLBACK
19268
+  (0.2ms) BEGIN
19269
+  (0.2ms) SAVEPOINT active_record_1
19270
+ PandaPal::Organization Exists (0.5ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) LIMIT $2 [["key", "fb8c18ad0f1eeef8ce90cd598c67413e"], ["LIMIT", 1]]
19271
+ PandaPal::Organization Exists (0.4ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) LIMIT $2 [["name", "36e800a408e755d2e069f92c87e67c65"], ["LIMIT", 1]]
19272
+ PandaPal::Organization Exists (0.3ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 LIMIT $2 [["salesforce_id", "2b44382505aae41d3768205c27499f66"], ["LIMIT", 1]]
19273
+ PandaPal::Organization Create (0.4ms) INSERT INTO "public"."panda_pal_organizations" ("name", "key", "secret", "canvas_account_id", "created_at", "updated_at", "salesforce_id", "encrypted_settings_iv") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["name", "36e800a408e755d2e069f92c87e67c65"], ["key", "fb8c18ad0f1eeef8ce90cd598c67413e"], ["secret", "ac718b43e51580d313a984bd0e2adfbb"], ["canvas_account_id", "7288"], ["created_at", "2023-04-17 17:41:25.486384"], ["updated_at", "2023-04-17 17:41:25.486384"], ["salesforce_id", "2b44382505aae41d3768205c27499f66"], ["encrypted_settings_iv", "VjOl5Xk9Qmjkr7IW\n"]]
19274
+  (0.2ms) CREATE SCHEMA "36e800a408e755d2e069f92c87e67c65"
19275
+ SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
19276
+  (0.1ms) DROP TABLE IF EXISTS "panda_pal_api_calls" CASCADE
19277
+  (8.6ms) CREATE TABLE "panda_pal_api_calls" ("id" serial NOT NULL PRIMARY KEY, "logic" text, "expiration" character varying, "uses_remaining" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
19278
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_organizations" CASCADE
19279
+  (9.9ms) CREATE TABLE "panda_pal_organizations" ("id" serial NOT NULL PRIMARY KEY, "name" character varying, "key" character varying, "secret" character varying, "canvas_account_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "salesforce_id" character varying, "encrypted_settings" text, "encrypted_settings_iv" character varying)
19280
+  (3.9ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_key" ON "panda_pal_organizations" ("key")
19281
+  (3.6ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_name" ON "panda_pal_organizations" ("name")
19282
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_sessions" CASCADE
19283
+  (8.4ms) CREATE TABLE "panda_pal_sessions" ("id" serial NOT NULL PRIMARY KEY, "session_key" character varying, "data" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "panda_pal_organization_id" integer)
19284
+  (4.2ms) CREATE INDEX "index_panda_pal_sessions_on_panda_pal_organization_id" ON "panda_pal_sessions" ("panda_pal_organization_id")
19285
+  (3.6ms) CREATE UNIQUE INDEX "index_panda_pal_sessions_on_session_key" ON "panda_pal_sessions" ("session_key")
19286
+  (8.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
19287
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
19288
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES (20220721095653)
19289
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES
19290
+ (20160413135653),
19291
+ (20160425130344),
19292
+ (20171205194657),
19293
+ (20170106165533),
19294
+ (20160412205931),
19295
+ (20171205183457);
19296
+
19297
+ 
19298
+  (8.9ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
19299
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
19300
+ ActiveRecord::InternalMetadata Create (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2023-04-17 17:41:25.567022"], ["updated_at", "2023-04-17 17:41:25.567022"]]
19301
+  (0.1ms) RELEASE SAVEPOINT active_record_1
19302
+ PandaPal::Organization Exists (0.4ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["key", "fb8c18ad0f1eeef8ce90cd598c67413e"], ["id", 18], ["LIMIT", 1]]
19303
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["name", "36e800a408e755d2e069f92c87e67c65"], ["id", 18], ["LIMIT", 1]]
19304
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["salesforce_id", "2b44382505aae41d3768205c27499f66"], ["id", 18], ["LIMIT", 1]]
19305
+  (1.5ms) ROLLBACK
19306
+  (0.1ms) BEGIN
19307
+  (0.1ms) SAVEPOINT active_record_1
19308
+ PandaPal::Organization Exists (0.3ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) LIMIT $2 [["key", "b8cdfd31ab92a1d78d909e020b914d17"], ["LIMIT", 1]]
19309
+ PandaPal::Organization Exists (0.4ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) LIMIT $2 [["name", "def314531376615ba42a5729e5440fc4"], ["LIMIT", 1]]
19310
+ PandaPal::Organization Exists (0.5ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 LIMIT $2 [["salesforce_id", "33fd3059a83c32f12d9396c5ff4e4760"], ["LIMIT", 1]]
19311
+ PandaPal::Organization Create (0.5ms) INSERT INTO "public"."panda_pal_organizations" ("name", "key", "secret", "canvas_account_id", "created_at", "updated_at", "salesforce_id", "encrypted_settings_iv") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["name", "def314531376615ba42a5729e5440fc4"], ["key", "b8cdfd31ab92a1d78d909e020b914d17"], ["secret", "10a9bd0dd1b76fde12d81a0ad846c516"], ["canvas_account_id", "4755"], ["created_at", "2023-04-17 17:41:25.581177"], ["updated_at", "2023-04-17 17:41:25.581177"], ["salesforce_id", "33fd3059a83c32f12d9396c5ff4e4760"], ["encrypted_settings_iv", "ffMbtfb5hBzQweVY\n"]]
19312
+  (0.3ms) CREATE SCHEMA "def314531376615ba42a5729e5440fc4"
19313
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
19314
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_api_calls" CASCADE
19315
+  (8.5ms) CREATE TABLE "panda_pal_api_calls" ("id" serial NOT NULL PRIMARY KEY, "logic" text, "expiration" character varying, "uses_remaining" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
19316
+  (0.3ms) DROP TABLE IF EXISTS "panda_pal_organizations" CASCADE
19317
+  (8.9ms) CREATE TABLE "panda_pal_organizations" ("id" serial NOT NULL PRIMARY KEY, "name" character varying, "key" character varying, "secret" character varying, "canvas_account_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "salesforce_id" character varying, "encrypted_settings" text, "encrypted_settings_iv" character varying)
19318
+  (3.6ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_key" ON "panda_pal_organizations" ("key")
19319
+  (4.0ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_name" ON "panda_pal_organizations" ("name")
19320
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_sessions" CASCADE
19321
+  (8.8ms) CREATE TABLE "panda_pal_sessions" ("id" serial NOT NULL PRIMARY KEY, "session_key" character varying, "data" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "panda_pal_organization_id" integer)
19322
+  (4.7ms) CREATE INDEX "index_panda_pal_sessions_on_panda_pal_organization_id" ON "panda_pal_sessions" ("panda_pal_organization_id")
19323
+  (3.9ms) CREATE UNIQUE INDEX "index_panda_pal_sessions_on_session_key" ON "panda_pal_sessions" ("session_key")
19324
+  (8.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
19325
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
19326
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES (20220721095653)
19327
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES
19328
+ (20160413135653),
19329
+ (20160425130344),
19330
+ (20171205194657),
19331
+ (20170106165533),
19332
+ (20160412205931),
19333
+ (20171205183457);
19334
+
19335
+ 
19336
+  (8.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
19337
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
19338
+ ActiveRecord::InternalMetadata Create (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2023-04-17 17:41:25.662291"], ["updated_at", "2023-04-17 17:41:25.662291"]]
19339
+  (0.2ms) RELEASE SAVEPOINT active_record_1
19340
+ PandaPal::Organization Exists (0.4ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["key", "b8cdfd31ab92a1d78d909e020b914d17"], ["id", 19], ["LIMIT", 1]]
19341
+ PandaPal::Organization Exists (0.3ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["name", "def314531376615ba42a5729e5440fc4"], ["id", 19], ["LIMIT", 1]]
19342
+ PandaPal::Organization Exists (0.3ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["salesforce_id", "33fd3059a83c32f12d9396c5ff4e4760"], ["id", 19], ["LIMIT", 1]]
19343
+  (2.7ms) ROLLBACK
19344
+  (0.1ms) BEGIN
19345
+  (0.2ms) SAVEPOINT active_record_1
19346
+ PandaPal::Organization Exists (0.4ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) LIMIT $2 [["key", "5044f2f9d8529f8e53ea979f03e0658b"], ["LIMIT", 1]]
19347
+ PandaPal::Organization Exists (0.6ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) LIMIT $2 [["name", "16111b552819655a7afeba90349ac1a0"], ["LIMIT", 1]]
19348
+ PandaPal::Organization Exists (0.4ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 LIMIT $2 [["salesforce_id", "8e792cf9c8f1f006d45adcdd9591d8ea"], ["LIMIT", 1]]
19349
+ PandaPal::Organization Create (0.5ms) INSERT INTO "public"."panda_pal_organizations" ("name", "key", "secret", "canvas_account_id", "created_at", "updated_at", "salesforce_id", "encrypted_settings_iv") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["name", "16111b552819655a7afeba90349ac1a0"], ["key", "5044f2f9d8529f8e53ea979f03e0658b"], ["secret", "53db1057badc1b9f0c28abcaf9007225"], ["canvas_account_id", "6893"], ["created_at", "2023-04-17 17:41:25.682515"], ["updated_at", "2023-04-17 17:41:25.682515"], ["salesforce_id", "8e792cf9c8f1f006d45adcdd9591d8ea"], ["encrypted_settings_iv", "X3FeP8cMKU81ZOTy\n"]]
19350
+  (0.4ms) CREATE SCHEMA "16111b552819655a7afeba90349ac1a0"
19351
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
19352
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_api_calls" CASCADE
19353
+  (8.4ms) CREATE TABLE "panda_pal_api_calls" ("id" serial NOT NULL PRIMARY KEY, "logic" text, "expiration" character varying, "uses_remaining" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
19354
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_organizations" CASCADE
19355
+  (8.9ms) CREATE TABLE "panda_pal_organizations" ("id" serial NOT NULL PRIMARY KEY, "name" character varying, "key" character varying, "secret" character varying, "canvas_account_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "salesforce_id" character varying, "encrypted_settings" text, "encrypted_settings_iv" character varying)
19356
+  (3.6ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_key" ON "panda_pal_organizations" ("key")
19357
+  (3.8ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_name" ON "panda_pal_organizations" ("name")
19358
+  (0.1ms) DROP TABLE IF EXISTS "panda_pal_sessions" CASCADE
19359
+  (8.2ms) CREATE TABLE "panda_pal_sessions" ("id" serial NOT NULL PRIMARY KEY, "session_key" character varying, "data" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "panda_pal_organization_id" integer)
19360
+  (3.7ms) CREATE INDEX "index_panda_pal_sessions_on_panda_pal_organization_id" ON "panda_pal_sessions" ("panda_pal_organization_id")
19361
+  (3.7ms) CREATE UNIQUE INDEX "index_panda_pal_sessions_on_session_key" ON "panda_pal_sessions" ("session_key")
19362
+  (7.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
19363
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
19364
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES (20220721095653)
19365
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES
19366
+ (20160413135653),
19367
+ (20160425130344),
19368
+ (20171205194657),
19369
+ (20170106165533),
19370
+ (20160412205931),
19371
+ (20171205183457);
19372
+
19373
+ 
19374
+  (8.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
19375
+ ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
19376
+ ActiveRecord::InternalMetadata Create (1.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2023-04-17 17:41:25.761828"], ["updated_at", "2023-04-17 17:41:25.761828"]]
19377
+  (0.5ms) RELEASE SAVEPOINT active_record_1
19378
+ PandaPal::Organization Exists (0.9ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["key", "5044f2f9d8529f8e53ea979f03e0658b"], ["id", 20], ["LIMIT", 1]]
19379
+ PandaPal::Organization Exists (1.1ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["name", "16111b552819655a7afeba90349ac1a0"], ["id", 20], ["LIMIT", 1]]
19380
+ PandaPal::Organization Exists (0.8ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["salesforce_id", "8e792cf9c8f1f006d45adcdd9591d8ea"], ["id", 20], ["LIMIT", 1]]
19381
+  (5.0ms) ROLLBACK
19382
+  (0.2ms) BEGIN
19383
+  (0.2ms) SAVEPOINT active_record_1
19384
+ PandaPal::Organization Exists (0.3ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) LIMIT $2 [["key", "00c8bc8de136ac17e72d11282e148d43"], ["LIMIT", 1]]
19385
+ PandaPal::Organization Exists (0.3ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) LIMIT $2 [["name", "f1879094fe205aa01e7d623c09682184"], ["LIMIT", 1]]
19386
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 LIMIT $2 [["salesforce_id", "d9d203c48ad67b2ac4c4e2131d014c0f"], ["LIMIT", 1]]
19387
+ PandaPal::Organization Create (0.3ms) INSERT INTO "public"."panda_pal_organizations" ("name", "key", "secret", "canvas_account_id", "created_at", "updated_at", "salesforce_id", "encrypted_settings_iv") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["name", "f1879094fe205aa01e7d623c09682184"], ["key", "00c8bc8de136ac17e72d11282e148d43"], ["secret", "28ea2ff4030531939cb6d9ab2b830dd9"], ["canvas_account_id", "3420"], ["created_at", "2023-04-17 17:41:25.802630"], ["updated_at", "2023-04-17 17:41:25.802630"], ["salesforce_id", "d9d203c48ad67b2ac4c4e2131d014c0f"], ["encrypted_settings_iv", "5fRjt8jNTuE+Gp7V\n"]]
19388
+  (0.2ms) CREATE SCHEMA "f1879094fe205aa01e7d623c09682184"
19389
+ SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
19390
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_api_calls" CASCADE
19391
+  (8.1ms) CREATE TABLE "panda_pal_api_calls" ("id" serial NOT NULL PRIMARY KEY, "logic" text, "expiration" character varying, "uses_remaining" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
19392
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_organizations" CASCADE
19393
+  (8.5ms) CREATE TABLE "panda_pal_organizations" ("id" serial NOT NULL PRIMARY KEY, "name" character varying, "key" character varying, "secret" character varying, "canvas_account_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "salesforce_id" character varying, "encrypted_settings" text, "encrypted_settings_iv" character varying)
19394
+  (3.7ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_key" ON "panda_pal_organizations" ("key")
19395
+  (3.4ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_name" ON "panda_pal_organizations" ("name")
19396
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_sessions" CASCADE
19397
+  (8.3ms) CREATE TABLE "panda_pal_sessions" ("id" serial NOT NULL PRIMARY KEY, "session_key" character varying, "data" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "panda_pal_organization_id" integer)
19398
+  (4.0ms) CREATE INDEX "index_panda_pal_sessions_on_panda_pal_organization_id" ON "panda_pal_sessions" ("panda_pal_organization_id")
19399
+  (4.2ms) CREATE UNIQUE INDEX "index_panda_pal_sessions_on_session_key" ON "panda_pal_sessions" ("session_key")
19400
+  (7.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
19401
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
19402
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES (20220721095653)
19403
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES
19404
+ (20160413135653),
19405
+ (20160425130344),
19406
+ (20171205194657),
19407
+ (20170106165533),
19408
+ (20160412205931),
19409
+ (20171205183457);
19410
+
19411
+ 
19412
+  (7.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
19413
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
19414
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2023-04-17 17:41:25.876085"], ["updated_at", "2023-04-17 17:41:25.876085"]]
19415
+  (0.2ms) RELEASE SAVEPOINT active_record_1
19416
+ PandaPal::Organization Exists (0.3ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["key", "00c8bc8de136ac17e72d11282e148d43"], ["id", 21], ["LIMIT", 1]]
19417
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["name", "f1879094fe205aa01e7d623c09682184"], ["id", 21], ["LIMIT", 1]]
19418
+ PandaPal::Organization Exists (0.3ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 AND "public"."panda_pal_organizations"."id" != $2 LIMIT $3 [["salesforce_id", "d9d203c48ad67b2ac4c4e2131d014c0f"], ["id", 21], ["LIMIT", 1]]
19419
+  (2.2ms) ROLLBACK
19420
+  (0.1ms) BEGIN
19421
+  (0.1ms) SAVEPOINT active_record_1
19422
+ PandaPal::Organization Exists (0.3ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) LIMIT $2 [["key", "08a3d7bb69a554cbfd0b66a5e22e2422"], ["LIMIT", 1]]
19423
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) LIMIT $2 [["name", "866a018516a829972b3f55942a3ee7fe"], ["LIMIT", 1]]
19424
+ PandaPal::Organization Exists (0.1ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 LIMIT $2 [["salesforce_id", "cf3df5dbaf3c58b98ea726021b40a444"], ["LIMIT", 1]]
19425
+ PandaPal::Organization Create (0.2ms) INSERT INTO "public"."panda_pal_organizations" ("name", "key", "secret", "canvas_account_id", "created_at", "updated_at", "salesforce_id", "encrypted_settings_iv") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["name", "866a018516a829972b3f55942a3ee7fe"], ["key", "08a3d7bb69a554cbfd0b66a5e22e2422"], ["secret", "f31a7e85716066956424c7dde6bdc133"], ["canvas_account_id", "4342"], ["created_at", "2023-04-17 17:41:25.890413"], ["updated_at", "2023-04-17 17:41:25.890413"], ["salesforce_id", "cf3df5dbaf3c58b98ea726021b40a444"], ["encrypted_settings_iv", "DXGkZ8i8heEJoGUi\n"]]
19426
+  (0.2ms) CREATE SCHEMA "866a018516a829972b3f55942a3ee7fe"
19427
+ SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
19428
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_api_calls" CASCADE
19429
+  (7.7ms) CREATE TABLE "panda_pal_api_calls" ("id" serial NOT NULL PRIMARY KEY, "logic" text, "expiration" character varying, "uses_remaining" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
19430
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_organizations" CASCADE
19431
+  (8.1ms) CREATE TABLE "panda_pal_organizations" ("id" serial NOT NULL PRIMARY KEY, "name" character varying, "key" character varying, "secret" character varying, "canvas_account_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "salesforce_id" character varying, "encrypted_settings" text, "encrypted_settings_iv" character varying)
19432
+  (4.4ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_key" ON "panda_pal_organizations" ("key")
19433
+  (3.9ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_name" ON "panda_pal_organizations" ("name")
19434
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_sessions" CASCADE
19435
+  (8.6ms) CREATE TABLE "panda_pal_sessions" ("id" serial NOT NULL PRIMARY KEY, "session_key" character varying, "data" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "panda_pal_organization_id" integer)
19436
+  (4.0ms) CREATE INDEX "index_panda_pal_sessions_on_panda_pal_organization_id" ON "panda_pal_sessions" ("panda_pal_organization_id")
19437
+  (3.5ms) CREATE UNIQUE INDEX "index_panda_pal_sessions_on_session_key" ON "panda_pal_sessions" ("session_key")
19438
+  (7.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
19439
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
19440
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES (20220721095653)
19441
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES
19442
+ (20160413135653),
19443
+ (20160425130344),
19444
+ (20171205194657),
19445
+ (20170106165533),
19446
+ (20160412205931),
19447
+ (20171205183457);
19448
+
19449
+ 
19450
+  (11.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
19451
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
19452
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2023-04-17 17:41:25.964927"], ["updated_at", "2023-04-17 17:41:25.964927"]]
19453
+  (0.2ms) RELEASE SAVEPOINT active_record_1
19454
+  (1.6ms) ROLLBACK
19455
+  (0.2ms) BEGIN
19456
+  (0.2ms) SAVEPOINT active_record_1
19457
+ PandaPal::Organization Exists (0.4ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) LIMIT $2 [["key", "832a520e33c04697aaf6d484c334fcc8"], ["LIMIT", 1]]
19458
+ PandaPal::Organization Exists (0.3ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) LIMIT $2 [["name", "b62595103c3a06e2078624923c7ad477"], ["LIMIT", 1]]
19459
+ PandaPal::Organization Exists (0.3ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 LIMIT $2 [["salesforce_id", "e8e0df7fa3ae96231db3a769f70e7d8e"], ["LIMIT", 1]]
19460
+ PandaPal::Organization Create (0.3ms) INSERT INTO "public"."panda_pal_organizations" ("name", "key", "secret", "canvas_account_id", "created_at", "updated_at", "salesforce_id", "encrypted_settings_iv") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["name", "b62595103c3a06e2078624923c7ad477"], ["key", "832a520e33c04697aaf6d484c334fcc8"], ["secret", "42b49474cb21c48f1533481f9250b08c"], ["canvas_account_id", "8864"], ["created_at", "2023-04-17 17:41:25.982405"], ["updated_at", "2023-04-17 17:41:25.982405"], ["salesforce_id", "e8e0df7fa3ae96231db3a769f70e7d8e"], ["encrypted_settings_iv", "cr50EbpKQyu0Jg3e\n"]]
19461
+  (0.2ms) CREATE SCHEMA "b62595103c3a06e2078624923c7ad477"
19462
+ SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
19463
+  (0.1ms) DROP TABLE IF EXISTS "panda_pal_api_calls" CASCADE
19464
+  (7.5ms) CREATE TABLE "panda_pal_api_calls" ("id" serial NOT NULL PRIMARY KEY, "logic" text, "expiration" character varying, "uses_remaining" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
19465
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_organizations" CASCADE
19466
+  (8.7ms) CREATE TABLE "panda_pal_organizations" ("id" serial NOT NULL PRIMARY KEY, "name" character varying, "key" character varying, "secret" character varying, "canvas_account_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "salesforce_id" character varying, "encrypted_settings" text, "encrypted_settings_iv" character varying)
19467
+  (3.6ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_key" ON "panda_pal_organizations" ("key")
19468
+  (3.6ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_name" ON "panda_pal_organizations" ("name")
19469
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_sessions" CASCADE
19470
+  (8.3ms) CREATE TABLE "panda_pal_sessions" ("id" serial NOT NULL PRIMARY KEY, "session_key" character varying, "data" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "panda_pal_organization_id" integer)
19471
+  (3.8ms) CREATE INDEX "index_panda_pal_sessions_on_panda_pal_organization_id" ON "panda_pal_sessions" ("panda_pal_organization_id")
19472
+  (3.9ms) CREATE UNIQUE INDEX "index_panda_pal_sessions_on_session_key" ON "panda_pal_sessions" ("session_key")
19473
+  (9.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
19474
+  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
19475
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES (20220721095653)
19476
+  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES
19477
+ (20160413135653),
19478
+ (20160425130344),
19479
+ (20171205194657),
19480
+ (20170106165533),
19481
+ (20160412205931),
19482
+ (20171205183457);
19483
+
19484
+ 
19485
+  (8.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
19486
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
19487
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2023-04-17 17:41:26.060361"], ["updated_at", "2023-04-17 17:41:26.060361"]]
19488
+  (0.2ms) RELEASE SAVEPOINT active_record_1
19489
+  (0.3ms) SELECT "public"."panda_pal_organizations"."name" FROM "public"."panda_pal_organizations"
19490
+ PandaPal::Organization Load (0.2ms) SELECT "public"."panda_pal_organizations".* FROM "public"."panda_pal_organizations" ORDER BY "public"."panda_pal_organizations"."id" ASC LIMIT $1 [["LIMIT", 1000]]
19491
+  (1.5ms) ROLLBACK
19492
+  (0.1ms) BEGIN
19493
+  (0.1ms) SAVEPOINT active_record_1
19494
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) LIMIT $2 [["key", "bd7dfc7ca2c99370e63252f26efa78d6"], ["LIMIT", 1]]
19495
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) LIMIT $2 [["name", "9a16f5ee0fdfc1063d7a578d6e2b343c"], ["LIMIT", 1]]
19496
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 LIMIT $2 [["salesforce_id", "75ebdac56d36d7105792bb3f33cbfa3a"], ["LIMIT", 1]]
19497
+ PandaPal::Organization Create (0.2ms) INSERT INTO "public"."panda_pal_organizations" ("name", "key", "secret", "canvas_account_id", "created_at", "updated_at", "salesforce_id", "encrypted_settings_iv") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["name", "9a16f5ee0fdfc1063d7a578d6e2b343c"], ["key", "bd7dfc7ca2c99370e63252f26efa78d6"], ["secret", "d28b1fcdb155ee7a1bf2ae8fe995a5fd"], ["canvas_account_id", "5066"], ["created_at", "2023-04-17 17:41:26.071791"], ["updated_at", "2023-04-17 17:41:26.071791"], ["salesforce_id", "75ebdac56d36d7105792bb3f33cbfa3a"], ["encrypted_settings_iv", "mZhmAMDU5bassVz4\n"]]
19498
+  (0.2ms) CREATE SCHEMA "9a16f5ee0fdfc1063d7a578d6e2b343c"
19499
+ SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
19500
+  (0.1ms) DROP TABLE IF EXISTS "panda_pal_api_calls" CASCADE
19501
+  (7.8ms) CREATE TABLE "panda_pal_api_calls" ("id" serial NOT NULL PRIMARY KEY, "logic" text, "expiration" character varying, "uses_remaining" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
19502
+  (0.1ms) DROP TABLE IF EXISTS "panda_pal_organizations" CASCADE
19503
+  (8.3ms) CREATE TABLE "panda_pal_organizations" ("id" serial NOT NULL PRIMARY KEY, "name" character varying, "key" character varying, "secret" character varying, "canvas_account_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "salesforce_id" character varying, "encrypted_settings" text, "encrypted_settings_iv" character varying)
19504
+  (3.8ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_key" ON "panda_pal_organizations" ("key")
19505
+  (3.9ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_name" ON "panda_pal_organizations" ("name")
19506
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_sessions" CASCADE
19507
+  (8.6ms) CREATE TABLE "panda_pal_sessions" ("id" serial NOT NULL PRIMARY KEY, "session_key" character varying, "data" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "panda_pal_organization_id" integer)
19508
+  (4.4ms) CREATE INDEX "index_panda_pal_sessions_on_panda_pal_organization_id" ON "panda_pal_sessions" ("panda_pal_organization_id")
19509
+  (4.0ms) CREATE UNIQUE INDEX "index_panda_pal_sessions_on_session_key" ON "panda_pal_sessions" ("session_key")
19510
+  (7.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
19511
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
19512
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES (20220721095653)
19513
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES
19514
+ (20160413135653),
19515
+ (20160425130344),
19516
+ (20171205194657),
19517
+ (20170106165533),
19518
+ (20160412205931),
19519
+ (20171205183457);
19520
+
19521
+ 
19522
+  (8.1ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
19523
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
19524
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2023-04-17 17:41:26.143562"], ["updated_at", "2023-04-17 17:41:26.143562"]]
19525
+  (0.2ms) RELEASE SAVEPOINT active_record_1
19526
+  (0.3ms) SELECT "public"."panda_pal_organizations"."name" FROM "public"."panda_pal_organizations"
19527
+ PandaPal::Organization Load (0.2ms) SELECT "public"."panda_pal_organizations".* FROM "public"."panda_pal_organizations" ORDER BY "public"."panda_pal_organizations"."id" ASC LIMIT $1 [["LIMIT", 1000]]
19528
+  (1.3ms) ROLLBACK
19529
+  (0.1ms) BEGIN
19530
+  (0.2ms) SAVEPOINT active_record_1
19531
+ PandaPal::Organization Exists (0.3ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) LIMIT $2 [["key", "18eacbbe025036a39b7b30c1d4bea228"], ["LIMIT", 1]]
19532
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) LIMIT $2 [["name", "7b22739e3dc659423cf030d4bfe35824"], ["LIMIT", 1]]
19533
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 LIMIT $2 [["salesforce_id", "b785532fb70bbe89f37776a5fe0ced0a"], ["LIMIT", 1]]
19534
+ PandaPal::Organization Create (0.3ms) INSERT INTO "public"."panda_pal_organizations" ("name", "key", "secret", "canvas_account_id", "created_at", "updated_at", "salesforce_id", "encrypted_settings_iv") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["name", "7b22739e3dc659423cf030d4bfe35824"], ["key", "18eacbbe025036a39b7b30c1d4bea228"], ["secret", "864ec1453842814296ad634c15748e07"], ["canvas_account_id", "2109"], ["created_at", "2023-04-17 17:41:26.155763"], ["updated_at", "2023-04-17 17:41:26.155763"], ["salesforce_id", "b785532fb70bbe89f37776a5fe0ced0a"], ["encrypted_settings_iv", "hA+WiViWabWGRgbf\n"]]
19535
+  (0.2ms) CREATE SCHEMA "7b22739e3dc659423cf030d4bfe35824"
19536
+ SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
19537
+  (0.1ms) DROP TABLE IF EXISTS "panda_pal_api_calls" CASCADE
19538
+  (9.3ms) CREATE TABLE "panda_pal_api_calls" ("id" serial NOT NULL PRIMARY KEY, "logic" text, "expiration" character varying, "uses_remaining" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
19539
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_organizations" CASCADE
19540
+  (9.3ms) CREATE TABLE "panda_pal_organizations" ("id" serial NOT NULL PRIMARY KEY, "name" character varying, "key" character varying, "secret" character varying, "canvas_account_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "salesforce_id" character varying, "encrypted_settings" text, "encrypted_settings_iv" character varying)
19541
+  (4.9ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_key" ON "panda_pal_organizations" ("key")
19542
+  (4.3ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_name" ON "panda_pal_organizations" ("name")
19543
+  (0.4ms) DROP TABLE IF EXISTS "panda_pal_sessions" CASCADE
19544
+  (10.4ms) CREATE TABLE "panda_pal_sessions" ("id" serial NOT NULL PRIMARY KEY, "session_key" character varying, "data" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "panda_pal_organization_id" integer)
19545
+  (4.3ms) CREATE INDEX "index_panda_pal_sessions_on_panda_pal_organization_id" ON "panda_pal_sessions" ("panda_pal_organization_id")
19546
+  (3.8ms) CREATE UNIQUE INDEX "index_panda_pal_sessions_on_session_key" ON "panda_pal_sessions" ("session_key")
19547
+  (8.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
19548
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
19549
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES (20220721095653)
19550
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES
19551
+ (20160413135653),
19552
+ (20160425130344),
19553
+ (20171205194657),
19554
+ (20170106165533),
19555
+ (20160412205931),
19556
+ (20171205183457);
19557
+
19558
+ 
19559
+  (8.4ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
19560
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
19561
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2023-04-17 17:41:26.240747"], ["updated_at", "2023-04-17 17:41:26.240747"]]
19562
+  (0.2ms) RELEASE SAVEPOINT active_record_1
19563
+  (0.3ms) SELECT "public"."panda_pal_organizations"."name" FROM "public"."panda_pal_organizations"
19564
+ PandaPal::Organization Load (0.3ms) SELECT "public"."panda_pal_organizations".* FROM "public"."panda_pal_organizations" ORDER BY "public"."panda_pal_organizations"."id" ASC LIMIT $1 [["LIMIT", 1000]]
19565
+  (1.9ms) ROLLBACK
19566
+  (0.1ms) BEGIN
19567
+  (0.1ms) SAVEPOINT active_record_1
19568
+ PandaPal::Organization Exists (0.3ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."key") = LOWER($1) LIMIT $2 [["key", "81a53e886e5be1f462193d18b113ec31"], ["LIMIT", 1]]
19569
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE LOWER("public"."panda_pal_organizations"."name") = LOWER($1) LIMIT $2 [["name", "9b79f21f551f1cff94286c7efabcbda1"], ["LIMIT", 1]]
19570
+ PandaPal::Organization Exists (0.2ms) SELECT 1 AS one FROM "public"."panda_pal_organizations" WHERE "public"."panda_pal_organizations"."salesforce_id" = $1 LIMIT $2 [["salesforce_id", "3a44b5d1f95199ff5940e9c9046ca93d"], ["LIMIT", 1]]
19571
+ PandaPal::Organization Create (0.3ms) INSERT INTO "public"."panda_pal_organizations" ("name", "key", "secret", "canvas_account_id", "created_at", "updated_at", "salesforce_id", "encrypted_settings_iv") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["name", "9b79f21f551f1cff94286c7efabcbda1"], ["key", "81a53e886e5be1f462193d18b113ec31"], ["secret", "1393e2bfc3fd075b6f18775fa2e1faf4"], ["canvas_account_id", "7459"], ["created_at", "2023-04-17 17:41:26.253775"], ["updated_at", "2023-04-17 17:41:26.253775"], ["salesforce_id", "3a44b5d1f95199ff5940e9c9046ca93d"], ["encrypted_settings_iv", "t+R0j8q/6PoZ440M\n"]]
19572
+  (0.2ms) CREATE SCHEMA "9b79f21f551f1cff94286c7efabcbda1"
19573
+ SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
19574
+  (0.1ms) DROP TABLE IF EXISTS "panda_pal_api_calls" CASCADE
19575
+  (9.3ms) CREATE TABLE "panda_pal_api_calls" ("id" serial NOT NULL PRIMARY KEY, "logic" text, "expiration" character varying, "uses_remaining" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
19576
+  (0.3ms) DROP TABLE IF EXISTS "panda_pal_organizations" CASCADE
19577
+  (9.0ms) CREATE TABLE "panda_pal_organizations" ("id" serial NOT NULL PRIMARY KEY, "name" character varying, "key" character varying, "secret" character varying, "canvas_account_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "salesforce_id" character varying, "encrypted_settings" text, "encrypted_settings_iv" character varying)
19578
+  (3.9ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_key" ON "panda_pal_organizations" ("key")
19579
+  (3.7ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_name" ON "panda_pal_organizations" ("name")
19580
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_sessions" CASCADE
19581
+  (8.8ms) CREATE TABLE "panda_pal_sessions" ("id" serial NOT NULL PRIMARY KEY, "session_key" character varying, "data" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "panda_pal_organization_id" integer)
19582
+  (4.1ms) CREATE INDEX "index_panda_pal_sessions_on_panda_pal_organization_id" ON "panda_pal_sessions" ("panda_pal_organization_id")
19583
+  (5.4ms) CREATE UNIQUE INDEX "index_panda_pal_sessions_on_session_key" ON "panda_pal_sessions" ("session_key")
19584
+  (8.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
19585
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
19586
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES (20220721095653)
19587
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES
19588
+ (20160413135653),
19589
+ (20160425130344),
19590
+ (20171205194657),
19591
+ (20170106165533),
19592
+ (20160412205931),
19593
+ (20171205183457);
19594
+
19595
+ 
19596
+  (7.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
19597
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
19598
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2023-04-17 17:41:26.333523"], ["updated_at", "2023-04-17 17:41:26.333523"]]
19599
+  (0.2ms) RELEASE SAVEPOINT active_record_1
19600
+  (1.6ms) ROLLBACK