bookingsync-engine 4.0.1 → 4.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 1e682837dca15bd556e399c58a64744e5779aea9
4
- data.tar.gz: 8ed995c29acdda9688394ff1b74d9c7162d60b8d
2
+ SHA256:
3
+ metadata.gz: 47614ddb714cbfd57fde76cca80d54477c18843a6cc9210f133a06464baa82d0
4
+ data.tar.gz: 5dc08d7c91541a14d1961622679b1e89000244bc91298b7d5eb78648e4c6553e
5
5
  SHA512:
6
- metadata.gz: 2011800c2f0f947f871695ed2e5c8685e6b9cf1a8086ab098fbe7b77a8aca374086a8a07481f66a39954392dba96769afe045bdd59c21801fc5604d70d18823b
7
- data.tar.gz: d9d6d2170c82c3c22e2751830af0acad3b30b347246c7ca9117506f993cbee03f37b9178010387c9b2ceff20aad070a2a39d5bfea6f6c3a3c9f1ce1f699b8276
6
+ metadata.gz: 767f255243b9c03d856af7b58dca3d2162c1f30d8a6d67a827b02c6fabfc8e30f56558a8c5e2bb6513f2a82ca5759812cbe2512f4c1ac9186b7234696f5fa456
7
+ data.tar.gz: 68977588dfb33ca9ea232c0cafca301f0f9cdb53c89ef4a4762f5eab042bbc5c1454be7f12838f106901d58c4830b989568982b0b43e88b1c4d99b0f6dc613e9
@@ -1,5 +1,3 @@
1
- require "bookingsync"
2
-
3
1
  module BookingSyncEngine
4
2
  cattr_accessor :support_multi_applications
5
3
  self.support_multi_applications = false
@@ -22,3 +20,5 @@ module BookingSyncEngine
22
20
  support_multi_applications? ? multi_app_model.call : single_app_model.call
23
21
  end
24
22
  end
23
+
24
+ require "bookingsync"
@@ -7,8 +7,8 @@ module BookingSync
7
7
  initializer "bookingsync.add_omniauth" do |app|
8
8
  app.middleware.use OmniAuth::Builder do
9
9
  provider :bookingsync,
10
- BookingSyncEngine.support_multi_applications? ? nil : ENV["BOOKINGSYNC_APP_ID"],
11
- BookingSyncEngine.support_multi_applications? ? nil : ENV["BOOKINGSYNC_APP_SECRET"],
10
+ ::BookingSyncEngine.support_multi_applications? ? nil : ENV["BOOKINGSYNC_APP_ID"],
11
+ ::BookingSyncEngine.support_multi_applications? ? nil : ENV["BOOKINGSYNC_APP_SECRET"],
12
12
  scope: ENV["BOOKINGSYNC_SCOPE"],
13
13
  setup: -> (env) {
14
14
  if url = ENV["BOOKINGSYNC_URL"]
@@ -18,7 +18,7 @@ module BookingSync
18
18
  verify: ENV["BOOKINGSYNC_VERIFY_SSL"] != "false"
19
19
  }
20
20
 
21
- if BookingSyncEngine.support_multi_applications?
21
+ if ::BookingSyncEngine.support_multi_applications?
22
22
  credentials = BookingSync::Engine::CredentialsResolver.new(env["HTTP_HOST"]).call
23
23
  if credentials.valid?
24
24
  env["omniauth.strategy"].options[:client_id] = credentials.client_id
@@ -16,7 +16,7 @@ module BookingSync::Engine::AuthHelpers
16
16
  return if session[:account_id].nil?
17
17
 
18
18
  @current_account ||=
19
- BookingSyncEngine.account_model.find_by_host_and_synced_id(request.host, session[:account_id])
19
+ ::BookingSyncEngine.account_model.find_by_host_and_synced_id(request.host, session[:account_id])
20
20
  end
21
21
 
22
22
  # Callback after account is authorized.
@@ -1,3 +1,3 @@
1
1
  module BookingSync
2
- ENGINE_VERSION = "4.0.1"
2
+ ENGINE_VERSION = "4.0.2"
3
3
  end
@@ -62523,3 +62523,1311 @@ Completed 302 Found in 9ms (ActiveRecord: 5.6ms)
62523
62523
  Application Exists (0.8ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" IS NULL LIMIT $1 [["LIMIT", 1]]
62524
62524
  Application Exists (1.0ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" IS NULL LIMIT $1 [["LIMIT", 1]]
62525
62525
   (0.8ms) ROLLBACK
62526
+  (0.8ms) BEGIN
62527
+  (1.4ms) SAVEPOINT active_record_1
62528
+ Application Exists (7.7ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "example.test"], ["LIMIT", 1]]
62529
+ Application Exists (0.8ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2 [["client_id", "123"], ["LIMIT", 1]]
62530
+ Application Exists (0.6ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2 [["client_secret", "456"], ["LIMIT", 1]]
62531
+ Application Create (3.2ms) INSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:48:01.839588"], ["updated_at", "2019-07-17 03:48:01.839588"], ["host", "example.test"], ["client_id", "123"], ["client_secret", "456"]]
62532
+  (0.6ms) RELEASE SAVEPOINT active_record_1
62533
+ Application Load (0.6ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "example.test"], ["LIMIT", 1]]
62534
+  (1.5ms) ROLLBACK
62535
+  (0.8ms) BEGIN
62536
+  (0.7ms) SAVEPOINT active_record_1
62537
+ Application Exists (0.9ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "test.host"], ["LIMIT", 1]]
62538
+ Application Exists (0.8ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2 [["client_id", "abc"], ["LIMIT", 1]]
62539
+ Application Exists (0.9ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2 [["client_secret", "def"], ["LIMIT", 1]]
62540
+ Application Create (0.9ms) INSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:48:01.883912"], ["updated_at", "2019-07-17 03:48:01.883912"], ["host", "test.host"], ["client_id", "abc"], ["client_secret", "def"]]
62541
+  (0.6ms) RELEASE SAVEPOINT active_record_1
62542
+ Application Load (0.7ms) SELECT "applications".* FROM "applications" ORDER BY "applications"."id" ASC LIMIT $1 [["LIMIT", 1]]
62543
+ Application Exists (1.0ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "test.host"], ["LIMIT", 1]]
62544
+ Application Exists (0.9ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2 [["client_id", "abc"], ["LIMIT", 1]]
62545
+ Application Exists (1.7ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2 [["client_secret", "def"], ["LIMIT", 1]]
62546
+ Application Exists (1.6ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "test.host"], ["LIMIT", 1]]
62547
+ Application Exists (1.5ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2 [["client_id", "abc"], ["LIMIT", 1]]
62548
+ Application Exists (1.5ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2 [["client_secret", "DEF"], ["LIMIT", 1]]
62549
+  (1.1ms) ROLLBACK
62550
+  (0.7ms) BEGIN
62551
+  (0.7ms) SAVEPOINT active_record_1
62552
+ Application Exists (0.9ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "test.host"], ["LIMIT", 1]]
62553
+ Application Exists (0.8ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2 [["client_id", "abc"], ["LIMIT", 1]]
62554
+ Application Exists (0.8ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2 [["client_secret", "def"], ["LIMIT", 1]]
62555
+ Application Create (0.8ms) INSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:48:01.914804"], ["updated_at", "2019-07-17 03:48:01.914804"], ["host", "test.host"], ["client_id", "abc"], ["client_secret", "def"]]
62556
+  (0.7ms) RELEASE SAVEPOINT active_record_1
62557
+ Application Load (0.8ms) SELECT "applications".* FROM "applications" ORDER BY "applications"."id" ASC LIMIT $1 [["LIMIT", 1]]
62558
+ Application Exists (1.8ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "test.host"], ["LIMIT", 1]]
62559
+ Application Exists (1.6ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2 [["client_id", "abc"], ["LIMIT", 1]]
62560
+ Application Exists (1.7ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2 [["client_secret", "def"], ["LIMIT", 1]]
62561
+ Application Exists (1.5ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "test.host"], ["LIMIT", 1]]
62562
+ Application Exists (1.4ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2 [["client_id", "ABC"], ["LIMIT", 1]]
62563
+ Application Exists (1.4ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2 [["client_secret", "def"], ["LIMIT", 1]]
62564
+  (1.1ms) ROLLBACK
62565
+  (0.9ms) BEGIN
62566
+  (1.0ms) SAVEPOINT active_record_1
62567
+ Application Exists (1.3ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "test.host"], ["LIMIT", 1]]
62568
+ Application Exists (1.1ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2 [["client_id", "abc"], ["LIMIT", 1]]
62569
+ Application Exists (1.2ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2 [["client_secret", "def"], ["LIMIT", 1]]
62570
+ Application Create (1.4ms) INSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:48:01.950925"], ["updated_at", "2019-07-17 03:48:01.950925"], ["host", "test.host"], ["client_id", "abc"], ["client_secret", "def"]]
62571
+  (1.0ms) RELEASE SAVEPOINT active_record_1
62572
+ Application Load (1.1ms) SELECT "applications".* FROM "applications" ORDER BY "applications"."id" ASC LIMIT $1 [["LIMIT", 1]]
62573
+ Application Exists (1.5ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "test.host"], ["LIMIT", 1]]
62574
+ Application Exists (1.2ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2 [["client_id", "abc"], ["LIMIT", 1]]
62575
+ Application Exists (1.3ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2 [["client_secret", "def"], ["LIMIT", 1]]
62576
+ Application Exists (1.5ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "TEST.HOST"], ["LIMIT", 1]]
62577
+ Application Exists (1.1ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2 [["client_id", "abc"], ["LIMIT", 1]]
62578
+ Application Exists (1.3ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2 [["client_secret", "def"], ["LIMIT", 1]]
62579
+  (1.0ms) ROLLBACK
62580
+  (0.8ms) BEGIN
62581
+  (0.8ms) SAVEPOINT active_record_1
62582
+ Application Exists (1.0ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "test.host"], ["LIMIT", 1]]
62583
+ Application Exists (1.0ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2 [["client_id", "abc"], ["LIMIT", 1]]
62584
+ Application Exists (1.0ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2 [["client_secret", "def"], ["LIMIT", 1]]
62585
+ Application Create (1.0ms) INSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:48:01.990305"], ["updated_at", "2019-07-17 03:48:01.990305"], ["host", "test.host"], ["client_id", "abc"], ["client_secret", "def"]]
62586
+  (0.8ms) RELEASE SAVEPOINT active_record_1
62587
+ Application Exists (1.4ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" IS NULL LIMIT $1 [["LIMIT", 1]]
62588
+ Application Exists (1.0ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" IS NULL LIMIT $1 [["LIMIT", 1]]
62589
+ Application Exists (1.3ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" IS NULL LIMIT $1 [["LIMIT", 1]]
62590
+  (1.0ms) ROLLBACK
62591
+  (0.9ms) BEGIN
62592
+  (1.0ms) SAVEPOINT active_record_1
62593
+ Application Exists (1.3ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "test.host"], ["LIMIT", 1]]
62594
+ Application Exists (1.3ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2 [["client_id", "abc"], ["LIMIT", 1]]
62595
+ Application Exists (1.2ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2 [["client_secret", "def"], ["LIMIT", 1]]
62596
+ Application Create (1.2ms) INSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:48:02.016737"], ["updated_at", "2019-07-17 03:48:02.016737"], ["host", "test.host"], ["client_id", "abc"], ["client_secret", "def"]]
62597
+  (1.0ms) RELEASE SAVEPOINT active_record_1
62598
+ Application Exists (1.2ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" IS NULL LIMIT $1 [["LIMIT", 1]]
62599
+ Application Exists (1.0ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" IS NULL LIMIT $1 [["LIMIT", 1]]
62600
+ Application Exists (1.0ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" IS NULL LIMIT $1 [["LIMIT", 1]]
62601
+  (0.8ms) ROLLBACK
62602
+  (0.7ms) BEGIN
62603
+  (0.7ms) SAVEPOINT active_record_1
62604
+ Application Exists (0.9ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "test.host"], ["LIMIT", 1]]
62605
+ Application Exists (0.8ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2 [["client_id", "abc"], ["LIMIT", 1]]
62606
+ Application Exists (1.4ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2 [["client_secret", "def"], ["LIMIT", 1]]
62607
+ Application Create (1.3ms) INSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:48:02.040757"], ["updated_at", "2019-07-17 03:48:02.040757"], ["host", "test.host"], ["client_id", "abc"], ["client_secret", "def"]]
62608
+  (0.9ms) RELEASE SAVEPOINT active_record_1
62609
+ Application Exists (1.3ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" IS NULL LIMIT $1 [["LIMIT", 1]]
62610
+ Application Exists (1.0ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" IS NULL LIMIT $1 [["LIMIT", 1]]
62611
+ Application Exists (1.2ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" IS NULL LIMIT $1 [["LIMIT", 1]]
62612
+  (1.2ms) ROLLBACK
62613
+  (1.0ms) BEGIN
62614
+  (1.2ms) SAVEPOINT active_record_1
62615
+ MultiApplicationsAccount Exists (5.6ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 123], ["host", "example.host"], ["LIMIT", 1]]
62616
+ MultiApplicationsAccount Create (2.3ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "synced_id", "host") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-07-17 03:48:02.109079"], ["updated_at", "2019-07-17 03:48:02.109079"], ["synced_id", 123], ["host", "example.host"]]
62617
+  (0.7ms) RELEASE SAVEPOINT active_record_1
62618
+  (0.6ms) SAVEPOINT active_record_1
62619
+ MultiApplicationsAccount Exists (0.8ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 123], ["host", "test.host"], ["LIMIT", 1]]
62620
+ MultiApplicationsAccount Create (0.7ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "synced_id", "host") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-07-17 03:48:02.114962"], ["updated_at", "2019-07-17 03:48:02.114962"], ["synced_id", 123], ["host", "test.host"]]
62621
+  (0.6ms) RELEASE SAVEPOINT active_record_1
62622
+ MultiApplicationsAccount Load (0.8ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."host" = $1 AND "multi_applications_accounts"."synced_id" = $2 LIMIT $3 [["host", "test.host"], ["synced_id", 123], ["LIMIT", 1]]
62623
+  (0.7ms) ROLLBACK
62624
+  (0.9ms) BEGIN
62625
+  (1.1ms) SAVEPOINT active_record_1
62626
+ Account Exists (4.4ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 123], ["LIMIT", 1]]
62627
+ Account Create (2.1ms) INSERT INTO "accounts" ("created_at", "updated_at", "synced_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2019-07-17 03:48:02.138267"], ["updated_at", "2019-07-17 03:48:02.138267"], ["synced_id", 123]]
62628
+  (0.7ms) RELEASE SAVEPOINT active_record_1
62629
+ Account Load (1.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 123], ["LIMIT", 1]]
62630
+  (0.7ms) ROLLBACK
62631
+  (0.7ms) BEGIN
62632
+  (0.7ms) ROLLBACK
62633
+  (0.7ms) BEGIN
62634
+  (0.6ms) SAVEPOINT active_record_1
62635
+ MultiApplicationsAccount Exists (0.7ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 123], ["host", "test.example"], ["LIMIT", 1]]
62636
+ MultiApplicationsAccount Create (0.7ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "synced_id", "host") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-07-17 03:48:02.154202"], ["updated_at", "2019-07-17 03:48:02.154202"], ["synced_id", 123], ["host", "test.example"]]
62637
+  (0.6ms) RELEASE SAVEPOINT active_record_1
62638
+  (0.8ms) SAVEPOINT active_record_1
62639
+ Application Exists (0.8ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "test.example"], ["LIMIT", 1]]
62640
+ Application Exists (0.7ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2 [["client_id", "123"], ["LIMIT", 1]]
62641
+ Application Exists (0.6ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2 [["client_secret", "456"], ["LIMIT", 1]]
62642
+ Application Create (0.7ms) INSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:48:02.160003"], ["updated_at", "2019-07-17 03:48:02.160003"], ["host", "test.example"], ["client_id", "123"], ["client_secret", "456"]]
62643
+  (0.7ms) RELEASE SAVEPOINT active_record_1
62644
+  (0.7ms) SAVEPOINT active_record_1
62645
+ Application Exists (0.8ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "test2.example"], ["LIMIT", 1]]
62646
+ Application Exists (0.7ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2 [["client_id", "234"], ["LIMIT", 1]]
62647
+ Application Exists (0.6ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2 [["client_secret", "567"], ["LIMIT", 1]]
62648
+ Application Create (0.7ms) INSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:48:02.165667"], ["updated_at", "2019-07-17 03:48:02.165667"], ["host", "test2.example"], ["client_id", "234"], ["client_secret", "567"]]
62649
+  (0.5ms) RELEASE SAVEPOINT active_record_1
62650
+ Application Load (0.6ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "test.example"], ["LIMIT", 1]]
62651
+  (0.7ms) ROLLBACK
62652
+  (0.6ms) BEGIN
62653
+  (0.6ms) SAVEPOINT active_record_1
62654
+ MultiApplicationsAccount Exists (0.8ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 123], ["host", "test.example"], ["LIMIT", 1]]
62655
+ MultiApplicationsAccount Create (0.8ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "synced_id", "host") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-07-17 03:48:02.173405"], ["updated_at", "2019-07-17 03:48:02.173405"], ["synced_id", 123], ["host", "test.example"]]
62656
+  (0.6ms) RELEASE SAVEPOINT active_record_1
62657
+  (0.6ms) SAVEPOINT active_record_1
62658
+ Application Exists (0.8ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "test.example"], ["LIMIT", 1]]
62659
+ Application Exists (1.0ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2 [["client_id", "123"], ["LIMIT", 1]]
62660
+ Application Exists (1.2ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2 [["client_secret", "456"], ["LIMIT", 1]]
62661
+ Application Create (1.3ms) INSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:48:02.180355"], ["updated_at", "2019-07-17 03:48:02.180355"], ["host", "test.example"], ["client_id", "123"], ["client_secret", "456"]]
62662
+  (0.9ms) RELEASE SAVEPOINT active_record_1
62663
+ Application Load (1.4ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "test.example"], ["LIMIT", 1]]
62664
+  (1.0ms) ROLLBACK
62665
+  (0.6ms) BEGIN
62666
+  (0.8ms) SAVEPOINT active_record_1
62667
+ MultiApplicationsAccount Exists (0.8ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 123], ["host", "example.test"], ["LIMIT", 1]]
62668
+ MultiApplicationsAccount Create (0.8ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:48:02.209736"], ["updated_at", "2019-07-17 03:48:02.209736"], ["provider", "bookingsync"], ["synced_id", 123], ["host", "example.test"]]
62669
+  (0.6ms) RELEASE SAVEPOINT active_record_1
62670
+  (0.7ms) SAVEPOINT active_record_1
62671
+ MultiApplicationsAccount Exists (0.8ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 456], ["host", "example2.test"], ["LIMIT", 1]]
62672
+ MultiApplicationsAccount Create (0.8ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:48:02.213847"], ["updated_at", "2019-07-17 03:48:02.213847"], ["provider", "bookingsync"], ["synced_id", 456], ["host", "example2.test"]]
62673
+  (0.6ms) RELEASE SAVEPOINT active_record_1
62674
+  (0.7ms) ROLLBACK
62675
+  (0.6ms) BEGIN
62676
+  (0.6ms) SAVEPOINT active_record_1
62677
+ MultiApplicationsAccount Exists (0.8ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 123], ["host", "example.test"], ["LIMIT", 1]]
62678
+ MultiApplicationsAccount Create (0.8ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:48:02.222019"], ["updated_at", "2019-07-17 03:48:02.222019"], ["provider", "bookingsync"], ["synced_id", 123], ["host", "example.test"]]
62679
+  (0.6ms) RELEASE SAVEPOINT active_record_1
62680
+  (0.6ms) SAVEPOINT active_record_1
62681
+ MultiApplicationsAccount Exists (0.8ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 456], ["host", "example2.test"], ["LIMIT", 1]]
62682
+ MultiApplicationsAccount Create (0.8ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:48:02.226070"], ["updated_at", "2019-07-17 03:48:02.226070"], ["provider", "bookingsync"], ["synced_id", 456], ["host", "example2.test"]]
62683
+  (0.7ms) RELEASE SAVEPOINT active_record_1
62684
+  (3.1ms) SELECT COUNT(*) FROM "multi_applications_accounts"
62685
+ MultiApplicationsAccount Load (1.0ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."host" = $1 AND "multi_applications_accounts"."synced_id" = $2 AND "multi_applications_accounts"."provider" = $3 LIMIT $4 [["host", "example3.test"], ["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
62686
+  (0.7ms) SAVEPOINT active_record_1
62687
+ MultiApplicationsAccount Exists (0.9ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 123], ["host", "example3.test"], ["LIMIT", 1]]
62688
+ MultiApplicationsAccount Create (0.8ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "host") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["created_at", "2019-07-17 03:48:02.239212"], ["updated_at", "2019-07-17 03:48:02.239212"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["host", "example3.test"]]
62689
+  (0.8ms) RELEASE SAVEPOINT active_record_1
62690
+  (1.0ms) SELECT COUNT(*) FROM "multi_applications_accounts"
62691
+  (0.9ms) ROLLBACK
62692
+  (0.9ms) BEGIN
62693
+ MultiApplicationsAccount Load (0.9ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."host" = $1 AND "multi_applications_accounts"."synced_id" = $2 AND "multi_applications_accounts"."provider" = $3 LIMIT $4 [["host", "example3.test"], ["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
62694
+  (0.7ms) SAVEPOINT active_record_1
62695
+ MultiApplicationsAccount Exists (0.8ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 123], ["host", "example3.test"], ["LIMIT", 1]]
62696
+ MultiApplicationsAccount Create (1.0ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "host") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["created_at", "2019-07-17 03:48:02.249697"], ["updated_at", "2019-07-17 03:48:02.249697"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["host", "example3.test"]]
62697
+  (0.8ms) RELEASE SAVEPOINT active_record_1
62698
+  (0.7ms) SAVEPOINT active_record_1
62699
+ MultiApplicationsAccount Exists (0.9ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 456], ["host", "example2.test"], ["LIMIT", 1]]
62700
+ MultiApplicationsAccount Create (0.8ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:48:02.254600"], ["updated_at", "2019-07-17 03:48:02.254600"], ["provider", "bookingsync"], ["synced_id", 456], ["host", "example2.test"]]
62701
+  (0.6ms) RELEASE SAVEPOINT active_record_1
62702
+  (0.7ms) ROLLBACK
62703
+  (0.6ms) BEGIN
62704
+ MultiApplicationsAccount Load (0.7ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."host" = $1 AND "multi_applications_accounts"."synced_id" = $2 AND "multi_applications_accounts"."provider" = $3 LIMIT $4 [["host", "example3.test"], ["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
62705
+  (0.8ms) SAVEPOINT active_record_1
62706
+ MultiApplicationsAccount Exists (0.8ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 123], ["host", "example3.test"], ["LIMIT", 1]]
62707
+ MultiApplicationsAccount Create (0.7ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "host") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["created_at", "2019-07-17 03:48:02.263172"], ["updated_at", "2019-07-17 03:48:02.263172"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["host", "example3.test"]]
62708
+  (0.5ms) RELEASE SAVEPOINT active_record_1
62709
+  (0.5ms) SAVEPOINT active_record_1
62710
+ MultiApplicationsAccount Exists (0.6ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 456], ["host", "example2.test"], ["LIMIT", 1]]
62711
+ MultiApplicationsAccount Create (0.7ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:48:02.266640"], ["updated_at", "2019-07-17 03:48:02.266640"], ["provider", "bookingsync"], ["synced_id", 456], ["host", "example2.test"]]
62712
+  (0.6ms) RELEASE SAVEPOINT active_record_1
62713
+  (0.7ms) ROLLBACK
62714
+  (0.5ms) BEGIN
62715
+ MultiApplicationsAccount Load (0.8ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."host" = $1 AND "multi_applications_accounts"."synced_id" = $2 AND "multi_applications_accounts"."provider" = $3 LIMIT $4 [["host", "example3.test"], ["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
62716
+  (0.5ms) SAVEPOINT active_record_1
62717
+ MultiApplicationsAccount Exists (0.8ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 123], ["host", "example3.test"], ["LIMIT", 1]]
62718
+ MultiApplicationsAccount Create (0.8ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "host") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["created_at", "2019-07-17 03:48:02.274297"], ["updated_at", "2019-07-17 03:48:02.274297"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["host", "example3.test"]]
62719
+  (0.5ms) RELEASE SAVEPOINT active_record_1
62720
+  (0.5ms) SAVEPOINT active_record_1
62721
+ MultiApplicationsAccount Exists (0.7ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 456], ["host", "example2.test"], ["LIMIT", 1]]
62722
+ MultiApplicationsAccount Create (1.0ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:48:02.277915"], ["updated_at", "2019-07-17 03:48:02.277915"], ["provider", "bookingsync"], ["synced_id", 456], ["host", "example2.test"]]
62723
+  (0.8ms) RELEASE SAVEPOINT active_record_1
62724
+  (1.1ms) ROLLBACK
62725
+  (0.9ms) BEGIN
62726
+  (0.7ms) SAVEPOINT active_record_1
62727
+ MultiApplicationsAccount Exists (1.0ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 123], ["host", "example.test"], ["LIMIT", 1]]
62728
+ MultiApplicationsAccount Create (0.8ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:48:02.289381"], ["updated_at", "2019-07-17 03:48:02.289381"], ["provider", "bookingsync"], ["synced_id", 123], ["host", "example.test"]]
62729
+  (0.8ms) RELEASE SAVEPOINT active_record_1
62730
+  (0.7ms) SAVEPOINT active_record_1
62731
+ MultiApplicationsAccount Exists (0.8ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 456], ["host", "example2.test"], ["LIMIT", 1]]
62732
+ MultiApplicationsAccount Create (0.8ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:48:02.293804"], ["updated_at", "2019-07-17 03:48:02.293804"], ["provider", "bookingsync"], ["synced_id", 456], ["host", "example2.test"]]
62733
+  (0.7ms) RELEASE SAVEPOINT active_record_1
62734
+ MultiApplicationsAccount Load (0.9ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."host" = $1 AND "multi_applications_accounts"."synced_id" = $2 AND "multi_applications_accounts"."provider" = $3 LIMIT $4 [["host", "example.test"], ["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
62735
+  (0.6ms) SAVEPOINT active_record_1
62736
+ MultiApplicationsAccount Exists (0.8ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."id" != $2 AND "multi_applications_accounts"."host" = $3 LIMIT $4 [["synced_id", 123], ["id", 2190], ["host", "example.test"], ["LIMIT", 1]]
62737
+ MultiApplicationsAccount Update (0.9ms) UPDATE "multi_applications_accounts" SET "name" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4, "updated_at" = $5 WHERE "multi_applications_accounts"."id" = $6 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", "2019-07-17 03:48:02.299842"], ["id", 2190]]
62738
+  (0.8ms) RELEASE SAVEPOINT active_record_1
62739
+  (0.7ms) ROLLBACK
62740
+  (0.6ms) BEGIN
62741
+  (0.6ms) SAVEPOINT active_record_1
62742
+ MultiApplicationsAccount Exists (0.8ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 123], ["host", "example.test"], ["LIMIT", 1]]
62743
+ MultiApplicationsAccount Create (1.1ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:48:02.307489"], ["updated_at", "2019-07-17 03:48:02.307489"], ["provider", "bookingsync"], ["synced_id", 123], ["host", "example.test"]]
62744
+  (0.7ms) RELEASE SAVEPOINT active_record_1
62745
+  (0.6ms) SAVEPOINT active_record_1
62746
+ MultiApplicationsAccount Exists (1.2ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 456], ["host", "example2.test"], ["LIMIT", 1]]
62747
+ MultiApplicationsAccount Create (1.0ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:48:02.312705"], ["updated_at", "2019-07-17 03:48:02.312705"], ["provider", "bookingsync"], ["synced_id", 456], ["host", "example2.test"]]
62748
+  (0.7ms) RELEASE SAVEPOINT active_record_1
62749
+ MultiApplicationsAccount Load (0.9ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."host" = $1 AND "multi_applications_accounts"."synced_id" = $2 AND "multi_applications_accounts"."provider" = $3 LIMIT $4 [["host", "example.test"], ["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
62750
+  (0.7ms) SAVEPOINT active_record_1
62751
+ MultiApplicationsAccount Exists (0.9ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."id" != $2 AND "multi_applications_accounts"."host" = $3 LIMIT $4 [["synced_id", 123], ["id", 2192], ["host", "example.test"], ["LIMIT", 1]]
62752
+ MultiApplicationsAccount Update (0.9ms) UPDATE "multi_applications_accounts" SET "name" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4, "updated_at" = $5 WHERE "multi_applications_accounts"."id" = $6 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", "2019-07-17 03:48:02.319099"], ["id", 2192]]
62753
+  (0.7ms) RELEASE SAVEPOINT active_record_1
62754
+ MultiApplicationsAccount Load (0.8ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."id" = $1 LIMIT $2 [["id", 2192], ["LIMIT", 1]]
62755
+  (0.8ms) ROLLBACK
62756
+  (0.7ms) BEGIN
62757
+  (0.7ms) SAVEPOINT active_record_1
62758
+ MultiApplicationsAccount Exists (1.2ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 123], ["host", "example.test"], ["LIMIT", 1]]
62759
+ MultiApplicationsAccount Create (1.0ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:48:02.329820"], ["updated_at", "2019-07-17 03:48:02.329820"], ["provider", "bookingsync"], ["synced_id", 123], ["host", "example.test"]]
62760
+  (0.8ms) RELEASE SAVEPOINT active_record_1
62761
+  (0.7ms) SAVEPOINT active_record_1
62762
+ MultiApplicationsAccount Exists (1.0ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 456], ["host", "example2.test"], ["LIMIT", 1]]
62763
+ MultiApplicationsAccount Create (1.0ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:48:02.334758"], ["updated_at", "2019-07-17 03:48:02.334758"], ["provider", "bookingsync"], ["synced_id", 456], ["host", "example2.test"]]
62764
+  (0.7ms) RELEASE SAVEPOINT active_record_1
62765
+ MultiApplicationsAccount Load (0.7ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."host" = $1 AND "multi_applications_accounts"."synced_id" = $2 AND "multi_applications_accounts"."provider" = $3 LIMIT $4 [["host", "example.test"], ["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
62766
+  (0.7ms) SAVEPOINT active_record_1
62767
+ MultiApplicationsAccount Exists (0.9ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."id" != $2 AND "multi_applications_accounts"."host" = $3 LIMIT $4 [["synced_id", 123], ["id", 2194], ["host", "example.test"], ["LIMIT", 1]]
62768
+ MultiApplicationsAccount Update (1.0ms) UPDATE "multi_applications_accounts" SET "name" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4, "updated_at" = $5 WHERE "multi_applications_accounts"."id" = $6 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", "2019-07-17 03:48:02.340815"], ["id", 2194]]
62769
+  (0.7ms) RELEASE SAVEPOINT active_record_1
62770
+ MultiApplicationsAccount Load (1.0ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."id" = $1 LIMIT $2 [["id", 2194], ["LIMIT", 1]]
62771
+  (0.7ms) ROLLBACK
62772
+  (0.7ms) BEGIN
62773
+  (0.7ms) SAVEPOINT active_record_1
62774
+ MultiApplicationsAccount Exists (0.9ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 123], ["host", "test.example"], ["LIMIT", 1]]
62775
+ MultiApplicationsAccount Create (1.0ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "synced_id", "host") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-07-17 03:48:02.350303"], ["updated_at", "2019-07-17 03:48:02.350303"], ["synced_id", 123], ["host", "test.example"]]
62776
+  (0.6ms) RELEASE SAVEPOINT active_record_1
62777
+  (0.6ms) SAVEPOINT active_record_1
62778
+ Application Exists (0.7ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "test.example"], ["LIMIT", 1]]
62779
+ Application Exists (0.8ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2 [["client_id", "123"], ["LIMIT", 1]]
62780
+ Application Exists (0.7ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2 [["client_secret", "456"], ["LIMIT", 1]]
62781
+ Application Create (1.0ms) INSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:48:02.356535"], ["updated_at", "2019-07-17 03:48:02.356535"], ["host", "test.example"], ["client_id", "123"], ["client_secret", "456"]]
62782
+  (0.9ms) RELEASE SAVEPOINT active_record_1
62783
+ Application Load (0.7ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "test.example"], ["LIMIT", 1]]
62784
+  (0.9ms) ROLLBACK
62785
+  (0.6ms) BEGIN
62786
+  (0.6ms) SAVEPOINT active_record_1
62787
+ MultiApplicationsAccount Exists (0.8ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" IS NULL AND "multi_applications_accounts"."host" = $1 LIMIT $2 [["host", "example.test"], ["LIMIT", 1]]
62788
+ MultiApplicationsAccount Create (0.8ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "host") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2019-07-17 03:48:02.365976"], ["updated_at", "2019-07-17 03:48:02.365976"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh"], ["oauth_expires_at", "expires"], ["host", "example.test"]]
62789
+  (0.7ms) RELEASE SAVEPOINT active_record_1
62790
+ MultiApplicationsAccount Load (1.1ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."id" = $1 LIMIT $2 [["id", 2197], ["LIMIT", 1]]
62791
+  (0.7ms) SAVEPOINT active_record_1
62792
+ MultiApplicationsAccount Exists (0.8ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" IS NULL AND "multi_applications_accounts"."id" != $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["id", 2197], ["host", "example.test"], ["LIMIT", 1]]
62793
+ MultiApplicationsAccount Update (1.1ms) UPDATE "multi_applications_accounts" SET "oauth_access_token" = $1, "oauth_refresh_token" = $2, "oauth_expires_at" = $3, "updated_at" = $4 WHERE "multi_applications_accounts"."id" = $5 [["oauth_access_token", nil], ["oauth_refresh_token", nil], ["oauth_expires_at", nil], ["updated_at", "2019-07-17 03:48:02.374031"], ["id", 2197]]
62794
+  (0.7ms) RELEASE SAVEPOINT active_record_1
62795
+ MultiApplicationsAccount Load (0.9ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."id" = $1 LIMIT $2 [["id", 2197], ["LIMIT", 1]]
62796
+  (0.8ms) ROLLBACK
62797
+  (0.8ms) BEGIN
62798
+  (0.6ms) SAVEPOINT active_record_1
62799
+ MultiApplicationsAccount Exists (0.8ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 1], ["host", "example.test"], ["LIMIT", 1]]
62800
+ MultiApplicationsAccount Create (0.9ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "synced_id", "host") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-07-17 03:48:02.384182"], ["updated_at", "2019-07-17 03:48:02.384182"], ["synced_id", 1], ["host", "example.test"]]
62801
+  (0.7ms) RELEASE SAVEPOINT active_record_1
62802
+  (0.6ms) SAVEPOINT active_record_1
62803
+ MultiApplicationsAccount Exists (0.8ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 2], ["host", "example.test"], ["LIMIT", 1]]
62804
+ MultiApplicationsAccount Create (0.8ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "synced_id", "host") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-07-17 03:48:02.388476"], ["updated_at", "2019-07-17 03:48:02.388476"], ["synced_id", 2], ["host", "example.test"]]
62805
+  (0.6ms) RELEASE SAVEPOINT active_record_1
62806
+  (0.6ms) SAVEPOINT active_record_1
62807
+ MultiApplicationsAccount Exists (0.8ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 1], ["host", "example2.test"], ["LIMIT", 1]]
62808
+ MultiApplicationsAccount Create (0.8ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "synced_id", "host") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-07-17 03:48:02.392501"], ["updated_at", "2019-07-17 03:48:02.392501"], ["synced_id", 1], ["host", "example2.test"]]
62809
+  (0.6ms) RELEASE SAVEPOINT active_record_1
62810
+  (0.7ms) SAVEPOINT active_record_1
62811
+ MultiApplicationsAccount Exists (1.0ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 2], ["host", "example2.test"], ["LIMIT", 1]]
62812
+ MultiApplicationsAccount Create (1.0ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "synced_id", "host") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-07-17 03:48:02.397098"], ["updated_at", "2019-07-17 03:48:02.397098"], ["synced_id", 2], ["host", "example2.test"]]
62813
+  (0.7ms) RELEASE SAVEPOINT active_record_1
62814
+ MultiApplicationsAccount Load (0.7ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."host" = $1 AND "multi_applications_accounts"."synced_id" = $2 LIMIT $3 [["host", "example2.test"], ["synced_id", 1], ["LIMIT", 1]]
62815
+  (0.7ms) ROLLBACK
62816
+  (0.7ms) BEGIN
62817
+  (0.6ms) SAVEPOINT active_record_1
62818
+ Application Exists (0.8ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "host"], ["LIMIT", 1]]
62819
+ Application Exists (0.8ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2 [["client_id", "client_id"], ["LIMIT", 1]]
62820
+ Application Exists (0.7ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2 [["client_secret", "client_secret"], ["LIMIT", 1]]
62821
+ Application Create (0.9ms) INSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:48:02.407583"], ["updated_at", "2019-07-17 03:48:02.407583"], ["host", "host"], ["client_id", "client_id"], ["client_secret", "client_secret"]]
62822
+  (0.6ms) RELEASE SAVEPOINT active_record_1
62823
+ Application Load (2.3ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "host"], ["LIMIT", 1]]
62824
+  (1.7ms) ROLLBACK
62825
+  (0.8ms) BEGIN
62826
+  (0.6ms) SAVEPOINT active_record_1
62827
+ MultiApplicationsAccount Exists (0.8ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 123], ["host", "example.test"], ["LIMIT", 1]]
62828
+ MultiApplicationsAccount Create (0.8ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "host") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2019-07-17 03:48:02.437899"], ["updated_at", "2019-07-17 03:48:02.437899"], ["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1563248882"], ["host", "example.test"]]
62829
+  (0.6ms) RELEASE SAVEPOINT active_record_1
62830
+  (0.6ms) SAVEPOINT active_record_1
62831
+ Application Exists (0.9ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "example.test"], ["LIMIT", 1]]
62832
+ Application Exists (0.8ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2 [["client_id", "123"], ["LIMIT", 1]]
62833
+ Application Exists (0.7ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2 [["client_secret", "456"], ["LIMIT", 1]]
62834
+ Application Create (0.8ms) INSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:48:02.443970"], ["updated_at", "2019-07-17 03:48:02.443970"], ["host", "example.test"], ["client_id", "123"], ["client_secret", "456"]]
62835
+  (0.7ms) RELEASE SAVEPOINT active_record_1
62836
+ Application Load (0.9ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "example.test"], ["LIMIT", 1]]
62837
+  (2.0ms) SAVEPOINT active_record_1
62838
+ MultiApplicationsAccount Exists (1.5ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."id" != $2 AND "multi_applications_accounts"."host" = $3 LIMIT $4 [["synced_id", 123], ["id", 2202], ["host", "example.test"], ["LIMIT", 1]]
62839
+ MultiApplicationsAccount Update (1.3ms) UPDATE "multi_applications_accounts" SET "updated_at" = $1, "oauth_access_token" = $2, "oauth_expires_at" = $3 WHERE "multi_applications_accounts"."id" = $4 [["updated_at", "2019-07-17 03:48:02.462146"], ["oauth_access_token", "refreshed_token"], ["oauth_expires_at", nil], ["id", 2202]]
62840
+  (1.2ms) RELEASE SAVEPOINT active_record_1
62841
+  (1.4ms) ROLLBACK
62842
+  (0.9ms) BEGIN
62843
+  (0.7ms) SAVEPOINT active_record_1
62844
+ MultiApplicationsAccount Exists (1.2ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 123], ["host", "example.test"], ["LIMIT", 1]]
62845
+ MultiApplicationsAccount Create (0.9ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "host") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2019-07-17 03:48:02.472314"], ["updated_at", "2019-07-17 03:48:02.472314"], ["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1563421682"], ["host", "example.test"]]
62846
+  (0.7ms) RELEASE SAVEPOINT active_record_1
62847
+  (0.8ms) SAVEPOINT active_record_1
62848
+ Application Exists (0.8ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "example.test"], ["LIMIT", 1]]
62849
+ Application Exists (0.8ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2 [["client_id", "123"], ["LIMIT", 1]]
62850
+ Application Exists (0.9ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2 [["client_secret", "456"], ["LIMIT", 1]]
62851
+ Application Create (0.9ms) INSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:48:02.479134"], ["updated_at", "2019-07-17 03:48:02.479134"], ["host", "example.test"], ["client_id", "123"], ["client_secret", "456"]]
62852
+  (0.6ms) RELEASE SAVEPOINT active_record_1
62853
+ Application Load (0.6ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "example.test"], ["LIMIT", 1]]
62854
+  (0.6ms) ROLLBACK
62855
+  (0.7ms) BEGIN
62856
+  (0.7ms) SAVEPOINT active_record_1
62857
+ MultiApplicationsAccount Exists (0.9ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" IS NULL AND "multi_applications_accounts"."host" = $1 LIMIT $2 [["host", "example.test"], ["LIMIT", 1]]
62858
+ MultiApplicationsAccount Create (0.8ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "host") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2019-07-17 03:48:02.487399"], ["updated_at", "2019-07-17 03:48:02.487399"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh"], ["oauth_expires_at", "expires"], ["host", "example.test"]]
62859
+  (0.6ms) RELEASE SAVEPOINT active_record_1
62860
+  (0.7ms) ROLLBACK
62861
+  (0.6ms) BEGIN
62862
+  (0.6ms) SAVEPOINT active_record_1
62863
+ MultiApplicationsAccount Exists (1.2ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 123], ["host", "example.test"], ["LIMIT", 1]]
62864
+ MultiApplicationsAccount Create (1.1ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:48:02.495708"], ["updated_at", "2019-07-17 03:48:02.495708"], ["provider", "bookingsync"], ["synced_id", 123], ["host", "example.test"]]
62865
+  (0.8ms) RELEASE SAVEPOINT active_record_1
62866
+ MultiApplicationsAccount Load (0.7ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" ORDER BY "multi_applications_accounts"."id" ASC LIMIT $1 [["LIMIT", 1]]
62867
+ MultiApplicationsAccount Exists (1.0ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 123], ["host", "example.test"], ["LIMIT", 1]]
62868
+ MultiApplicationsAccount Load (0.8ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts"
62869
+ MultiApplicationsAccount Exists (0.9ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 123], ["host", "example.tesu"], ["LIMIT", 1]]
62870
+  (0.8ms) ROLLBACK
62871
+  (0.8ms) BEGIN
62872
+  (0.7ms) ROLLBACK
62873
+  (1.1ms) BEGIN
62874
+  (0.8ms) ROLLBACK
62875
+  (0.9ms) BEGIN
62876
+  (1.0ms) ROLLBACK
62877
+  (0.8ms) BEGIN
62878
+  (0.6ms) ROLLBACK
62879
+  (0.6ms) BEGIN
62880
+ Processing by SessionsController#failure as HTML
62881
+ Rendering /Users/marc/Projects/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application
62882
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
62883
+ Rendered /Users/marc/Projects/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.2ms)
62884
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
62885
+ Completed 200 OK in 7ms (Views: 3.8ms | ActiveRecord: 0.0ms)
62886
+  (1.0ms) ROLLBACK
62887
+  (0.9ms) BEGIN
62888
+ Processing by SessionsController#failure as HTML
62889
+ Rendering /Users/marc/Projects/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application
62890
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
62891
+ Rendered /Users/marc/Projects/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.2ms)
62892
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
62893
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
62894
+  (0.9ms) ROLLBACK
62895
+  (0.9ms) BEGIN
62896
+ Processing by SessionsController#create as HTML
62897
+ Parameters: {"provider"=>"bookingsync"}
62898
+ Account Load (1.4ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3 [["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
62899
+  (0.8ms) SAVEPOINT active_record_1
62900
+ Account Exists (1.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 123], ["LIMIT", 1]]
62901
+ Account Create (1.1ms) INSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["created_at", "2019-07-17 03:48:02.552027"], ["updated_at", "2019-07-17 03:48:02.552027"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
62902
+  (0.8ms) RELEASE SAVEPOINT active_record_1
62903
+ Redirected to http://test.host/admin
62904
+ Completed 302 Found in 10ms (ActiveRecord: 5.1ms)
62905
+  (1.0ms) ROLLBACK
62906
+  (0.7ms) BEGIN
62907
+ Processing by SessionsController#create as HTML
62908
+ Parameters: {"provider"=>"bookingsync"}
62909
+ Account Load (1.4ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3 [["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
62910
+  (0.7ms) SAVEPOINT active_record_1
62911
+ Account Exists (0.8ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 123], ["LIMIT", 1]]
62912
+ Account Create (1.0ms) INSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["created_at", "2019-07-17 03:48:02.567729"], ["updated_at", "2019-07-17 03:48:02.567729"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
62913
+  (0.8ms) RELEASE SAVEPOINT active_record_1
62914
+ Redirected to http://test.host/
62915
+ Completed 302 Found in 8ms (ActiveRecord: 4.7ms)
62916
+  (0.8ms) ROLLBACK
62917
+  (0.6ms) BEGIN
62918
+  (1.0ms) SELECT COUNT(*) FROM "multi_applications_accounts"
62919
+ Processing by SessionsController#create as HTML
62920
+ Parameters: {"provider"=>"bookingsync"}
62921
+ MultiApplicationsAccount Load (1.0ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."host" = $1 AND "multi_applications_accounts"."synced_id" = $2 AND "multi_applications_accounts"."provider" = $3 LIMIT $4 [["host", "test.host"], ["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
62922
+  (1.3ms) SAVEPOINT active_record_1
62923
+ MultiApplicationsAccount Exists (1.3ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 123], ["host", "test.host"], ["LIMIT", 1]]
62924
+ MultiApplicationsAccount Create (1.0ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "host") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["created_at", "2019-07-17 03:48:02.582224"], ["updated_at", "2019-07-17 03:48:02.582224"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["host", "test.host"]]
62925
+  (0.9ms) RELEASE SAVEPOINT active_record_1
62926
+ Redirected to http://test.host/
62927
+ Completed 302 Found in 8ms (ActiveRecord: 5.5ms)
62928
+  (1.2ms) SELECT COUNT(*) FROM "multi_applications_accounts"
62929
+ MultiApplicationsAccount Load (1.1ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" ORDER BY "multi_applications_accounts"."id" DESC LIMIT $1 [["LIMIT", 1]]
62930
+ MultiApplicationsAccount Load (0.9ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" ORDER BY "multi_applications_accounts"."id" DESC LIMIT $1 [["LIMIT", 1]]
62931
+  (1.1ms) ROLLBACK
62932
+  (0.9ms) BEGIN
62933
+  (1.5ms) SELECT COUNT(*) FROM "accounts"
62934
+ Processing by SessionsController#create as HTML
62935
+ Parameters: {"provider"=>"bookingsync"}
62936
+ Account Load (1.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3 [["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
62937
+  (0.9ms) SAVEPOINT active_record_1
62938
+ Account Exists (1.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 123], ["LIMIT", 1]]
62939
+ Account Create (1.1ms) INSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["created_at", "2019-07-17 03:48:02.603315"], ["updated_at", "2019-07-17 03:48:02.603315"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
62940
+  (0.8ms) RELEASE SAVEPOINT active_record_1
62941
+ Redirected to http://test.host/
62942
+ Completed 302 Found in 8ms (ActiveRecord: 5.1ms)
62943
+  (1.0ms) SELECT COUNT(*) FROM "accounts"
62944
+ Account Load (0.9ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" DESC LIMIT $1 [["LIMIT", 1]]
62945
+  (0.8ms) ROLLBACK
62946
+  (0.7ms) BEGIN
62947
+ Processing by SessionsController#destroy as HTML
62948
+ Redirected to http://test.host/
62949
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
62950
+  (0.7ms) ROLLBACK
62951
+  (1.1ms) BEGIN
62952
+ Processing by SessionsController#destroy as HTML
62953
+ Redirected to http://test.host/signed_out
62954
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
62955
+  (0.6ms) ROLLBACK
62956
+  (0.6ms) BEGIN
62957
+ Processing by AuthenticatedController#index as JS
62958
+ Rendering text template
62959
+ Rendered text template (0.0ms)
62960
+ Filter chain halted as :authenticate_account! rendered or redirected
62961
+ Completed 401 Unauthorized in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
62962
+  (1.2ms) ROLLBACK
62963
+  (0.8ms) BEGIN
62964
+ Processing by AuthenticatedController#index as JS
62965
+ Rendering text template
62966
+ Rendered text template (0.0ms)
62967
+ Filter chain halted as :authenticate_account! rendered or redirected
62968
+ Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
62969
+  (0.9ms) ROLLBACK
62970
+  (0.8ms) BEGIN
62971
+ Processing by AuthenticatedController#index as HTML
62972
+ Rendering html template
62973
+ Rendered html template (0.0ms)
62974
+ Filter chain halted as :authenticate_account! rendered or redirected
62975
+ Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
62976
+  (0.8ms) ROLLBACK
62977
+  (0.8ms) BEGIN
62978
+ Processing by AuthenticatedController#index as HTML
62979
+ Redirected to http://test.host/auth/bookingsync/?account_id=
62980
+ Filter chain halted as :authenticate_account! rendered or redirected
62981
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
62982
+  (1.3ms) ROLLBACK
62983
+  (0.8ms) BEGIN
62984
+  (0.7ms) SAVEPOINT active_record_1
62985
+ Account Exists (1.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 123], ["LIMIT", 1]]
62986
+ Account Create (0.8ms) INSERT INTO "accounts" ("created_at", "updated_at", "synced_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2019-07-17 03:48:02.650536"], ["updated_at", "2019-07-17 03:48:02.650536"], ["synced_id", 123]]
62987
+  (0.7ms) RELEASE SAVEPOINT active_record_1
62988
+  (0.8ms) ROLLBACK
62989
+  (0.7ms) BEGIN
62990
+ Account Load (0.8ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT $1 [["LIMIT", 1]]
62991
+  (1.6ms) SAVEPOINT active_record_1
62992
+ Account Create (1.2ms) INSERT INTO "accounts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2019-07-17 03:48:02.663717"], ["updated_at", "2019-07-17 03:48:02.663717"]]
62993
+  (0.8ms) RELEASE SAVEPOINT active_record_1
62994
+  (0.8ms) SAVEPOINT active_record_1
62995
+ Account Update (0.9ms) UPDATE "accounts" SET "updated_at" = $1, "synced_id" = $2 WHERE "accounts"."id" = $3 [["updated_at", "2019-07-17 03:48:02.667733"], ["synced_id", 0], ["id", 1990]]
62996
+  (0.8ms) RELEASE SAVEPOINT active_record_1
62997
+ Account Exists (1.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 0], ["LIMIT", 1]]
62998
+  (1.0ms) ROLLBACK
62999
+  (0.8ms) BEGIN
63000
+  (0.7ms) SAVEPOINT active_record_1
63001
+ Account Exists (1.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" IS NULL LIMIT $1 [["LIMIT", 1]]
63002
+ Account Create (1.1ms) INSERT INTO "accounts" ("created_at", "updated_at", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:48:02.680145"], ["updated_at", "2019-07-17 03:48:02.680145"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh"], ["oauth_expires_at", "expires"]]
63003
+  (0.8ms) RELEASE SAVEPOINT active_record_1
63004
+ Account Load (0.8ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT $2 [["id", 1991], ["LIMIT", 1]]
63005
+  (0.7ms) SAVEPOINT active_record_1
63006
+ Account Exists (1.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" IS NULL AND "accounts"."id" != $1 LIMIT $2 [["id", 1991], ["LIMIT", 1]]
63007
+ Account Update (0.9ms) UPDATE "accounts" SET "oauth_access_token" = $1, "oauth_refresh_token" = $2, "oauth_expires_at" = $3, "updated_at" = $4 WHERE "accounts"."id" = $5 [["oauth_access_token", nil], ["oauth_refresh_token", nil], ["oauth_expires_at", nil], ["updated_at", "2019-07-17 03:48:02.687575"], ["id", 1991]]
63008
+  (0.7ms) RELEASE SAVEPOINT active_record_1
63009
+ Account Load (0.9ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT $2 [["id", 1991], ["LIMIT", 1]]
63010
+  (0.9ms) ROLLBACK
63011
+  (0.8ms) BEGIN
63012
+  (1.1ms) SAVEPOINT active_record_1
63013
+ Account Exists (1.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 1], ["LIMIT", 1]]
63014
+ Account Create (1.0ms) INSERT INTO "accounts" ("created_at", "updated_at", "synced_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2019-07-17 03:48:02.698221"], ["updated_at", "2019-07-17 03:48:02.698221"], ["synced_id", 1]]
63015
+  (0.7ms) RELEASE SAVEPOINT active_record_1
63016
+  (0.7ms) SAVEPOINT active_record_1
63017
+ Account Exists (1.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 2], ["LIMIT", 1]]
63018
+ Account Create (1.1ms) INSERT INTO "accounts" ("created_at", "updated_at", "synced_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2019-07-17 03:48:02.702971"], ["updated_at", "2019-07-17 03:48:02.702971"], ["synced_id", 2]]
63019
+  (0.7ms) RELEASE SAVEPOINT active_record_1
63020
+  (0.6ms) SAVEPOINT active_record_1
63021
+ Account Exists (0.8ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 3], ["LIMIT", 1]]
63022
+ Account Create (1.0ms) INSERT INTO "accounts" ("created_at", "updated_at", "synced_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2019-07-17 03:48:02.707408"], ["updated_at", "2019-07-17 03:48:02.707408"], ["synced_id", 3]]
63023
+  (0.6ms) RELEASE SAVEPOINT active_record_1
63024
+ Account Load (0.8ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 3], ["LIMIT", 1]]
63025
+  (0.6ms) ROLLBACK
63026
+  (0.6ms) BEGIN
63027
+  (0.6ms) SAVEPOINT active_record_1
63028
+ Account Exists (0.8ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 123], ["LIMIT", 1]]
63029
+ Account Create (0.8ms) INSERT INTO "accounts" ("created_at", "updated_at", "synced_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2019-07-17 03:48:02.715743"], ["updated_at", "2019-07-17 03:48:02.715743"], ["synced_id", 123]]
63030
+  (0.6ms) RELEASE SAVEPOINT active_record_1
63031
+  (0.6ms) ROLLBACK
63032
+  (0.7ms) BEGIN
63033
+  (0.7ms) SAVEPOINT active_record_1
63034
+ Account Exists (0.8ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 456], ["LIMIT", 1]]
63035
+ Account Create (0.8ms) INSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-07-17 03:48:02.723076"], ["updated_at", "2019-07-17 03:48:02.723076"], ["provider", "bookingsync"], ["synced_id", 456]]
63036
+  (0.7ms) RELEASE SAVEPOINT active_record_1
63037
+  (0.7ms) SELECT COUNT(*) FROM "accounts"
63038
+ Account Load (0.8ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3 [["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
63039
+  (0.7ms) SAVEPOINT active_record_1
63040
+ Account Exists (0.8ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 123], ["LIMIT", 1]]
63041
+ Account Create (0.8ms) INSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["created_at", "2019-07-17 03:48:02.729623"], ["updated_at", "2019-07-17 03:48:02.729623"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
63042
+  (0.6ms) RELEASE SAVEPOINT active_record_1
63043
+  (0.6ms) SELECT COUNT(*) FROM "accounts"
63044
+  (0.5ms) ROLLBACK
63045
+  (0.6ms) BEGIN
63046
+  (0.6ms) SAVEPOINT active_record_1
63047
+ Account Exists (0.7ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 456], ["LIMIT", 1]]
63048
+ Account Create (0.7ms) INSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-07-17 03:48:02.736663"], ["updated_at", "2019-07-17 03:48:02.736663"], ["provider", "bookingsync"], ["synced_id", 456]]
63049
+  (0.6ms) RELEASE SAVEPOINT active_record_1
63050
+ Account Load (0.7ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3 [["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
63051
+  (0.6ms) SAVEPOINT active_record_1
63052
+ Account Exists (0.9ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 123], ["LIMIT", 1]]
63053
+ Account Create (1.0ms) INSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["created_at", "2019-07-17 03:48:02.741456"], ["updated_at", "2019-07-17 03:48:02.741456"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
63054
+  (0.7ms) RELEASE SAVEPOINT active_record_1
63055
+  (0.9ms) ROLLBACK
63056
+  (0.7ms) BEGIN
63057
+  (0.6ms) SAVEPOINT active_record_1
63058
+ Account Exists (0.8ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 456], ["LIMIT", 1]]
63059
+ Account Create (0.9ms) INSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-07-17 03:48:02.749882"], ["updated_at", "2019-07-17 03:48:02.749882"], ["provider", "bookingsync"], ["synced_id", 456]]
63060
+  (0.6ms) RELEASE SAVEPOINT active_record_1
63061
+ Account Load (0.7ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3 [["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
63062
+  (0.7ms) SAVEPOINT active_record_1
63063
+ Account Exists (0.8ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 123], ["LIMIT", 1]]
63064
+ Account Create (0.8ms) INSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["created_at", "2019-07-17 03:48:02.755147"], ["updated_at", "2019-07-17 03:48:02.755147"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
63065
+  (0.6ms) RELEASE SAVEPOINT active_record_1
63066
+  (0.7ms) ROLLBACK
63067
+  (0.6ms) BEGIN
63068
+  (0.6ms) SAVEPOINT active_record_1
63069
+ Account Exists (1.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 456], ["LIMIT", 1]]
63070
+ Account Create (1.0ms) INSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-07-17 03:48:02.762731"], ["updated_at", "2019-07-17 03:48:02.762731"], ["provider", "bookingsync"], ["synced_id", 456]]
63071
+  (0.6ms) RELEASE SAVEPOINT active_record_1
63072
+ Account Load (0.6ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3 [["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
63073
+  (0.6ms) SAVEPOINT active_record_1
63074
+ Account Exists (0.7ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 123], ["LIMIT", 1]]
63075
+ Account Create (0.7ms) INSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["created_at", "2019-07-17 03:48:02.768429"], ["updated_at", "2019-07-17 03:48:02.768429"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
63076
+  (0.6ms) RELEASE SAVEPOINT active_record_1
63077
+  (0.8ms) ROLLBACK
63078
+  (0.6ms) BEGIN
63079
+  (0.6ms) SAVEPOINT active_record_1
63080
+ Account Exists (0.9ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 456], ["LIMIT", 1]]
63081
+ Account Create (0.9ms) INSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-07-17 03:48:02.775561"], ["updated_at", "2019-07-17 03:48:02.775561"], ["provider", "bookingsync"], ["synced_id", 456]]
63082
+  (0.6ms) RELEASE SAVEPOINT active_record_1
63083
+  (0.7ms) SAVEPOINT active_record_1
63084
+ Account Exists (1.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 123], ["LIMIT", 1]]
63085
+ Account Create (0.9ms) INSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-07-17 03:48:02.780478"], ["updated_at", "2019-07-17 03:48:02.780478"], ["provider", "bookingsync"], ["synced_id", 123]]
63086
+  (0.6ms) RELEASE SAVEPOINT active_record_1
63087
+ Account Load (0.7ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3 [["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
63088
+  (0.6ms) SAVEPOINT active_record_1
63089
+ Account Exists (0.8ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."id" != $2 LIMIT $3 [["synced_id", 123], ["id", 2005], ["LIMIT", 1]]
63090
+ Account Update (0.9ms) UPDATE "accounts" SET "name" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4, "updated_at" = $5 WHERE "accounts"."id" = $6 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", "2019-07-17 03:48:02.785923"], ["id", 2005]]
63091
+  (0.7ms) RELEASE SAVEPOINT active_record_1
63092
+ Account Load (0.7ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT $2 [["id", 2005], ["LIMIT", 1]]
63093
+  (0.6ms) ROLLBACK
63094
+  (0.6ms) BEGIN
63095
+  (0.7ms) SAVEPOINT active_record_1
63096
+ Account Exists (0.9ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 456], ["LIMIT", 1]]
63097
+ Account Create (1.1ms) INSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-07-17 03:48:02.794438"], ["updated_at", "2019-07-17 03:48:02.794438"], ["provider", "bookingsync"], ["synced_id", 456]]
63098
+  (0.8ms) RELEASE SAVEPOINT active_record_1
63099
+  (0.6ms) SAVEPOINT active_record_1
63100
+ Account Exists (0.8ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 123], ["LIMIT", 1]]
63101
+ Account Create (0.8ms) INSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-07-17 03:48:02.799345"], ["updated_at", "2019-07-17 03:48:02.799345"], ["provider", "bookingsync"], ["synced_id", 123]]
63102
+  (0.6ms) RELEASE SAVEPOINT active_record_1
63103
+ Account Load (0.6ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3 [["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
63104
+  (0.5ms) SAVEPOINT active_record_1
63105
+ Account Exists (0.9ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."id" != $2 LIMIT $3 [["synced_id", 123], ["id", 2007], ["LIMIT", 1]]
63106
+ Account Update (0.8ms) UPDATE "accounts" SET "name" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4, "updated_at" = $5 WHERE "accounts"."id" = $6 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", "2019-07-17 03:48:02.804445"], ["id", 2007]]
63107
+  (0.5ms) RELEASE SAVEPOINT active_record_1
63108
+ Account Load (0.7ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT $2 [["id", 2007], ["LIMIT", 1]]
63109
+  (0.7ms) ROLLBACK
63110
+  (0.6ms) BEGIN
63111
+  (0.7ms) SAVEPOINT active_record_1
63112
+ Account Exists (1.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 456], ["LIMIT", 1]]
63113
+ Account Create (1.2ms) INSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-07-17 03:48:02.813393"], ["updated_at", "2019-07-17 03:48:02.813393"], ["provider", "bookingsync"], ["synced_id", 456]]
63114
+  (1.4ms) RELEASE SAVEPOINT active_record_1
63115
+  (0.8ms) SAVEPOINT active_record_1
63116
+ Account Exists (1.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 123], ["LIMIT", 1]]
63117
+ Account Create (1.2ms) INSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-07-17 03:48:02.819665"], ["updated_at", "2019-07-17 03:48:02.819665"], ["provider", "bookingsync"], ["synced_id", 123]]
63118
+  (0.9ms) RELEASE SAVEPOINT active_record_1
63119
+ Account Load (1.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3 [["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
63120
+  (0.9ms) SAVEPOINT active_record_1
63121
+ Account Exists (1.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."id" != $2 LIMIT $3 [["synced_id", 123], ["id", 2009], ["LIMIT", 1]]
63122
+ Account Update (1.0ms) UPDATE "accounts" SET "name" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4, "updated_at" = $5 WHERE "accounts"."id" = $6 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", "2019-07-17 03:48:02.826815"], ["id", 2009]]
63123
+  (0.7ms) RELEASE SAVEPOINT active_record_1
63124
+  (0.8ms) ROLLBACK
63125
+  (0.8ms) BEGIN
63126
+  (0.6ms) SAVEPOINT active_record_1
63127
+ Account Exists (0.8ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 456], ["LIMIT", 1]]
63128
+ Account Create (1.0ms) INSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-07-17 03:48:02.834968"], ["updated_at", "2019-07-17 03:48:02.834968"], ["provider", "bookingsync"], ["synced_id", 456]]
63129
+  (0.7ms) RELEASE SAVEPOINT active_record_1
63130
+  (0.7ms) SAVEPOINT active_record_1
63131
+ Account Exists (0.8ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 123], ["LIMIT", 1]]
63132
+ Account Create (0.8ms) INSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-07-17 03:48:02.839530"], ["updated_at", "2019-07-17 03:48:02.839530"], ["provider", "bookingsync"], ["synced_id", 123]]
63133
+  (0.7ms) RELEASE SAVEPOINT active_record_1
63134
+ Account Load (0.7ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3 [["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
63135
+  (0.6ms) SAVEPOINT active_record_1
63136
+ Account Exists (0.9ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."id" != $2 LIMIT $3 [["synced_id", 123], ["id", 2011], ["LIMIT", 1]]
63137
+ Account Update (1.0ms) UPDATE "accounts" SET "name" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4, "updated_at" = $5 WHERE "accounts"."id" = $6 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", "2019-07-17 03:48:02.844975"], ["id", 2011]]
63138
+  (0.6ms) RELEASE SAVEPOINT active_record_1
63139
+  (0.6ms) ROLLBACK
63140
+  (0.6ms) BEGIN
63141
+  (0.7ms) SAVEPOINT active_record_1
63142
+ Account Exists (0.7ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" IS NULL LIMIT $1 [["LIMIT", 1]]
63143
+ Account Create (0.7ms) INSERT INTO "accounts" ("created_at", "updated_at", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:48:02.852037"], ["updated_at", "2019-07-17 03:48:02.852037"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh"], ["oauth_expires_at", "expires"]]
63144
+  (0.6ms) RELEASE SAVEPOINT active_record_1
63145
+  (0.6ms) ROLLBACK
63146
+  (0.6ms) BEGIN
63147
+  (0.6ms) SAVEPOINT active_record_1
63148
+ Account Exists (0.9ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 123], ["LIMIT", 1]]
63149
+ Account Create (0.8ms) INSERT INTO "accounts" ("created_at", "updated_at", "synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2019-07-17 03:48:02.858781"], ["updated_at", "2019-07-17 03:48:02.858781"], ["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1563248882"]]
63150
+  (0.8ms) RELEASE SAVEPOINT active_record_1
63151
+  (0.9ms) SAVEPOINT active_record_1
63152
+ Account Exists (1.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."id" != $2 LIMIT $3 [["synced_id", 123], ["id", 2013], ["LIMIT", 1]]
63153
+ Account Update (0.9ms) UPDATE "accounts" SET "updated_at" = $1, "oauth_access_token" = $2, "oauth_expires_at" = $3 WHERE "accounts"."id" = $4 [["updated_at", "2019-07-17 03:48:02.875117"], ["oauth_access_token", "refreshed_token"], ["oauth_expires_at", nil], ["id", 2013]]
63154
+  (0.7ms) RELEASE SAVEPOINT active_record_1
63155
+  (0.7ms) ROLLBACK
63156
+  (0.7ms) BEGIN
63157
+  (0.7ms) SAVEPOINT active_record_1
63158
+ Account Exists (0.8ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 123], ["LIMIT", 1]]
63159
+ Account Create (0.8ms) INSERT INTO "accounts" ("created_at", "updated_at", "synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2019-07-17 03:48:02.882607"], ["updated_at", "2019-07-17 03:48:02.882607"], ["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1563421682"]]
63160
+  (0.6ms) RELEASE SAVEPOINT active_record_1
63161
+  (0.7ms) ROLLBACK
63162
+  (0.6ms) BEGIN
63163
+  (0.7ms) ROLLBACK
63164
+  (0.6ms) BEGIN
63165
+  (0.6ms) SAVEPOINT active_record_1
63166
+ Account Exists (0.8ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 123], ["LIMIT", 1]]
63167
+ Account Create (0.8ms) INSERT INTO "accounts" ("created_at", "updated_at", "synced_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2019-07-17 03:48:02.892491"], ["updated_at", "2019-07-17 03:48:02.892491"], ["synced_id", 123]]
63168
+  (0.7ms) RELEASE SAVEPOINT active_record_1
63169
+  (1.0ms) ROLLBACK
63170
+  (0.9ms) BEGIN
63171
+  (0.7ms) ROLLBACK
63172
+  (0.7ms) BEGIN
63173
+  (0.8ms) ROLLBACK
63174
+  (0.7ms) BEGIN
63175
+  (0.7ms) ROLLBACK
63176
+  (0.6ms) BEGIN
63177
+  (1.0ms) ROLLBACK
63178
+  (0.8ms) BEGIN
63179
+  (0.8ms) ROLLBACK
63180
+  (0.5ms) BEGIN
63181
+  (0.9ms) SAVEPOINT active_record_1
63182
+ MultiApplicationsAccount Exists (1.6ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 123], ["host", "example.host"], ["LIMIT", 1]]
63183
+ MultiApplicationsAccount Create (1.4ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "synced_id", "host") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-07-17 03:58:16.450982"], ["updated_at", "2019-07-17 03:58:16.450982"], ["synced_id", 123], ["host", "example.host"]]
63184
+  (0.9ms) RELEASE SAVEPOINT active_record_1
63185
+  (0.9ms) SAVEPOINT active_record_1
63186
+ MultiApplicationsAccount Exists (1.1ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 123], ["host", "test.host"], ["LIMIT", 1]]
63187
+ MultiApplicationsAccount Create (0.9ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "synced_id", "host") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-07-17 03:58:16.457318"], ["updated_at", "2019-07-17 03:58:16.457318"], ["synced_id", 123], ["host", "test.host"]]
63188
+  (0.7ms) RELEASE SAVEPOINT active_record_1
63189
+ MultiApplicationsAccount Load (0.9ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."host" = $1 AND "multi_applications_accounts"."synced_id" = $2 LIMIT $3 [["host", "test.host"], ["synced_id", 123], ["LIMIT", 1]]
63190
+  (1.0ms) ROLLBACK
63191
+  (0.8ms) BEGIN
63192
+  (0.8ms) SAVEPOINT active_record_1
63193
+ Account Exists (1.8ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 123], ["LIMIT", 1]]
63194
+ Account Create (2.3ms) INSERT INTO "accounts" ("created_at", "updated_at", "synced_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2019-07-17 03:58:16.486197"], ["updated_at", "2019-07-17 03:58:16.486197"], ["synced_id", 123]]
63195
+  (1.2ms) RELEASE SAVEPOINT active_record_1
63196
+ Account Load (1.3ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 123], ["LIMIT", 1]]
63197
+  (2.8ms) ROLLBACK
63198
+  (0.9ms) BEGIN
63199
+  (0.8ms) ROLLBACK
63200
+  (1.0ms) BEGIN
63201
+  (2.0ms) SAVEPOINT active_record_1
63202
+ Application Exists (1.4ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "test.host"], ["LIMIT", 1]]
63203
+ Application Exists (0.9ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2 [["client_id", "abc"], ["LIMIT", 1]]
63204
+ Application Exists (1.1ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2 [["client_secret", "def"], ["LIMIT", 1]]
63205
+ Application Create (1.0ms) INSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:58:16.533891"], ["updated_at", "2019-07-17 03:58:16.533891"], ["host", "test.host"], ["client_id", "abc"], ["client_secret", "def"]]
63206
+  (0.9ms) RELEASE SAVEPOINT active_record_1
63207
+ Application Exists (1.4ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" IS NULL LIMIT $1 [["LIMIT", 1]]
63208
+ Application Exists (1.0ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" IS NULL LIMIT $1 [["LIMIT", 1]]
63209
+ Application Exists (0.9ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" IS NULL LIMIT $1 [["LIMIT", 1]]
63210
+  (1.1ms) ROLLBACK
63211
+  (0.7ms) BEGIN
63212
+  (0.8ms) SAVEPOINT active_record_1
63213
+ Application Exists (1.0ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "test.host"], ["LIMIT", 1]]
63214
+ Application Exists (0.9ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2 [["client_id", "abc"], ["LIMIT", 1]]
63215
+ Application Exists (1.0ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2 [["client_secret", "def"], ["LIMIT", 1]]
63216
+ Application Create (1.0ms) INSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:58:16.564207"], ["updated_at", "2019-07-17 03:58:16.564207"], ["host", "test.host"], ["client_id", "abc"], ["client_secret", "def"]]
63217
+  (1.0ms) RELEASE SAVEPOINT active_record_1
63218
+ Application Load (1.0ms) SELECT "applications".* FROM "applications" ORDER BY "applications"."id" ASC LIMIT $1 [["LIMIT", 1]]
63219
+ Application Exists (1.3ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "test.host"], ["LIMIT", 1]]
63220
+ Application Exists (1.4ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2 [["client_id", "abc"], ["LIMIT", 1]]
63221
+ Application Exists (1.2ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2 [["client_secret", "def"], ["LIMIT", 1]]
63222
+ Application Exists (1.3ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "test.host"], ["LIMIT", 1]]
63223
+ Application Exists (1.5ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2 [["client_id", "ABC"], ["LIMIT", 1]]
63224
+ Application Exists (1.2ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2 [["client_secret", "def"], ["LIMIT", 1]]
63225
+  (1.2ms) ROLLBACK
63226
+  (0.9ms) BEGIN
63227
+  (0.7ms) SAVEPOINT active_record_1
63228
+ Application Exists (1.1ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "test.host"], ["LIMIT", 1]]
63229
+ Application Exists (1.1ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2 [["client_id", "abc"], ["LIMIT", 1]]
63230
+ Application Exists (1.0ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2 [["client_secret", "def"], ["LIMIT", 1]]
63231
+ Application Create (1.2ms) INSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:58:16.602734"], ["updated_at", "2019-07-17 03:58:16.602734"], ["host", "test.host"], ["client_id", "abc"], ["client_secret", "def"]]
63232
+  (0.9ms) RELEASE SAVEPOINT active_record_1
63233
+ Application Exists (1.2ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" IS NULL LIMIT $1 [["LIMIT", 1]]
63234
+ Application Exists (1.2ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" IS NULL LIMIT $1 [["LIMIT", 1]]
63235
+ Application Exists (0.9ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" IS NULL LIMIT $1 [["LIMIT", 1]]
63236
+  (1.0ms) ROLLBACK
63237
+  (0.9ms) BEGIN
63238
+  (0.8ms) SAVEPOINT active_record_1
63239
+ Application Exists (0.9ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "test.host"], ["LIMIT", 1]]
63240
+ Application Exists (0.8ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2 [["client_id", "abc"], ["LIMIT", 1]]
63241
+ Application Exists (0.8ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2 [["client_secret", "def"], ["LIMIT", 1]]
63242
+ Application Create (1.0ms) INSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:58:16.624636"], ["updated_at", "2019-07-17 03:58:16.624636"], ["host", "test.host"], ["client_id", "abc"], ["client_secret", "def"]]
63243
+  (0.7ms) RELEASE SAVEPOINT active_record_1
63244
+ Application Exists (0.8ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" IS NULL LIMIT $1 [["LIMIT", 1]]
63245
+ Application Exists (0.9ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" IS NULL LIMIT $1 [["LIMIT", 1]]
63246
+ Application Exists (1.6ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" IS NULL LIMIT $1 [["LIMIT", 1]]
63247
+  (1.6ms) ROLLBACK
63248
+  (1.1ms) BEGIN
63249
+  (1.2ms) SAVEPOINT active_record_1
63250
+ Application Exists (1.7ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "test.host"], ["LIMIT", 1]]
63251
+ Application Exists (2.4ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2 [["client_id", "abc"], ["LIMIT", 1]]
63252
+ Application Exists (2.2ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2 [["client_secret", "def"], ["LIMIT", 1]]
63253
+ Application Create (1.6ms) INSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:58:16.664019"], ["updated_at", "2019-07-17 03:58:16.664019"], ["host", "test.host"], ["client_id", "abc"], ["client_secret", "def"]]
63254
+  (1.1ms) RELEASE SAVEPOINT active_record_1
63255
+ Application Load (1.3ms) SELECT "applications".* FROM "applications" ORDER BY "applications"."id" ASC LIMIT $1 [["LIMIT", 1]]
63256
+ Application Exists (1.4ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "test.host"], ["LIMIT", 1]]
63257
+ Application Exists (1.3ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2 [["client_id", "abc"], ["LIMIT", 1]]
63258
+ Application Exists (1.8ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2 [["client_secret", "def"], ["LIMIT", 1]]
63259
+ Application Exists (1.5ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "TEST.HOST"], ["LIMIT", 1]]
63260
+ Application Exists (1.2ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2 [["client_id", "abc"], ["LIMIT", 1]]
63261
+ Application Exists (1.8ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2 [["client_secret", "def"], ["LIMIT", 1]]
63262
+  (1.4ms) ROLLBACK
63263
+  (1.3ms) BEGIN
63264
+  (1.4ms) SAVEPOINT active_record_1
63265
+ Application Exists (1.7ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "test.host"], ["LIMIT", 1]]
63266
+ Application Exists (1.8ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2 [["client_id", "abc"], ["LIMIT", 1]]
63267
+ Application Exists (1.4ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2 [["client_secret", "def"], ["LIMIT", 1]]
63268
+ Application Create (1.4ms) INSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:58:16.702264"], ["updated_at", "2019-07-17 03:58:16.702264"], ["host", "test.host"], ["client_id", "abc"], ["client_secret", "def"]]
63269
+  (1.1ms) RELEASE SAVEPOINT active_record_1
63270
+ Application Load (1.2ms) SELECT "applications".* FROM "applications" ORDER BY "applications"."id" ASC LIMIT $1 [["LIMIT", 1]]
63271
+ Application Exists (1.4ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "test.host"], ["LIMIT", 1]]
63272
+ Application Exists (1.3ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2 [["client_id", "abc"], ["LIMIT", 1]]
63273
+ Application Exists (1.2ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2 [["client_secret", "def"], ["LIMIT", 1]]
63274
+ Application Exists (1.3ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "test.host"], ["LIMIT", 1]]
63275
+ Application Exists (1.7ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2 [["client_id", "abc"], ["LIMIT", 1]]
63276
+ Application Exists (1.1ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2 [["client_secret", "DEF"], ["LIMIT", 1]]
63277
+  (0.9ms) ROLLBACK
63278
+  (1.0ms) BEGIN
63279
+ Processing by SessionsController#create as HTML
63280
+ Parameters: {"provider"=>"bookingsync"}
63281
+ Account Load (0.9ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3 [["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
63282
+  (1.0ms) SAVEPOINT active_record_1
63283
+ Account Exists (1.3ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 123], ["LIMIT", 1]]
63284
+ Account Create (1.5ms) INSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["created_at", "2019-07-17 03:58:16.736665"], ["updated_at", "2019-07-17 03:58:16.736665"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
63285
+  (1.2ms) RELEASE SAVEPOINT active_record_1
63286
+ Redirected to http://test.host/
63287
+ Completed 302 Found in 11ms (ActiveRecord: 5.9ms)
63288
+  (1.2ms) ROLLBACK
63289
+  (1.0ms) BEGIN
63290
+ Processing by SessionsController#create as HTML
63291
+ Parameters: {"provider"=>"bookingsync"}
63292
+ Account Load (1.8ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3 [["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
63293
+  (1.5ms) SAVEPOINT active_record_1
63294
+ Account Exists (1.5ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 123], ["LIMIT", 1]]
63295
+ Account Create (1.7ms) INSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["created_at", "2019-07-17 03:58:16.755306"], ["updated_at", "2019-07-17 03:58:16.755306"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
63296
+  (1.4ms) RELEASE SAVEPOINT active_record_1
63297
+ Redirected to http://test.host/admin
63298
+ Completed 302 Found in 12ms (ActiveRecord: 7.8ms)
63299
+  (1.5ms) ROLLBACK
63300
+  (1.2ms) BEGIN
63301
+  (1.4ms) SELECT COUNT(*) FROM "accounts"
63302
+ Processing by SessionsController#create as HTML
63303
+ Parameters: {"provider"=>"bookingsync"}
63304
+ Account Load (1.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3 [["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
63305
+  (0.8ms) SAVEPOINT active_record_1
63306
+ Account Exists (1.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 123], ["LIMIT", 1]]
63307
+ Account Create (1.0ms) INSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["created_at", "2019-07-17 03:58:16.778107"], ["updated_at", "2019-07-17 03:58:16.778107"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
63308
+  (0.9ms) RELEASE SAVEPOINT active_record_1
63309
+ Redirected to http://test.host/
63310
+ Completed 302 Found in 7ms (ActiveRecord: 5.0ms)
63311
+  (1.2ms) SELECT COUNT(*) FROM "accounts"
63312
+ Account Load (1.0ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" DESC LIMIT $1 [["LIMIT", 1]]
63313
+  (1.0ms) ROLLBACK
63314
+  (0.7ms) BEGIN
63315
+  (1.1ms) SELECT COUNT(*) FROM "multi_applications_accounts"
63316
+ Processing by SessionsController#create as HTML
63317
+ Parameters: {"provider"=>"bookingsync"}
63318
+ MultiApplicationsAccount Load (1.0ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."host" = $1 AND "multi_applications_accounts"."synced_id" = $2 AND "multi_applications_accounts"."provider" = $3 LIMIT $4 [["host", "test.host"], ["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
63319
+  (0.7ms) SAVEPOINT active_record_1
63320
+ MultiApplicationsAccount Exists (1.0ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 123], ["host", "test.host"], ["LIMIT", 1]]
63321
+ MultiApplicationsAccount Create (1.4ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "host") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["created_at", "2019-07-17 03:58:16.796965"], ["updated_at", "2019-07-17 03:58:16.796965"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["host", "test.host"]]
63322
+  (0.8ms) RELEASE SAVEPOINT active_record_1
63323
+ Redirected to http://test.host/
63324
+ Completed 302 Found in 9ms (ActiveRecord: 4.9ms)
63325
+  (0.8ms) SELECT COUNT(*) FROM "multi_applications_accounts"
63326
+ MultiApplicationsAccount Load (1.0ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" ORDER BY "multi_applications_accounts"."id" DESC LIMIT $1 [["LIMIT", 1]]
63327
+ MultiApplicationsAccount Load (0.8ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" ORDER BY "multi_applications_accounts"."id" DESC LIMIT $1 [["LIMIT", 1]]
63328
+  (0.7ms) ROLLBACK
63329
+  (0.6ms) BEGIN
63330
+ Processing by SessionsController#destroy as HTML
63331
+ Redirected to http://test.host/
63332
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
63333
+  (0.8ms) ROLLBACK
63334
+  (0.7ms) BEGIN
63335
+ Processing by SessionsController#destroy as HTML
63336
+ Redirected to http://test.host/signed_out
63337
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
63338
+  (0.7ms) ROLLBACK
63339
+  (0.7ms) BEGIN
63340
+ Processing by SessionsController#failure as HTML
63341
+ Rendering /Users/marc/Projects/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application
63342
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
63343
+ Rendered /Users/marc/Projects/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.2ms)
63344
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
63345
+ Completed 200 OK in 6ms (Views: 3.0ms | ActiveRecord: 0.0ms)
63346
+  (1.2ms) ROLLBACK
63347
+  (0.8ms) BEGIN
63348
+ Processing by SessionsController#failure as HTML
63349
+ Rendering /Users/marc/Projects/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application
63350
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
63351
+ Rendered /Users/marc/Projects/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.2ms)
63352
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
63353
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
63354
+  (0.8ms) ROLLBACK
63355
+  (0.9ms) BEGIN
63356
+  (1.1ms) SAVEPOINT active_record_1
63357
+ Application Exists (1.1ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "example.test"], ["LIMIT", 1]]
63358
+ Application Exists (1.0ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2 [["client_id", "123"], ["LIMIT", 1]]
63359
+ Application Exists (0.9ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2 [["client_secret", "456"], ["LIMIT", 1]]
63360
+ Application Create (0.8ms) INSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:58:16.840878"], ["updated_at", "2019-07-17 03:58:16.840878"], ["host", "example.test"], ["client_id", "123"], ["client_secret", "456"]]
63361
+  (0.8ms) RELEASE SAVEPOINT active_record_1
63362
+ Application Load (0.8ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "example.test"], ["LIMIT", 1]]
63363
+  (0.6ms) ROLLBACK
63364
+  (0.6ms) BEGIN
63365
+  (0.7ms) ROLLBACK
63366
+  (0.6ms) BEGIN
63367
+  (1.0ms) ROLLBACK
63368
+  (0.6ms) BEGIN
63369
+  (0.6ms) ROLLBACK
63370
+  (0.6ms) BEGIN
63371
+  (0.7ms) ROLLBACK
63372
+  (0.6ms) BEGIN
63373
+ Processing by AuthenticatedController#index as HTML
63374
+ Rendering html template
63375
+ Rendered html template (0.0ms)
63376
+ Filter chain halted as :authenticate_account! rendered or redirected
63377
+ Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)
63378
+  (0.8ms) ROLLBACK
63379
+  (0.8ms) BEGIN
63380
+ Processing by AuthenticatedController#index as HTML
63381
+ Redirected to http://test.host/auth/bookingsync/?account_id=
63382
+ Filter chain halted as :authenticate_account! rendered or redirected
63383
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
63384
+  (0.8ms) ROLLBACK
63385
+  (0.6ms) BEGIN
63386
+ Processing by AuthenticatedController#index as JS
63387
+ Rendering text template
63388
+ Rendered text template (0.0ms)
63389
+ Filter chain halted as :authenticate_account! rendered or redirected
63390
+ Completed 401 Unauthorized in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
63391
+  (0.7ms) ROLLBACK
63392
+  (0.7ms) BEGIN
63393
+ Processing by AuthenticatedController#index as JS
63394
+ Rendering text template
63395
+ Rendered text template (0.0ms)
63396
+ Filter chain halted as :authenticate_account! rendered or redirected
63397
+ Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
63398
+  (0.7ms) ROLLBACK
63399
+  (0.6ms) BEGIN
63400
+  (0.6ms) SAVEPOINT active_record_1
63401
+ Account Exists (0.9ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" IS NULL LIMIT $1 [["LIMIT", 1]]
63402
+ Account Create (1.1ms) INSERT INTO "accounts" ("created_at", "updated_at", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:58:16.883448"], ["updated_at", "2019-07-17 03:58:16.883448"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh"], ["oauth_expires_at", "expires"]]
63403
+  (0.7ms) RELEASE SAVEPOINT active_record_1
63404
+ Account Load (1.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT $2 [["id", 2020], ["LIMIT", 1]]
63405
+  (0.5ms) SAVEPOINT active_record_1
63406
+ Account Exists (1.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" IS NULL AND "accounts"."id" != $1 LIMIT $2 [["id", 2020], ["LIMIT", 1]]
63407
+ Account Update (0.9ms) UPDATE "accounts" SET "oauth_access_token" = $1, "oauth_refresh_token" = $2, "oauth_expires_at" = $3, "updated_at" = $4 WHERE "accounts"."id" = $5 [["oauth_access_token", nil], ["oauth_refresh_token", nil], ["oauth_expires_at", nil], ["updated_at", "2019-07-17 03:58:16.893249"], ["id", 2020]]
63408
+  (0.6ms) RELEASE SAVEPOINT active_record_1
63409
+ Account Load (0.7ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT $2 [["id", 2020], ["LIMIT", 1]]
63410
+  (0.8ms) ROLLBACK
63411
+  (0.6ms) BEGIN
63412
+  (0.7ms) SAVEPOINT active_record_1
63413
+ Account Exists (0.9ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 456], ["LIMIT", 1]]
63414
+ Account Create (0.9ms) INSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-07-17 03:58:16.901900"], ["updated_at", "2019-07-17 03:58:16.901900"], ["provider", "bookingsync"], ["synced_id", 456]]
63415
+  (0.6ms) RELEASE SAVEPOINT active_record_1
63416
+  (0.6ms) SAVEPOINT active_record_1
63417
+ Account Exists (0.7ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 123], ["LIMIT", 1]]
63418
+ Account Create (0.8ms) INSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-07-17 03:58:16.905981"], ["updated_at", "2019-07-17 03:58:16.905981"], ["provider", "bookingsync"], ["synced_id", 123]]
63419
+  (0.6ms) RELEASE SAVEPOINT active_record_1
63420
+ Account Load (0.7ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3 [["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
63421
+  (0.6ms) SAVEPOINT active_record_1
63422
+ Account Exists (0.8ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."id" != $2 LIMIT $3 [["synced_id", 123], ["id", 2022], ["LIMIT", 1]]
63423
+ Account Update (0.7ms) UPDATE "accounts" SET "name" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4, "updated_at" = $5 WHERE "accounts"."id" = $6 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", "2019-07-17 03:58:16.911186"], ["id", 2022]]
63424
+  (0.6ms) RELEASE SAVEPOINT active_record_1
63425
+  (0.6ms) ROLLBACK
63426
+  (0.8ms) BEGIN
63427
+  (0.6ms) SAVEPOINT active_record_1
63428
+ Account Exists (1.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 456], ["LIMIT", 1]]
63429
+ Account Create (0.9ms) INSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-07-17 03:58:16.919258"], ["updated_at", "2019-07-17 03:58:16.919258"], ["provider", "bookingsync"], ["synced_id", 456]]
63430
+  (0.6ms) RELEASE SAVEPOINT active_record_1
63431
+  (0.6ms) SAVEPOINT active_record_1
63432
+ Account Exists (0.7ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 123], ["LIMIT", 1]]
63433
+ Account Create (0.8ms) INSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-07-17 03:58:16.923456"], ["updated_at", "2019-07-17 03:58:16.923456"], ["provider", "bookingsync"], ["synced_id", 123]]
63434
+  (0.6ms) RELEASE SAVEPOINT active_record_1
63435
+ Account Load (0.7ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3 [["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
63436
+  (0.7ms) SAVEPOINT active_record_1
63437
+ Account Exists (0.7ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."id" != $2 LIMIT $3 [["synced_id", 123], ["id", 2024], ["LIMIT", 1]]
63438
+ Account Update (0.8ms) UPDATE "accounts" SET "name" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4, "updated_at" = $5 WHERE "accounts"."id" = $6 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", "2019-07-17 03:58:16.928663"], ["id", 2024]]
63439
+  (0.7ms) RELEASE SAVEPOINT active_record_1
63440
+ Account Load (1.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT $2 [["id", 2024], ["LIMIT", 1]]
63441
+  (0.8ms) ROLLBACK
63442
+  (0.7ms) BEGIN
63443
+  (0.7ms) SAVEPOINT active_record_1
63444
+ Account Exists (0.9ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 456], ["LIMIT", 1]]
63445
+ Account Create (0.8ms) INSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-07-17 03:58:16.937971"], ["updated_at", "2019-07-17 03:58:16.937971"], ["provider", "bookingsync"], ["synced_id", 456]]
63446
+  (0.7ms) RELEASE SAVEPOINT active_record_1
63447
+  (0.7ms) SAVEPOINT active_record_1
63448
+ Account Exists (0.8ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 123], ["LIMIT", 1]]
63449
+ Account Create (0.8ms) INSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-07-17 03:58:16.942073"], ["updated_at", "2019-07-17 03:58:16.942073"], ["provider", "bookingsync"], ["synced_id", 123]]
63450
+  (0.7ms) RELEASE SAVEPOINT active_record_1
63451
+ Account Load (0.8ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3 [["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
63452
+  (0.6ms) SAVEPOINT active_record_1
63453
+ Account Exists (1.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."id" != $2 LIMIT $3 [["synced_id", 123], ["id", 2026], ["LIMIT", 1]]
63454
+ Account Update (1.5ms) UPDATE "accounts" SET "name" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4, "updated_at" = $5 WHERE "accounts"."id" = $6 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", "2019-07-17 03:58:16.947740"], ["id", 2026]]
63455
+  (0.9ms) RELEASE SAVEPOINT active_record_1
63456
+ Account Load (1.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT $2 [["id", 2026], ["LIMIT", 1]]
63457
+  (0.7ms) ROLLBACK
63458
+  (0.5ms) BEGIN
63459
+  (0.6ms) SAVEPOINT active_record_1
63460
+ Account Exists (0.9ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 456], ["LIMIT", 1]]
63461
+ Account Create (0.9ms) INSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-07-17 03:58:16.957934"], ["updated_at", "2019-07-17 03:58:16.957934"], ["provider", "bookingsync"], ["synced_id", 456]]
63462
+  (0.6ms) RELEASE SAVEPOINT active_record_1
63463
+  (0.7ms) SAVEPOINT active_record_1
63464
+ Account Exists (0.8ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 123], ["LIMIT", 1]]
63465
+ Account Create (0.8ms) INSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-07-17 03:58:16.962113"], ["updated_at", "2019-07-17 03:58:16.962113"], ["provider", "bookingsync"], ["synced_id", 123]]
63466
+  (1.0ms) RELEASE SAVEPOINT active_record_1
63467
+ Account Load (1.4ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3 [["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
63468
+  (0.7ms) SAVEPOINT active_record_1
63469
+ Account Exists (1.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."id" != $2 LIMIT $3 [["synced_id", 123], ["id", 2028], ["LIMIT", 1]]
63470
+ Account Update (0.9ms) UPDATE "accounts" SET "name" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4, "updated_at" = $5 WHERE "accounts"."id" = $6 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", "2019-07-17 03:58:16.968762"], ["id", 2028]]
63471
+  (0.6ms) RELEASE SAVEPOINT active_record_1
63472
+  (0.8ms) ROLLBACK
63473
+  (0.6ms) BEGIN
63474
+  (0.6ms) SAVEPOINT active_record_1
63475
+ Account Exists (1.6ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 456], ["LIMIT", 1]]
63476
+ Account Create (0.8ms) INSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-07-17 03:58:16.977279"], ["updated_at", "2019-07-17 03:58:16.977279"], ["provider", "bookingsync"], ["synced_id", 456]]
63477
+  (0.6ms) RELEASE SAVEPOINT active_record_1
63478
+  (1.4ms) SELECT COUNT(*) FROM "accounts"
63479
+ Account Load (1.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3 [["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
63480
+  (0.7ms) SAVEPOINT active_record_1
63481
+ Account Exists (0.9ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 123], ["LIMIT", 1]]
63482
+ Account Create (1.7ms) INSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["created_at", "2019-07-17 03:58:16.985252"], ["updated_at", "2019-07-17 03:58:16.985252"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
63483
+  (0.8ms) RELEASE SAVEPOINT active_record_1
63484
+  (0.8ms) SELECT COUNT(*) FROM "accounts"
63485
+  (0.8ms) ROLLBACK
63486
+  (0.6ms) BEGIN
63487
+  (0.6ms) SAVEPOINT active_record_1
63488
+ Account Exists (0.8ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 456], ["LIMIT", 1]]
63489
+ Account Create (0.8ms) INSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-07-17 03:58:16.994678"], ["updated_at", "2019-07-17 03:58:16.994678"], ["provider", "bookingsync"], ["synced_id", 456]]
63490
+  (0.6ms) RELEASE SAVEPOINT active_record_1
63491
+ Account Load (1.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3 [["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
63492
+  (0.8ms) SAVEPOINT active_record_1
63493
+ Account Exists (0.8ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 123], ["LIMIT", 1]]
63494
+ Account Create (0.9ms) INSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["created_at", "2019-07-17 03:58:17.000585"], ["updated_at", "2019-07-17 03:58:17.000585"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
63495
+  (0.7ms) RELEASE SAVEPOINT active_record_1
63496
+  (0.9ms) ROLLBACK
63497
+  (1.4ms) BEGIN
63498
+  (1.1ms) SAVEPOINT active_record_1
63499
+ Account Exists (2.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 456], ["LIMIT", 1]]
63500
+ Account Create (1.8ms) INSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-07-17 03:58:17.012464"], ["updated_at", "2019-07-17 03:58:17.012464"], ["provider", "bookingsync"], ["synced_id", 456]]
63501
+  (2.0ms) RELEASE SAVEPOINT active_record_1
63502
+ Account Load (1.6ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3 [["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
63503
+  (1.5ms) SAVEPOINT active_record_1
63504
+ Account Exists (1.7ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 123], ["LIMIT", 1]]
63505
+ Account Create (2.2ms) INSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["created_at", "2019-07-17 03:58:17.025083"], ["updated_at", "2019-07-17 03:58:17.025083"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
63506
+  (1.4ms) RELEASE SAVEPOINT active_record_1
63507
+  (1.5ms) ROLLBACK
63508
+  (3.0ms) BEGIN
63509
+  (1.3ms) SAVEPOINT active_record_1
63510
+ Account Exists (1.7ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 456], ["LIMIT", 1]]
63511
+ Account Create (1.6ms) INSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-07-17 03:58:17.042061"], ["updated_at", "2019-07-17 03:58:17.042061"], ["provider", "bookingsync"], ["synced_id", 456]]
63512
+  (2.1ms) RELEASE SAVEPOINT active_record_1
63513
+ Account Load (5.5ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3 [["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
63514
+  (4.2ms) SAVEPOINT active_record_1
63515
+ Account Exists (3.5ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 123], ["LIMIT", 1]]
63516
+ Account Create (2.0ms) INSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["created_at", "2019-07-17 03:58:17.063635"], ["updated_at", "2019-07-17 03:58:17.063635"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
63517
+  (1.3ms) RELEASE SAVEPOINT active_record_1
63518
+  (1.2ms) ROLLBACK
63519
+  (1.1ms) BEGIN
63520
+  (1.0ms) SAVEPOINT active_record_1
63521
+ Account Exists (1.5ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 123], ["LIMIT", 1]]
63522
+ Account Create (1.4ms) INSERT INTO "accounts" ("created_at", "updated_at", "synced_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2019-07-17 03:58:17.076538"], ["updated_at", "2019-07-17 03:58:17.076538"], ["synced_id", 123]]
63523
+  (0.9ms) RELEASE SAVEPOINT active_record_1
63524
+  (1.5ms) ROLLBACK
63525
+  (1.2ms) BEGIN
63526
+  (1.2ms) ROLLBACK
63527
+  (0.7ms) BEGIN
63528
+  (0.6ms) SAVEPOINT active_record_1
63529
+ Account Exists (0.8ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 123], ["LIMIT", 1]]
63530
+ Account Create (0.7ms) INSERT INTO "accounts" ("created_at", "updated_at", "synced_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2019-07-17 03:58:17.112292"], ["updated_at", "2019-07-17 03:58:17.112292"], ["synced_id", 123]]
63531
+  (0.7ms) RELEASE SAVEPOINT active_record_1
63532
+  (1.0ms) ROLLBACK
63533
+  (0.5ms) BEGIN
63534
+  (0.6ms) SAVEPOINT active_record_1
63535
+ Account Exists (0.9ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 123], ["LIMIT", 1]]
63536
+ Account Create (0.8ms) INSERT INTO "accounts" ("created_at", "updated_at", "synced_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2019-07-17 03:58:17.119889"], ["updated_at", "2019-07-17 03:58:17.119889"], ["synced_id", 123]]
63537
+  (0.6ms) RELEASE SAVEPOINT active_record_1
63538
+  (1.3ms) ROLLBACK
63539
+  (0.7ms) BEGIN
63540
+  (0.8ms) SAVEPOINT active_record_1
63541
+ Account Exists (1.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 123], ["LIMIT", 1]]
63542
+ Account Create (0.8ms) INSERT INTO "accounts" ("created_at", "updated_at", "synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2019-07-17 03:58:17.143914"], ["updated_at", "2019-07-17 03:58:17.143914"], ["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1563249497"]]
63543
+  (0.8ms) RELEASE SAVEPOINT active_record_1
63544
+  (1.3ms) SAVEPOINT active_record_1
63545
+ Account Exists (1.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."id" != $2 LIMIT $3 [["synced_id", 123], ["id", 2040], ["LIMIT", 1]]
63546
+ Account Update (1.2ms) UPDATE "accounts" SET "updated_at" = $1, "oauth_access_token" = $2, "oauth_expires_at" = $3 WHERE "accounts"."id" = $4 [["updated_at", "2019-07-17 03:58:17.161206"], ["oauth_access_token", "refreshed_token"], ["oauth_expires_at", nil], ["id", 2040]]
63547
+  (1.0ms) RELEASE SAVEPOINT active_record_1
63548
+  (1.2ms) ROLLBACK
63549
+  (0.7ms) BEGIN
63550
+  (0.6ms) SAVEPOINT active_record_1
63551
+ Account Exists (0.8ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 123], ["LIMIT", 1]]
63552
+ Account Create (0.9ms) INSERT INTO "accounts" ("created_at", "updated_at", "synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2019-07-17 03:58:17.169907"], ["updated_at", "2019-07-17 03:58:17.169907"], ["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1563422297"]]
63553
+  (0.8ms) RELEASE SAVEPOINT active_record_1
63554
+  (0.7ms) ROLLBACK
63555
+  (0.6ms) BEGIN
63556
+  (0.6ms) SAVEPOINT active_record_1
63557
+ Account Exists (0.8ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 1], ["LIMIT", 1]]
63558
+ Account Create (0.8ms) INSERT INTO "accounts" ("created_at", "updated_at", "synced_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2019-07-17 03:58:17.176994"], ["updated_at", "2019-07-17 03:58:17.176994"], ["synced_id", 1]]
63559
+  (0.6ms) RELEASE SAVEPOINT active_record_1
63560
+  (0.6ms) SAVEPOINT active_record_1
63561
+ Account Exists (0.8ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 2], ["LIMIT", 1]]
63562
+ Account Create (0.9ms) INSERT INTO "accounts" ("created_at", "updated_at", "synced_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2019-07-17 03:58:17.180662"], ["updated_at", "2019-07-17 03:58:17.180662"], ["synced_id", 2]]
63563
+  (0.7ms) RELEASE SAVEPOINT active_record_1
63564
+  (0.6ms) SAVEPOINT active_record_1
63565
+ Account Exists (0.7ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 3], ["LIMIT", 1]]
63566
+ Account Create (0.8ms) INSERT INTO "accounts" ("created_at", "updated_at", "synced_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2019-07-17 03:58:17.184688"], ["updated_at", "2019-07-17 03:58:17.184688"], ["synced_id", 3]]
63567
+  (0.8ms) RELEASE SAVEPOINT active_record_1
63568
+ Account Load (1.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 3], ["LIMIT", 1]]
63569
+  (1.0ms) ROLLBACK
63570
+  (0.7ms) BEGIN
63571
+  (0.9ms) SAVEPOINT active_record_1
63572
+ Account Exists (0.9ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" IS NULL LIMIT $1 [["LIMIT", 1]]
63573
+ Account Create (1.0ms) INSERT INTO "accounts" ("created_at", "updated_at", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:58:17.193986"], ["updated_at", "2019-07-17 03:58:17.193986"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh"], ["oauth_expires_at", "expires"]]
63574
+  (0.7ms) RELEASE SAVEPOINT active_record_1
63575
+  (0.9ms) ROLLBACK
63576
+  (0.8ms) BEGIN
63577
+ Account Load (0.9ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT $1 [["LIMIT", 1]]
63578
+  (1.0ms) SAVEPOINT active_record_1
63579
+ Account Create (1.6ms) INSERT INTO "accounts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2019-07-17 03:58:17.208690"], ["updated_at", "2019-07-17 03:58:17.208690"]]
63580
+  (1.2ms) RELEASE SAVEPOINT active_record_1
63581
+  (0.8ms) SAVEPOINT active_record_1
63582
+ Account Update (1.5ms) UPDATE "accounts" SET "updated_at" = $1, "synced_id" = $2 WHERE "accounts"."id" = $3 [["updated_at", "2019-07-17 03:58:17.213782"], ["synced_id", 0], ["id", 2046]]
63583
+  (0.7ms) RELEASE SAVEPOINT active_record_1
63584
+ Account Exists (0.9ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2 [["synced_id", 0], ["LIMIT", 1]]
63585
+  (0.9ms) ROLLBACK
63586
+  (0.8ms) BEGIN
63587
+  (0.7ms) SAVEPOINT active_record_1
63588
+ MultiApplicationsAccount Exists (1.4ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 123], ["host", "test.example"], ["LIMIT", 1]]
63589
+ MultiApplicationsAccount Create (1.2ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "synced_id", "host") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-07-17 03:58:17.226735"], ["updated_at", "2019-07-17 03:58:17.226735"], ["synced_id", 123], ["host", "test.example"]]
63590
+  (0.9ms) RELEASE SAVEPOINT active_record_1
63591
+  (0.8ms) SAVEPOINT active_record_1
63592
+ Application Exists (1.5ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "test.example"], ["LIMIT", 1]]
63593
+ Application Exists (1.2ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2 [["client_id", "123"], ["LIMIT", 1]]
63594
+ Application Exists (1.3ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2 [["client_secret", "456"], ["LIMIT", 1]]
63595
+ Application Create (1.2ms) INSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:58:17.236822"], ["updated_at", "2019-07-17 03:58:17.236822"], ["host", "test.example"], ["client_id", "123"], ["client_secret", "456"]]
63596
+  (0.9ms) RELEASE SAVEPOINT active_record_1
63597
+ Application Load (1.2ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "test.example"], ["LIMIT", 1]]
63598
+  (1.0ms) ROLLBACK
63599
+  (0.7ms) BEGIN
63600
+  (0.8ms) SAVEPOINT active_record_1
63601
+ MultiApplicationsAccount Exists (1.4ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 123], ["host", "example.test"], ["LIMIT", 1]]
63602
+ MultiApplicationsAccount Create (1.5ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:58:17.258792"], ["updated_at", "2019-07-17 03:58:17.258792"], ["provider", "bookingsync"], ["synced_id", 123], ["host", "example.test"]]
63603
+  (0.9ms) RELEASE SAVEPOINT active_record_1
63604
+ MultiApplicationsAccount Load (1.0ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" ORDER BY "multi_applications_accounts"."id" ASC LIMIT $1 [["LIMIT", 1]]
63605
+ MultiApplicationsAccount Exists (1.0ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 123], ["host", "example.test"], ["LIMIT", 1]]
63606
+ MultiApplicationsAccount Load (0.8ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts"
63607
+ MultiApplicationsAccount Exists (1.8ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 123], ["host", "example.tesu"], ["LIMIT", 1]]
63608
+  (1.5ms) ROLLBACK
63609
+  (1.3ms) BEGIN
63610
+  (1.1ms) SAVEPOINT active_record_1
63611
+ MultiApplicationsAccount Exists (2.7ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 123], ["host", "test.example"], ["LIMIT", 1]]
63612
+ MultiApplicationsAccount Create (2.9ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "synced_id", "host") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-07-17 03:58:17.284022"], ["updated_at", "2019-07-17 03:58:17.284022"], ["synced_id", 123], ["host", "test.example"]]
63613
+  (1.2ms) RELEASE SAVEPOINT active_record_1
63614
+  (0.8ms) SAVEPOINT active_record_1
63615
+ Application Exists (1.3ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "test.example"], ["LIMIT", 1]]
63616
+ Application Exists (1.2ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2 [["client_id", "123"], ["LIMIT", 1]]
63617
+ Application Exists (0.7ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2 [["client_secret", "456"], ["LIMIT", 1]]
63618
+ Application Create (0.9ms) INSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:58:17.295122"], ["updated_at", "2019-07-17 03:58:17.295122"], ["host", "test.example"], ["client_id", "123"], ["client_secret", "456"]]
63619
+  (0.6ms) RELEASE SAVEPOINT active_record_1
63620
+ Application Load (0.9ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "test.example"], ["LIMIT", 1]]
63621
+  (0.9ms) ROLLBACK
63622
+  (0.8ms) BEGIN
63623
+  (0.7ms) SAVEPOINT active_record_1
63624
+ MultiApplicationsAccount Exists (0.9ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 123], ["host", "test.example"], ["LIMIT", 1]]
63625
+ MultiApplicationsAccount Create (0.9ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "synced_id", "host") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-07-17 03:58:17.304514"], ["updated_at", "2019-07-17 03:58:17.304514"], ["synced_id", 123], ["host", "test.example"]]
63626
+  (0.7ms) RELEASE SAVEPOINT active_record_1
63627
+  (0.6ms) SAVEPOINT active_record_1
63628
+ Application Exists (0.8ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "test.example"], ["LIMIT", 1]]
63629
+ Application Exists (0.8ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2 [["client_id", "123"], ["LIMIT", 1]]
63630
+ Application Exists (0.8ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2 [["client_secret", "456"], ["LIMIT", 1]]
63631
+ Application Create (0.8ms) INSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:58:17.310880"], ["updated_at", "2019-07-17 03:58:17.310880"], ["host", "test.example"], ["client_id", "123"], ["client_secret", "456"]]
63632
+  (0.6ms) RELEASE SAVEPOINT active_record_1
63633
+  (0.6ms) SAVEPOINT active_record_1
63634
+ Application Exists (0.9ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "test2.example"], ["LIMIT", 1]]
63635
+ Application Exists (0.8ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2 [["client_id", "234"], ["LIMIT", 1]]
63636
+ Application Exists (0.9ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2 [["client_secret", "567"], ["LIMIT", 1]]
63637
+ Application Create (0.7ms) INSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:58:17.317170"], ["updated_at", "2019-07-17 03:58:17.317170"], ["host", "test2.example"], ["client_id", "234"], ["client_secret", "567"]]
63638
+  (0.6ms) RELEASE SAVEPOINT active_record_1
63639
+ Application Load (0.8ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "test.example"], ["LIMIT", 1]]
63640
+  (0.6ms) ROLLBACK
63641
+  (0.6ms) BEGIN
63642
+  (0.6ms) SAVEPOINT active_record_1
63643
+ MultiApplicationsAccount Exists (0.8ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" IS NULL AND "multi_applications_accounts"."host" = $1 LIMIT $2 [["host", "example.test"], ["LIMIT", 1]]
63644
+ MultiApplicationsAccount Create (1.2ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "host") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2019-07-17 03:58:17.325259"], ["updated_at", "2019-07-17 03:58:17.325259"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh"], ["oauth_expires_at", "expires"], ["host", "example.test"]]
63645
+  (0.7ms) RELEASE SAVEPOINT active_record_1
63646
+ MultiApplicationsAccount Load (0.7ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."id" = $1 LIMIT $2 [["id", 2214], ["LIMIT", 1]]
63647
+  (1.0ms) SAVEPOINT active_record_1
63648
+ MultiApplicationsAccount Exists (1.1ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" IS NULL AND "multi_applications_accounts"."id" != $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["id", 2214], ["host", "example.test"], ["LIMIT", 1]]
63649
+ MultiApplicationsAccount Update (0.8ms) UPDATE "multi_applications_accounts" SET "oauth_access_token" = $1, "oauth_refresh_token" = $2, "oauth_expires_at" = $3, "updated_at" = $4 WHERE "multi_applications_accounts"."id" = $5 [["oauth_access_token", nil], ["oauth_refresh_token", nil], ["oauth_expires_at", nil], ["updated_at", "2019-07-17 03:58:17.333219"], ["id", 2214]]
63650
+  (0.7ms) RELEASE SAVEPOINT active_record_1
63651
+ MultiApplicationsAccount Load (1.0ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."id" = $1 LIMIT $2 [["id", 2214], ["LIMIT", 1]]
63652
+  (0.7ms) ROLLBACK
63653
+  (0.7ms) BEGIN
63654
+  (0.6ms) SAVEPOINT active_record_1
63655
+ Application Exists (0.8ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "host"], ["LIMIT", 1]]
63656
+ Application Exists (0.9ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2 [["client_id", "client_id"], ["LIMIT", 1]]
63657
+ Application Exists (0.8ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2 [["client_secret", "client_secret"], ["LIMIT", 1]]
63658
+ Application Create (0.8ms) INSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:58:17.344687"], ["updated_at", "2019-07-17 03:58:17.344687"], ["host", "host"], ["client_id", "client_id"], ["client_secret", "client_secret"]]
63659
+  (0.6ms) RELEASE SAVEPOINT active_record_1
63660
+ Application Load (1.1ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "host"], ["LIMIT", 1]]
63661
+  (0.7ms) ROLLBACK
63662
+  (0.7ms) BEGIN
63663
+  (0.7ms) SAVEPOINT active_record_1
63664
+ MultiApplicationsAccount Exists (1.0ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 123], ["host", "example.test"], ["LIMIT", 1]]
63665
+ MultiApplicationsAccount Create (0.8ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:58:17.354317"], ["updated_at", "2019-07-17 03:58:17.354317"], ["provider", "bookingsync"], ["synced_id", 123], ["host", "example.test"]]
63666
+  (0.8ms) RELEASE SAVEPOINT active_record_1
63667
+  (0.7ms) SAVEPOINT active_record_1
63668
+ MultiApplicationsAccount Exists (0.8ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 456], ["host", "example2.test"], ["LIMIT", 1]]
63669
+ MultiApplicationsAccount Create (1.0ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:58:17.358881"], ["updated_at", "2019-07-17 03:58:17.358881"], ["provider", "bookingsync"], ["synced_id", 456], ["host", "example2.test"]]
63670
+  (0.7ms) RELEASE SAVEPOINT active_record_1
63671
+  (1.4ms) ROLLBACK
63672
+  (0.8ms) BEGIN
63673
+  (0.9ms) SAVEPOINT active_record_1
63674
+ MultiApplicationsAccount Exists (1.1ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 123], ["host", "example.test"], ["LIMIT", 1]]
63675
+ MultiApplicationsAccount Create (1.0ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:58:17.371846"], ["updated_at", "2019-07-17 03:58:17.371846"], ["provider", "bookingsync"], ["synced_id", 123], ["host", "example.test"]]
63676
+  (0.8ms) RELEASE SAVEPOINT active_record_1
63677
+  (0.6ms) SAVEPOINT active_record_1
63678
+ MultiApplicationsAccount Exists (1.1ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 456], ["host", "example2.test"], ["LIMIT", 1]]
63679
+ MultiApplicationsAccount Create (0.8ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:58:17.376685"], ["updated_at", "2019-07-17 03:58:17.376685"], ["provider", "bookingsync"], ["synced_id", 456], ["host", "example2.test"]]
63680
+  (0.8ms) RELEASE SAVEPOINT active_record_1
63681
+ MultiApplicationsAccount Load (0.9ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."host" = $1 AND "multi_applications_accounts"."synced_id" = $2 AND "multi_applications_accounts"."provider" = $3 LIMIT $4 [["host", "example.test"], ["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
63682
+  (1.4ms) SAVEPOINT active_record_1
63683
+ MultiApplicationsAccount Exists (1.4ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."id" != $2 AND "multi_applications_accounts"."host" = $3 LIMIT $4 [["synced_id", 123], ["id", 2217], ["host", "example.test"], ["LIMIT", 1]]
63684
+ MultiApplicationsAccount Update (1.4ms) UPDATE "multi_applications_accounts" SET "name" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4, "updated_at" = $5 WHERE "multi_applications_accounts"."id" = $6 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", "2019-07-17 03:58:17.384323"], ["id", 2217]]
63685
+  (1.3ms) RELEASE SAVEPOINT active_record_1
63686
+  (0.8ms) ROLLBACK
63687
+  (0.7ms) BEGIN
63688
+  (0.7ms) SAVEPOINT active_record_1
63689
+ MultiApplicationsAccount Exists (0.9ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 123], ["host", "example.test"], ["LIMIT", 1]]
63690
+ MultiApplicationsAccount Create (0.9ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:58:17.394307"], ["updated_at", "2019-07-17 03:58:17.394307"], ["provider", "bookingsync"], ["synced_id", 123], ["host", "example.test"]]
63691
+  (0.8ms) RELEASE SAVEPOINT active_record_1
63692
+  (0.8ms) SAVEPOINT active_record_1
63693
+ MultiApplicationsAccount Exists (1.2ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 456], ["host", "example2.test"], ["LIMIT", 1]]
63694
+ MultiApplicationsAccount Create (0.9ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:58:17.399919"], ["updated_at", "2019-07-17 03:58:17.399919"], ["provider", "bookingsync"], ["synced_id", 456], ["host", "example2.test"]]
63695
+  (0.7ms) RELEASE SAVEPOINT active_record_1
63696
+ MultiApplicationsAccount Load (1.0ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."host" = $1 AND "multi_applications_accounts"."synced_id" = $2 AND "multi_applications_accounts"."provider" = $3 LIMIT $4 [["host", "example.test"], ["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
63697
+  (0.7ms) SAVEPOINT active_record_1
63698
+ MultiApplicationsAccount Exists (0.9ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."id" != $2 AND "multi_applications_accounts"."host" = $3 LIMIT $4 [["synced_id", 123], ["id", 2219], ["host", "example.test"], ["LIMIT", 1]]
63699
+ MultiApplicationsAccount Update (0.9ms) UPDATE "multi_applications_accounts" SET "name" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4, "updated_at" = $5 WHERE "multi_applications_accounts"."id" = $6 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", "2019-07-17 03:58:17.406374"], ["id", 2219]]
63700
+  (0.7ms) RELEASE SAVEPOINT active_record_1
63701
+ MultiApplicationsAccount Load (0.9ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."id" = $1 LIMIT $2 [["id", 2219], ["LIMIT", 1]]
63702
+  (0.8ms) ROLLBACK
63703
+  (0.6ms) BEGIN
63704
+  (1.0ms) SAVEPOINT active_record_1
63705
+ MultiApplicationsAccount Exists (1.0ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 123], ["host", "example.test"], ["LIMIT", 1]]
63706
+ MultiApplicationsAccount Create (0.9ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:58:17.416417"], ["updated_at", "2019-07-17 03:58:17.416417"], ["provider", "bookingsync"], ["synced_id", 123], ["host", "example.test"]]
63707
+  (0.7ms) RELEASE SAVEPOINT active_record_1
63708
+  (0.7ms) SAVEPOINT active_record_1
63709
+ MultiApplicationsAccount Exists (0.9ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 456], ["host", "example2.test"], ["LIMIT", 1]]
63710
+ MultiApplicationsAccount Create (0.9ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:58:17.421190"], ["updated_at", "2019-07-17 03:58:17.421190"], ["provider", "bookingsync"], ["synced_id", 456], ["host", "example2.test"]]
63711
+  (0.7ms) RELEASE SAVEPOINT active_record_1
63712
+ MultiApplicationsAccount Load (1.0ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."host" = $1 AND "multi_applications_accounts"."synced_id" = $2 AND "multi_applications_accounts"."provider" = $3 LIMIT $4 [["host", "example.test"], ["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
63713
+  (0.8ms) SAVEPOINT active_record_1
63714
+ MultiApplicationsAccount Exists (1.1ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."id" != $2 AND "multi_applications_accounts"."host" = $3 LIMIT $4 [["synced_id", 123], ["id", 2221], ["host", "example.test"], ["LIMIT", 1]]
63715
+ MultiApplicationsAccount Update (0.9ms) UPDATE "multi_applications_accounts" SET "name" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4, "updated_at" = $5 WHERE "multi_applications_accounts"."id" = $6 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", "2019-07-17 03:58:17.427756"], ["id", 2221]]
63716
+  (0.8ms) RELEASE SAVEPOINT active_record_1
63717
+ MultiApplicationsAccount Load (0.8ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."id" = $1 LIMIT $2 [["id", 2221], ["LIMIT", 1]]
63718
+  (0.7ms) ROLLBACK
63719
+  (0.7ms) BEGIN
63720
+  (0.6ms) SAVEPOINT active_record_1
63721
+ MultiApplicationsAccount Exists (1.0ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 123], ["host", "example.test"], ["LIMIT", 1]]
63722
+ MultiApplicationsAccount Create (0.9ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:58:17.436654"], ["updated_at", "2019-07-17 03:58:17.436654"], ["provider", "bookingsync"], ["synced_id", 123], ["host", "example.test"]]
63723
+  (1.1ms) RELEASE SAVEPOINT active_record_1
63724
+  (0.5ms) SAVEPOINT active_record_1
63725
+ MultiApplicationsAccount Exists (0.8ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 456], ["host", "example2.test"], ["LIMIT", 1]]
63726
+ MultiApplicationsAccount Create (0.8ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:58:17.441090"], ["updated_at", "2019-07-17 03:58:17.441090"], ["provider", "bookingsync"], ["synced_id", 456], ["host", "example2.test"]]
63727
+  (0.7ms) RELEASE SAVEPOINT active_record_1
63728
+  (0.8ms) SELECT COUNT(*) FROM "multi_applications_accounts"
63729
+ MultiApplicationsAccount Load (0.8ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."host" = $1 AND "multi_applications_accounts"."synced_id" = $2 AND "multi_applications_accounts"."provider" = $3 LIMIT $4 [["host", "example3.test"], ["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
63730
+  (0.6ms) SAVEPOINT active_record_1
63731
+ MultiApplicationsAccount Exists (0.9ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 123], ["host", "example3.test"], ["LIMIT", 1]]
63732
+ MultiApplicationsAccount Create (0.9ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "host") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["created_at", "2019-07-17 03:58:17.447425"], ["updated_at", "2019-07-17 03:58:17.447425"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["host", "example3.test"]]
63733
+  (0.6ms) RELEASE SAVEPOINT active_record_1
63734
+  (0.8ms) SELECT COUNT(*) FROM "multi_applications_accounts"
63735
+  (0.6ms) ROLLBACK
63736
+  (0.6ms) BEGIN
63737
+ MultiApplicationsAccount Load (0.9ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."host" = $1 AND "multi_applications_accounts"."synced_id" = $2 AND "multi_applications_accounts"."provider" = $3 LIMIT $4 [["host", "example3.test"], ["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
63738
+  (0.6ms) SAVEPOINT active_record_1
63739
+ MultiApplicationsAccount Exists (0.9ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 123], ["host", "example3.test"], ["LIMIT", 1]]
63740
+ MultiApplicationsAccount Create (1.0ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "host") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["created_at", "2019-07-17 03:58:17.457312"], ["updated_at", "2019-07-17 03:58:17.457312"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["host", "example3.test"]]
63741
+  (0.8ms) RELEASE SAVEPOINT active_record_1
63742
+  (0.7ms) SAVEPOINT active_record_1
63743
+ MultiApplicationsAccount Exists (0.9ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 456], ["host", "example2.test"], ["LIMIT", 1]]
63744
+ MultiApplicationsAccount Create (0.9ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:58:17.462363"], ["updated_at", "2019-07-17 03:58:17.462363"], ["provider", "bookingsync"], ["synced_id", 456], ["host", "example2.test"]]
63745
+  (0.9ms) RELEASE SAVEPOINT active_record_1
63746
+  (0.8ms) ROLLBACK
63747
+  (0.6ms) BEGIN
63748
+ MultiApplicationsAccount Load (0.7ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."host" = $1 AND "multi_applications_accounts"."synced_id" = $2 AND "multi_applications_accounts"."provider" = $3 LIMIT $4 [["host", "example3.test"], ["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
63749
+  (0.8ms) SAVEPOINT active_record_1
63750
+ MultiApplicationsAccount Exists (0.9ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 123], ["host", "example3.test"], ["LIMIT", 1]]
63751
+ MultiApplicationsAccount Create (0.9ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "host") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["created_at", "2019-07-17 03:58:17.471672"], ["updated_at", "2019-07-17 03:58:17.471672"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["host", "example3.test"]]
63752
+  (0.7ms) RELEASE SAVEPOINT active_record_1
63753
+  (0.6ms) SAVEPOINT active_record_1
63754
+ MultiApplicationsAccount Exists (0.9ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 456], ["host", "example2.test"], ["LIMIT", 1]]
63755
+ MultiApplicationsAccount Create (0.8ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:58:17.476051"], ["updated_at", "2019-07-17 03:58:17.476051"], ["provider", "bookingsync"], ["synced_id", 456], ["host", "example2.test"]]
63756
+  (0.6ms) RELEASE SAVEPOINT active_record_1
63757
+  (0.8ms) ROLLBACK
63758
+  (0.9ms) BEGIN
63759
+ MultiApplicationsAccount Load (0.8ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."host" = $1 AND "multi_applications_accounts"."synced_id" = $2 AND "multi_applications_accounts"."provider" = $3 LIMIT $4 [["host", "example3.test"], ["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
63760
+  (0.6ms) SAVEPOINT active_record_1
63761
+ MultiApplicationsAccount Exists (0.8ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 123], ["host", "example3.test"], ["LIMIT", 1]]
63762
+ MultiApplicationsAccount Create (0.9ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "host") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["created_at", "2019-07-17 03:58:17.484841"], ["updated_at", "2019-07-17 03:58:17.484841"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["host", "example3.test"]]
63763
+  (0.7ms) RELEASE SAVEPOINT active_record_1
63764
+  (0.6ms) SAVEPOINT active_record_1
63765
+ MultiApplicationsAccount Exists (0.8ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 456], ["host", "example2.test"], ["LIMIT", 1]]
63766
+ MultiApplicationsAccount Create (0.8ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:58:17.489188"], ["updated_at", "2019-07-17 03:58:17.489188"], ["provider", "bookingsync"], ["synced_id", 456], ["host", "example2.test"]]
63767
+  (0.6ms) RELEASE SAVEPOINT active_record_1
63768
+  (0.7ms) ROLLBACK
63769
+  (0.6ms) BEGIN
63770
+  (0.6ms) SAVEPOINT active_record_1
63771
+ MultiApplicationsAccount Exists (1.0ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 1], ["host", "example.test"], ["LIMIT", 1]]
63772
+ MultiApplicationsAccount Create (1.0ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "synced_id", "host") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-07-17 03:58:17.497095"], ["updated_at", "2019-07-17 03:58:17.497095"], ["synced_id", 1], ["host", "example.test"]]
63773
+  (0.6ms) RELEASE SAVEPOINT active_record_1
63774
+  (0.6ms) SAVEPOINT active_record_1
63775
+ MultiApplicationsAccount Exists (0.8ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 2], ["host", "example.test"], ["LIMIT", 1]]
63776
+ MultiApplicationsAccount Create (0.8ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "synced_id", "host") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-07-17 03:58:17.501551"], ["updated_at", "2019-07-17 03:58:17.501551"], ["synced_id", 2], ["host", "example.test"]]
63777
+  (0.6ms) RELEASE SAVEPOINT active_record_1
63778
+  (0.7ms) SAVEPOINT active_record_1
63779
+ MultiApplicationsAccount Exists (0.8ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 1], ["host", "example2.test"], ["LIMIT", 1]]
63780
+ MultiApplicationsAccount Create (0.8ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "synced_id", "host") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-07-17 03:58:17.505753"], ["updated_at", "2019-07-17 03:58:17.505753"], ["synced_id", 1], ["host", "example2.test"]]
63781
+  (0.5ms) RELEASE SAVEPOINT active_record_1
63782
+  (0.6ms) SAVEPOINT active_record_1
63783
+ MultiApplicationsAccount Exists (0.8ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 2], ["host", "example2.test"], ["LIMIT", 1]]
63784
+ MultiApplicationsAccount Create (0.9ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "synced_id", "host") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-07-17 03:58:17.509742"], ["updated_at", "2019-07-17 03:58:17.509742"], ["synced_id", 2], ["host", "example2.test"]]
63785
+  (0.8ms) RELEASE SAVEPOINT active_record_1
63786
+ MultiApplicationsAccount Load (0.8ms) SELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."host" = $1 AND "multi_applications_accounts"."synced_id" = $2 LIMIT $3 [["host", "example2.test"], ["synced_id", 1], ["LIMIT", 1]]
63787
+  (0.8ms) ROLLBACK
63788
+  (0.7ms) BEGIN
63789
+  (0.6ms) SAVEPOINT active_record_1
63790
+ MultiApplicationsAccount Exists (0.8ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" IS NULL AND "multi_applications_accounts"."host" = $1 LIMIT $2 [["host", "example.test"], ["LIMIT", 1]]
63791
+ MultiApplicationsAccount Create (0.8ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "host") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2019-07-17 03:58:17.518521"], ["updated_at", "2019-07-17 03:58:17.518521"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh"], ["oauth_expires_at", "expires"], ["host", "example.test"]]
63792
+  (0.7ms) RELEASE SAVEPOINT active_record_1
63793
+  (0.7ms) ROLLBACK
63794
+  (0.6ms) BEGIN
63795
+  (0.6ms) SAVEPOINT active_record_1
63796
+ MultiApplicationsAccount Exists (0.8ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 123], ["host", "example.test"], ["LIMIT", 1]]
63797
+ MultiApplicationsAccount Create (0.9ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "host") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2019-07-17 03:58:17.525716"], ["updated_at", "2019-07-17 03:58:17.525716"], ["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1563422297"], ["host", "example.test"]]
63798
+  (0.7ms) RELEASE SAVEPOINT active_record_1
63799
+  (0.6ms) SAVEPOINT active_record_1
63800
+ Application Exists (0.8ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "example.test"], ["LIMIT", 1]]
63801
+ Application Exists (0.8ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2 [["client_id", "123"], ["LIMIT", 1]]
63802
+ Application Exists (0.8ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2 [["client_secret", "456"], ["LIMIT", 1]]
63803
+ Application Create (0.8ms) INSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:58:17.532091"], ["updated_at", "2019-07-17 03:58:17.532091"], ["host", "example.test"], ["client_id", "123"], ["client_secret", "456"]]
63804
+  (0.6ms) RELEASE SAVEPOINT active_record_1
63805
+ Application Load (0.7ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "example.test"], ["LIMIT", 1]]
63806
+  (0.7ms) ROLLBACK
63807
+  (0.5ms) BEGIN
63808
+  (0.6ms) SAVEPOINT active_record_1
63809
+ MultiApplicationsAccount Exists (0.8ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3 [["synced_id", 123], ["host", "example.test"], ["LIMIT", 1]]
63810
+ MultiApplicationsAccount Create (0.8ms) INSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "host") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2019-07-17 03:58:17.540193"], ["updated_at", "2019-07-17 03:58:17.540193"], ["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1563249497"], ["host", "example.test"]]
63811
+  (0.6ms) RELEASE SAVEPOINT active_record_1
63812
+  (0.6ms) SAVEPOINT active_record_1
63813
+ Application Exists (0.8ms) SELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "example.test"], ["LIMIT", 1]]
63814
+ Application Exists (0.7ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2 [["client_id", "123"], ["LIMIT", 1]]
63815
+ Application Exists (0.9ms) SELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2 [["client_secret", "456"], ["LIMIT", 1]]
63816
+ Application Create (0.8ms) INSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-07-17 03:58:17.546609"], ["updated_at", "2019-07-17 03:58:17.546609"], ["host", "example.test"], ["client_id", "123"], ["client_secret", "456"]]
63817
+  (0.9ms) RELEASE SAVEPOINT active_record_1
63818
+ Application Load (0.8ms) SELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2 [["host", "example.test"], ["LIMIT", 1]]
63819
+  (1.0ms) SAVEPOINT active_record_1
63820
+ MultiApplicationsAccount Exists (1.1ms) SELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."id" != $2 AND "multi_applications_accounts"."host" = $3 LIMIT $4 [["synced_id", 123], ["id", 2238], ["host", "example.test"], ["LIMIT", 1]]
63821
+ MultiApplicationsAccount Update (1.0ms) UPDATE "multi_applications_accounts" SET "updated_at" = $1, "oauth_access_token" = $2, "oauth_expires_at" = $3 WHERE "multi_applications_accounts"."id" = $4 [["updated_at", "2019-07-17 03:58:17.564031"], ["oauth_access_token", "refreshed_token"], ["oauth_expires_at", nil], ["id", 2238]]
63822
+  (0.7ms) RELEASE SAVEPOINT active_record_1
63823
+  (0.7ms) ROLLBACK
63824
+  (0.6ms) BEGIN
63825
+  (0.6ms) ROLLBACK
63826
+  (0.6ms) BEGIN
63827
+  (0.6ms) ROLLBACK
63828
+  (0.7ms) BEGIN
63829
+  (0.8ms) ROLLBACK
63830
+  (0.7ms) BEGIN
63831
+  (0.7ms) ROLLBACK
63832
+  (0.7ms) BEGIN
63833
+  (0.7ms) ROLLBACK